diff --git a/paas/docs/AiAuditLogControllerApi.md b/paas/docs/AiAuditLogControllerApi.md deleted file mode 100644 index 7bf5cc71..00000000 --- a/paas/docs/AiAuditLogControllerApi.md +++ /dev/null @@ -1,31 +0,0 @@ -# AiAuditLogControllerApi - -`ThingsboardClient` methods: - -``` -com.fasterxml.jackson.databind.JsonNode getAiAuditLogs(@Nullable UUID sourceId, @Nullable AuditLogStatusFilter status) // getAiAuditLogs -``` - - -## getAiAuditLogs - -``` -com.fasterxml.jackson.databind.JsonNode getAiAuditLogs(@Nullable UUID sourceId, @Nullable AuditLogStatusFilter status) -``` - -**GET** `/api/ai/audit-logs` - -getAiAuditLogs - - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **sourceId** | **UUID** | | [optional] | -| **status** | **AuditLogStatusFilter** | | [optional] [default to ALL] [enum: SUCCESS, FAILURE, ALL] | - -### Return type - -**com.fasterxml.jackson.databind.JsonNode** - diff --git a/paas/docs/AiChatControllerApi.md b/paas/docs/AiChatControllerApi.md index c815f7ef..152cad2b 100644 --- a/paas/docs/AiChatControllerApi.md +++ b/paas/docs/AiChatControllerApi.md @@ -5,7 +5,6 @@ ``` com.fasterxml.jackson.databind.JsonNode createChat(@Nonnull Object body) // createChat void deleteChat(@Nonnull UUID chatId) // deleteChat -byte[] exportChat(@Nonnull UUID chatId, @Nullable Boolean includeAuditLogs) // exportChat com.fasterxml.jackson.databind.JsonNode getChatMessages(@Nonnull UUID chatId) // getChatMessages com.fasterxml.jackson.databind.JsonNode listChats() // listChats List sendChatMessage(@Nonnull UUID chatId, @Nonnull String xAuthorization, @Nonnull String body) // sendChatMessage @@ -57,29 +56,6 @@ deleteChat null (empty response body) -## exportChat - -``` -byte[] exportChat(@Nonnull UUID chatId, @Nullable Boolean includeAuditLogs) -``` - -**GET** `/api/ai/chats/{chatId}/export` - -exportChat - - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **chatId** | **UUID** | | | -| **includeAuditLogs** | **Boolean** | | [optional] [default to false] | - -### Return type - -**byte[]** - - ## getChatMessages ``` diff --git a/paas/docs/Asset.md b/paas/docs/Asset.md index 831f9cbb..4428f683 100644 --- a/paas/docs/Asset.md +++ b/paas/docs/Asset.md @@ -17,7 +17,7 @@ | **assetProfileId** | **AssetProfileId** | JSON object with Asset Profile Id. | [optional] | | **version** | **Long** | | [optional] | | **ownerId** | **EntityId** | JSON object with Customer or Tenant Id | [optional] [readonly] | -| **additionalInfo** | **com.fasterxml.jackson.databind.JsonNode** | Additional parameters of the asset | [optional] | +| **additionalInfo** | **com.fasterxml.jackson.databind.JsonNode** | Additional parameters of the asset. May include: 'description' (string). | [optional] | diff --git a/paas/docs/AssetInfo.md b/paas/docs/AssetInfo.md index 47850010..7ca3bde2 100644 --- a/paas/docs/AssetInfo.md +++ b/paas/docs/AssetInfo.md @@ -19,7 +19,7 @@ | **ownerName** | **String** | Owner name | [optional] [readonly] | | **groups** | **List\** | Groups | [optional] | | **ownerId** | **EntityId** | JSON object with Customer or Tenant Id | [optional] [readonly] | -| **additionalInfo** | **com.fasterxml.jackson.databind.JsonNode** | Additional parameters of the asset | [optional] | +| **additionalInfo** | **com.fasterxml.jackson.databind.JsonNode** | Additional parameters of the asset. May include: 'description' (string). | [optional] | diff --git a/paas/docs/AssetTypeFilter.md b/paas/docs/AssetTypeFilter.md index 2d50069e..dcdfdbf3 100644 --- a/paas/docs/AssetTypeFilter.md +++ b/paas/docs/AssetTypeFilter.md @@ -9,9 +9,9 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -| **assetType** | **String** | | [optional] | | **assetTypes** | **List\** | | [optional] | | **assetNameFilter** | **String** | | [optional] | +| **assetType** | **String** | | [optional] | diff --git a/paas/docs/AuditLogStatusFilter.md b/paas/docs/AuditLogStatusFilter.md deleted file mode 100644 index 2847c59d..00000000 --- a/paas/docs/AuditLogStatusFilter.md +++ /dev/null @@ -1,25 +0,0 @@ - -# AuditLogStatusFilter - -`org.thingsboard.client.model.AuditLogStatusFilter` - -## Enum Values - - -* `SUCCESS` (value: `"SUCCESS"`) - -* `FAILURE` (value: `"FAILURE"`) - -* `ALL` (value: `"ALL"`) - - - ---- - -### Conventions - -- **Package:** `org.thingsboard.client.model` -- **Getter pattern:** `get()` — e.g., `getId()`, `getName()` -- **Setter pattern:** `set(value)` — e.g., `setId(value)`, `setName(value)` -- **Null fields:** Getters return `null` for unset optional fields; they do not throw exceptions - diff --git a/paas/docs/BaseReadTsKvQuery.md b/paas/docs/BaseReadTsKvQuery.md index 76817150..a1ef1e93 100644 --- a/paas/docs/BaseReadTsKvQuery.md +++ b/paas/docs/BaseReadTsKvQuery.md @@ -7,13 +7,13 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +| **id** | **Integer** | | [optional] | | **key** | **String** | | [optional] | | **startTs** | **Long** | | [optional] | | **endTs** | **Long** | | [optional] | | **aggParameters** | **AggregationParams** | | [optional] | | **limit** | **Integer** | | [optional] | | **order** | **String** | | [optional] | -| **id** | **Integer** | | [optional] | | **interval** | **Long** | | [optional] | | **aggregation** | **Aggregation** | | [optional] | diff --git a/paas/docs/CalculatedFieldConfiguration.md b/paas/docs/CalculatedFieldConfiguration.md index 7dd9f478..c7e141ee 100644 --- a/paas/docs/CalculatedFieldConfiguration.md +++ b/paas/docs/CalculatedFieldConfiguration.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +| **aiGenerated** | **Boolean** | | [optional] | | **output** | **Output** | | [optional] | | **type** | **String** | | | diff --git a/paas/docs/CalculatedFieldDebugEventFilter.md b/paas/docs/CalculatedFieldDebugEventFilter.md index e4b96fe6..e31ffb23 100644 --- a/paas/docs/CalculatedFieldDebugEventFilter.md +++ b/paas/docs/CalculatedFieldDebugEventFilter.md @@ -10,7 +10,6 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| | **server** | **String** | String value representing the server name, identifier or ip address where the platform is running | [optional] | -| **isError** | **Boolean** | | [optional] | | **errorStr** | **String** | The case insensitive 'contains' filter based on error message | [optional] | | **entityId** | **String** | String value representing the entity id in the event body | [optional] | | **entityType** | **EntityTypeEnum** | String value representing the entity type | [optional] | @@ -18,6 +17,7 @@ | **msgType** | **String** | String value representing the message type | [optional] | | **arguments** | **String** | String value representing the arguments that were used in the calculation performed | [optional] | | **result** | **String** | String value representing the result of a calculation | [optional] | +| **isError** | **Boolean** | | [optional] | | **error** | **Boolean** | | [optional] | diff --git a/paas/docs/CustomMobilePage.md b/paas/docs/CustomMobilePage.md index 233caf4f..b90633e7 100644 --- a/paas/docs/CustomMobilePage.md +++ b/paas/docs/CustomMobilePage.md @@ -9,10 +9,10 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -| **path** | **String** | Path to custom page | [optional] | | **label** | **String** | Page label | [optional] | | **visible** | **Boolean** | Indicates if page is visible | | | **icon** | **String** | URL of the page icon | [optional] | +| **path** | **String** | Path to custom page | [optional] | diff --git a/paas/docs/Customer.md b/paas/docs/Customer.md index e4561c6e..c14dd4b5 100644 --- a/paas/docs/Customer.md +++ b/paas/docs/Customer.md @@ -25,7 +25,7 @@ | **name** | **String** | Name of the customer. Read-only, duplicated from title for backward compatibility | [optional] [readonly] | | **customerId** | **CustomerId** | JSON object with parent Customer Id | [optional] [readonly] | | **ownerId** | **EntityId** | JSON object with Customer or Tenant Id | [optional] [readonly] | -| **additionalInfo** | **com.fasterxml.jackson.databind.JsonNode** | Additional parameters of the device | [optional] | +| **additionalInfo** | **com.fasterxml.jackson.databind.JsonNode** | Additional parameters of the customer. May include: 'description' (string), 'homeDashboardId' (string, UUID of the home dashboard), 'homeDashboardHideToolbar' (boolean, whether to hide the dashboard toolbar), 'isPublic' (boolean, whether this is a public customer). | [optional] | diff --git a/paas/docs/CustomerInfo.md b/paas/docs/CustomerInfo.md index 660805d4..24c2bf3d 100644 --- a/paas/docs/CustomerInfo.md +++ b/paas/docs/CustomerInfo.md @@ -27,7 +27,7 @@ | **name** | **String** | Name of the customer. Read-only, duplicated from title for backward compatibility | [optional] [readonly] | | **customerId** | **CustomerId** | JSON object with parent Customer Id | [optional] [readonly] | | **ownerId** | **EntityId** | JSON object with Customer or Tenant Id | [optional] [readonly] | -| **additionalInfo** | **com.fasterxml.jackson.databind.JsonNode** | Additional parameters of the device | [optional] | +| **additionalInfo** | **com.fasterxml.jackson.databind.JsonNode** | Additional parameters of the customer. May include: 'description' (string), 'homeDashboardId' (string, UUID of the home dashboard), 'homeDashboardHideToolbar' (boolean, whether to hide the dashboard toolbar), 'isPublic' (boolean, whether this is a public customer). | [optional] | diff --git a/paas/docs/Dashboard.md b/paas/docs/Dashboard.md index a68edafe..7c81d175 100644 --- a/paas/docs/Dashboard.md +++ b/paas/docs/Dashboard.md @@ -7,19 +7,19 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -| **title** | **String** | Title of the dashboard. | [optional] | -| **image** | **String** | Thumbnail picture for rendering of the dashboards in a grid view on mobile devices. | [optional] [readonly] | -| **mobileHide** | **Boolean** | Hide dashboard from mobile devices. Useful if the dashboard is not designed for small screens. | [optional] [readonly] | -| **mobileOrder** | **Integer** | Order on mobile devices. Useful to adjust sorting of the dashboards for mobile applications | [optional] [readonly] | -| **_configuration** | **com.fasterxml.jackson.databind.JsonNode** | | [optional] | -| **name** | **String** | Same as title of the dashboard. Read-only field. Update the 'title' to change the 'name' of the dashboard. | [optional] [readonly] | -| **resources** | **List\** | | [optional] | | **id** | **DashboardId** | JSON object with the dashboard Id. Specify existing dashboard Id to update the dashboard. Referencing non-existing dashboard id will cause error. Omit this field to create new dashboard. | [optional] | | **createdTime** | **Long** | Timestamp of the dashboard creation, in milliseconds | [optional] [readonly] | | **tenantId** | **TenantId** | JSON object with Tenant Id. Tenant Id of the dashboard can't be changed. | [optional] [readonly] | | **customerId** | **CustomerId** | JSON object with Customer Id. | [optional] | +| **title** | **String** | Title of the dashboard. | [optional] | +| **image** | **String** | Thumbnail picture for rendering of the dashboards in a grid view on mobile devices. | [optional] [readonly] | | **assignedCustomers** | **Set\** | List of assigned customers with their info. | [optional] | +| **mobileHide** | **Boolean** | Hide dashboard from mobile devices. Useful if the dashboard is not designed for small screens. | [optional] [readonly] | +| **mobileOrder** | **Integer** | Order on mobile devices. Useful to adjust sorting of the dashboards for mobile applications | [optional] [readonly] | | **version** | **Long** | | [optional] | +| **resources** | **List\** | | [optional] | +| **_configuration** | **com.fasterxml.jackson.databind.JsonNode** | | [optional] | +| **name** | **String** | Same as title of the dashboard. Read-only field. Update the 'title' to change the 'name' of the dashboard. | [optional] [readonly] | | **ownerId** | **EntityId** | JSON object with Customer or Tenant Id | [optional] [readonly] | diff --git a/paas/docs/DashboardPage.md b/paas/docs/DashboardPage.md index e21e190f..446481be 100644 --- a/paas/docs/DashboardPage.md +++ b/paas/docs/DashboardPage.md @@ -9,10 +9,10 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -| **dashboardId** | **String** | Dashboard id | [optional] | | **label** | **String** | Page label | [optional] | | **visible** | **Boolean** | Indicates if page is visible | | | **icon** | **String** | URL of the page icon | [optional] | +| **dashboardId** | **String** | Dashboard id | [optional] | diff --git a/paas/docs/DebugConverterEventFilter.md b/paas/docs/DebugConverterEventFilter.md index dac5c58f..7915aa69 100644 --- a/paas/docs/DebugConverterEventFilter.md +++ b/paas/docs/DebugConverterEventFilter.md @@ -10,12 +10,12 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| | **server** | **String** | String value representing the server name, identifier or ip address where the platform is running | [optional] | -| **isError** | **Boolean** | | [optional] | | **errorStr** | **String** | The case insensitive 'contains' filter based on error message | [optional] | | **type** | **String** | | [optional] | | **in** | **String** | | [optional] | | **out** | **String** | | [optional] | | **metadata** | **String** | | [optional] | +| **isError** | **Boolean** | | [optional] | | **error** | **Boolean** | | [optional] | diff --git a/paas/docs/DebugIntegrationEventFilter.md b/paas/docs/DebugIntegrationEventFilter.md index 6b7ec1e7..3800a894 100644 --- a/paas/docs/DebugIntegrationEventFilter.md +++ b/paas/docs/DebugIntegrationEventFilter.md @@ -10,11 +10,11 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| | **server** | **String** | String value representing the server name, identifier or ip address where the platform is running | [optional] | -| **isError** | **Boolean** | | [optional] | | **errorStr** | **String** | The case insensitive 'contains' filter based on error message | [optional] | | **type** | **String** | | [optional] | | **message** | **String** | | [optional] | | **statusIntegration** | **String** | | [optional] | +| **isError** | **Boolean** | | [optional] | | **error** | **Boolean** | | [optional] | diff --git a/paas/docs/DefaultMobilePage.md b/paas/docs/DefaultMobilePage.md index 8c88c92f..561f744e 100644 --- a/paas/docs/DefaultMobilePage.md +++ b/paas/docs/DefaultMobilePage.md @@ -9,10 +9,10 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -| **id** | **DefaultPageId** | Identifier for default page | [optional] | | **label** | **String** | Page label | [optional] | | **visible** | **Boolean** | Indicates if page is visible | | | **icon** | **String** | URL of the page icon | [optional] | +| **id** | **DefaultPageId** | Identifier for default page | [optional] | diff --git a/paas/docs/Device.md b/paas/docs/Device.md index fb1b1d6d..0b00f936 100644 --- a/paas/docs/Device.md +++ b/paas/docs/Device.md @@ -20,7 +20,7 @@ | **version** | **Long** | | [optional] | | **deviceData** | **DeviceData** | JSON object with content specific to type of transport in the device profile. | [optional] | | **ownerId** | **EntityId** | JSON object with Customer or Tenant Id | [optional] [readonly] | -| **additionalInfo** | **com.fasterxml.jackson.databind.JsonNode** | Additional parameters of the device | [optional] | +| **additionalInfo** | **com.fasterxml.jackson.databind.JsonNode** | Additional parameters of the device. May include: 'gateway' (boolean, whether the device is a gateway), 'description' (string), 'lastConnectedGateway' (string, UUID of the last gateway that connected this device). | [optional] | diff --git a/paas/docs/DeviceInfo.md b/paas/docs/DeviceInfo.md index 0b75d162..9db5a77e 100644 --- a/paas/docs/DeviceInfo.md +++ b/paas/docs/DeviceInfo.md @@ -23,7 +23,7 @@ | **active** | **Boolean** | Device active flag. | [optional] [readonly] | | **deviceData** | **DeviceData** | JSON object with content specific to type of transport in the device profile. | [optional] | | **ownerId** | **EntityId** | JSON object with Customer or Tenant Id | [optional] [readonly] | -| **additionalInfo** | **com.fasterxml.jackson.databind.JsonNode** | Additional parameters of the device | [optional] | +| **additionalInfo** | **com.fasterxml.jackson.databind.JsonNode** | Additional parameters of the device. May include: 'gateway' (boolean, whether the device is a gateway), 'description' (string), 'lastConnectedGateway' (string, UUID of the last gateway that connected this device). | [optional] | diff --git a/paas/docs/DeviceTypeFilter.md b/paas/docs/DeviceTypeFilter.md index 97ad4c51..2bd83e86 100644 --- a/paas/docs/DeviceTypeFilter.md +++ b/paas/docs/DeviceTypeFilter.md @@ -9,9 +9,9 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -| **deviceType** | **String** | | [optional] | | **deviceTypes** | **List\** | | [optional] | | **deviceNameFilter** | **String** | | [optional] | +| **deviceType** | **String** | | [optional] | diff --git a/paas/docs/Edge.md b/paas/docs/Edge.md index 29c53cc5..a701d20f 100644 --- a/paas/docs/Edge.md +++ b/paas/docs/Edge.md @@ -24,7 +24,7 @@ A JSON value representing the edge. | **edgeLicenseType** | **EdgeLicenseType** | | [optional] | | **version** | **Long** | | [optional] | | **ownerId** | **EntityId** | | [optional] [readonly] | -| **additionalInfo** | **com.fasterxml.jackson.databind.JsonNode** | | [optional] | +| **additionalInfo** | **com.fasterxml.jackson.databind.JsonNode** | Additional parameters of the edge. May include: 'description' (string). | [optional] | diff --git a/paas/docs/EdgeInfo.md b/paas/docs/EdgeInfo.md index 03cece07..a0e7115d 100644 --- a/paas/docs/EdgeInfo.md +++ b/paas/docs/EdgeInfo.md @@ -24,7 +24,7 @@ | **ownerName** | **String** | Owner name | [optional] [readonly] | | **groups** | **List\** | Groups | [optional] | | **ownerId** | **EntityId** | | [optional] [readonly] | -| **additionalInfo** | **com.fasterxml.jackson.databind.JsonNode** | | [optional] | +| **additionalInfo** | **com.fasterxml.jackson.databind.JsonNode** | Additional parameters of the edge. May include: 'description' (string). | [optional] | diff --git a/paas/docs/EdgeTypeFilter.md b/paas/docs/EdgeTypeFilter.md index 1bb04113..10bfd8e7 100644 --- a/paas/docs/EdgeTypeFilter.md +++ b/paas/docs/EdgeTypeFilter.md @@ -9,9 +9,9 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -| **edgeType** | **String** | | [optional] | | **edgeTypes** | **List\** | | [optional] | | **edgeNameFilter** | **String** | | [optional] | +| **edgeType** | **String** | | [optional] | diff --git a/paas/docs/EntityGroup.md b/paas/docs/EntityGroup.md index aa8d44ea..a4126b15 100644 --- a/paas/docs/EntityGroup.md +++ b/paas/docs/EntityGroup.md @@ -14,7 +14,7 @@ A JSON value representing the entity group. | **type** | **TypeEnum** | | | | **name** | **String** | Name of the entity group | | | **ownerId** | **EntityId** | JSON object with the owner of the group - Tenant or Customer Id. | [optional] | -| **additionalInfo** | **com.fasterxml.jackson.databind.JsonNode** | Arbitrary JSON with additional information about the group | [optional] | +| **additionalInfo** | **com.fasterxml.jackson.databind.JsonNode** | Additional parameters of the entity group. May include: 'description' (string), 'isPublic' (boolean, whether this group is shared publicly), 'publicCustomerId' (string, UUID of the public customer associated with this group). | [optional] | | **_configuration** | **com.fasterxml.jackson.databind.JsonNode** | JSON with the configuration for UI components: list of columns, settings, actions, etc | [optional] | | **version** | **Long** | | [optional] | | **groupAll** | **Boolean** | Indicates special group 'All' that contains all entities and can't be deleted. | [optional] | diff --git a/paas/docs/EntityGroupControllerApi.md b/paas/docs/EntityGroupControllerApi.md index 9ea41ef0..2a59fa92 100644 --- a/paas/docs/EntityGroupControllerApi.md +++ b/paas/docs/EntityGroupControllerApi.md @@ -51,7 +51,7 @@ void addEntitiesToEntityGroup(@Nonnull String entityGroupId, @Nonnull List** | List of the entity group owners. | | diff --git a/paas/docs/EntityRelation.md b/paas/docs/EntityRelation.md index 4a8cfea4..cae4f2b6 100644 --- a/paas/docs/EntityRelation.md +++ b/paas/docs/EntityRelation.md @@ -14,7 +14,7 @@ A JSON value representing the relation. | **type** | **String** | String value of relation type. | | | **typeGroup** | **RelationTypeGroup** | Represents the type group of the relation. | | | **version** | **Long** | | [optional] | -| **additionalInfo** | **com.fasterxml.jackson.databind.JsonNode** | Additional parameters of the relation | [optional] | +| **additionalInfo** | **com.fasterxml.jackson.databind.JsonNode** | Additional parameters of the relation. | [optional] | diff --git a/paas/docs/EntityRelationInfo.md b/paas/docs/EntityRelationInfo.md index a08463c1..1362679d 100644 --- a/paas/docs/EntityRelationInfo.md +++ b/paas/docs/EntityRelationInfo.md @@ -14,7 +14,7 @@ | **version** | **Long** | | [optional] | | **fromName** | **String** | Name of the entity for [from] direction. | [optional] [readonly] | | **toName** | **String** | Name of the entity for [to] direction. | [optional] [readonly] | -| **additionalInfo** | **com.fasterxml.jackson.databind.JsonNode** | Additional parameters of the relation | [optional] | +| **additionalInfo** | **com.fasterxml.jackson.databind.JsonNode** | Additional parameters of the relation. | [optional] | diff --git a/paas/docs/EntityView.md b/paas/docs/EntityView.md index 062358bc..986d862e 100644 --- a/paas/docs/EntityView.md +++ b/paas/docs/EntityView.md @@ -21,7 +21,7 @@ A JSON object representing the entity view. | **id** | **EntityViewId** | JSON object with the Entity View Id. Specify this field to update the Entity View. Referencing non-existing Entity View Id will cause error. Omit this field to create new Entity View. | [optional] | | **createdTime** | **Long** | Timestamp of the Entity View creation, in milliseconds | [optional] [readonly] | | **ownerId** | **EntityId** | JSON object with Customer or Tenant Id | [optional] [readonly] | -| **additionalInfo** | **com.fasterxml.jackson.databind.JsonNode** | Additional parameters of the device | [optional] | +| **additionalInfo** | **com.fasterxml.jackson.databind.JsonNode** | Additional parameters of the entity view. May include: 'description' (string). | [optional] | diff --git a/paas/docs/EntityViewInfo.md b/paas/docs/EntityViewInfo.md index 9eadfac4..05a6f669 100644 --- a/paas/docs/EntityViewInfo.md +++ b/paas/docs/EntityViewInfo.md @@ -21,7 +21,7 @@ | **ownerName** | **String** | Owner name | [optional] [readonly] | | **groups** | **List\** | Groups | [optional] | | **ownerId** | **EntityId** | JSON object with Customer or Tenant Id | [optional] [readonly] | -| **additionalInfo** | **com.fasterxml.jackson.databind.JsonNode** | Additional parameters of the device | [optional] | +| **additionalInfo** | **com.fasterxml.jackson.databind.JsonNode** | Additional parameters of the entity view. May include: 'description' (string). | [optional] | diff --git a/paas/docs/EntityViewTypeFilter.md b/paas/docs/EntityViewTypeFilter.md index 28c4618b..28b3c19c 100644 --- a/paas/docs/EntityViewTypeFilter.md +++ b/paas/docs/EntityViewTypeFilter.md @@ -9,9 +9,9 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -| **entityViewType** | **String** | | [optional] | | **entityViewTypes** | **List\** | | [optional] | | **entityViewNameFilter** | **String** | | [optional] | +| **entityViewType** | **String** | | [optional] | diff --git a/paas/docs/FeaturesInfo.md b/paas/docs/FeaturesInfo.md index ecc24058..106d56cb 100644 --- a/paas/docs/FeaturesInfo.md +++ b/paas/docs/FeaturesInfo.md @@ -9,10 +9,10 @@ |------------ | ------------- | ------------- | -------------| | **smsEnabled** | **Boolean** | | [optional] | | **oauthEnabled** | **Boolean** | | [optional] | +| **notificationEnabled** | **Boolean** | | [optional] | | **whiteLabelingEnabled** | **Boolean** | | [optional] | | **twoFaEnabled** | **Boolean** | | [optional] | | **emailEnabled** | **Boolean** | | [optional] | -| **notificationEnabled** | **Boolean** | | [optional] | diff --git a/paas/docs/GroupPermission.md b/paas/docs/GroupPermission.md index 8d734784..c6f6085c 100644 --- a/paas/docs/GroupPermission.md +++ b/paas/docs/GroupPermission.md @@ -10,10 +10,10 @@ A JSON value representing the group permission. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| | **tenantId** | **TenantId** | JSON object with the Tenant Id. | [optional] [readonly] | -| **userGroupId** | **EntityGroupId** | JSON object with the User Group Id. Represent user group that will have permissions to perform operations against corresponding Entity Group. | [optional] | -| **roleId** | **RoleId** | JSON object with the Role Id. Represent set of permissions. | [optional] | -| **entityGroupId** | **EntityGroupId** | JSON object with the Entity Group Id. Represent entity (device, asset, etc.) group. | [optional] | -| **entityGroupType** | **EntityType** | Type of the entities in the group: DEVICE, ASSET, CUSTOMER, etc. | [optional] | +| **userGroupId** | **EntityGroupId** | JSON object with the User Group Id. Represents the user group that will have permissions to perform operations against the corresponding entity group. | | +| **roleId** | **RoleId** | JSON object with the Role Id. Represents the set of permissions. The role type (GENERIC or GROUP) determines whether 'entityGroupId' is required. | | +| **entityGroupId** | **EntityGroupId** | JSON object with the Entity Group Id. Required when using a GROUP role — specifies the entity group to which the permissions apply. Must be null or omitted when using a GENERIC role. | [optional] | +| **entityGroupType** | **EntityType** | Type of the entities in the group: DEVICE, ASSET, CUSTOMER, etc. Auto-populated from the referenced entity group. Null for generic permissions. | [optional] [readonly] | | **isPublic** | **Boolean** | | [optional] | | **id** | **GroupPermissionId** | JSON object with the Group Permission Id. Specify this field to update the Group Permission. Referencing non-existing Group Permission Id will cause error. Omit this field to create new Group Permission. | [optional] | | **createdTime** | **Long** | Timestamp of the group permission creation, in milliseconds | [optional] [readonly] | diff --git a/paas/docs/GroupPermissionControllerApi.md b/paas/docs/GroupPermissionControllerApi.md index 249738cb..4e8b524d 100644 --- a/paas/docs/GroupPermissionControllerApi.md +++ b/paas/docs/GroupPermissionControllerApi.md @@ -47,7 +47,7 @@ List getEntityGroupPermissions(@Nonnull String entityGroupI Get group permissions by Entity Group Id (getEntityGroupPermissions) -Returns a list of group permission objects that is assigned for the specified Entity Group Id. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; Group Permission Info object extends the Group Permissions with the full information about Role and User and/or Entity Groups. Security check is performed to verify that the user has 'READ' permission for the entity (entities). +Returns a list of group permission objects that is assigned for the specified Entity Group Id. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; There are two types of group permissions depending on the Role type: * **Generic permission** — uses a GENERIC role. The 'entityGroupId' field must be null (or omitted). Grants the role's operations to all entities within the owner's scope (all tenant entities for tenant admins, only customer-owned entities for customer users). * **Group permission** — uses a GROUP role. The 'entityGroupId' field must reference a valid entity group. Grants the role's operations only to entities in the specified group. Assigning a GENERIC role with a non-null 'entityGroupId' will cause an error. The 'entityGroupType' field is auto-populated from the referenced entity group and should not be set manually. Duplicate permissions (same userGroupId + roleId + entityGroupId combination) are rejected. Group Permission Info object extends the Group Permissions with the full information about Role and User and/or Entity Groups. Security check is performed to verify that the user has 'READ' permission for the entity (entities). ### Parameters @@ -71,7 +71,7 @@ GroupPermission getGroupPermissionById(@Nonnull String groupPermissionId) Get Group Permission (getGroupPermissionById) -Fetch the Group Permission object based on the provided Group Permission Id. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; Security check is performed to verify that the user has 'READ' permission for the entity (entities). +Fetch the Group Permission object based on the provided Group Permission Id. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; There are two types of group permissions depending on the Role type: * **Generic permission** — uses a GENERIC role. The 'entityGroupId' field must be null (or omitted). Grants the role's operations to all entities within the owner's scope (all tenant entities for tenant admins, only customer-owned entities for customer users). * **Group permission** — uses a GROUP role. The 'entityGroupId' field must reference a valid entity group. Grants the role's operations only to entities in the specified group. Assigning a GENERIC role with a non-null 'entityGroupId' will cause an error. The 'entityGroupType' field is auto-populated from the referenced entity group and should not be set manually. Duplicate permissions (same userGroupId + roleId + entityGroupId combination) are rejected. Security check is performed to verify that the user has 'READ' permission for the entity (entities). ### Parameters @@ -95,7 +95,7 @@ GroupPermissionInfo getGroupPermissionInfoById(@Nonnull String groupPermissionId Get Group Permission Info (getGroupPermissionInfoById) -Fetch the Group Permission Info object based on the provided Group Permission Id and the flag that controls what additional information to load: User or Entity Group. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; Group Permission Info object extends the Group Permissions with the full information about Role and User and/or Entity Groups. Security check is performed to verify that the user has 'READ' permission for the entity (entities). +Fetch the Group Permission Info object based on the provided Group Permission Id and the flag that controls what additional information to load: User or Entity Group. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; There are two types of group permissions depending on the Role type: * **Generic permission** — uses a GENERIC role. The 'entityGroupId' field must be null (or omitted). Grants the role's operations to all entities within the owner's scope (all tenant entities for tenant admins, only customer-owned entities for customer users). * **Group permission** — uses a GROUP role. The 'entityGroupId' field must reference a valid entity group. Grants the role's operations only to entities in the specified group. Assigning a GENERIC role with a non-null 'entityGroupId' will cause an error. The 'entityGroupType' field is auto-populated from the referenced entity group and should not be set manually. Duplicate permissions (same userGroupId + roleId + entityGroupId combination) are rejected. Group Permission Info object extends the Group Permissions with the full information about Role and User and/or Entity Groups. Security check is performed to verify that the user has 'READ' permission for the entity (entities). ### Parameters @@ -120,7 +120,7 @@ List getUserGroupPermissions(@Nonnull String userGroupId) Get group permissions by User Group Id (getUserGroupPermissions) -Returns a list of group permission objects that belongs to specified User Group Id. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; Group Permission Info object extends the Group Permissions with the full information about Role and User and/or Entity Groups. Security check is performed to verify that the user has 'READ' permission for the entity (entities). +Returns a list of group permission objects that belongs to specified User Group Id. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; There are two types of group permissions depending on the Role type: * **Generic permission** — uses a GENERIC role. The 'entityGroupId' field must be null (or omitted). Grants the role's operations to all entities within the owner's scope (all tenant entities for tenant admins, only customer-owned entities for customer users). * **Group permission** — uses a GROUP role. The 'entityGroupId' field must reference a valid entity group. Grants the role's operations only to entities in the specified group. Assigning a GENERIC role with a non-null 'entityGroupId' will cause an error. The 'entityGroupType' field is auto-populated from the referenced entity group and should not be set manually. Duplicate permissions (same userGroupId + roleId + entityGroupId combination) are rejected. Group Permission Info object extends the Group Permissions with the full information about Role and User and/or Entity Groups. Security check is performed to verify that the user has 'READ' permission for the entity (entities). ### Parameters @@ -144,7 +144,7 @@ List loadUserGroupPermissionInfos(@Nonnull List** | Groups | [optional] | | **name** | **String** | Duplicates the email of the user, readonly | [optional] [readonly] | | **ownerId** | **EntityId** | JSON object with Customer or Tenant Id | [optional] [readonly] | -| **additionalInfo** | **com.fasterxml.jackson.databind.JsonNode** | Additional parameters of the user | [optional] | +| **additionalInfo** | **com.fasterxml.jackson.databind.JsonNode** | Additional parameters of the user. May include: 'defaultDashboardId' (string, UUID of the default dashboard), 'defaultDashboardFullscreen' (boolean), 'homeDashboardId' (string, UUID of the home dashboard), 'homeDashboardHideToolbar' (boolean), 'lang' (string, user locale, e.g. 'en_US'), 'authProviderName' (string, name of the authentication provider). | [optional] | diff --git a/paas/docs/WebViewPage.md b/paas/docs/WebViewPage.md index 1677715b..02e60f05 100644 --- a/paas/docs/WebViewPage.md +++ b/paas/docs/WebViewPage.md @@ -9,10 +9,10 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -| **url** | **String** | Url | [optional] | | **label** | **String** | Page label | [optional] | | **visible** | **Boolean** | Indicates if page is visible | | | **icon** | **String** | URL of the page icon | [optional] | +| **url** | **String** | Url | [optional] | diff --git a/paas/docs/WhiteLabelingParams.md b/paas/docs/WhiteLabelingParams.md index 97e0f65b..8710cafd 100644 --- a/paas/docs/WhiteLabelingParams.md +++ b/paas/docs/WhiteLabelingParams.md @@ -24,6 +24,7 @@ A JSON value representing the white labeling configuration | **customCss** | **String** | Custom CSS content | [optional] | | **hideConnectivityDialog** | **Boolean** | Hide device connectivity dialog | [optional] | | **overrideTrendzName** | **Boolean** | Override Trendz Add-on name | [optional] | +| **hideChatBot** | **Boolean** | Hide chat bot | [optional] | diff --git a/paas/spec/openapi.json b/paas/spec/openapi.json index d5aa08a3..fd4b298b 100644 --- a/paas/spec/openapi.json +++ b/paas/spec/openapi.json @@ -25,10 +25,6 @@ "name": "admin-controller", "description": "Admin Controller" }, - { - "name": "ai-audit-log-controller", - "description": "Ai Audit Log Controller" - }, { "name": "ai-chat-controller", "description": "Ai Chat Controller" @@ -4181,175 +4177,6 @@ ] } }, - "/api/ai/audit-logs": { - "get": { - "tags": [ - "ai-audit-log-controller" - ], - "summary": "getAiAuditLogs", - "operationId": "getAiAuditLogs", - "parameters": [ - { - "name": "sourceId", - "in": "query", - "required": false, - "schema": { - "type": "string", - "format": "uuid" - } - }, - { - "name": "status", - "in": "query", - "required": false, - "schema": { - "$ref": "#/components/schemas/AuditLogStatusFilter", - "default": "ALL" - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/JsonNode" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ThingsboardErrorResponse" - }, - "examples": { - "error-code-400": { - "summary": "Bad Request", - "value": { - "message": "Invalid UUID string: 123", - "errorCode": 31, - "status": 400, - "subscriptionErrorCode": null, - "subscriptionEntry": null, - "subscriptionValue": null, - "timestamp": 1609459200000 - } - } - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ThingsboardErrorResponse" - }, - "examples": { - "error-code-401": { - "summary": "Unauthorized", - "value": { - "message": "Authentication failed", - "errorCode": 10, - "status": 401, - "subscriptionErrorCode": null, - "subscriptionEntry": null, - "subscriptionValue": null, - "timestamp": 1609459200000 - } - } - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ThingsboardErrorResponse" - }, - "examples": { - "error-code-403": { - "summary": "Forbidden", - "value": { - "message": "You don't have permission to perform this operation!", - "errorCode": 20, - "status": 403, - "subscriptionErrorCode": null, - "subscriptionEntry": null, - "subscriptionValue": null, - "timestamp": 1609459200000 - } - } - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ThingsboardErrorResponse" - }, - "examples": { - "error-code-404": { - "summary": "Not Found", - "value": { - "message": "Requested item wasn't found!", - "errorCode": 32, - "status": 404, - "subscriptionErrorCode": null, - "subscriptionEntry": null, - "subscriptionValue": null, - "timestamp": 1609459200000 - } - } - } - } - } - }, - "429": { - "description": "Too Many Requests", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ThingsboardErrorResponse" - }, - "examples": { - "error-code-429": { - "summary": "Too Many Requests", - "value": { - "message": "Too many requests for current tenant!", - "errorCode": 33, - "status": 429, - "subscriptionErrorCode": null, - "subscriptionEntry": null, - "subscriptionValue": null, - "timestamp": 1609459200000 - } - } - } - } - } - } - }, - "security": [ - { - "HttpLoginForm": [] - }, - { - "ApiKeyForm": [] - } - ] - } - }, "/api/ai/chats": { "get": { "tags": [ @@ -4970,176 +4797,6 @@ ] } }, - "/api/ai/chats/{chatId}/export": { - "get": { - "tags": [ - "ai-chat-controller" - ], - "summary": "exportChat", - "operationId": "exportChat", - "parameters": [ - { - "name": "chatId", - "in": "path", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - } - }, - { - "name": "includeAuditLogs", - "in": "query", - "required": false, - "schema": { - "type": "boolean", - "default": false - } - } - ], - "responses": { - "200": { - "description": "OK", - "content": { - "application/json": { - "schema": { - "type": "string", - "format": "byte" - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ThingsboardErrorResponse" - }, - "examples": { - "error-code-400": { - "summary": "Bad Request", - "value": { - "message": "Invalid UUID string: 123", - "errorCode": 31, - "status": 400, - "subscriptionErrorCode": null, - "subscriptionEntry": null, - "subscriptionValue": null, - "timestamp": 1609459200000 - } - } - } - } - } - }, - "401": { - "description": "Unauthorized", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ThingsboardErrorResponse" - }, - "examples": { - "error-code-401": { - "summary": "Unauthorized", - "value": { - "message": "Authentication failed", - "errorCode": 10, - "status": 401, - "subscriptionErrorCode": null, - "subscriptionEntry": null, - "subscriptionValue": null, - "timestamp": 1609459200000 - } - } - } - } - } - }, - "403": { - "description": "Forbidden", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ThingsboardErrorResponse" - }, - "examples": { - "error-code-403": { - "summary": "Forbidden", - "value": { - "message": "You don't have permission to perform this operation!", - "errorCode": 20, - "status": 403, - "subscriptionErrorCode": null, - "subscriptionEntry": null, - "subscriptionValue": null, - "timestamp": 1609459200000 - } - } - } - } - } - }, - "404": { - "description": "Not Found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ThingsboardErrorResponse" - }, - "examples": { - "error-code-404": { - "summary": "Not Found", - "value": { - "message": "Requested item wasn't found!", - "errorCode": 32, - "status": 404, - "subscriptionErrorCode": null, - "subscriptionEntry": null, - "subscriptionValue": null, - "timestamp": 1609459200000 - } - } - } - } - } - }, - "429": { - "description": "Too Many Requests", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ThingsboardErrorResponse" - }, - "examples": { - "error-code-429": { - "summary": "Too Many Requests", - "value": { - "message": "Too many requests for current tenant!", - "errorCode": 33, - "status": 429, - "subscriptionErrorCode": null, - "subscriptionEntry": null, - "subscriptionValue": null, - "timestamp": 1609459200000 - } - } - } - } - } - } - }, - "security": [ - { - "HttpLoginForm": [] - }, - { - "ApiKeyForm": [] - } - ] - } - }, "/api/ai/chats/{chatId}/messages": { "get": { "tags": [ @@ -51884,7 +51541,7 @@ "entity-group-controller" ], "summary": "Create Or Update Entity Group (saveEntityGroup)", - "description": "Create or update the Entity Group. When creating Entity Group, platform generates Entity Group Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created Entity Group Id will be present in the response. Specify existing Entity Group Id to update the group. Referencing non-existing Entity Group Id will cause 'Not Found' error.Remove 'id', 'tenantId' and optionally 'ownerId' from the request body example (below) to create new Entity Group entity. \n\nEntity group name is unique in the scope of owner and entity type. For example, you can't create two tenant device groups called 'Water meters'. However, you may create device and asset group with the same name. And also you may create groups with the same name for two different customers of the same tenant. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'WRITE' permission for specified group.", + "description": "Create or update the Entity Group. When creating Entity Group, platform generates Entity Group Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created Entity Group Id will be present in the response. Specify existing Entity Group Id to update the group. Referencing non-existing Entity Group Id will cause 'Not Found' error.Remove 'id', 'tenantId' and optionally 'ownerId' from the request body example (below) to create new Entity Group entity. When 'ownerId' is not set (or null), it defaults to the current user's owner (Tenant for tenant admins, Customer for customer users). \n\nEntity group name is unique in the scope of owner and entity type. For example, you can't create two tenant device groups called 'Water meters'. However, you may create device and asset group with the same name. And also you may create groups with the same name for two different customers of the same tenant. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'WRITE' permission for specified group.", "operationId": "saveEntityGroup", "requestBody": { "content": { @@ -52550,7 +52207,7 @@ "entity-group-controller" ], "summary": "Add entities to the group (addEntitiesToEntityGroup)", - "description": "Add entities to the specified entity group. Entity group allows you to group multiple entities of the same entity type (Device, Asset, Customer, User, Dashboard, etc). Entity Group always have an owner - particular Tenant or Customer. Each entity may belong to multiple groups simultaneously.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'ADD_TO_GROUP' permission for specified group.", + "description": "Add entities to the specified entity group. This operation is idempotent: entities that are already members of the group are silently ignored. Entity group allows you to group multiple entities of the same entity type (Device, Asset, Customer, User, Dashboard, etc). Entity Group always have an owner - particular Tenant or Customer. Each entity may belong to multiple groups simultaneously.\n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'ADD_TO_GROUP' permission for specified group.", "operationId": "addEntitiesToEntityGroup", "parameters": [ { @@ -64929,7 +64586,7 @@ "group-permission-controller" ], "summary": "Get group permissions by Entity Group Id (getEntityGroupPermissions)", - "description": "Returns a list of group permission objects that is assigned for the specified Entity Group Id. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: \n\n * Role that defines set of allowed operations;\n * User Group that defines set of users who may perform the operations; \n * Entity Group that defines set of entities which will be accessible to users;\n\n Group Permission Info object extends the Group Permissions with the full information about Role and User and/or Entity Groups. \n\n Security check is performed to verify that the user has 'READ' permission for the entity (entities).", + "description": "Returns a list of group permission objects that is assigned for the specified Entity Group Id. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: \n\n * Role that defines set of allowed operations;\n * User Group that defines set of users who may perform the operations; \n * Entity Group that defines set of entities which will be accessible to users;\n\nThere are two types of group permissions depending on the Role type: \n\n * **Generic permission** — uses a GENERIC role. The 'entityGroupId' field must be null (or omitted). Grants the role's operations to all entities within the owner's scope (all tenant entities for tenant admins, only customer-owned entities for customer users).\n * **Group permission** — uses a GROUP role. The 'entityGroupId' field must reference a valid entity group. Grants the role's operations only to entities in the specified group.\n\nAssigning a GENERIC role with a non-null 'entityGroupId' will cause an error. The 'entityGroupType' field is auto-populated from the referenced entity group and should not be set manually. Duplicate permissions (same userGroupId + roleId + entityGroupId combination) are rejected.\n\n Group Permission Info object extends the Group Permissions with the full information about Role and User and/or Entity Groups. \n\n Security check is performed to verify that the user has 'READ' permission for the entity (entities).", "operationId": "getEntityGroupPermissions", "parameters": [ { @@ -65093,7 +64750,7 @@ "group-permission-controller" ], "summary": "Create Or Update Group Permission (saveGroupPermission)", - "description": "Creates or Updates the Group Permission. When creating group permission, platform generates Group Permission Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created Group Permission id will be present in the response. Specify existing Group Permission id to update the permission. Referencing non-existing Group Permission Id will cause 'Not Found' error.\n\nGroup permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: \n\n * Role that defines set of allowed operations;\n * User Group that defines set of users who may perform the operations; \n * Entity Group that defines set of entities which will be accessible to users;\n\n Security check is performed to verify that the user has 'WRITE' permission for the entity (entities).", + "description": "Creates or Updates the Group Permission. When creating group permission, platform generates Group Permission Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created Group Permission id will be present in the response. Specify existing Group Permission id to update the permission. Referencing non-existing Group Permission Id will cause 'Not Found' error.\n\nGroup permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: \n\n * Role that defines set of allowed operations;\n * User Group that defines set of users who may perform the operations; \n * Entity Group that defines set of entities which will be accessible to users;\n\nThere are two types of group permissions depending on the Role type: \n\n * **Generic permission** — uses a GENERIC role. The 'entityGroupId' field must be null (or omitted). Grants the role's operations to all entities within the owner's scope (all tenant entities for tenant admins, only customer-owned entities for customer users).\n * **Group permission** — uses a GROUP role. The 'entityGroupId' field must reference a valid entity group. Grants the role's operations only to entities in the specified group.\n\nAssigning a GENERIC role with a non-null 'entityGroupId' will cause an error. The 'entityGroupType' field is auto-populated from the referenced entity group and should not be set manually. Duplicate permissions (same userGroupId + roleId + entityGroupId combination) are rejected.\n\n Security check is performed to verify that the user has 'WRITE' permission for the entity (entities).", "operationId": "saveGroupPermission", "requestBody": { "content": { @@ -65253,7 +64910,7 @@ "group-permission-controller" ], "summary": "Get Group Permission Info (getGroupPermissionInfoById)", - "description": "Fetch the Group Permission Info object based on the provided Group Permission Id and the flag that controls what additional information to load: User or Entity Group. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: \n\n * Role that defines set of allowed operations;\n * User Group that defines set of users who may perform the operations; \n * Entity Group that defines set of entities which will be accessible to users;\n\n Group Permission Info object extends the Group Permissions with the full information about Role and User and/or Entity Groups. Security check is performed to verify that the user has 'READ' permission for the entity (entities).", + "description": "Fetch the Group Permission Info object based on the provided Group Permission Id and the flag that controls what additional information to load: User or Entity Group. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: \n\n * Role that defines set of allowed operations;\n * User Group that defines set of users who may perform the operations; \n * Entity Group that defines set of entities which will be accessible to users;\n\nThere are two types of group permissions depending on the Role type: \n\n * **Generic permission** — uses a GENERIC role. The 'entityGroupId' field must be null (or omitted). Grants the role's operations to all entities within the owner's scope (all tenant entities for tenant admins, only customer-owned entities for customer users).\n * **Group permission** — uses a GROUP role. The 'entityGroupId' field must reference a valid entity group. Grants the role's operations only to entities in the specified group.\n\nAssigning a GENERIC role with a non-null 'entityGroupId' will cause an error. The 'entityGroupType' field is auto-populated from the referenced entity group and should not be set manually. Duplicate permissions (same userGroupId + roleId + entityGroupId combination) are rejected.\n\n Group Permission Info object extends the Group Permissions with the full information about Role and User and/or Entity Groups. Security check is performed to verify that the user has 'READ' permission for the entity (entities).", "operationId": "getGroupPermissionInfoById", "parameters": [ { @@ -65423,7 +65080,7 @@ "group-permission-controller" ], "summary": "Get Group Permission (getGroupPermissionById)", - "description": "Fetch the Group Permission object based on the provided Group Permission Id. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: \n\n * Role that defines set of allowed operations;\n * User Group that defines set of users who may perform the operations; \n * Entity Group that defines set of entities which will be accessible to users;\n\n Security check is performed to verify that the user has 'READ' permission for the entity (entities).", + "description": "Fetch the Group Permission object based on the provided Group Permission Id. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: \n\n * Role that defines set of allowed operations;\n * User Group that defines set of users who may perform the operations; \n * Entity Group that defines set of entities which will be accessible to users;\n\nThere are two types of group permissions depending on the Role type: \n\n * **Generic permission** — uses a GENERIC role. The 'entityGroupId' field must be null (or omitted). Grants the role's operations to all entities within the owner's scope (all tenant entities for tenant admins, only customer-owned entities for customer users).\n * **Group permission** — uses a GROUP role. The 'entityGroupId' field must reference a valid entity group. Grants the role's operations only to entities in the specified group.\n\nAssigning a GENERIC role with a non-null 'entityGroupId' will cause an error. The 'entityGroupType' field is auto-populated from the referenced entity group and should not be set manually. Duplicate permissions (same userGroupId + roleId + entityGroupId combination) are rejected.\n\n Security check is performed to verify that the user has 'READ' permission for the entity (entities).", "operationId": "getGroupPermissionById", "parameters": [ { @@ -65736,7 +65393,7 @@ "group-permission-controller" ], "summary": "Load User Group Permissions (loadUserGroupPermissionInfos)", - "description": "Enrich a list of group permission objects with the information about Role, User and Entity Groups. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: \n\n * Role that defines set of allowed operations;\n * User Group that defines set of users who may perform the operations; \n * Entity Group that defines set of entities which will be accessible to users;\n\n Group Permission Info object extends the Group Permissions with the full information about Role and User and/or Entity Groups. \n\n Security check is performed to verify that the user has 'READ' permission for the entity (entities).", + "description": "Enrich a list of group permission objects with the information about Role, User and Entity Groups. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: \n\n * Role that defines set of allowed operations;\n * User Group that defines set of users who may perform the operations; \n * Entity Group that defines set of entities which will be accessible to users;\n\nThere are two types of group permissions depending on the Role type: \n\n * **Generic permission** — uses a GENERIC role. The 'entityGroupId' field must be null (or omitted). Grants the role's operations to all entities within the owner's scope (all tenant entities for tenant admins, only customer-owned entities for customer users).\n * **Group permission** — uses a GROUP role. The 'entityGroupId' field must reference a valid entity group. Grants the role's operations only to entities in the specified group.\n\nAssigning a GENERIC role with a non-null 'entityGroupId' will cause an error. The 'entityGroupType' field is auto-populated from the referenced entity group and should not be set manually. Duplicate permissions (same userGroupId + roleId + entityGroupId combination) are rejected.\n\n Group Permission Info object extends the Group Permissions with the full information about Role and User and/or Entity Groups. \n\n Security check is performed to verify that the user has 'READ' permission for the entity (entities).", "operationId": "loadUserGroupPermissionInfos", "requestBody": { "content": { @@ -65903,7 +65560,7 @@ "group-permission-controller" ], "summary": "Get group permissions by User Group Id (getUserGroupPermissions)", - "description": "Returns a list of group permission objects that belongs to specified User Group Id. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: \n\n * Role that defines set of allowed operations;\n * User Group that defines set of users who may perform the operations; \n * Entity Group that defines set of entities which will be accessible to users;\n\n Group Permission Info object extends the Group Permissions with the full information about Role and User and/or Entity Groups. \n\n Security check is performed to verify that the user has 'READ' permission for the entity (entities).", + "description": "Returns a list of group permission objects that belongs to specified User Group Id. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: \n\n * Role that defines set of allowed operations;\n * User Group that defines set of users who may perform the operations; \n * Entity Group that defines set of entities which will be accessible to users;\n\nThere are two types of group permissions depending on the Role type: \n\n * **Generic permission** — uses a GENERIC role. The 'entityGroupId' field must be null (or omitted). Grants the role's operations to all entities within the owner's scope (all tenant entities for tenant admins, only customer-owned entities for customer users).\n * **Group permission** — uses a GROUP role. The 'entityGroupId' field must reference a valid entity group. Grants the role's operations only to entities in the specified group.\n\nAssigning a GENERIC role with a non-null 'entityGroupId' will cause an error. The 'entityGroupType' field is auto-populated from the referenced entity group and should not be set manually. Duplicate permissions (same userGroupId + roleId + entityGroupId combination) are rejected.\n\n Group Permission Info object extends the Group Permissions with the full information about Role and User and/or Entity Groups. \n\n Security check is performed to verify that the user has 'READ' permission for the entity (entities).", "operationId": "getUserGroupPermissions", "parameters": [ { @@ -72200,10 +71857,10 @@ "$ref": "#/components/schemas/ThingsboardErrorResponse" }, "examples": { - "bad-credentials": { - "summary": "Bad credentials", + "account-disabled": { + "summary": "Disabled account", "value": { - "message": "Invalid username or password", + "message": "User account is not active", "errorCode": 10, "status": 401, "subscriptionErrorCode": null, @@ -72212,10 +71869,10 @@ "timestamp": 1609459200000 } }, - "account-locked": { - "summary": "Locked account", + "authentication-failed": { + "summary": "General authentication error", "value": { - "message": "User account is locked due to security policy", + "message": "Authentication failed", "errorCode": 10, "status": 401, "subscriptionErrorCode": null, @@ -72236,10 +71893,10 @@ "timestamp": 1609459200000 } }, - "authentication-failed": { - "summary": "General authentication error", + "account-locked": { + "summary": "Locked account", "value": { - "message": "Authentication failed", + "message": "User account is locked due to security policy", "errorCode": 10, "status": 401, "subscriptionErrorCode": null, @@ -72248,10 +71905,10 @@ "timestamp": 1609459200000 } }, - "account-disabled": { - "summary": "Disabled account", + "bad-credentials": { + "summary": "Bad credentials", "value": { - "message": "User account is not active", + "message": "Invalid username or password", "errorCode": 10, "status": 401, "subscriptionErrorCode": null, @@ -72282,7 +71939,7 @@ "subscriptionErrorCode": null, "subscriptionEntry": null, "subscriptionValue": null, - "resetToken": "0F8fGvwuEd9OYZJF4ZfVbfSVdUX1Qe" + "resetToken": "udgDQOpS1Q4ZFEL8qHF9s8cSKQ7d1h" } } } @@ -72331,10 +71988,10 @@ "$ref": "#/components/schemas/ThingsboardErrorResponse" }, "examples": { - "bad-credentials": { - "summary": "Bad credentials", + "account-disabled": { + "summary": "Disabled account", "value": { - "message": "Invalid username or password", + "message": "User account is not active", "errorCode": 10, "status": 401, "subscriptionErrorCode": null, @@ -72343,10 +72000,10 @@ "timestamp": 1609459200000 } }, - "account-locked": { - "summary": "Locked account", + "authentication-failed": { + "summary": "General authentication error", "value": { - "message": "User account is locked due to security policy", + "message": "Authentication failed", "errorCode": 10, "status": 401, "subscriptionErrorCode": null, @@ -72367,10 +72024,10 @@ "timestamp": 1609459200000 } }, - "authentication-failed": { - "summary": "General authentication error", + "account-locked": { + "summary": "Locked account", "value": { - "message": "Authentication failed", + "message": "User account is locked due to security policy", "errorCode": 10, "status": 401, "subscriptionErrorCode": null, @@ -72379,10 +72036,10 @@ "timestamp": 1609459200000 } }, - "account-disabled": { - "summary": "Disabled account", + "bad-credentials": { + "summary": "Bad credentials", "value": { - "message": "User account is not active", + "message": "Invalid username or password", "errorCode": 10, "status": 401, "subscriptionErrorCode": null, @@ -72413,7 +72070,7 @@ "subscriptionErrorCode": null, "subscriptionEntry": null, "subscriptionValue": null, - "resetToken": "0F8fGvwuEd9OYZJF4ZfVbfSVdUX1Qe" + "resetToken": "udgDQOpS1Q4ZFEL8qHF9s8cSKQ7d1h" } } } @@ -111514,7 +111171,7 @@ "telemetry-controller" ], "summary": "Delete entity attributes (deleteEntityAttributes)", - "description": "Delete entity attributes using provided Entity Id, scope and a list of keys. Referencing a non-existing entity Id or invalid entity type will cause an error. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.", + "description": "Delete entity attributes using provided Entity Id, scope and a list of keys. This operation is idempotent: keys that do not exist are silently ignored and the response is still 200 OK. Referencing a non-existing entity Id or invalid entity type will cause an error. \n\nAvailable for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority.", "operationId": "deleteEntityAttributes", "parameters": [ { @@ -111572,7 +111229,7 @@ ], "responses": { "200": { - "description": "Entity attributes was removed for the selected keys in the request. Platform creates an audit log event about entity attributes removal with action type 'ATTRIBUTES_DELETED'.", + "description": "Entity attributes were removed for the selected keys in the request (keys that did not exist are silently ignored). Platform creates an audit log event about entity attributes removal with action type 'ATTRIBUTES_DELETED'.", "content": { "application/json": { "schema": { @@ -133570,7 +133227,10 @@ }, "additionalInfo": { "$ref": "#/components/schemas/JsonNode", - "description": "Additional parameters of the asset" + "description": "Additional parameters of the asset. May include: 'description' (string).", + "example": { + "description": "Building A asset" + } } }, "required": [ @@ -133677,7 +133337,10 @@ }, "additionalInfo": { "$ref": "#/components/schemas/JsonNode", - "description": "Additional parameters of the asset" + "description": "Additional parameters of the asset. May include: 'description' (string).", + "example": { + "description": "Building A asset" + } } }, "required": [ @@ -133869,11 +133532,6 @@ { "type": "object", "properties": { - "assetType": { - "type": "string", - "deprecated": true, - "writeOnly": true - }, "assetTypes": { "type": "array", "items": { @@ -133882,6 +133540,11 @@ }, "assetNameFilter": { "type": "string" + }, + "assetType": { + "type": "string", + "deprecated": true, + "writeOnly": true } } } @@ -134141,14 +133804,6 @@ "id" ] }, - "AuditLogStatusFilter": { - "type": "string", - "enum": [ - "SUCCESS", - "FAILURE", - "ALL" - ] - }, "AuthenticationProtocol": { "type": "string", "enum": [ @@ -134529,6 +134184,10 @@ "BaseReadTsKvQuery": { "type": "object", "properties": { + "id": { + "type": "integer", + "format": "int32" + }, "key": { "type": "string" }, @@ -134550,10 +134209,6 @@ "order": { "type": "string" }, - "id": { - "type": "integer", - "format": "int32" - }, "interval": { "type": "integer", "format": "int64" @@ -135051,6 +134706,9 @@ } }, "properties": { + "aiGenerated": { + "type": "boolean" + }, "output": { "$ref": "#/components/schemas/Output" }, @@ -135075,10 +134733,6 @@ "description": "String value representing the server name, identifier or ip address where the platform is running", "example": "ip-172-31-24-152" }, - "isError": { - "type": "boolean", - "writeOnly": true - }, "errorStr": { "type": "string", "description": "The case insensitive 'contains' filter based on error message", @@ -135127,6 +134781,10 @@ "x + y": 32 } }, + "isError": { + "type": "boolean", + "writeOnly": true + }, "error": { "type": "boolean" } @@ -136355,11 +136013,6 @@ { "type": "object", "properties": { - "path": { - "type": "string", - "description": "Path to custom page", - "example": "/alarmDetails/868c7083-032d-4f52-b8b4-7859aebb6a4e" - }, "label": { "type": "string", "description": "Page label", @@ -136374,6 +136027,11 @@ "type": "string", "description": "URL of the page icon", "example": "home_icon" + }, + "path": { + "type": "string", + "description": "Path to custom page", + "example": "/alarmDetails/868c7083-032d-4f52-b8b4-7859aebb6a4e" } } } @@ -136515,7 +136173,13 @@ }, "additionalInfo": { "$ref": "#/components/schemas/JsonNode", - "description": "Additional parameters of the device" + "description": "Additional parameters of the customer. May include: 'description' (string), 'homeDashboardId' (string, UUID of the home dashboard), 'homeDashboardHideToolbar' (boolean, whether to hide the dashboard toolbar), 'isPublic' (boolean, whether this is a public customer).", + "example": { + "description": "Regional customer", + "homeDashboardId": "784f394c-42b6-435a-983c-b7beff2784f9", + "homeDashboardHideToolbar": false, + "isPublic": false + } } }, "required": [ @@ -136660,7 +136324,13 @@ }, "additionalInfo": { "$ref": "#/components/schemas/JsonNode", - "description": "Additional parameters of the device" + "description": "Additional parameters of the customer. May include: 'description' (string), 'homeDashboardId' (string, UUID of the home dashboard), 'homeDashboardHideToolbar' (boolean, whether to hide the dashboard toolbar), 'isPublic' (boolean, whether this is a public customer).", + "example": { + "description": "Regional customer", + "homeDashboardId": "784f394c-42b6-435a-983c-b7beff2784f9", + "homeDashboardHideToolbar": false, + "isPublic": false + } } }, "required": [ @@ -136690,40 +136360,6 @@ "Dashboard": { "type": "object", "properties": { - "title": { - "type": "string", - "description": "Title of the dashboard." - }, - "image": { - "type": "string", - "description": "Thumbnail picture for rendering of the dashboards in a grid view on mobile devices.", - "readOnly": true - }, - "mobileHide": { - "type": "boolean", - "description": "Hide dashboard from mobile devices. Useful if the dashboard is not designed for small screens.", - "readOnly": true - }, - "mobileOrder": { - "type": "integer", - "format": "int32", - "description": "Order on mobile devices. Useful to adjust sorting of the dashboards for mobile applications", - "readOnly": true - }, - "configuration": { - "$ref": "#/components/schemas/JsonNode" - }, - "name": { - "type": "string", - "description": "Same as title of the dashboard. Read-only field. Update the 'title' to change the 'name' of the dashboard.", - "readOnly": true - }, - "resources": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ResourceExportData" - } - }, "id": { "$ref": "#/components/schemas/DashboardId", "description": "JSON object with the dashboard Id. Specify existing dashboard Id to update the dashboard. Referencing non-existing dashboard id will cause error. Omit this field to create new dashboard." @@ -136744,6 +136380,15 @@ "$ref": "#/components/schemas/CustomerId", "description": "JSON object with Customer Id. " }, + "title": { + "type": "string", + "description": "Title of the dashboard." + }, + "image": { + "type": "string", + "description": "Thumbnail picture for rendering of the dashboards in a grid view on mobile devices.", + "readOnly": true + }, "assignedCustomers": { "type": "array", "description": "List of assigned customers with their info.", @@ -136753,10 +136398,35 @@ "readOnly": true, "uniqueItems": true }, + "mobileHide": { + "type": "boolean", + "description": "Hide dashboard from mobile devices. Useful if the dashboard is not designed for small screens.", + "readOnly": true + }, + "mobileOrder": { + "type": "integer", + "format": "int32", + "description": "Order on mobile devices. Useful to adjust sorting of the dashboards for mobile applications", + "readOnly": true + }, "version": { "type": "integer", "format": "int64" }, + "resources": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ResourceExportData" + } + }, + "configuration": { + "$ref": "#/components/schemas/JsonNode" + }, + "name": { + "type": "string", + "description": "Same as title of the dashboard. Read-only field. Update the 'title' to change the 'name' of the dashboard.", + "readOnly": true + }, "ownerId": { "$ref": "#/components/schemas/EntityId", "description": "JSON object with Customer or Tenant Id", @@ -136952,11 +136622,6 @@ { "type": "object", "properties": { - "dashboardId": { - "type": "string", - "description": "Dashboard id", - "example": "784f394c-42b6-435a-983c-b7beff2784f9" - }, "label": { "type": "string", "description": "Page label", @@ -136971,6 +136636,11 @@ "type": "string", "description": "URL of the page icon", "example": "home_icon" + }, + "dashboardId": { + "type": "string", + "description": "Dashboard id", + "example": "784f394c-42b6-435a-983c-b7beff2784f9" } } } @@ -137208,10 +136878,6 @@ "description": "String value representing the server name, identifier or ip address where the platform is running", "example": "ip-172-31-24-152" }, - "isError": { - "type": "boolean", - "writeOnly": true - }, "errorStr": { "type": "string", "description": "The case insensitive 'contains' filter based on error message", @@ -137229,6 +136895,10 @@ "metadata": { "type": "string" }, + "isError": { + "type": "boolean", + "writeOnly": true + }, "error": { "type": "boolean" } @@ -137252,10 +136922,6 @@ "description": "String value representing the server name, identifier or ip address where the platform is running", "example": "ip-172-31-24-152" }, - "isError": { - "type": "boolean", - "writeOnly": true - }, "errorStr": { "type": "string", "description": "The case insensitive 'contains' filter based on error message", @@ -137270,6 +136936,10 @@ "statusIntegration": { "type": "string" }, + "isError": { + "type": "boolean", + "writeOnly": true + }, "error": { "type": "boolean" } @@ -137422,11 +137092,6 @@ { "type": "object", "properties": { - "id": { - "$ref": "#/components/schemas/DefaultPageId", - "description": "Identifier for default page", - "example": "HOME" - }, "label": { "type": "string", "description": "Page label", @@ -137441,6 +137106,11 @@ "type": "string", "description": "URL of the page icon", "example": "home_icon" + }, + "id": { + "$ref": "#/components/schemas/DefaultPageId", + "description": "Identifier for default page", + "example": "HOME" } } } @@ -137976,7 +137646,12 @@ }, "additionalInfo": { "$ref": "#/components/schemas/JsonNode", - "description": "Additional parameters of the device" + "description": "Additional parameters of the device. May include: 'gateway' (boolean, whether the device is a gateway), 'description' (string), 'lastConnectedGateway' (string, UUID of the last gateway that connected this device).", + "example": { + "gateway": false, + "description": "Temperature sensor", + "lastConnectedGateway": "784f394c-42b6-435a-983c-b7beff2784f9" + } } }, "required": [ @@ -138306,7 +137981,12 @@ }, "additionalInfo": { "$ref": "#/components/schemas/JsonNode", - "description": "Additional parameters of the device" + "description": "Additional parameters of the device. May include: 'gateway' (boolean, whether the device is a gateway), 'description' (string), 'lastConnectedGateway' (string, UUID of the last gateway that connected this device).", + "example": { + "gateway": false, + "description": "Temperature sensor", + "lastConnectedGateway": "784f394c-42b6-435a-983c-b7beff2784f9" + } } }, "required": [ @@ -138721,11 +138401,6 @@ { "type": "object", "properties": { - "deviceType": { - "type": "string", - "deprecated": true, - "writeOnly": true - }, "deviceTypes": { "type": "array", "items": { @@ -138734,6 +138409,11 @@ }, "deviceNameFilter": { "type": "string" + }, + "deviceType": { + "type": "string", + "deprecated": true, + "writeOnly": true } } } @@ -139243,7 +138923,11 @@ "readOnly": true }, "additionalInfo": { - "$ref": "#/components/schemas/JsonNode" + "$ref": "#/components/schemas/JsonNode", + "description": "Additional parameters of the edge. May include: 'description' (string).", + "example": { + "description": "Edge at location A" + } } }, "required": [ @@ -139610,7 +139294,11 @@ "readOnly": true }, "additionalInfo": { - "$ref": "#/components/schemas/JsonNode" + "$ref": "#/components/schemas/JsonNode", + "description": "Additional parameters of the edge. May include: 'description' (string).", + "example": { + "description": "Edge at location A" + } } }, "required": [ @@ -139706,11 +139394,6 @@ { "type": "object", "properties": { - "edgeType": { - "type": "string", - "deprecated": true, - "writeOnly": true - }, "edgeTypes": { "type": "array", "items": { @@ -139719,6 +139402,11 @@ }, "edgeNameFilter": { "type": "string" + }, + "edgeType": { + "type": "string", + "deprecated": true, + "writeOnly": true } } } @@ -140378,7 +140066,11 @@ }, "additionalInfo": { "$ref": "#/components/schemas/JsonNode", - "description": "Arbitrary JSON with additional information about the group" + "description": "Additional parameters of the entity group. May include: 'description' (string), 'isPublic' (boolean, whether this group is shared publicly), 'publicCustomerId' (string, UUID of the public customer associated with this group).", + "example": { + "description": "Water meters group", + "isPublic": false + } }, "configuration": { "$ref": "#/components/schemas/JsonNode", @@ -140524,7 +140216,11 @@ }, "additionalInfo": { "$ref": "#/components/schemas/JsonNode", - "description": "Arbitrary JSON with additional information about the group" + "description": "Additional parameters of the entity group. May include: 'description' (string), 'isPublic' (boolean, whether this group is shared publicly), 'publicCustomerId' (string, UUID of the public customer associated with this group).", + "example": { + "description": "Water meters group", + "isPublic": false + } }, "configuration": { "$ref": "#/components/schemas/JsonNode", @@ -140750,7 +140446,10 @@ }, "additionalInfo": { "$ref": "#/components/schemas/JsonNode", - "description": "Additional parameters of the relation" + "description": "Additional parameters of the relation.", + "example": { + "description": "Power supply connection" + } } }, "required": [ @@ -140800,7 +140499,10 @@ }, "additionalInfo": { "$ref": "#/components/schemas/JsonNode", - "description": "Additional parameters of the relation" + "description": "Additional parameters of the relation.", + "example": { + "description": "Power supply connection" + } } }, "required": [ @@ -141177,7 +140879,10 @@ }, "additionalInfo": { "$ref": "#/components/schemas/JsonNode", - "description": "Additional parameters of the device" + "description": "Additional parameters of the entity view. May include: 'description' (string).", + "example": { + "description": "Temperature readings view" + } } }, "required": [ @@ -141295,7 +141000,10 @@ }, "additionalInfo": { "$ref": "#/components/schemas/JsonNode", - "description": "Additional parameters of the device" + "description": "Additional parameters of the entity view. May include: 'description' (string).", + "example": { + "description": "Temperature readings view" + } } }, "required": [ @@ -141373,11 +141081,6 @@ { "type": "object", "properties": { - "entityViewType": { - "type": "string", - "deprecated": true, - "writeOnly": true - }, "entityViewTypes": { "type": "array", "items": { @@ -141386,6 +141089,11 @@ }, "entityViewNameFilter": { "type": "string" + }, + "entityViewType": { + "type": "string", + "deprecated": true, + "writeOnly": true } } } @@ -141748,6 +141456,9 @@ "oauthEnabled": { "type": "boolean" }, + "notificationEnabled": { + "type": "boolean" + }, "whiteLabelingEnabled": { "type": "boolean" }, @@ -141756,9 +141467,6 @@ }, "emailEnabled": { "type": "boolean" - }, - "notificationEnabled": { - "type": "boolean" } } }, @@ -142313,19 +142021,20 @@ }, "userGroupId": { "$ref": "#/components/schemas/EntityGroupId", - "description": "JSON object with the User Group Id. Represent user group that will have permissions to perform operations against corresponding Entity Group." + "description": "JSON object with the User Group Id. Represents the user group that will have permissions to perform operations against the corresponding entity group." }, "roleId": { "$ref": "#/components/schemas/RoleId", - "description": "JSON object with the Role Id. Represent set of permissions." + "description": "JSON object with the Role Id. Represents the set of permissions. The role type (GENERIC or GROUP) determines whether 'entityGroupId' is required." }, "entityGroupId": { "$ref": "#/components/schemas/EntityGroupId", - "description": "JSON object with the Entity Group Id. Represent entity (device, asset, etc.) group." + "description": "JSON object with the Entity Group Id. Required when using a GROUP role — specifies the entity group to which the permissions apply. Must be null or omitted when using a GENERIC role." }, "entityGroupType": { "$ref": "#/components/schemas/EntityType", - "description": "Type of the entities in the group: DEVICE, ASSET, CUSTOMER, etc." + "description": "Type of the entities in the group: DEVICE, ASSET, CUSTOMER, etc. Auto-populated from the referenced entity group. Null for generic permissions.", + "readOnly": true }, "isPublic": { "type": "boolean", @@ -142350,7 +142059,11 @@ "public": { "type": "boolean" } - } + }, + "required": [ + "roleId", + "userGroupId" + ] }, "GroupPermissionId": { "type": "object", @@ -142396,19 +142109,20 @@ }, "userGroupId": { "$ref": "#/components/schemas/EntityGroupId", - "description": "JSON object with the User Group Id. Represent user group that will have permissions to perform operations against corresponding Entity Group." + "description": "JSON object with the User Group Id. Represents the user group that will have permissions to perform operations against the corresponding entity group." }, "roleId": { "$ref": "#/components/schemas/RoleId", - "description": "JSON object with the Role Id. Represent set of permissions." + "description": "JSON object with the Role Id. Represents the set of permissions. The role type (GENERIC or GROUP) determines whether 'entityGroupId' is required." }, "entityGroupId": { "$ref": "#/components/schemas/EntityGroupId", - "description": "JSON object with the Entity Group Id. Represent entity (device, asset, etc.) group." + "description": "JSON object with the Entity Group Id. Required when using a GROUP role — specifies the entity group to which the permissions apply. Must be null or omitted when using a GENERIC role." }, "entityGroupType": { "$ref": "#/components/schemas/EntityType", - "description": "Type of the entities in the group: DEVICE, ASSET, CUSTOMER, etc." + "description": "Type of the entities in the group: DEVICE, ASSET, CUSTOMER, etc. Auto-populated from the referenced entity group. Null for generic permissions.", + "readOnly": true }, "role": { "$ref": "#/components/schemas/Role", @@ -142449,7 +142163,11 @@ "public": { "type": "boolean" } - } + }, + "required": [ + "roleId", + "userGroupId" + ] }, "HasIdObject": { "type": "object", @@ -143872,6 +143590,10 @@ "type": "boolean", "description": "Override Trendz Add-on name" }, + "hideChatBot": { + "type": "boolean", + "description": "Hide chat bot" + }, "pageBackgroundColor": { "type": "string", "description": "Login page background color", @@ -146099,7 +145821,10 @@ }, "additionalInfo": { "$ref": "#/components/schemas/JsonNode", - "description": "Additional info of OAuth2 client (e.g. providerName)" + "description": "Additional info of OAuth2 client. Must include: 'providerName' (string, name of the OAuth2 provider).", + "example": { + "providerName": "Google" + } }, "tenantId": { "$ref": "#/components/schemas/TenantId", @@ -151575,7 +151300,10 @@ }, "additionalInfo": { "$ref": "#/components/schemas/JsonNode", - "description": "Additional parameters of the role" + "description": "Additional parameters of the role. May include: 'description' (string).", + "example": { + "description": "Administrator role" + } } }, "required": [ @@ -151837,10 +151565,6 @@ "description": "String value representing the server name, identifier or ip address where the platform is running", "example": "ip-172-31-24-152" }, - "isError": { - "type": "boolean", - "writeOnly": true - }, "errorStr": { "type": "string", "description": "The case insensitive 'contains' filter based on error message", @@ -151850,6 +151574,10 @@ "type": "string", "description": "String value representing the message" }, + "isError": { + "type": "boolean", + "writeOnly": true + }, "error": { "type": "boolean" } @@ -152147,7 +151875,12 @@ }, "additionalInfo": { "$ref": "#/components/schemas/JsonNode", - "description": "Additional parameters of the rule node. Contains 'layoutX' and 'layoutY' properties for visualization." + "description": "Additional parameters of the rule node. May include: 'layoutX' (number, X coordinate for visualization), 'layoutY' (number, Y coordinate for visualization), 'description' (string).", + "example": { + "layoutX": 320, + "layoutY": 160, + "description": "Filter temperature data" + } } } }, @@ -152164,10 +151897,6 @@ "description": "String value representing the server name, identifier or ip address where the platform is running", "example": "ip-172-31-24-152" }, - "isError": { - "type": "boolean", - "writeOnly": true - }, "errorStr": { "type": "string", "description": "The case insensitive 'contains' filter based on error message", @@ -152218,6 +151947,10 @@ "description": "The case insensitive 'contains' filter based on metadata (key and value) for the message.", "example": "deviceName" }, + "isError": { + "type": "boolean", + "writeOnly": true + }, "error": { "type": "boolean" } @@ -155070,7 +154803,12 @@ }, "additionalInfo": { "$ref": "#/components/schemas/JsonNode", - "description": "Additional parameters of the device" + "description": "Additional parameters of the tenant. May include: 'description' (string), 'homeDashboardId' (string, UUID of the home dashboard), 'homeDashboardHideToolbar' (boolean, whether to hide the dashboard toolbar).", + "example": { + "description": "Main tenant", + "homeDashboardId": "784f394c-42b6-435a-983c-b7beff2784f9", + "homeDashboardHideToolbar": true + } } }, "required": [ @@ -155315,7 +155053,12 @@ }, "additionalInfo": { "$ref": "#/components/schemas/JsonNode", - "description": "Additional parameters of the device" + "description": "Additional parameters of the tenant. May include: 'description' (string), 'homeDashboardId' (string, UUID of the home dashboard), 'homeDashboardHideToolbar' (boolean, whether to hide the dashboard toolbar).", + "example": { + "description": "Main tenant", + "homeDashboardId": "784f394c-42b6-435a-983c-b7beff2784f9", + "homeDashboardHideToolbar": true + } } }, "required": [ @@ -155793,6 +155536,9 @@ { "type": "object", "properties": { + "yAxisId": { + "type": "string" + }, "showInLegend": { "type": "boolean" }, @@ -155810,9 +155556,6 @@ }, "yaxisId": { "type": "string" - }, - "yAxisId": { - "type": "string" } } } @@ -156655,6 +156398,14 @@ "valueAsString": { "type": "string" }, + "longValue": { + "type": "integer", + "format": "int64" + }, + "doubleValue": { + "type": "number", + "format": "double" + }, "dataType": { "$ref": "#/components/schemas/DataType" }, @@ -156664,14 +156415,6 @@ "strValue": { "type": "string" }, - "longValue": { - "type": "integer", - "format": "int64" - }, - "doubleValue": { - "type": "number", - "format": "double" - }, "version": { "type": "integer", "format": "int64" @@ -157025,7 +156768,14 @@ }, "additionalInfo": { "$ref": "#/components/schemas/JsonNode", - "description": "Additional parameters of the user" + "description": "Additional parameters of the user. May include: 'defaultDashboardId' (string, UUID of the default dashboard), 'defaultDashboardFullscreen' (boolean), 'homeDashboardId' (string, UUID of the home dashboard), 'homeDashboardHideToolbar' (boolean), 'lang' (string, user locale, e.g. 'en_US'), 'authProviderName' (string, name of the authentication provider).", + "example": { + "defaultDashboardId": "784f394c-42b6-435a-983c-b7beff2784f9", + "defaultDashboardFullscreen": false, + "homeDashboardId": "784f394c-42b6-435a-983c-b7beff2784f9", + "homeDashboardHideToolbar": true, + "lang": "en_US" + } } }, "required": [ @@ -157216,7 +156966,14 @@ }, "additionalInfo": { "$ref": "#/components/schemas/JsonNode", - "description": "Additional parameters of the user" + "description": "Additional parameters of the user. May include: 'defaultDashboardId' (string, UUID of the default dashboard), 'defaultDashboardFullscreen' (boolean), 'homeDashboardId' (string, UUID of the home dashboard), 'homeDashboardHideToolbar' (boolean), 'lang' (string, user locale, e.g. 'en_US'), 'authProviderName' (string, name of the authentication provider).", + "example": { + "defaultDashboardId": "784f394c-42b6-435a-983c-b7beff2784f9", + "defaultDashboardFullscreen": false, + "homeDashboardId": "784f394c-42b6-435a-983c-b7beff2784f9", + "homeDashboardHideToolbar": true, + "lang": "en_US" + } } }, "required": [ @@ -157764,11 +157521,6 @@ { "type": "object", "properties": { - "url": { - "type": "string", - "description": "Url", - "example": "/url" - }, "label": { "type": "string", "description": "Page label", @@ -157783,6 +157535,11 @@ "type": "string", "description": "URL of the page icon", "example": "home_icon" + }, + "url": { + "type": "string", + "description": "Url", + "example": "/url" } } } @@ -157929,6 +157686,10 @@ "overrideTrendzName": { "type": "boolean", "description": "Override Trendz Add-on name" + }, + "hideChatBot": { + "type": "boolean", + "description": "Hide chat bot" } } }, diff --git a/paas/src/main/java/org/thingsboard/client/api/ThingsboardApi.java b/paas/src/main/java/org/thingsboard/client/api/ThingsboardApi.java index fba9ed9c..e9794ba0 100644 --- a/paas/src/main/java/org/thingsboard/client/api/ThingsboardApi.java +++ b/paas/src/main/java/org/thingsboard/client/api/ThingsboardApi.java @@ -40,7 +40,6 @@ import org.thingsboard.client.model.AssetProfileInfo; import org.thingsboard.client.model.AssetSearchQuery; import org.thingsboard.client.model.AttributeData; -import org.thingsboard.client.model.AuditLogStatusFilter; import org.thingsboard.client.model.AutoVersionCreateConfig; import org.thingsboard.client.model.AvailableEntityKeys; import org.thingsboard.client.model.AvailableEntityKeysV2; @@ -1770,7 +1769,7 @@ private HttpRequest.Builder activateUserByEmailCodeRequestBuilder(@javax.annotat /** * Add entities to the group (addEntitiesToEntityGroup) - * Add entities to the specified entity group. Entity group allows you to group multiple entities of the same entity type (Device, Asset, Customer, User, Dashboard, etc). Entity Group always have an owner - particular Tenant or Customer. Each entity may belong to multiple groups simultaneously. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'ADD_TO_GROUP' permission for specified group. + * Add entities to the specified entity group. This operation is idempotent: entities that are already members of the group are silently ignored. Entity group allows you to group multiple entities of the same entity type (Device, Asset, Customer, User, Dashboard, etc). Entity Group always have an owner - particular Tenant or Customer. Each entity may belong to multiple groups simultaneously. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'ADD_TO_GROUP' permission for specified group. * @param entityGroupId A string value representing the Entity Group Id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required) * @param requestBody (required) * @throws ApiException if fails to make API call @@ -1781,7 +1780,7 @@ public void addEntitiesToEntityGroup(@javax.annotation.Nonnull String entityGrou /** * Add entities to the group (addEntitiesToEntityGroup) - * Add entities to the specified entity group. Entity group allows you to group multiple entities of the same entity type (Device, Asset, Customer, User, Dashboard, etc). Entity Group always have an owner - particular Tenant or Customer. Each entity may belong to multiple groups simultaneously. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'ADD_TO_GROUP' permission for specified group. + * Add entities to the specified entity group. This operation is idempotent: entities that are already members of the group are silently ignored. Entity group allows you to group multiple entities of the same entity type (Device, Asset, Customer, User, Dashboard, etc). Entity Group always have an owner - particular Tenant or Customer. Each entity may belong to multiple groups simultaneously. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'ADD_TO_GROUP' permission for specified group. * @param entityGroupId A string value representing the Entity Group Id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required) * @param requestBody (required) * @param headers Optional headers to include in the request @@ -1793,7 +1792,7 @@ public void addEntitiesToEntityGroup(@javax.annotation.Nonnull String entityGrou /** * Add entities to the group (addEntitiesToEntityGroup) - * Add entities to the specified entity group. Entity group allows you to group multiple entities of the same entity type (Device, Asset, Customer, User, Dashboard, etc). Entity Group always have an owner - particular Tenant or Customer. Each entity may belong to multiple groups simultaneously. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'ADD_TO_GROUP' permission for specified group. + * Add entities to the specified entity group. This operation is idempotent: entities that are already members of the group are silently ignored. Entity group allows you to group multiple entities of the same entity type (Device, Asset, Customer, User, Dashboard, etc). Entity Group always have an owner - particular Tenant or Customer. Each entity may belong to multiple groups simultaneously. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'ADD_TO_GROUP' permission for specified group. * @param entityGroupId A string value representing the Entity Group Id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required) * @param requestBody (required) * @return ApiResponse<Void> @@ -1805,7 +1804,7 @@ public ApiResponse addEntitiesToEntityGroupWithHttpInfo(@javax.annotation. /** * Add entities to the group (addEntitiesToEntityGroup) - * Add entities to the specified entity group. Entity group allows you to group multiple entities of the same entity type (Device, Asset, Customer, User, Dashboard, etc). Entity Group always have an owner - particular Tenant or Customer. Each entity may belong to multiple groups simultaneously. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'ADD_TO_GROUP' permission for specified group. + * Add entities to the specified entity group. This operation is idempotent: entities that are already members of the group are silently ignored. Entity group allows you to group multiple entities of the same entity type (Device, Asset, Customer, User, Dashboard, etc). Entity Group always have an owner - particular Tenant or Customer. Each entity may belong to multiple groups simultaneously. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'ADD_TO_GROUP' permission for specified group. * @param entityGroupId A string value representing the Entity Group Id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required) * @param requestBody (required) * @param headers Optional headers to include in the request @@ -9002,7 +9001,7 @@ private HttpRequest.Builder deleteEdgeRequestBuilder(@javax.annotation.Nonnull S /** * Delete entity attributes (deleteEntityAttributes) - * Delete entity attributes using provided Entity Id, scope and a list of keys. Referencing a non-existing entity Id or invalid entity type will cause an error. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. + * Delete entity attributes using provided Entity Id, scope and a list of keys. This operation is idempotent: keys that do not exist are silently ignored and the response is still 200 OK. Referencing a non-existing entity Id or invalid entity type will cause an error. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. * @param entityType A string value representing the entity type. For example, 'DEVICE' (required) * @param entityId A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required) * @param scope A string value representing the attributes scope. For example, 'SERVER_SCOPE'. (required) @@ -9017,7 +9016,7 @@ public String deleteEntityAttributes(@javax.annotation.Nonnull String entityType /** * Delete entity attributes (deleteEntityAttributes) - * Delete entity attributes using provided Entity Id, scope and a list of keys. Referencing a non-existing entity Id or invalid entity type will cause an error. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. + * Delete entity attributes using provided Entity Id, scope and a list of keys. This operation is idempotent: keys that do not exist are silently ignored and the response is still 200 OK. Referencing a non-existing entity Id or invalid entity type will cause an error. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. * @param entityType A string value representing the entity type. For example, 'DEVICE' (required) * @param entityId A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required) * @param scope A string value representing the attributes scope. For example, 'SERVER_SCOPE'. (required) @@ -9034,7 +9033,7 @@ public String deleteEntityAttributes(@javax.annotation.Nonnull String entityType /** * Delete entity attributes (deleteEntityAttributes) - * Delete entity attributes using provided Entity Id, scope and a list of keys. Referencing a non-existing entity Id or invalid entity type will cause an error. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. + * Delete entity attributes using provided Entity Id, scope and a list of keys. This operation is idempotent: keys that do not exist are silently ignored and the response is still 200 OK. Referencing a non-existing entity Id or invalid entity type will cause an error. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. * @param entityType A string value representing the entity type. For example, 'DEVICE' (required) * @param entityId A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required) * @param scope A string value representing the attributes scope. For example, 'SERVER_SCOPE'. (required) @@ -9049,7 +9048,7 @@ public ApiResponse deleteEntityAttributesWithHttpInfo(@javax.annotation. /** * Delete entity attributes (deleteEntityAttributes) - * Delete entity attributes using provided Entity Id, scope and a list of keys. Referencing a non-existing entity Id or invalid entity type will cause an error. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. + * Delete entity attributes using provided Entity Id, scope and a list of keys. This operation is idempotent: keys that do not exist are silently ignored and the response is still 200 OK. Referencing a non-existing entity Id or invalid entity type will cause an error. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. * @param entityType A string value representing the entity type. For example, 'DEVICE' (required) * @param entityId A string value representing the entity id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required) * @param scope A string value representing the attributes scope. For example, 'SERVER_SCOPE'. (required) @@ -16072,143 +16071,6 @@ private HttpRequest.Builder enableSchedulerEventRequestBuilder(@javax.annotation return localVarRequestBuilder; } - /** - * exportChat - * - * @param chatId (required) - * @param includeAuditLogs (optional, default to false) - * @return byte[] - * @throws ApiException if fails to make API call - */ - public byte[] exportChat(@javax.annotation.Nonnull UUID chatId, @javax.annotation.Nullable Boolean includeAuditLogs) throws ApiException { - return exportChat(chatId, includeAuditLogs, null); - } - - /** - * exportChat - * - * @param chatId (required) - * @param includeAuditLogs (optional, default to false) - * @param headers Optional headers to include in the request - * @return byte[] - * @throws ApiException if fails to make API call - */ - public byte[] exportChat(@javax.annotation.Nonnull UUID chatId, @javax.annotation.Nullable Boolean includeAuditLogs, Map headers) throws ApiException { - ApiResponse localVarResponse = exportChatWithHttpInfo(chatId, includeAuditLogs, headers); - return localVarResponse.getData(); - } - - /** - * exportChat - * - * @param chatId (required) - * @param includeAuditLogs (optional, default to false) - * @return ApiResponse<byte[]> - * @throws ApiException if fails to make API call - */ - public ApiResponse exportChatWithHttpInfo(@javax.annotation.Nonnull UUID chatId, @javax.annotation.Nullable Boolean includeAuditLogs) throws ApiException { - return exportChatWithHttpInfo(chatId, includeAuditLogs, null); - } - - /** - * exportChat - * - * @param chatId (required) - * @param includeAuditLogs (optional, default to false) - * @param headers Optional headers to include in the request - * @return ApiResponse<byte[]> - * @throws ApiException if fails to make API call - */ - public ApiResponse exportChatWithHttpInfo(@javax.annotation.Nonnull UUID chatId, @javax.annotation.Nullable Boolean includeAuditLogs, Map headers) throws ApiException { - HttpRequest.Builder localVarRequestBuilder = exportChatRequestBuilder(chatId, includeAuditLogs, headers); - try { - HttpResponse localVarResponse = memberVarHttpClient.send( - localVarRequestBuilder.build(), - HttpResponse.BodyHandlers.ofInputStream()); - if (memberVarResponseInterceptor != null) { - memberVarResponseInterceptor.accept(localVarResponse); - } - InputStream localVarResponseBody = null; - try { - if (localVarResponse.statusCode()/ 100 != 2) { - throw getApiException("exportChat", localVarResponse); - } - localVarResponseBody = ApiClient.getResponseBody(localVarResponse); - if (localVarResponseBody == null) { - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - null - ); - } - - - - String responseBody = new String(localVarResponseBody.readAllBytes()); - byte[] responseValue = responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {}); - - - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseValue - ); - } finally { - if (localVarResponseBody != null) { - localVarResponseBody.close(); - } - } - } catch (IOException e) { - throw new ApiException(e); - } - catch (InterruptedException e) { - Thread.currentThread().interrupt(); - throw new ApiException(e); - } - } - - private HttpRequest.Builder exportChatRequestBuilder(@javax.annotation.Nonnull UUID chatId, @javax.annotation.Nullable Boolean includeAuditLogs, Map headers) throws ApiException { - // verify the required parameter 'chatId' is set - if (chatId == null) { - throw new ApiException(400, "Missing the required parameter 'chatId' when calling exportChat"); - } - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = "/api/ai/chats/{chatId}/export" - .replace("{chatId}", ApiClient.urlEncode(chatId.toString())); - - List localVarQueryParams = new ArrayList<>(); - StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); - String localVarQueryParameterBaseName; - localVarQueryParameterBaseName = "includeAuditLogs"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("includeAuditLogs", includeAuditLogs)); - - if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { - StringJoiner queryJoiner = new StringJoiner("&"); - localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue())); - if (localVarQueryStringJoiner.length() != 0) { - queryJoiner.add(localVarQueryStringJoiner.toString()); - } - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString())); - } else { - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - } - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - // Add custom headers if provided - localVarRequestBuilder = HttpRequestBuilderExtensions.withAdditionalHeaders(localVarRequestBuilder, headers); - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** * Export Dashboards (exportGroupDashboards) * Export the dashboards that belong to specified group id.The Dashboard object is a heavyweight object that contains information about the dashboard (e.g. title, image, assigned customers) and also configuration JSON (e.g. layouts, widgets, entity aliases). Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'READ' permission for specified group. @@ -20261,140 +20123,6 @@ private HttpRequest.Builder getAdminSettingsRequestBuilder(@javax.annotation.Non return localVarRequestBuilder; } - /** - * getAiAuditLogs - * - * @param sourceId (optional) - * @param status (optional, default to ALL) - * @return com.fasterxml.jackson.databind.JsonNode - * @throws ApiException if fails to make API call - */ - public com.fasterxml.jackson.databind.JsonNode getAiAuditLogs(@javax.annotation.Nullable UUID sourceId, @javax.annotation.Nullable AuditLogStatusFilter status) throws ApiException { - return getAiAuditLogs(sourceId, status, null); - } - - /** - * getAiAuditLogs - * - * @param sourceId (optional) - * @param status (optional, default to ALL) - * @param headers Optional headers to include in the request - * @return com.fasterxml.jackson.databind.JsonNode - * @throws ApiException if fails to make API call - */ - public com.fasterxml.jackson.databind.JsonNode getAiAuditLogs(@javax.annotation.Nullable UUID sourceId, @javax.annotation.Nullable AuditLogStatusFilter status, Map headers) throws ApiException { - ApiResponse localVarResponse = getAiAuditLogsWithHttpInfo(sourceId, status, headers); - return localVarResponse.getData(); - } - - /** - * getAiAuditLogs - * - * @param sourceId (optional) - * @param status (optional, default to ALL) - * @return ApiResponse<com.fasterxml.jackson.databind.JsonNode> - * @throws ApiException if fails to make API call - */ - public ApiResponse getAiAuditLogsWithHttpInfo(@javax.annotation.Nullable UUID sourceId, @javax.annotation.Nullable AuditLogStatusFilter status) throws ApiException { - return getAiAuditLogsWithHttpInfo(sourceId, status, null); - } - - /** - * getAiAuditLogs - * - * @param sourceId (optional) - * @param status (optional, default to ALL) - * @param headers Optional headers to include in the request - * @return ApiResponse<com.fasterxml.jackson.databind.JsonNode> - * @throws ApiException if fails to make API call - */ - public ApiResponse getAiAuditLogsWithHttpInfo(@javax.annotation.Nullable UUID sourceId, @javax.annotation.Nullable AuditLogStatusFilter status, Map headers) throws ApiException { - HttpRequest.Builder localVarRequestBuilder = getAiAuditLogsRequestBuilder(sourceId, status, headers); - try { - HttpResponse localVarResponse = memberVarHttpClient.send( - localVarRequestBuilder.build(), - HttpResponse.BodyHandlers.ofInputStream()); - if (memberVarResponseInterceptor != null) { - memberVarResponseInterceptor.accept(localVarResponse); - } - InputStream localVarResponseBody = null; - try { - if (localVarResponse.statusCode()/ 100 != 2) { - throw getApiException("getAiAuditLogs", localVarResponse); - } - localVarResponseBody = ApiClient.getResponseBody(localVarResponse); - if (localVarResponseBody == null) { - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - null - ); - } - - - - String responseBody = new String(localVarResponseBody.readAllBytes()); - com.fasterxml.jackson.databind.JsonNode responseValue = responseBody.isBlank()? null: memberVarObjectMapper.readValue(responseBody, new TypeReference() {}); - - - return new ApiResponse( - localVarResponse.statusCode(), - localVarResponse.headers().map(), - responseValue - ); - } finally { - if (localVarResponseBody != null) { - localVarResponseBody.close(); - } - } - } catch (IOException e) { - throw new ApiException(e); - } - catch (InterruptedException e) { - Thread.currentThread().interrupt(); - throw new ApiException(e); - } - } - - private HttpRequest.Builder getAiAuditLogsRequestBuilder(@javax.annotation.Nullable UUID sourceId, @javax.annotation.Nullable AuditLogStatusFilter status, Map headers) throws ApiException { - - HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder(); - - String localVarPath = "/api/ai/audit-logs"; - - List localVarQueryParams = new ArrayList<>(); - StringJoiner localVarQueryStringJoiner = new StringJoiner("&"); - String localVarQueryParameterBaseName; - localVarQueryParameterBaseName = "sourceId"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("sourceId", sourceId)); - localVarQueryParameterBaseName = "status"; - localVarQueryParams.addAll(ApiClient.parameterToPairs("status", status)); - - if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) { - StringJoiner queryJoiner = new StringJoiner("&"); - localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue())); - if (localVarQueryStringJoiner.length() != 0) { - queryJoiner.add(localVarQueryStringJoiner.toString()); - } - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString())); - } else { - localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath)); - } - - localVarRequestBuilder.header("Accept", "application/json"); - - localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody()); - if (memberVarReadTimeout != null) { - localVarRequestBuilder.timeout(memberVarReadTimeout); - } - // Add custom headers if provided - localVarRequestBuilder = HttpRequestBuilderExtensions.withAdditionalHeaders(localVarRequestBuilder, headers); - if (memberVarInterceptor != null) { - memberVarInterceptor.accept(localVarRequestBuilder); - } - return localVarRequestBuilder; - } - /** * Get AI model by ID (getAiModelById) * Fetches an AI model record by its `id`. Available for users with 'TENANT_ADMIN' authority. @@ -42377,7 +42105,7 @@ private HttpRequest.Builder getEntityGroupEntityInfosHierarchyByOwnerAndTypeAndP /** * Get group permissions by Entity Group Id (getEntityGroupPermissions) - * Returns a list of group permission objects that is assigned for the specified Entity Group Id. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; Group Permission Info object extends the Group Permissions with the full information about Role and User and/or Entity Groups. Security check is performed to verify that the user has 'READ' permission for the entity (entities). + * Returns a list of group permission objects that is assigned for the specified Entity Group Id. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; There are two types of group permissions depending on the Role type: * **Generic permission** — uses a GENERIC role. The 'entityGroupId' field must be null (or omitted). Grants the role's operations to all entities within the owner's scope (all tenant entities for tenant admins, only customer-owned entities for customer users). * **Group permission** — uses a GROUP role. The 'entityGroupId' field must reference a valid entity group. Grants the role's operations only to entities in the specified group. Assigning a GENERIC role with a non-null 'entityGroupId' will cause an error. The 'entityGroupType' field is auto-populated from the referenced entity group and should not be set manually. Duplicate permissions (same userGroupId + roleId + entityGroupId combination) are rejected. Group Permission Info object extends the Group Permissions with the full information about Role and User and/or Entity Groups. Security check is performed to verify that the user has 'READ' permission for the entity (entities). * @param entityGroupId A string value representing the Entity Group Id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required) * @return List<GroupPermissionInfo> * @throws ApiException if fails to make API call @@ -42388,7 +42116,7 @@ public List getEntityGroupPermissions(@javax.annotation.Non /** * Get group permissions by Entity Group Id (getEntityGroupPermissions) - * Returns a list of group permission objects that is assigned for the specified Entity Group Id. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; Group Permission Info object extends the Group Permissions with the full information about Role and User and/or Entity Groups. Security check is performed to verify that the user has 'READ' permission for the entity (entities). + * Returns a list of group permission objects that is assigned for the specified Entity Group Id. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; There are two types of group permissions depending on the Role type: * **Generic permission** — uses a GENERIC role. The 'entityGroupId' field must be null (or omitted). Grants the role's operations to all entities within the owner's scope (all tenant entities for tenant admins, only customer-owned entities for customer users). * **Group permission** — uses a GROUP role. The 'entityGroupId' field must reference a valid entity group. Grants the role's operations only to entities in the specified group. Assigning a GENERIC role with a non-null 'entityGroupId' will cause an error. The 'entityGroupType' field is auto-populated from the referenced entity group and should not be set manually. Duplicate permissions (same userGroupId + roleId + entityGroupId combination) are rejected. Group Permission Info object extends the Group Permissions with the full information about Role and User and/or Entity Groups. Security check is performed to verify that the user has 'READ' permission for the entity (entities). * @param entityGroupId A string value representing the Entity Group Id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required) * @param headers Optional headers to include in the request * @return List<GroupPermissionInfo> @@ -42401,7 +42129,7 @@ public List getEntityGroupPermissions(@javax.annotation.Non /** * Get group permissions by Entity Group Id (getEntityGroupPermissions) - * Returns a list of group permission objects that is assigned for the specified Entity Group Id. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; Group Permission Info object extends the Group Permissions with the full information about Role and User and/or Entity Groups. Security check is performed to verify that the user has 'READ' permission for the entity (entities). + * Returns a list of group permission objects that is assigned for the specified Entity Group Id. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; There are two types of group permissions depending on the Role type: * **Generic permission** — uses a GENERIC role. The 'entityGroupId' field must be null (or omitted). Grants the role's operations to all entities within the owner's scope (all tenant entities for tenant admins, only customer-owned entities for customer users). * **Group permission** — uses a GROUP role. The 'entityGroupId' field must reference a valid entity group. Grants the role's operations only to entities in the specified group. Assigning a GENERIC role with a non-null 'entityGroupId' will cause an error. The 'entityGroupType' field is auto-populated from the referenced entity group and should not be set manually. Duplicate permissions (same userGroupId + roleId + entityGroupId combination) are rejected. Group Permission Info object extends the Group Permissions with the full information about Role and User and/or Entity Groups. Security check is performed to verify that the user has 'READ' permission for the entity (entities). * @param entityGroupId A string value representing the Entity Group Id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required) * @return ApiResponse<List<GroupPermissionInfo>> * @throws ApiException if fails to make API call @@ -42412,7 +42140,7 @@ public ApiResponse> getEntityGroupPermissionsWithHttpI /** * Get group permissions by Entity Group Id (getEntityGroupPermissions) - * Returns a list of group permission objects that is assigned for the specified Entity Group Id. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; Group Permission Info object extends the Group Permissions with the full information about Role and User and/or Entity Groups. Security check is performed to verify that the user has 'READ' permission for the entity (entities). + * Returns a list of group permission objects that is assigned for the specified Entity Group Id. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; There are two types of group permissions depending on the Role type: * **Generic permission** — uses a GENERIC role. The 'entityGroupId' field must be null (or omitted). Grants the role's operations to all entities within the owner's scope (all tenant entities for tenant admins, only customer-owned entities for customer users). * **Group permission** — uses a GROUP role. The 'entityGroupId' field must reference a valid entity group. Grants the role's operations only to entities in the specified group. Assigning a GENERIC role with a non-null 'entityGroupId' will cause an error. The 'entityGroupType' field is auto-populated from the referenced entity group and should not be set manually. Duplicate permissions (same userGroupId + roleId + entityGroupId combination) are rejected. Group Permission Info object extends the Group Permissions with the full information about Role and User and/or Entity Groups. Security check is performed to verify that the user has 'READ' permission for the entity (entities). * @param entityGroupId A string value representing the Entity Group Id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required) * @param headers Optional headers to include in the request * @return ApiResponse<List<GroupPermissionInfo>> @@ -45140,7 +44868,7 @@ private HttpRequest.Builder getGroupOtaPackagesRequestBuilder(@javax.annotation. /** * Get Group Permission (getGroupPermissionById) - * Fetch the Group Permission object based on the provided Group Permission Id. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; Security check is performed to verify that the user has 'READ' permission for the entity (entities). + * Fetch the Group Permission object based on the provided Group Permission Id. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; There are two types of group permissions depending on the Role type: * **Generic permission** — uses a GENERIC role. The 'entityGroupId' field must be null (or omitted). Grants the role's operations to all entities within the owner's scope (all tenant entities for tenant admins, only customer-owned entities for customer users). * **Group permission** — uses a GROUP role. The 'entityGroupId' field must reference a valid entity group. Grants the role's operations only to entities in the specified group. Assigning a GENERIC role with a non-null 'entityGroupId' will cause an error. The 'entityGroupType' field is auto-populated from the referenced entity group and should not be set manually. Duplicate permissions (same userGroupId + roleId + entityGroupId combination) are rejected. Security check is performed to verify that the user has 'READ' permission for the entity (entities). * @param groupPermissionId A string value representing the group permission id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required) * @return GroupPermission * @throws ApiException if fails to make API call @@ -45151,7 +44879,7 @@ public GroupPermission getGroupPermissionById(@javax.annotation.Nonnull String g /** * Get Group Permission (getGroupPermissionById) - * Fetch the Group Permission object based on the provided Group Permission Id. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; Security check is performed to verify that the user has 'READ' permission for the entity (entities). + * Fetch the Group Permission object based on the provided Group Permission Id. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; There are two types of group permissions depending on the Role type: * **Generic permission** — uses a GENERIC role. The 'entityGroupId' field must be null (or omitted). Grants the role's operations to all entities within the owner's scope (all tenant entities for tenant admins, only customer-owned entities for customer users). * **Group permission** — uses a GROUP role. The 'entityGroupId' field must reference a valid entity group. Grants the role's operations only to entities in the specified group. Assigning a GENERIC role with a non-null 'entityGroupId' will cause an error. The 'entityGroupType' field is auto-populated from the referenced entity group and should not be set manually. Duplicate permissions (same userGroupId + roleId + entityGroupId combination) are rejected. Security check is performed to verify that the user has 'READ' permission for the entity (entities). * @param groupPermissionId A string value representing the group permission id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required) * @param headers Optional headers to include in the request * @return GroupPermission @@ -45164,7 +44892,7 @@ public GroupPermission getGroupPermissionById(@javax.annotation.Nonnull String g /** * Get Group Permission (getGroupPermissionById) - * Fetch the Group Permission object based on the provided Group Permission Id. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; Security check is performed to verify that the user has 'READ' permission for the entity (entities). + * Fetch the Group Permission object based on the provided Group Permission Id. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; There are two types of group permissions depending on the Role type: * **Generic permission** — uses a GENERIC role. The 'entityGroupId' field must be null (or omitted). Grants the role's operations to all entities within the owner's scope (all tenant entities for tenant admins, only customer-owned entities for customer users). * **Group permission** — uses a GROUP role. The 'entityGroupId' field must reference a valid entity group. Grants the role's operations only to entities in the specified group. Assigning a GENERIC role with a non-null 'entityGroupId' will cause an error. The 'entityGroupType' field is auto-populated from the referenced entity group and should not be set manually. Duplicate permissions (same userGroupId + roleId + entityGroupId combination) are rejected. Security check is performed to verify that the user has 'READ' permission for the entity (entities). * @param groupPermissionId A string value representing the group permission id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required) * @return ApiResponse<GroupPermission> * @throws ApiException if fails to make API call @@ -45175,7 +44903,7 @@ public ApiResponse getGroupPermissionByIdWithHttpInfo(@javax.an /** * Get Group Permission (getGroupPermissionById) - * Fetch the Group Permission object based on the provided Group Permission Id. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; Security check is performed to verify that the user has 'READ' permission for the entity (entities). + * Fetch the Group Permission object based on the provided Group Permission Id. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; There are two types of group permissions depending on the Role type: * **Generic permission** — uses a GENERIC role. The 'entityGroupId' field must be null (or omitted). Grants the role's operations to all entities within the owner's scope (all tenant entities for tenant admins, only customer-owned entities for customer users). * **Group permission** — uses a GROUP role. The 'entityGroupId' field must reference a valid entity group. Grants the role's operations only to entities in the specified group. Assigning a GENERIC role with a non-null 'entityGroupId' will cause an error. The 'entityGroupType' field is auto-populated from the referenced entity group and should not be set manually. Duplicate permissions (same userGroupId + roleId + entityGroupId combination) are rejected. Security check is performed to verify that the user has 'READ' permission for the entity (entities). * @param groupPermissionId A string value representing the group permission id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required) * @param headers Optional headers to include in the request * @return ApiResponse<GroupPermission> @@ -45258,7 +44986,7 @@ private HttpRequest.Builder getGroupPermissionByIdRequestBuilder(@javax.annotati /** * Get Group Permission Info (getGroupPermissionInfoById) - * Fetch the Group Permission Info object based on the provided Group Permission Id and the flag that controls what additional information to load: User or Entity Group. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; Group Permission Info object extends the Group Permissions with the full information about Role and User and/or Entity Groups. Security check is performed to verify that the user has 'READ' permission for the entity (entities). + * Fetch the Group Permission Info object based on the provided Group Permission Id and the flag that controls what additional information to load: User or Entity Group. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; There are two types of group permissions depending on the Role type: * **Generic permission** — uses a GENERIC role. The 'entityGroupId' field must be null (or omitted). Grants the role's operations to all entities within the owner's scope (all tenant entities for tenant admins, only customer-owned entities for customer users). * **Group permission** — uses a GROUP role. The 'entityGroupId' field must reference a valid entity group. Grants the role's operations only to entities in the specified group. Assigning a GENERIC role with a non-null 'entityGroupId' will cause an error. The 'entityGroupType' field is auto-populated from the referenced entity group and should not be set manually. Duplicate permissions (same userGroupId + roleId + entityGroupId combination) are rejected. Group Permission Info object extends the Group Permissions with the full information about Role and User and/or Entity Groups. Security check is performed to verify that the user has 'READ' permission for the entity (entities). * @param groupPermissionId A string value representing the group permission id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required) * @param isUserGroup Load additional information about User('true') or Entity Group('false). (required) * @return GroupPermissionInfo @@ -45270,7 +44998,7 @@ public GroupPermissionInfo getGroupPermissionInfoById(@javax.annotation.Nonnull /** * Get Group Permission Info (getGroupPermissionInfoById) - * Fetch the Group Permission Info object based on the provided Group Permission Id and the flag that controls what additional information to load: User or Entity Group. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; Group Permission Info object extends the Group Permissions with the full information about Role and User and/or Entity Groups. Security check is performed to verify that the user has 'READ' permission for the entity (entities). + * Fetch the Group Permission Info object based on the provided Group Permission Id and the flag that controls what additional information to load: User or Entity Group. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; There are two types of group permissions depending on the Role type: * **Generic permission** — uses a GENERIC role. The 'entityGroupId' field must be null (or omitted). Grants the role's operations to all entities within the owner's scope (all tenant entities for tenant admins, only customer-owned entities for customer users). * **Group permission** — uses a GROUP role. The 'entityGroupId' field must reference a valid entity group. Grants the role's operations only to entities in the specified group. Assigning a GENERIC role with a non-null 'entityGroupId' will cause an error. The 'entityGroupType' field is auto-populated from the referenced entity group and should not be set manually. Duplicate permissions (same userGroupId + roleId + entityGroupId combination) are rejected. Group Permission Info object extends the Group Permissions with the full information about Role and User and/or Entity Groups. Security check is performed to verify that the user has 'READ' permission for the entity (entities). * @param groupPermissionId A string value representing the group permission id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required) * @param isUserGroup Load additional information about User('true') or Entity Group('false). (required) * @param headers Optional headers to include in the request @@ -45284,7 +45012,7 @@ public GroupPermissionInfo getGroupPermissionInfoById(@javax.annotation.Nonnull /** * Get Group Permission Info (getGroupPermissionInfoById) - * Fetch the Group Permission Info object based on the provided Group Permission Id and the flag that controls what additional information to load: User or Entity Group. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; Group Permission Info object extends the Group Permissions with the full information about Role and User and/or Entity Groups. Security check is performed to verify that the user has 'READ' permission for the entity (entities). + * Fetch the Group Permission Info object based on the provided Group Permission Id and the flag that controls what additional information to load: User or Entity Group. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; There are two types of group permissions depending on the Role type: * **Generic permission** — uses a GENERIC role. The 'entityGroupId' field must be null (or omitted). Grants the role's operations to all entities within the owner's scope (all tenant entities for tenant admins, only customer-owned entities for customer users). * **Group permission** — uses a GROUP role. The 'entityGroupId' field must reference a valid entity group. Grants the role's operations only to entities in the specified group. Assigning a GENERIC role with a non-null 'entityGroupId' will cause an error. The 'entityGroupType' field is auto-populated from the referenced entity group and should not be set manually. Duplicate permissions (same userGroupId + roleId + entityGroupId combination) are rejected. Group Permission Info object extends the Group Permissions with the full information about Role and User and/or Entity Groups. Security check is performed to verify that the user has 'READ' permission for the entity (entities). * @param groupPermissionId A string value representing the group permission id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required) * @param isUserGroup Load additional information about User('true') or Entity Group('false). (required) * @return ApiResponse<GroupPermissionInfo> @@ -45296,7 +45024,7 @@ public ApiResponse getGroupPermissionInfoByIdWithHttpInfo(@ /** * Get Group Permission Info (getGroupPermissionInfoById) - * Fetch the Group Permission Info object based on the provided Group Permission Id and the flag that controls what additional information to load: User or Entity Group. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; Group Permission Info object extends the Group Permissions with the full information about Role and User and/or Entity Groups. Security check is performed to verify that the user has 'READ' permission for the entity (entities). + * Fetch the Group Permission Info object based on the provided Group Permission Id and the flag that controls what additional information to load: User or Entity Group. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; There are two types of group permissions depending on the Role type: * **Generic permission** — uses a GENERIC role. The 'entityGroupId' field must be null (or omitted). Grants the role's operations to all entities within the owner's scope (all tenant entities for tenant admins, only customer-owned entities for customer users). * **Group permission** — uses a GROUP role. The 'entityGroupId' field must reference a valid entity group. Grants the role's operations only to entities in the specified group. Assigning a GENERIC role with a non-null 'entityGroupId' will cause an error. The 'entityGroupType' field is auto-populated from the referenced entity group and should not be set manually. Duplicate permissions (same userGroupId + roleId + entityGroupId combination) are rejected. Group Permission Info object extends the Group Permissions with the full information about Role and User and/or Entity Groups. Security check is performed to verify that the user has 'READ' permission for the entity (entities). * @param groupPermissionId A string value representing the group permission id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required) * @param isUserGroup Load additional information about User('true') or Entity Group('false). (required) * @param headers Optional headers to include in the request @@ -69011,7 +68739,7 @@ private HttpRequest.Builder getUserEntityViewsRequestBuilder(@javax.annotation.N /** * Get group permissions by User Group Id (getUserGroupPermissions) - * Returns a list of group permission objects that belongs to specified User Group Id. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; Group Permission Info object extends the Group Permissions with the full information about Role and User and/or Entity Groups. Security check is performed to verify that the user has 'READ' permission for the entity (entities). + * Returns a list of group permission objects that belongs to specified User Group Id. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; There are two types of group permissions depending on the Role type: * **Generic permission** — uses a GENERIC role. The 'entityGroupId' field must be null (or omitted). Grants the role's operations to all entities within the owner's scope (all tenant entities for tenant admins, only customer-owned entities for customer users). * **Group permission** — uses a GROUP role. The 'entityGroupId' field must reference a valid entity group. Grants the role's operations only to entities in the specified group. Assigning a GENERIC role with a non-null 'entityGroupId' will cause an error. The 'entityGroupType' field is auto-populated from the referenced entity group and should not be set manually. Duplicate permissions (same userGroupId + roleId + entityGroupId combination) are rejected. Group Permission Info object extends the Group Permissions with the full information about Role and User and/or Entity Groups. Security check is performed to verify that the user has 'READ' permission for the entity (entities). * @param userGroupId A string value representing the Entity Group Id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required) * @return List<GroupPermissionInfo> * @throws ApiException if fails to make API call @@ -69022,7 +68750,7 @@ public List getUserGroupPermissions(@javax.annotation.Nonnu /** * Get group permissions by User Group Id (getUserGroupPermissions) - * Returns a list of group permission objects that belongs to specified User Group Id. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; Group Permission Info object extends the Group Permissions with the full information about Role and User and/or Entity Groups. Security check is performed to verify that the user has 'READ' permission for the entity (entities). + * Returns a list of group permission objects that belongs to specified User Group Id. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; There are two types of group permissions depending on the Role type: * **Generic permission** — uses a GENERIC role. The 'entityGroupId' field must be null (or omitted). Grants the role's operations to all entities within the owner's scope (all tenant entities for tenant admins, only customer-owned entities for customer users). * **Group permission** — uses a GROUP role. The 'entityGroupId' field must reference a valid entity group. Grants the role's operations only to entities in the specified group. Assigning a GENERIC role with a non-null 'entityGroupId' will cause an error. The 'entityGroupType' field is auto-populated from the referenced entity group and should not be set manually. Duplicate permissions (same userGroupId + roleId + entityGroupId combination) are rejected. Group Permission Info object extends the Group Permissions with the full information about Role and User and/or Entity Groups. Security check is performed to verify that the user has 'READ' permission for the entity (entities). * @param userGroupId A string value representing the Entity Group Id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required) * @param headers Optional headers to include in the request * @return List<GroupPermissionInfo> @@ -69035,7 +68763,7 @@ public List getUserGroupPermissions(@javax.annotation.Nonnu /** * Get group permissions by User Group Id (getUserGroupPermissions) - * Returns a list of group permission objects that belongs to specified User Group Id. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; Group Permission Info object extends the Group Permissions with the full information about Role and User and/or Entity Groups. Security check is performed to verify that the user has 'READ' permission for the entity (entities). + * Returns a list of group permission objects that belongs to specified User Group Id. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; There are two types of group permissions depending on the Role type: * **Generic permission** — uses a GENERIC role. The 'entityGroupId' field must be null (or omitted). Grants the role's operations to all entities within the owner's scope (all tenant entities for tenant admins, only customer-owned entities for customer users). * **Group permission** — uses a GROUP role. The 'entityGroupId' field must reference a valid entity group. Grants the role's operations only to entities in the specified group. Assigning a GENERIC role with a non-null 'entityGroupId' will cause an error. The 'entityGroupType' field is auto-populated from the referenced entity group and should not be set manually. Duplicate permissions (same userGroupId + roleId + entityGroupId combination) are rejected. Group Permission Info object extends the Group Permissions with the full information about Role and User and/or Entity Groups. Security check is performed to verify that the user has 'READ' permission for the entity (entities). * @param userGroupId A string value representing the Entity Group Id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required) * @return ApiResponse<List<GroupPermissionInfo>> * @throws ApiException if fails to make API call @@ -69046,7 +68774,7 @@ public ApiResponse> getUserGroupPermissionsWithHttpInf /** * Get group permissions by User Group Id (getUserGroupPermissions) - * Returns a list of group permission objects that belongs to specified User Group Id. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; Group Permission Info object extends the Group Permissions with the full information about Role and User and/or Entity Groups. Security check is performed to verify that the user has 'READ' permission for the entity (entities). + * Returns a list of group permission objects that belongs to specified User Group Id. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; There are two types of group permissions depending on the Role type: * **Generic permission** — uses a GENERIC role. The 'entityGroupId' field must be null (or omitted). Grants the role's operations to all entities within the owner's scope (all tenant entities for tenant admins, only customer-owned entities for customer users). * **Group permission** — uses a GROUP role. The 'entityGroupId' field must reference a valid entity group. Grants the role's operations only to entities in the specified group. Assigning a GENERIC role with a non-null 'entityGroupId' will cause an error. The 'entityGroupType' field is auto-populated from the referenced entity group and should not be set manually. Duplicate permissions (same userGroupId + roleId + entityGroupId combination) are rejected. Group Permission Info object extends the Group Permissions with the full information about Role and User and/or Entity Groups. Security check is performed to verify that the user has 'READ' permission for the entity (entities). * @param userGroupId A string value representing the Entity Group Id. For example, '784f394c-42b6-435a-983c-b7beff2784f9' (required) * @param headers Optional headers to include in the request * @return ApiResponse<List<GroupPermissionInfo>> @@ -76490,7 +76218,7 @@ private HttpRequest.Builder loadEntitiesVersionRequestBuilder(@javax.annotation. /** * Load User Group Permissions (loadUserGroupPermissionInfos) - * Enrich a list of group permission objects with the information about Role, User and Entity Groups. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; Group Permission Info object extends the Group Permissions with the full information about Role and User and/or Entity Groups. Security check is performed to verify that the user has 'READ' permission for the entity (entities). + * Enrich a list of group permission objects with the information about Role, User and Entity Groups. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; There are two types of group permissions depending on the Role type: * **Generic permission** — uses a GENERIC role. The 'entityGroupId' field must be null (or omitted). Grants the role's operations to all entities within the owner's scope (all tenant entities for tenant admins, only customer-owned entities for customer users). * **Group permission** — uses a GROUP role. The 'entityGroupId' field must reference a valid entity group. Grants the role's operations only to entities in the specified group. Assigning a GENERIC role with a non-null 'entityGroupId' will cause an error. The 'entityGroupType' field is auto-populated from the referenced entity group and should not be set manually. Duplicate permissions (same userGroupId + roleId + entityGroupId combination) are rejected. Group Permission Info object extends the Group Permissions with the full information about Role and User and/or Entity Groups. Security check is performed to verify that the user has 'READ' permission for the entity (entities). * @param groupPermission (required) * @return List<GroupPermissionInfo> * @throws ApiException if fails to make API call @@ -76501,7 +76229,7 @@ public List loadUserGroupPermissionInfos(@javax.annotation. /** * Load User Group Permissions (loadUserGroupPermissionInfos) - * Enrich a list of group permission objects with the information about Role, User and Entity Groups. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; Group Permission Info object extends the Group Permissions with the full information about Role and User and/or Entity Groups. Security check is performed to verify that the user has 'READ' permission for the entity (entities). + * Enrich a list of group permission objects with the information about Role, User and Entity Groups. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; There are two types of group permissions depending on the Role type: * **Generic permission** — uses a GENERIC role. The 'entityGroupId' field must be null (or omitted). Grants the role's operations to all entities within the owner's scope (all tenant entities for tenant admins, only customer-owned entities for customer users). * **Group permission** — uses a GROUP role. The 'entityGroupId' field must reference a valid entity group. Grants the role's operations only to entities in the specified group. Assigning a GENERIC role with a non-null 'entityGroupId' will cause an error. The 'entityGroupType' field is auto-populated from the referenced entity group and should not be set manually. Duplicate permissions (same userGroupId + roleId + entityGroupId combination) are rejected. Group Permission Info object extends the Group Permissions with the full information about Role and User and/or Entity Groups. Security check is performed to verify that the user has 'READ' permission for the entity (entities). * @param groupPermission (required) * @param headers Optional headers to include in the request * @return List<GroupPermissionInfo> @@ -76514,7 +76242,7 @@ public List loadUserGroupPermissionInfos(@javax.annotation. /** * Load User Group Permissions (loadUserGroupPermissionInfos) - * Enrich a list of group permission objects with the information about Role, User and Entity Groups. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; Group Permission Info object extends the Group Permissions with the full information about Role and User and/or Entity Groups. Security check is performed to verify that the user has 'READ' permission for the entity (entities). + * Enrich a list of group permission objects with the information about Role, User and Entity Groups. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; There are two types of group permissions depending on the Role type: * **Generic permission** — uses a GENERIC role. The 'entityGroupId' field must be null (or omitted). Grants the role's operations to all entities within the owner's scope (all tenant entities for tenant admins, only customer-owned entities for customer users). * **Group permission** — uses a GROUP role. The 'entityGroupId' field must reference a valid entity group. Grants the role's operations only to entities in the specified group. Assigning a GENERIC role with a non-null 'entityGroupId' will cause an error. The 'entityGroupType' field is auto-populated from the referenced entity group and should not be set manually. Duplicate permissions (same userGroupId + roleId + entityGroupId combination) are rejected. Group Permission Info object extends the Group Permissions with the full information about Role and User and/or Entity Groups. Security check is performed to verify that the user has 'READ' permission for the entity (entities). * @param groupPermission (required) * @return ApiResponse<List<GroupPermissionInfo>> * @throws ApiException if fails to make API call @@ -76525,7 +76253,7 @@ public ApiResponse> loadUserGroupPermissionInfosWithHt /** * Load User Group Permissions (loadUserGroupPermissionInfos) - * Enrich a list of group permission objects with the information about Role, User and Entity Groups. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; Group Permission Info object extends the Group Permissions with the full information about Role and User and/or Entity Groups. Security check is performed to verify that the user has 'READ' permission for the entity (entities). + * Enrich a list of group permission objects with the information about Role, User and Entity Groups. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; There are two types of group permissions depending on the Role type: * **Generic permission** — uses a GENERIC role. The 'entityGroupId' field must be null (or omitted). Grants the role's operations to all entities within the owner's scope (all tenant entities for tenant admins, only customer-owned entities for customer users). * **Group permission** — uses a GROUP role. The 'entityGroupId' field must reference a valid entity group. Grants the role's operations only to entities in the specified group. Assigning a GENERIC role with a non-null 'entityGroupId' will cause an error. The 'entityGroupType' field is auto-populated from the referenced entity group and should not be set manually. Duplicate permissions (same userGroupId + roleId + entityGroupId combination) are rejected. Group Permission Info object extends the Group Permissions with the full information about Role and User and/or Entity Groups. Security check is performed to verify that the user has 'READ' permission for the entity (entities). * @param groupPermission (required) * @param headers Optional headers to include in the request * @return ApiResponse<List<GroupPermissionInfo>> @@ -84179,7 +83907,7 @@ private HttpRequest.Builder saveEntityAttributesV2RequestBuilder(@javax.annotati /** * Create Or Update Entity Group (saveEntityGroup) - * Create or update the Entity Group. When creating Entity Group, platform generates Entity Group Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created Entity Group Id will be present in the response. Specify existing Entity Group Id to update the group. Referencing non-existing Entity Group Id will cause 'Not Found' error.Remove 'id', 'tenantId' and optionally 'ownerId' from the request body example (below) to create new Entity Group entity. Entity group name is unique in the scope of owner and entity type. For example, you can't create two tenant device groups called 'Water meters'. However, you may create device and asset group with the same name. And also you may create groups with the same name for two different customers of the same tenant. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'WRITE' permission for specified group. + * Create or update the Entity Group. When creating Entity Group, platform generates Entity Group Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created Entity Group Id will be present in the response. Specify existing Entity Group Id to update the group. Referencing non-existing Entity Group Id will cause 'Not Found' error.Remove 'id', 'tenantId' and optionally 'ownerId' from the request body example (below) to create new Entity Group entity. When 'ownerId' is not set (or null), it defaults to the current user's owner (Tenant for tenant admins, Customer for customer users). Entity group name is unique in the scope of owner and entity type. For example, you can't create two tenant device groups called 'Water meters'. However, you may create device and asset group with the same name. And also you may create groups with the same name for two different customers of the same tenant. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'WRITE' permission for specified group. * @param entityGroup (required) * @return EntityGroupInfo * @throws ApiException if fails to make API call @@ -84190,7 +83918,7 @@ public EntityGroupInfo saveEntityGroup(@javax.annotation.Nonnull EntityGroup ent /** * Create Or Update Entity Group (saveEntityGroup) - * Create or update the Entity Group. When creating Entity Group, platform generates Entity Group Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created Entity Group Id will be present in the response. Specify existing Entity Group Id to update the group. Referencing non-existing Entity Group Id will cause 'Not Found' error.Remove 'id', 'tenantId' and optionally 'ownerId' from the request body example (below) to create new Entity Group entity. Entity group name is unique in the scope of owner and entity type. For example, you can't create two tenant device groups called 'Water meters'. However, you may create device and asset group with the same name. And also you may create groups with the same name for two different customers of the same tenant. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'WRITE' permission for specified group. + * Create or update the Entity Group. When creating Entity Group, platform generates Entity Group Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created Entity Group Id will be present in the response. Specify existing Entity Group Id to update the group. Referencing non-existing Entity Group Id will cause 'Not Found' error.Remove 'id', 'tenantId' and optionally 'ownerId' from the request body example (below) to create new Entity Group entity. When 'ownerId' is not set (or null), it defaults to the current user's owner (Tenant for tenant admins, Customer for customer users). Entity group name is unique in the scope of owner and entity type. For example, you can't create two tenant device groups called 'Water meters'. However, you may create device and asset group with the same name. And also you may create groups with the same name for two different customers of the same tenant. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'WRITE' permission for specified group. * @param entityGroup (required) * @param headers Optional headers to include in the request * @return EntityGroupInfo @@ -84203,7 +83931,7 @@ public EntityGroupInfo saveEntityGroup(@javax.annotation.Nonnull EntityGroup ent /** * Create Or Update Entity Group (saveEntityGroup) - * Create or update the Entity Group. When creating Entity Group, platform generates Entity Group Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created Entity Group Id will be present in the response. Specify existing Entity Group Id to update the group. Referencing non-existing Entity Group Id will cause 'Not Found' error.Remove 'id', 'tenantId' and optionally 'ownerId' from the request body example (below) to create new Entity Group entity. Entity group name is unique in the scope of owner and entity type. For example, you can't create two tenant device groups called 'Water meters'. However, you may create device and asset group with the same name. And also you may create groups with the same name for two different customers of the same tenant. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'WRITE' permission for specified group. + * Create or update the Entity Group. When creating Entity Group, platform generates Entity Group Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created Entity Group Id will be present in the response. Specify existing Entity Group Id to update the group. Referencing non-existing Entity Group Id will cause 'Not Found' error.Remove 'id', 'tenantId' and optionally 'ownerId' from the request body example (below) to create new Entity Group entity. When 'ownerId' is not set (or null), it defaults to the current user's owner (Tenant for tenant admins, Customer for customer users). Entity group name is unique in the scope of owner and entity type. For example, you can't create two tenant device groups called 'Water meters'. However, you may create device and asset group with the same name. And also you may create groups with the same name for two different customers of the same tenant. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'WRITE' permission for specified group. * @param entityGroup (required) * @return ApiResponse<EntityGroupInfo> * @throws ApiException if fails to make API call @@ -84214,7 +83942,7 @@ public ApiResponse saveEntityGroupWithHttpInfo(@javax.annotatio /** * Create Or Update Entity Group (saveEntityGroup) - * Create or update the Entity Group. When creating Entity Group, platform generates Entity Group Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created Entity Group Id will be present in the response. Specify existing Entity Group Id to update the group. Referencing non-existing Entity Group Id will cause 'Not Found' error.Remove 'id', 'tenantId' and optionally 'ownerId' from the request body example (below) to create new Entity Group entity. Entity group name is unique in the scope of owner and entity type. For example, you can't create two tenant device groups called 'Water meters'. However, you may create device and asset group with the same name. And also you may create groups with the same name for two different customers of the same tenant. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'WRITE' permission for specified group. + * Create or update the Entity Group. When creating Entity Group, platform generates Entity Group Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created Entity Group Id will be present in the response. Specify existing Entity Group Id to update the group. Referencing non-existing Entity Group Id will cause 'Not Found' error.Remove 'id', 'tenantId' and optionally 'ownerId' from the request body example (below) to create new Entity Group entity. When 'ownerId' is not set (or null), it defaults to the current user's owner (Tenant for tenant admins, Customer for customer users). Entity group name is unique in the scope of owner and entity type. For example, you can't create two tenant device groups called 'Water meters'. However, you may create device and asset group with the same name. And also you may create groups with the same name for two different customers of the same tenant. Available for users with 'TENANT_ADMIN' or 'CUSTOMER_USER' authority. Security check is performed to verify that the user has 'WRITE' permission for specified group. * @param entityGroup (required) * @param headers Optional headers to include in the request * @return ApiResponse<EntityGroupInfo> @@ -84767,7 +84495,7 @@ private HttpRequest.Builder saveEntityViewRequestBuilder(@javax.annotation.Nonnu /** * Create Or Update Group Permission (saveGroupPermission) - * Creates or Updates the Group Permission. When creating group permission, platform generates Group Permission Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created Group Permission id will be present in the response. Specify existing Group Permission id to update the permission. Referencing non-existing Group Permission Id will cause 'Not Found' error. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; Security check is performed to verify that the user has 'WRITE' permission for the entity (entities). + * Creates or Updates the Group Permission. When creating group permission, platform generates Group Permission Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created Group Permission id will be present in the response. Specify existing Group Permission id to update the permission. Referencing non-existing Group Permission Id will cause 'Not Found' error. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; There are two types of group permissions depending on the Role type: * **Generic permission** — uses a GENERIC role. The 'entityGroupId' field must be null (or omitted). Grants the role's operations to all entities within the owner's scope (all tenant entities for tenant admins, only customer-owned entities for customer users). * **Group permission** — uses a GROUP role. The 'entityGroupId' field must reference a valid entity group. Grants the role's operations only to entities in the specified group. Assigning a GENERIC role with a non-null 'entityGroupId' will cause an error. The 'entityGroupType' field is auto-populated from the referenced entity group and should not be set manually. Duplicate permissions (same userGroupId + roleId + entityGroupId combination) are rejected. Security check is performed to verify that the user has 'WRITE' permission for the entity (entities). * @param groupPermission (required) * @return GroupPermission * @throws ApiException if fails to make API call @@ -84778,7 +84506,7 @@ public GroupPermission saveGroupPermission(@javax.annotation.Nonnull GroupPermis /** * Create Or Update Group Permission (saveGroupPermission) - * Creates or Updates the Group Permission. When creating group permission, platform generates Group Permission Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created Group Permission id will be present in the response. Specify existing Group Permission id to update the permission. Referencing non-existing Group Permission Id will cause 'Not Found' error. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; Security check is performed to verify that the user has 'WRITE' permission for the entity (entities). + * Creates or Updates the Group Permission. When creating group permission, platform generates Group Permission Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created Group Permission id will be present in the response. Specify existing Group Permission id to update the permission. Referencing non-existing Group Permission Id will cause 'Not Found' error. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; There are two types of group permissions depending on the Role type: * **Generic permission** — uses a GENERIC role. The 'entityGroupId' field must be null (or omitted). Grants the role's operations to all entities within the owner's scope (all tenant entities for tenant admins, only customer-owned entities for customer users). * **Group permission** — uses a GROUP role. The 'entityGroupId' field must reference a valid entity group. Grants the role's operations only to entities in the specified group. Assigning a GENERIC role with a non-null 'entityGroupId' will cause an error. The 'entityGroupType' field is auto-populated from the referenced entity group and should not be set manually. Duplicate permissions (same userGroupId + roleId + entityGroupId combination) are rejected. Security check is performed to verify that the user has 'WRITE' permission for the entity (entities). * @param groupPermission (required) * @param headers Optional headers to include in the request * @return GroupPermission @@ -84791,7 +84519,7 @@ public GroupPermission saveGroupPermission(@javax.annotation.Nonnull GroupPermis /** * Create Or Update Group Permission (saveGroupPermission) - * Creates or Updates the Group Permission. When creating group permission, platform generates Group Permission Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created Group Permission id will be present in the response. Specify existing Group Permission id to update the permission. Referencing non-existing Group Permission Id will cause 'Not Found' error. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; Security check is performed to verify that the user has 'WRITE' permission for the entity (entities). + * Creates or Updates the Group Permission. When creating group permission, platform generates Group Permission Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created Group Permission id will be present in the response. Specify existing Group Permission id to update the permission. Referencing non-existing Group Permission Id will cause 'Not Found' error. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; There are two types of group permissions depending on the Role type: * **Generic permission** — uses a GENERIC role. The 'entityGroupId' field must be null (or omitted). Grants the role's operations to all entities within the owner's scope (all tenant entities for tenant admins, only customer-owned entities for customer users). * **Group permission** — uses a GROUP role. The 'entityGroupId' field must reference a valid entity group. Grants the role's operations only to entities in the specified group. Assigning a GENERIC role with a non-null 'entityGroupId' will cause an error. The 'entityGroupType' field is auto-populated from the referenced entity group and should not be set manually. Duplicate permissions (same userGroupId + roleId + entityGroupId combination) are rejected. Security check is performed to verify that the user has 'WRITE' permission for the entity (entities). * @param groupPermission (required) * @return ApiResponse<GroupPermission> * @throws ApiException if fails to make API call @@ -84802,7 +84530,7 @@ public ApiResponse saveGroupPermissionWithHttpInfo(@javax.annot /** * Create Or Update Group Permission (saveGroupPermission) - * Creates or Updates the Group Permission. When creating group permission, platform generates Group Permission Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created Group Permission id will be present in the response. Specify existing Group Permission id to update the permission. Referencing non-existing Group Permission Id will cause 'Not Found' error. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; Security check is performed to verify that the user has 'WRITE' permission for the entity (entities). + * Creates or Updates the Group Permission. When creating group permission, platform generates Group Permission Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). The newly created Group Permission id will be present in the response. Specify existing Group Permission id to update the permission. Referencing non-existing Group Permission Id will cause 'Not Found' error. Group permission entity represents list of allowed operations for certain User Group to perform against certain Entity Group. Basically, this entity wires three other entities: * Role that defines set of allowed operations; * User Group that defines set of users who may perform the operations; * Entity Group that defines set of entities which will be accessible to users; There are two types of group permissions depending on the Role type: * **Generic permission** — uses a GENERIC role. The 'entityGroupId' field must be null (or omitted). Grants the role's operations to all entities within the owner's scope (all tenant entities for tenant admins, only customer-owned entities for customer users). * **Group permission** — uses a GROUP role. The 'entityGroupId' field must reference a valid entity group. Grants the role's operations only to entities in the specified group. Assigning a GENERIC role with a non-null 'entityGroupId' will cause an error. The 'entityGroupType' field is auto-populated from the referenced entity group and should not be set manually. Duplicate permissions (same userGroupId + roleId + entityGroupId combination) are rejected. Security check is performed to verify that the user has 'WRITE' permission for the entity (entities). * @param groupPermission (required) * @param headers Optional headers to include in the request * @return ApiResponse<GroupPermission> diff --git a/paas/src/main/java/org/thingsboard/client/model/AlarmCalculatedFieldConfiguration.java b/paas/src/main/java/org/thingsboard/client/model/AlarmCalculatedFieldConfiguration.java index 1221cfce..616fff01 100644 --- a/paas/src/main/java/org/thingsboard/client/model/AlarmCalculatedFieldConfiguration.java +++ b/paas/src/main/java/org/thingsboard/client/model/AlarmCalculatedFieldConfiguration.java @@ -315,6 +315,12 @@ public void setPropagateRelationTypes(@javax.annotation.Nullable List pr } + @Override + public AlarmCalculatedFieldConfiguration aiGenerated(@javax.annotation.Nullable Boolean aiGenerated) { + this.setAiGenerated(aiGenerated); + return this; + } + @Override public AlarmCalculatedFieldConfiguration output(@javax.annotation.Nullable Output output) { this.setOutput(output); @@ -415,6 +421,11 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); + // add `aiGenerated` to the URL query string + if (getAiGenerated() != null) { + joiner.add(String.format(java.util.Locale.ROOT, "%saiGenerated%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getAiGenerated())))); + } + // add `output` to the URL query string if (getOutput() != null) { joiner.add(getOutput().toUrlQueryString(prefix + "output" + suffix)); diff --git a/paas/src/main/java/org/thingsboard/client/model/Asset.java b/paas/src/main/java/org/thingsboard/client/model/Asset.java index 54607df0..652c43ad 100644 --- a/paas/src/main/java/org/thingsboard/client/model/Asset.java +++ b/paas/src/main/java/org/thingsboard/client/model/Asset.java @@ -321,7 +321,7 @@ public Asset additionalInfo(@javax.annotation.Nullable com.fasterxml.jackson.dat } /** - * Additional parameters of the asset + * Additional parameters of the asset. May include: 'description' (string). * @return additionalInfo */ @javax.annotation.Nullable diff --git a/paas/src/main/java/org/thingsboard/client/model/AssetInfo.java b/paas/src/main/java/org/thingsboard/client/model/AssetInfo.java index 2435119c..f8b8a531 100644 --- a/paas/src/main/java/org/thingsboard/client/model/AssetInfo.java +++ b/paas/src/main/java/org/thingsboard/client/model/AssetInfo.java @@ -382,7 +382,7 @@ public AssetInfo additionalInfo(@javax.annotation.Nullable com.fasterxml.jackson } /** - * Additional parameters of the asset + * Additional parameters of the asset. May include: 'description' (string). * @return additionalInfo */ @javax.annotation.Nullable diff --git a/paas/src/main/java/org/thingsboard/client/model/AssetTypeFilter.java b/paas/src/main/java/org/thingsboard/client/model/AssetTypeFilter.java index da719270..bb1737ee 100644 --- a/paas/src/main/java/org/thingsboard/client/model/AssetTypeFilter.java +++ b/paas/src/main/java/org/thingsboard/client/model/AssetTypeFilter.java @@ -42,9 +42,9 @@ * AssetTypeFilter */ @JsonPropertyOrder({ - AssetTypeFilter.JSON_PROPERTY_ASSET_TYPE, AssetTypeFilter.JSON_PROPERTY_ASSET_TYPES, - AssetTypeFilter.JSON_PROPERTY_ASSET_NAME_FILTER + AssetTypeFilter.JSON_PROPERTY_ASSET_NAME_FILTER, + AssetTypeFilter.JSON_PROPERTY_ASSET_TYPE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.20.0") @JsonIgnoreProperties( @@ -54,10 +54,6 @@ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", visible = true) public class AssetTypeFilter extends EntityFilter { - public static final String JSON_PROPERTY_ASSET_TYPE = "assetType"; - @javax.annotation.Nullable - private String assetType; - public static final String JSON_PROPERTY_ASSET_TYPES = "assetTypes"; @javax.annotation.Nullable private List assetTypes = new ArrayList<>(); @@ -66,35 +62,13 @@ public class AssetTypeFilter extends EntityFilter { @javax.annotation.Nullable private String assetNameFilter; - public AssetTypeFilter() { - } - - public AssetTypeFilter assetType(@javax.annotation.Nullable String assetType) { - this.assetType = assetType; - return this; - } - - /** - * Get assetType - * @return assetType - * @deprecated - */ - @Deprecated + public static final String JSON_PROPERTY_ASSET_TYPE = "assetType"; @javax.annotation.Nullable - @JsonProperty(value = JSON_PROPERTY_ASSET_TYPE, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAssetType() { - return assetType; - } - + private String assetType; - @JsonProperty(value = JSON_PROPERTY_ASSET_TYPE, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAssetType(@javax.annotation.Nullable String assetType) { - this.assetType = assetType; + public AssetTypeFilter() { } - public AssetTypeFilter assetTypes(@javax.annotation.Nullable List assetTypes) { this.assetTypes = assetTypes; return this; @@ -151,6 +125,32 @@ public void setAssetNameFilter(@javax.annotation.Nullable String assetNameFilter } + public AssetTypeFilter assetType(@javax.annotation.Nullable String assetType) { + this.assetType = assetType; + return this; + } + + /** + * Get assetType + * @return assetType + * @deprecated + */ + @Deprecated + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_ASSET_TYPE, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getAssetType() { + return assetType; + } + + + @JsonProperty(value = JSON_PROPERTY_ASSET_TYPE, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAssetType(@javax.annotation.Nullable String assetType) { + this.assetType = assetType; + } + + @Override public AssetTypeFilter type(@javax.annotation.Nonnull String type) { this.setType(type); @@ -169,15 +169,15 @@ public boolean equals(Object o) { return false; } AssetTypeFilter assetTypeFilter = (AssetTypeFilter) o; - return Objects.equals(this.assetType, assetTypeFilter.assetType) && - Objects.equals(this.assetTypes, assetTypeFilter.assetTypes) && + return Objects.equals(this.assetTypes, assetTypeFilter.assetTypes) && Objects.equals(this.assetNameFilter, assetTypeFilter.assetNameFilter) && + Objects.equals(this.assetType, assetTypeFilter.assetType) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(assetType, assetTypes, assetNameFilter, super.hashCode()); + return Objects.hash(assetTypes, assetNameFilter, assetType, super.hashCode()); } @Override @@ -185,9 +185,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AssetTypeFilter {\n"); sb.append(" ").append(toIndentedString(super.toString())).append("\n"); - sb.append(" assetType: ").append(toIndentedString(assetType)).append("\n"); sb.append(" assetTypes: ").append(toIndentedString(assetTypes)).append("\n"); sb.append(" assetNameFilter: ").append(toIndentedString(assetNameFilter)).append("\n"); + sb.append(" assetType: ").append(toIndentedString(assetType)).append("\n"); sb.append("}"); return sb.toString(); } @@ -240,11 +240,6 @@ public String toUrlQueryString(String prefix) { joiner.add(String.format(java.util.Locale.ROOT, "%stype%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getType())))); } - // add `assetType` to the URL query string - if (getAssetType() != null) { - joiner.add(String.format(java.util.Locale.ROOT, "%sassetType%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getAssetType())))); - } - // add `assetTypes` to the URL query string if (getAssetTypes() != null) { for (int i = 0; i < getAssetTypes().size(); i++) { @@ -259,6 +254,11 @@ public String toUrlQueryString(String prefix) { joiner.add(String.format(java.util.Locale.ROOT, "%sassetNameFilter%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getAssetNameFilter())))); } + // add `assetType` to the URL query string + if (getAssetType() != null) { + joiner.add(String.format(java.util.Locale.ROOT, "%sassetType%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getAssetType())))); + } + return joiner.toString(); } static { diff --git a/paas/src/main/java/org/thingsboard/client/model/AuditLogStatusFilter.java b/paas/src/main/java/org/thingsboard/client/model/AuditLogStatusFilter.java deleted file mode 100644 index 9e0ee416..00000000 --- a/paas/src/main/java/org/thingsboard/client/model/AuditLogStatusFilter.java +++ /dev/null @@ -1,82 +0,0 @@ -/** - * Copyright © 2026-2026 ThingsBoard, Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.thingsboard.client.model; - -import java.net.URLEncoder; -import java.nio.charset.StandardCharsets; -import java.util.StringJoiner; -import java.util.Objects; -import java.util.Map; -import java.util.HashMap; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; - - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonValue; - -/** - * Gets or Sets AuditLogStatusFilter - */ -public enum AuditLogStatusFilter { - - SUCCESS("SUCCESS"), - - FAILURE("FAILURE"), - - ALL("ALL"); - - private String value; - - AuditLogStatusFilter(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static AuditLogStatusFilter fromValue(String value) { - for (AuditLogStatusFilter b : AuditLogStatusFilter.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - /** - * Convert the instance into URL query string. - * - * @param prefix prefix of the query string - * @return URL query string - */ - public String toUrlQueryString(String prefix) { - if (prefix == null) { - prefix = ""; - } - - return String.format(java.util.Locale.ROOT, "%s=%s", prefix, this.toString()); - } - -} - diff --git a/paas/src/main/java/org/thingsboard/client/model/BaseReadTsKvQuery.java b/paas/src/main/java/org/thingsboard/client/model/BaseReadTsKvQuery.java index 5a476923..25b330f3 100644 --- a/paas/src/main/java/org/thingsboard/client/model/BaseReadTsKvQuery.java +++ b/paas/src/main/java/org/thingsboard/client/model/BaseReadTsKvQuery.java @@ -37,18 +37,22 @@ * BaseReadTsKvQuery */ @JsonPropertyOrder({ + BaseReadTsKvQuery.JSON_PROPERTY_ID, BaseReadTsKvQuery.JSON_PROPERTY_KEY, BaseReadTsKvQuery.JSON_PROPERTY_START_TS, BaseReadTsKvQuery.JSON_PROPERTY_END_TS, BaseReadTsKvQuery.JSON_PROPERTY_AGG_PARAMETERS, BaseReadTsKvQuery.JSON_PROPERTY_LIMIT, BaseReadTsKvQuery.JSON_PROPERTY_ORDER, - BaseReadTsKvQuery.JSON_PROPERTY_ID, BaseReadTsKvQuery.JSON_PROPERTY_INTERVAL, BaseReadTsKvQuery.JSON_PROPERTY_AGGREGATION }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.20.0") public class BaseReadTsKvQuery { + public static final String JSON_PROPERTY_ID = "id"; + @javax.annotation.Nullable + private Integer id; + public static final String JSON_PROPERTY_KEY = "key"; @javax.annotation.Nullable private String key; @@ -73,10 +77,6 @@ public class BaseReadTsKvQuery { @javax.annotation.Nullable private String order; - public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private Integer id; - public static final String JSON_PROPERTY_INTERVAL = "interval"; @javax.annotation.Nullable private Long interval; @@ -88,6 +88,30 @@ public class BaseReadTsKvQuery { public BaseReadTsKvQuery() { } + public BaseReadTsKvQuery id(@javax.annotation.Nullable Integer id) { + this.id = id; + return this; + } + + /** + * Get id + * @return id + */ + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_ID, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getId() { + return id; + } + + + @JsonProperty(value = JSON_PROPERTY_ID, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setId(@javax.annotation.Nullable Integer id) { + this.id = id; + } + + public BaseReadTsKvQuery key(@javax.annotation.Nullable String key) { this.key = key; return this; @@ -232,30 +256,6 @@ public void setOrder(@javax.annotation.Nullable String order) { } - public BaseReadTsKvQuery id(@javax.annotation.Nullable Integer id) { - this.id = id; - return this; - } - - /** - * Get id - * @return id - */ - @javax.annotation.Nullable - @JsonProperty(value = JSON_PROPERTY_ID, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getId() { - return id; - } - - - @JsonProperty(value = JSON_PROPERTY_ID, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(@javax.annotation.Nullable Integer id) { - this.id = id; - } - - public BaseReadTsKvQuery interval(@javax.annotation.Nullable Long interval) { this.interval = interval; return this; @@ -316,33 +316,33 @@ public boolean equals(Object o) { return false; } BaseReadTsKvQuery baseReadTsKvQuery = (BaseReadTsKvQuery) o; - return Objects.equals(this.key, baseReadTsKvQuery.key) && + return Objects.equals(this.id, baseReadTsKvQuery.id) && + Objects.equals(this.key, baseReadTsKvQuery.key) && Objects.equals(this.startTs, baseReadTsKvQuery.startTs) && Objects.equals(this.endTs, baseReadTsKvQuery.endTs) && Objects.equals(this.aggParameters, baseReadTsKvQuery.aggParameters) && Objects.equals(this.limit, baseReadTsKvQuery.limit) && Objects.equals(this.order, baseReadTsKvQuery.order) && - Objects.equals(this.id, baseReadTsKvQuery.id) && Objects.equals(this.interval, baseReadTsKvQuery.interval) && Objects.equals(this.aggregation, baseReadTsKvQuery.aggregation); } @Override public int hashCode() { - return Objects.hash(key, startTs, endTs, aggParameters, limit, order, id, interval, aggregation); + return Objects.hash(id, key, startTs, endTs, aggParameters, limit, order, interval, aggregation); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BaseReadTsKvQuery {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" key: ").append(toIndentedString(key)).append("\n"); sb.append(" startTs: ").append(toIndentedString(startTs)).append("\n"); sb.append(" endTs: ").append(toIndentedString(endTs)).append("\n"); sb.append(" aggParameters: ").append(toIndentedString(aggParameters)).append("\n"); sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); sb.append(" order: ").append(toIndentedString(order)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" interval: ").append(toIndentedString(interval)).append("\n"); sb.append(" aggregation: ").append(toIndentedString(aggregation)).append("\n"); sb.append("}"); @@ -392,6 +392,11 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); + // add `id` to the URL query string + if (getId() != null) { + joiner.add(String.format(java.util.Locale.ROOT, "%sid%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); + } + // add `key` to the URL query string if (getKey() != null) { joiner.add(String.format(java.util.Locale.ROOT, "%skey%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getKey())))); @@ -422,11 +427,6 @@ public String toUrlQueryString(String prefix) { joiner.add(String.format(java.util.Locale.ROOT, "%sorder%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getOrder())))); } - // add `id` to the URL query string - if (getId() != null) { - joiner.add(String.format(java.util.Locale.ROOT, "%sid%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); - } - // add `interval` to the URL query string if (getInterval() != null) { joiner.add(String.format(java.util.Locale.ROOT, "%sinterval%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getInterval())))); diff --git a/paas/src/main/java/org/thingsboard/client/model/CalculatedFieldConfiguration.java b/paas/src/main/java/org/thingsboard/client/model/CalculatedFieldConfiguration.java index 6d9a2b3f..1ca65bb2 100644 --- a/paas/src/main/java/org/thingsboard/client/model/CalculatedFieldConfiguration.java +++ b/paas/src/main/java/org/thingsboard/client/model/CalculatedFieldConfiguration.java @@ -40,6 +40,7 @@ * CalculatedFieldConfiguration */ @JsonPropertyOrder({ + CalculatedFieldConfiguration.JSON_PROPERTY_AI_GENERATED, CalculatedFieldConfiguration.JSON_PROPERTY_OUTPUT, CalculatedFieldConfiguration.JSON_PROPERTY_TYPE }) @@ -60,6 +61,10 @@ }) public class CalculatedFieldConfiguration { + public static final String JSON_PROPERTY_AI_GENERATED = "aiGenerated"; + @javax.annotation.Nullable + private Boolean aiGenerated; + public static final String JSON_PROPERTY_OUTPUT = "output"; @javax.annotation.Nullable private Output output; @@ -71,6 +76,30 @@ public class CalculatedFieldConfiguration { public CalculatedFieldConfiguration() { } + public CalculatedFieldConfiguration aiGenerated(@javax.annotation.Nullable Boolean aiGenerated) { + this.aiGenerated = aiGenerated; + return this; + } + + /** + * Get aiGenerated + * @return aiGenerated + */ + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_AI_GENERATED, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getAiGenerated() { + return aiGenerated; + } + + + @JsonProperty(value = JSON_PROPERTY_AI_GENERATED, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAiGenerated(@javax.annotation.Nullable Boolean aiGenerated) { + this.aiGenerated = aiGenerated; + } + + public CalculatedFieldConfiguration output(@javax.annotation.Nullable Output output) { this.output = output; return this; @@ -131,19 +160,21 @@ public boolean equals(Object o) { return false; } CalculatedFieldConfiguration calculatedFieldConfiguration = (CalculatedFieldConfiguration) o; - return Objects.equals(this.output, calculatedFieldConfiguration.output) && + return Objects.equals(this.aiGenerated, calculatedFieldConfiguration.aiGenerated) && + Objects.equals(this.output, calculatedFieldConfiguration.output) && Objects.equals(this.type, calculatedFieldConfiguration.type); } @Override public int hashCode() { - return Objects.hash(output, type); + return Objects.hash(aiGenerated, output, type); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CalculatedFieldConfiguration {\n"); + sb.append(" aiGenerated: ").append(toIndentedString(aiGenerated)).append("\n"); sb.append(" output: ").append(toIndentedString(output)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); @@ -193,6 +224,11 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); + // add `aiGenerated` to the URL query string + if (getAiGenerated() != null) { + joiner.add(String.format(java.util.Locale.ROOT, "%saiGenerated%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getAiGenerated())))); + } + // add `output` to the URL query string if (getOutput() != null) { joiner.add(getOutput().toUrlQueryString(prefix + "output" + suffix)); diff --git a/paas/src/main/java/org/thingsboard/client/model/CalculatedFieldDebugEventFilter.java b/paas/src/main/java/org/thingsboard/client/model/CalculatedFieldDebugEventFilter.java index 0a51d437..d24b4447 100644 --- a/paas/src/main/java/org/thingsboard/client/model/CalculatedFieldDebugEventFilter.java +++ b/paas/src/main/java/org/thingsboard/client/model/CalculatedFieldDebugEventFilter.java @@ -42,7 +42,6 @@ */ @JsonPropertyOrder({ CalculatedFieldDebugEventFilter.JSON_PROPERTY_SERVER, - CalculatedFieldDebugEventFilter.JSON_PROPERTY_IS_ERROR, CalculatedFieldDebugEventFilter.JSON_PROPERTY_ERROR_STR, CalculatedFieldDebugEventFilter.JSON_PROPERTY_ENTITY_ID, CalculatedFieldDebugEventFilter.JSON_PROPERTY_ENTITY_TYPE, @@ -50,6 +49,7 @@ CalculatedFieldDebugEventFilter.JSON_PROPERTY_MSG_TYPE, CalculatedFieldDebugEventFilter.JSON_PROPERTY_ARGUMENTS, CalculatedFieldDebugEventFilter.JSON_PROPERTY_RESULT, + CalculatedFieldDebugEventFilter.JSON_PROPERTY_IS_ERROR, CalculatedFieldDebugEventFilter.JSON_PROPERTY_ERROR }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.20.0") @@ -64,10 +64,6 @@ public class CalculatedFieldDebugEventFilter extends EventFilter { @javax.annotation.Nullable private String server; - public static final String JSON_PROPERTY_IS_ERROR = "isError"; - @javax.annotation.Nullable - private Boolean isError; - public static final String JSON_PROPERTY_ERROR_STR = "errorStr"; @javax.annotation.Nullable private String errorStr; @@ -129,6 +125,10 @@ public static EntityTypeEnum fromValue(String value) { @javax.annotation.Nullable private String result; + public static final String JSON_PROPERTY_IS_ERROR = "isError"; + @javax.annotation.Nullable + private Boolean isError; + public static final String JSON_PROPERTY_ERROR = "error"; @javax.annotation.Nullable private Boolean error; @@ -160,30 +160,6 @@ public void setServer(@javax.annotation.Nullable String server) { } - public CalculatedFieldDebugEventFilter isError(@javax.annotation.Nullable Boolean isError) { - this.isError = isError; - return this; - } - - /** - * Get isError - * @return isError - */ - @javax.annotation.Nullable - @JsonProperty(value = JSON_PROPERTY_IS_ERROR, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getIsError() { - return isError; - } - - - @JsonProperty(value = JSON_PROPERTY_IS_ERROR, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsError(@javax.annotation.Nullable Boolean isError) { - this.isError = isError; - } - - public CalculatedFieldDebugEventFilter errorStr(@javax.annotation.Nullable String errorStr) { this.errorStr = errorStr; return this; @@ -352,6 +328,30 @@ public void setResult(@javax.annotation.Nullable String result) { } + public CalculatedFieldDebugEventFilter isError(@javax.annotation.Nullable Boolean isError) { + this.isError = isError; + return this; + } + + /** + * Get isError + * @return isError + */ + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_IS_ERROR, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getIsError() { + return isError; + } + + + @JsonProperty(value = JSON_PROPERTY_IS_ERROR, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIsError(@javax.annotation.Nullable Boolean isError) { + this.isError = isError; + } + + public CalculatedFieldDebugEventFilter error(@javax.annotation.Nullable Boolean error) { this.error = error; return this; @@ -401,7 +401,6 @@ public boolean equals(Object o) { } CalculatedFieldDebugEventFilter calculatedFieldDebugEventFilter = (CalculatedFieldDebugEventFilter) o; return Objects.equals(this.server, calculatedFieldDebugEventFilter.server) && - Objects.equals(this.isError, calculatedFieldDebugEventFilter.isError) && Objects.equals(this.errorStr, calculatedFieldDebugEventFilter.errorStr) && Objects.equals(this.entityId, calculatedFieldDebugEventFilter.entityId) && Objects.equals(this.entityType, calculatedFieldDebugEventFilter.entityType) && @@ -409,13 +408,14 @@ public boolean equals(Object o) { Objects.equals(this.msgType, calculatedFieldDebugEventFilter.msgType) && Objects.equals(this.arguments, calculatedFieldDebugEventFilter.arguments) && Objects.equals(this.result, calculatedFieldDebugEventFilter.result) && + Objects.equals(this.isError, calculatedFieldDebugEventFilter.isError) && Objects.equals(this.error, calculatedFieldDebugEventFilter.error) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(server, isError, errorStr, entityId, entityType, msgId, msgType, arguments, result, error, super.hashCode()); + return Objects.hash(server, errorStr, entityId, entityType, msgId, msgType, arguments, result, isError, error, super.hashCode()); } @Override @@ -424,7 +424,6 @@ public String toString() { sb.append("class CalculatedFieldDebugEventFilter {\n"); sb.append(" ").append(toIndentedString(super.toString())).append("\n"); sb.append(" server: ").append(toIndentedString(server)).append("\n"); - sb.append(" isError: ").append(toIndentedString(isError)).append("\n"); sb.append(" errorStr: ").append(toIndentedString(errorStr)).append("\n"); sb.append(" entityId: ").append(toIndentedString(entityId)).append("\n"); sb.append(" entityType: ").append(toIndentedString(entityType)).append("\n"); @@ -432,6 +431,7 @@ public String toString() { sb.append(" msgType: ").append(toIndentedString(msgType)).append("\n"); sb.append(" arguments: ").append(toIndentedString(arguments)).append("\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" isError: ").append(toIndentedString(isError)).append("\n"); sb.append(" error: ").append(toIndentedString(error)).append("\n"); sb.append("}"); return sb.toString(); @@ -495,11 +495,6 @@ public String toUrlQueryString(String prefix) { joiner.add(String.format(java.util.Locale.ROOT, "%sserver%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getServer())))); } - // add `isError` to the URL query string - if (getIsError() != null) { - joiner.add(String.format(java.util.Locale.ROOT, "%sisError%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getIsError())))); - } - // add `errorStr` to the URL query string if (getErrorStr() != null) { joiner.add(String.format(java.util.Locale.ROOT, "%serrorStr%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getErrorStr())))); @@ -535,6 +530,11 @@ public String toUrlQueryString(String prefix) { joiner.add(String.format(java.util.Locale.ROOT, "%sresult%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getResult())))); } + // add `isError` to the URL query string + if (getIsError() != null) { + joiner.add(String.format(java.util.Locale.ROOT, "%sisError%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getIsError())))); + } + // add `error` to the URL query string if (getError() != null) { joiner.add(String.format(java.util.Locale.ROOT, "%serror%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getError())))); diff --git a/paas/src/main/java/org/thingsboard/client/model/CustomMobilePage.java b/paas/src/main/java/org/thingsboard/client/model/CustomMobilePage.java index f47b069c..832857f3 100644 --- a/paas/src/main/java/org/thingsboard/client/model/CustomMobilePage.java +++ b/paas/src/main/java/org/thingsboard/client/model/CustomMobilePage.java @@ -41,10 +41,10 @@ * CustomMobilePage */ @JsonPropertyOrder({ - CustomMobilePage.JSON_PROPERTY_PATH, CustomMobilePage.JSON_PROPERTY_LABEL, CustomMobilePage.JSON_PROPERTY_VISIBLE, - CustomMobilePage.JSON_PROPERTY_ICON + CustomMobilePage.JSON_PROPERTY_ICON, + CustomMobilePage.JSON_PROPERTY_PATH }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.20.0") @JsonIgnoreProperties( @@ -54,10 +54,6 @@ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", visible = true) public class CustomMobilePage extends MobilePage { - public static final String JSON_PROPERTY_PATH = "path"; - @javax.annotation.Nullable - private String path; - public static final String JSON_PROPERTY_LABEL = "label"; @javax.annotation.Nullable private String label; @@ -70,33 +66,13 @@ public class CustomMobilePage extends MobilePage { @javax.annotation.Nullable private String icon; - public CustomMobilePage() { - } - - public CustomMobilePage path(@javax.annotation.Nullable String path) { - this.path = path; - return this; - } - - /** - * Path to custom page - * @return path - */ + public static final String JSON_PROPERTY_PATH = "path"; @javax.annotation.Nullable - @JsonProperty(value = JSON_PROPERTY_PATH, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPath() { - return path; - } - + private String path; - @JsonProperty(value = JSON_PROPERTY_PATH, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPath(@javax.annotation.Nullable String path) { - this.path = path; + public CustomMobilePage() { } - public CustomMobilePage label(@javax.annotation.Nullable String label) { this.label = label; return this; @@ -169,6 +145,30 @@ public void setIcon(@javax.annotation.Nullable String icon) { } + public CustomMobilePage path(@javax.annotation.Nullable String path) { + this.path = path; + return this; + } + + /** + * Path to custom page + * @return path + */ + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_PATH, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getPath() { + return path; + } + + + @JsonProperty(value = JSON_PROPERTY_PATH, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPath(@javax.annotation.Nullable String path) { + this.path = path; + } + + @Override public CustomMobilePage type(@javax.annotation.Nonnull MobilePageType type) { this.setType(type); @@ -187,16 +187,16 @@ public boolean equals(Object o) { return false; } CustomMobilePage customMobilePage = (CustomMobilePage) o; - return Objects.equals(this.path, customMobilePage.path) && - Objects.equals(this.label, customMobilePage.label) && + return Objects.equals(this.label, customMobilePage.label) && Objects.equals(this.visible, customMobilePage.visible) && Objects.equals(this.icon, customMobilePage.icon) && + Objects.equals(this.path, customMobilePage.path) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(path, label, visible, icon, super.hashCode()); + return Objects.hash(label, visible, icon, path, super.hashCode()); } @Override @@ -204,10 +204,10 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CustomMobilePage {\n"); sb.append(" ").append(toIndentedString(super.toString())).append("\n"); - sb.append(" path: ").append(toIndentedString(path)).append("\n"); sb.append(" label: ").append(toIndentedString(label)).append("\n"); sb.append(" visible: ").append(toIndentedString(visible)).append("\n"); sb.append(" icon: ").append(toIndentedString(icon)).append("\n"); + sb.append(" path: ").append(toIndentedString(path)).append("\n"); sb.append("}"); return sb.toString(); } @@ -265,11 +265,6 @@ public String toUrlQueryString(String prefix) { joiner.add(String.format(java.util.Locale.ROOT, "%svisible%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getVisible())))); } - // add `path` to the URL query string - if (getPath() != null) { - joiner.add(String.format(java.util.Locale.ROOT, "%spath%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getPath())))); - } - // add `label` to the URL query string if (getLabel() != null) { joiner.add(String.format(java.util.Locale.ROOT, "%slabel%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getLabel())))); @@ -280,6 +275,11 @@ public String toUrlQueryString(String prefix) { joiner.add(String.format(java.util.Locale.ROOT, "%sicon%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getIcon())))); } + // add `path` to the URL query string + if (getPath() != null) { + joiner.add(String.format(java.util.Locale.ROOT, "%spath%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getPath())))); + } + return joiner.toString(); } static { diff --git a/paas/src/main/java/org/thingsboard/client/model/Customer.java b/paas/src/main/java/org/thingsboard/client/model/Customer.java index fb7afbba..36113d1e 100644 --- a/paas/src/main/java/org/thingsboard/client/model/Customer.java +++ b/paas/src/main/java/org/thingsboard/client/model/Customer.java @@ -552,7 +552,7 @@ public Customer additionalInfo(@javax.annotation.Nullable com.fasterxml.jackson. } /** - * Additional parameters of the device + * Additional parameters of the customer. May include: 'description' (string), 'homeDashboardId' (string, UUID of the home dashboard), 'homeDashboardHideToolbar' (boolean, whether to hide the dashboard toolbar), 'isPublic' (boolean, whether this is a public customer). * @return additionalInfo */ @javax.annotation.Nullable diff --git a/paas/src/main/java/org/thingsboard/client/model/CustomerInfo.java b/paas/src/main/java/org/thingsboard/client/model/CustomerInfo.java index 336e063b..4c459058 100644 --- a/paas/src/main/java/org/thingsboard/client/model/CustomerInfo.java +++ b/paas/src/main/java/org/thingsboard/client/model/CustomerInfo.java @@ -613,7 +613,7 @@ public CustomerInfo additionalInfo(@javax.annotation.Nullable com.fasterxml.jack } /** - * Additional parameters of the device + * Additional parameters of the customer. May include: 'description' (string), 'homeDashboardId' (string, UUID of the home dashboard), 'homeDashboardHideToolbar' (boolean, whether to hide the dashboard toolbar), 'isPublic' (boolean, whether this is a public customer). * @return additionalInfo */ @javax.annotation.Nullable diff --git a/paas/src/main/java/org/thingsboard/client/model/Dashboard.java b/paas/src/main/java/org/thingsboard/client/model/Dashboard.java index 87d60566..5680d23b 100644 --- a/paas/src/main/java/org/thingsboard/client/model/Dashboard.java +++ b/paas/src/main/java/org/thingsboard/client/model/Dashboard.java @@ -46,74 +46,74 @@ * Dashboard */ @JsonPropertyOrder({ - Dashboard.JSON_PROPERTY_TITLE, - Dashboard.JSON_PROPERTY_IMAGE, - Dashboard.JSON_PROPERTY_MOBILE_HIDE, - Dashboard.JSON_PROPERTY_MOBILE_ORDER, - Dashboard.JSON_PROPERTY_CONFIGURATION, - Dashboard.JSON_PROPERTY_NAME, - Dashboard.JSON_PROPERTY_RESOURCES, Dashboard.JSON_PROPERTY_ID, Dashboard.JSON_PROPERTY_CREATED_TIME, Dashboard.JSON_PROPERTY_TENANT_ID, Dashboard.JSON_PROPERTY_CUSTOMER_ID, + Dashboard.JSON_PROPERTY_TITLE, + Dashboard.JSON_PROPERTY_IMAGE, Dashboard.JSON_PROPERTY_ASSIGNED_CUSTOMERS, + Dashboard.JSON_PROPERTY_MOBILE_HIDE, + Dashboard.JSON_PROPERTY_MOBILE_ORDER, Dashboard.JSON_PROPERTY_VERSION, + Dashboard.JSON_PROPERTY_RESOURCES, + Dashboard.JSON_PROPERTY_CONFIGURATION, + Dashboard.JSON_PROPERTY_NAME, Dashboard.JSON_PROPERTY_OWNER_ID }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.20.0") public class Dashboard { - public static final String JSON_PROPERTY_TITLE = "title"; + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable - private String title; + private DashboardId id; - public static final String JSON_PROPERTY_IMAGE = "image"; + public static final String JSON_PROPERTY_CREATED_TIME = "createdTime"; @javax.annotation.Nullable - private String image; + private Long createdTime; - public static final String JSON_PROPERTY_MOBILE_HIDE = "mobileHide"; + public static final String JSON_PROPERTY_TENANT_ID = "tenantId"; @javax.annotation.Nullable - private Boolean mobileHide; + private TenantId tenantId; - public static final String JSON_PROPERTY_MOBILE_ORDER = "mobileOrder"; + public static final String JSON_PROPERTY_CUSTOMER_ID = "customerId"; @javax.annotation.Nullable - private Integer mobileOrder; + private CustomerId customerId; - public static final String JSON_PROPERTY_CONFIGURATION = "configuration"; + public static final String JSON_PROPERTY_TITLE = "title"; @javax.annotation.Nullable - private com.fasterxml.jackson.databind.JsonNode _configuration = null; + private String title; - public static final String JSON_PROPERTY_NAME = "name"; + public static final String JSON_PROPERTY_IMAGE = "image"; @javax.annotation.Nullable - private String name; + private String image; - public static final String JSON_PROPERTY_RESOURCES = "resources"; + public static final String JSON_PROPERTY_ASSIGNED_CUSTOMERS = "assignedCustomers"; @javax.annotation.Nullable - private List resources = new ArrayList<>(); + private Set assignedCustomers = new LinkedHashSet<>(); - public static final String JSON_PROPERTY_ID = "id"; + public static final String JSON_PROPERTY_MOBILE_HIDE = "mobileHide"; @javax.annotation.Nullable - private DashboardId id; + private Boolean mobileHide; - public static final String JSON_PROPERTY_CREATED_TIME = "createdTime"; + public static final String JSON_PROPERTY_MOBILE_ORDER = "mobileOrder"; @javax.annotation.Nullable - private Long createdTime; + private Integer mobileOrder; - public static final String JSON_PROPERTY_TENANT_ID = "tenantId"; + public static final String JSON_PROPERTY_VERSION = "version"; @javax.annotation.Nullable - private TenantId tenantId; + private Long version; - public static final String JSON_PROPERTY_CUSTOMER_ID = "customerId"; + public static final String JSON_PROPERTY_RESOURCES = "resources"; @javax.annotation.Nullable - private CustomerId customerId; + private List resources = new ArrayList<>(); - public static final String JSON_PROPERTY_ASSIGNED_CUSTOMERS = "assignedCustomers"; + public static final String JSON_PROPERTY_CONFIGURATION = "configuration"; @javax.annotation.Nullable - private Set assignedCustomers = new LinkedHashSet<>(); + private com.fasterxml.jackson.databind.JsonNode _configuration = null; - public static final String JSON_PROPERTY_VERSION = "version"; + public static final String JSON_PROPERTY_NAME = "name"; @javax.annotation.Nullable - private Long version; + private String name; public static final String JSON_PROPERTY_OWNER_ID = "ownerId"; @javax.annotation.Nullable @@ -124,293 +124,293 @@ public Dashboard() { @JsonCreator public Dashboard( + @JsonProperty(JSON_PROPERTY_CREATED_TIME) Long createdTime, + @JsonProperty(JSON_PROPERTY_TENANT_ID) TenantId tenantId, @JsonProperty(JSON_PROPERTY_IMAGE) String image, @JsonProperty(JSON_PROPERTY_MOBILE_HIDE) Boolean mobileHide, @JsonProperty(JSON_PROPERTY_MOBILE_ORDER) Integer mobileOrder, @JsonProperty(JSON_PROPERTY_NAME) String name, - @JsonProperty(JSON_PROPERTY_CREATED_TIME) Long createdTime, - @JsonProperty(JSON_PROPERTY_TENANT_ID) TenantId tenantId, @JsonProperty(JSON_PROPERTY_OWNER_ID) EntityId ownerId ) { this(); + this.createdTime = createdTime; + this.tenantId = tenantId; this.image = image; this.mobileHide = mobileHide; this.mobileOrder = mobileOrder; this.name = name; - this.createdTime = createdTime; - this.tenantId = tenantId; this.ownerId = ownerId; } - public Dashboard title(@javax.annotation.Nullable String title) { - this.title = title; + public Dashboard id(@javax.annotation.Nullable DashboardId id) { + this.id = id; return this; } /** - * Title of the dashboard. - * @return title + * JSON object with the dashboard Id. Specify existing dashboard Id to update the dashboard. Referencing non-existing dashboard id will cause error. Omit this field to create new dashboard. + * @return id */ @javax.annotation.Nullable - @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getTitle() { - return title; + public DashboardId getId() { + return id; } - @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) + @JsonProperty(value = JSON_PROPERTY_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTitle(@javax.annotation.Nullable String title) { - this.title = title; + public void setId(@javax.annotation.Nullable DashboardId id) { + this.id = id; } /** - * Thumbnail picture for rendering of the dashboards in a grid view on mobile devices. - * @return image + * Timestamp of the dashboard creation, in milliseconds + * @return createdTime */ @javax.annotation.Nullable - @JsonProperty(value = JSON_PROPERTY_IMAGE, required = false) + @JsonProperty(value = JSON_PROPERTY_CREATED_TIME, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getImage() { - return image; + public Long getCreatedTime() { + return createdTime; } /** - * Hide dashboard from mobile devices. Useful if the dashboard is not designed for small screens. - * @return mobileHide + * JSON object with Tenant Id. Tenant Id of the dashboard can't be changed. + * @return tenantId */ @javax.annotation.Nullable - @JsonProperty(value = JSON_PROPERTY_MOBILE_HIDE, required = false) + @JsonProperty(value = JSON_PROPERTY_TENANT_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getMobileHide() { - return mobileHide; + public TenantId getTenantId() { + return tenantId; } + public Dashboard customerId(@javax.annotation.Nullable CustomerId customerId) { + this.customerId = customerId; + return this; + } + /** - * Order on mobile devices. Useful to adjust sorting of the dashboards for mobile applications - * @return mobileOrder + * JSON object with Customer Id. + * @return customerId */ @javax.annotation.Nullable - @JsonProperty(value = JSON_PROPERTY_MOBILE_ORDER, required = false) + @JsonProperty(value = JSON_PROPERTY_CUSTOMER_ID, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getMobileOrder() { - return mobileOrder; + public CustomerId getCustomerId() { + return customerId; } + @JsonProperty(value = JSON_PROPERTY_CUSTOMER_ID, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCustomerId(@javax.annotation.Nullable CustomerId customerId) { + this.customerId = customerId; + } - public Dashboard _configuration(@javax.annotation.Nullable com.fasterxml.jackson.databind.JsonNode _configuration) { - this._configuration = _configuration; + public Dashboard title(@javax.annotation.Nullable String title) { + this.title = title; return this; } /** - * Get _configuration - * @return _configuration + * Title of the dashboard. + * @return title */ @javax.annotation.Nullable - @JsonProperty(value = JSON_PROPERTY_CONFIGURATION, required = false) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public com.fasterxml.jackson.databind.JsonNode getConfiguration() { - return _configuration; + public String getTitle() { + return title; } - @JsonProperty(value = JSON_PROPERTY_CONFIGURATION, required = false) + @JsonProperty(value = JSON_PROPERTY_TITLE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setConfiguration(@javax.annotation.Nullable com.fasterxml.jackson.databind.JsonNode _configuration) { - this._configuration = _configuration; + public void setTitle(@javax.annotation.Nullable String title) { + this.title = title; } /** - * Same as title of the dashboard. Read-only field. Update the 'title' to change the 'name' of the dashboard. - * @return name + * Thumbnail picture for rendering of the dashboards in a grid view on mobile devices. + * @return image */ @javax.annotation.Nullable - @JsonProperty(value = JSON_PROPERTY_NAME, required = false) + @JsonProperty(value = JSON_PROPERTY_IMAGE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getName() { - return name; + public String getImage() { + return image; } - public Dashboard resources(@javax.annotation.Nullable List resources) { - this.resources = resources; + public Dashboard assignedCustomers(@javax.annotation.Nullable Set assignedCustomers) { + this.assignedCustomers = assignedCustomers; return this; } - public Dashboard addResourcesItem(ResourceExportData resourcesItem) { - if (this.resources == null) { - this.resources = new ArrayList<>(); + public Dashboard addAssignedCustomersItem(ShortCustomerInfo assignedCustomersItem) { + if (this.assignedCustomers == null) { + this.assignedCustomers = new LinkedHashSet<>(); } - this.resources.add(resourcesItem); - return this; - } - - /** - * Get resources - * @return resources - */ - @javax.annotation.Nullable - @JsonProperty(value = JSON_PROPERTY_RESOURCES, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getResources() { - return resources; - } - - - @JsonProperty(value = JSON_PROPERTY_RESOURCES, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setResources(@javax.annotation.Nullable List resources) { - this.resources = resources; - } - - - public Dashboard id(@javax.annotation.Nullable DashboardId id) { - this.id = id; + this.assignedCustomers.add(assignedCustomersItem); return this; } /** - * JSON object with the dashboard Id. Specify existing dashboard Id to update the dashboard. Referencing non-existing dashboard id will cause error. Omit this field to create new dashboard. - * @return id + * List of assigned customers with their info. + * @return assignedCustomers */ @javax.annotation.Nullable - @JsonProperty(value = JSON_PROPERTY_ID, required = false) + @JsonProperty(value = JSON_PROPERTY_ASSIGNED_CUSTOMERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public DashboardId getId() { - return id; + public Set getAssignedCustomers() { + return assignedCustomers; } - @JsonProperty(value = JSON_PROPERTY_ID, required = false) + @JsonDeserialize(as = LinkedHashSet.class) + @JsonProperty(value = JSON_PROPERTY_ASSIGNED_CUSTOMERS, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(@javax.annotation.Nullable DashboardId id) { - this.id = id; + public void setAssignedCustomers(@javax.annotation.Nullable Set assignedCustomers) { + this.assignedCustomers = assignedCustomers; } /** - * Timestamp of the dashboard creation, in milliseconds - * @return createdTime + * Hide dashboard from mobile devices. Useful if the dashboard is not designed for small screens. + * @return mobileHide */ @javax.annotation.Nullable - @JsonProperty(value = JSON_PROPERTY_CREATED_TIME, required = false) + @JsonProperty(value = JSON_PROPERTY_MOBILE_HIDE, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getCreatedTime() { - return createdTime; + public Boolean getMobileHide() { + return mobileHide; } /** - * JSON object with Tenant Id. Tenant Id of the dashboard can't be changed. - * @return tenantId + * Order on mobile devices. Useful to adjust sorting of the dashboards for mobile applications + * @return mobileOrder */ @javax.annotation.Nullable - @JsonProperty(value = JSON_PROPERTY_TENANT_ID, required = false) + @JsonProperty(value = JSON_PROPERTY_MOBILE_ORDER, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public TenantId getTenantId() { - return tenantId; + public Integer getMobileOrder() { + return mobileOrder; } - public Dashboard customerId(@javax.annotation.Nullable CustomerId customerId) { - this.customerId = customerId; + public Dashboard version(@javax.annotation.Nullable Long version) { + this.version = version; return this; } /** - * JSON object with Customer Id. - * @return customerId + * Get version + * @return version */ @javax.annotation.Nullable - @JsonProperty(value = JSON_PROPERTY_CUSTOMER_ID, required = false) + @JsonProperty(value = JSON_PROPERTY_VERSION, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CustomerId getCustomerId() { - return customerId; + public Long getVersion() { + return version; } - @JsonProperty(value = JSON_PROPERTY_CUSTOMER_ID, required = false) + @JsonProperty(value = JSON_PROPERTY_VERSION, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCustomerId(@javax.annotation.Nullable CustomerId customerId) { - this.customerId = customerId; + public void setVersion(@javax.annotation.Nullable Long version) { + this.version = version; } - public Dashboard assignedCustomers(@javax.annotation.Nullable Set assignedCustomers) { - this.assignedCustomers = assignedCustomers; + public Dashboard resources(@javax.annotation.Nullable List resources) { + this.resources = resources; return this; } - public Dashboard addAssignedCustomersItem(ShortCustomerInfo assignedCustomersItem) { - if (this.assignedCustomers == null) { - this.assignedCustomers = new LinkedHashSet<>(); + public Dashboard addResourcesItem(ResourceExportData resourcesItem) { + if (this.resources == null) { + this.resources = new ArrayList<>(); } - this.assignedCustomers.add(assignedCustomersItem); + this.resources.add(resourcesItem); return this; } /** - * List of assigned customers with their info. - * @return assignedCustomers + * Get resources + * @return resources */ @javax.annotation.Nullable - @JsonProperty(value = JSON_PROPERTY_ASSIGNED_CUSTOMERS, required = false) + @JsonProperty(value = JSON_PROPERTY_RESOURCES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Set getAssignedCustomers() { - return assignedCustomers; + public List getResources() { + return resources; } - @JsonDeserialize(as = LinkedHashSet.class) - @JsonProperty(value = JSON_PROPERTY_ASSIGNED_CUSTOMERS, required = false) + @JsonProperty(value = JSON_PROPERTY_RESOURCES, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setAssignedCustomers(@javax.annotation.Nullable Set assignedCustomers) { - this.assignedCustomers = assignedCustomers; + public void setResources(@javax.annotation.Nullable List resources) { + this.resources = resources; } - public Dashboard version(@javax.annotation.Nullable Long version) { - this.version = version; + public Dashboard _configuration(@javax.annotation.Nullable com.fasterxml.jackson.databind.JsonNode _configuration) { + this._configuration = _configuration; return this; } /** - * Get version - * @return version + * Get _configuration + * @return _configuration */ @javax.annotation.Nullable - @JsonProperty(value = JSON_PROPERTY_VERSION, required = false) + @JsonProperty(value = JSON_PROPERTY_CONFIGURATION, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getVersion() { - return version; + public com.fasterxml.jackson.databind.JsonNode getConfiguration() { + return _configuration; } - @JsonProperty(value = JSON_PROPERTY_VERSION, required = false) + @JsonProperty(value = JSON_PROPERTY_CONFIGURATION, required = false) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setVersion(@javax.annotation.Nullable Long version) { - this.version = version; + public void setConfiguration(@javax.annotation.Nullable com.fasterxml.jackson.databind.JsonNode _configuration) { + this._configuration = _configuration; + } + + + /** + * Same as title of the dashboard. Read-only field. Update the 'title' to change the 'name' of the dashboard. + * @return name + */ + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_NAME, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { + return name; } + + /** * JSON object with Customer or Tenant Id * @return ownerId @@ -437,44 +437,44 @@ public boolean equals(Object o) { return false; } Dashboard dashboard = (Dashboard) o; - return Objects.equals(this.title, dashboard.title) && - Objects.equals(this.image, dashboard.image) && - Objects.equals(this.mobileHide, dashboard.mobileHide) && - Objects.equals(this.mobileOrder, dashboard.mobileOrder) && - Objects.equals(this._configuration, dashboard._configuration) && - Objects.equals(this.name, dashboard.name) && - Objects.equals(this.resources, dashboard.resources) && - Objects.equals(this.id, dashboard.id) && + return Objects.equals(this.id, dashboard.id) && Objects.equals(this.createdTime, dashboard.createdTime) && Objects.equals(this.tenantId, dashboard.tenantId) && Objects.equals(this.customerId, dashboard.customerId) && + Objects.equals(this.title, dashboard.title) && + Objects.equals(this.image, dashboard.image) && Objects.equals(this.assignedCustomers, dashboard.assignedCustomers) && + Objects.equals(this.mobileHide, dashboard.mobileHide) && + Objects.equals(this.mobileOrder, dashboard.mobileOrder) && Objects.equals(this.version, dashboard.version) && + Objects.equals(this.resources, dashboard.resources) && + Objects.equals(this._configuration, dashboard._configuration) && + Objects.equals(this.name, dashboard.name) && Objects.equals(this.ownerId, dashboard.ownerId); } @Override public int hashCode() { - return Objects.hash(title, image, mobileHide, mobileOrder, _configuration, name, resources, id, createdTime, tenantId, customerId, assignedCustomers, version, ownerId); + return Objects.hash(id, createdTime, tenantId, customerId, title, image, assignedCustomers, mobileHide, mobileOrder, version, resources, _configuration, name, ownerId); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Dashboard {\n"); - sb.append(" title: ").append(toIndentedString(title)).append("\n"); - sb.append(" image: ").append(toIndentedString(image)).append("\n"); - sb.append(" mobileHide: ").append(toIndentedString(mobileHide)).append("\n"); - sb.append(" mobileOrder: ").append(toIndentedString(mobileOrder)).append("\n"); - sb.append(" _configuration: ").append(toIndentedString(_configuration)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" resources: ").append(toIndentedString(resources)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" createdTime: ").append(toIndentedString(createdTime)).append("\n"); sb.append(" tenantId: ").append(toIndentedString(tenantId)).append("\n"); sb.append(" customerId: ").append(toIndentedString(customerId)).append("\n"); + sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append(" image: ").append(toIndentedString(image)).append("\n"); sb.append(" assignedCustomers: ").append(toIndentedString(assignedCustomers)).append("\n"); + sb.append(" mobileHide: ").append(toIndentedString(mobileHide)).append("\n"); + sb.append(" mobileOrder: ").append(toIndentedString(mobileOrder)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" resources: ").append(toIndentedString(resources)).append("\n"); + sb.append(" _configuration: ").append(toIndentedString(_configuration)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" ownerId: ").append(toIndentedString(ownerId)).append("\n"); sb.append("}"); return sb.toString(); @@ -523,46 +523,6 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); - // add `title` to the URL query string - if (getTitle() != null) { - joiner.add(String.format(java.util.Locale.ROOT, "%stitle%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getTitle())))); - } - - // add `image` to the URL query string - if (getImage() != null) { - joiner.add(String.format(java.util.Locale.ROOT, "%simage%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getImage())))); - } - - // add `mobileHide` to the URL query string - if (getMobileHide() != null) { - joiner.add(String.format(java.util.Locale.ROOT, "%smobileHide%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getMobileHide())))); - } - - // add `mobileOrder` to the URL query string - if (getMobileOrder() != null) { - joiner.add(String.format(java.util.Locale.ROOT, "%smobileOrder%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getMobileOrder())))); - } - - // add `configuration` to the URL query string - if (getConfiguration() != null) { - joiner.add(String.format(java.util.Locale.ROOT, "%sconfiguration%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getConfiguration())))); - } - - // add `name` to the URL query string - if (getName() != null) { - joiner.add(String.format(java.util.Locale.ROOT, "%sname%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getName())))); - } - - // add `resources` to the URL query string - if (getResources() != null) { - for (int i = 0; i < getResources().size(); i++) { - if (getResources().get(i) != null) { - joiner.add(getResources().get(i).toUrlQueryString(String.format(java.util.Locale.ROOT, "%sresources%s%s", prefix, suffix, - "".equals(suffix) ? "" : String.format(java.util.Locale.ROOT, "%s%d%s", containerPrefix, i, containerSuffix)))); - } - } - } - // add `id` to the URL query string if (getId() != null) { joiner.add(getId().toUrlQueryString(prefix + "id" + suffix)); @@ -583,6 +543,16 @@ public String toUrlQueryString(String prefix) { joiner.add(getCustomerId().toUrlQueryString(prefix + "customerId" + suffix)); } + // add `title` to the URL query string + if (getTitle() != null) { + joiner.add(String.format(java.util.Locale.ROOT, "%stitle%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getTitle())))); + } + + // add `image` to the URL query string + if (getImage() != null) { + joiner.add(String.format(java.util.Locale.ROOT, "%simage%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getImage())))); + } + // add `assignedCustomers` to the URL query string if (getAssignedCustomers() != null) { int i = 0; @@ -595,11 +565,41 @@ public String toUrlQueryString(String prefix) { i++; } + // add `mobileHide` to the URL query string + if (getMobileHide() != null) { + joiner.add(String.format(java.util.Locale.ROOT, "%smobileHide%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getMobileHide())))); + } + + // add `mobileOrder` to the URL query string + if (getMobileOrder() != null) { + joiner.add(String.format(java.util.Locale.ROOT, "%smobileOrder%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getMobileOrder())))); + } + // add `version` to the URL query string if (getVersion() != null) { joiner.add(String.format(java.util.Locale.ROOT, "%sversion%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getVersion())))); } + // add `resources` to the URL query string + if (getResources() != null) { + for (int i = 0; i < getResources().size(); i++) { + if (getResources().get(i) != null) { + joiner.add(getResources().get(i).toUrlQueryString(String.format(java.util.Locale.ROOT, "%sresources%s%s", prefix, suffix, + "".equals(suffix) ? "" : String.format(java.util.Locale.ROOT, "%s%d%s", containerPrefix, i, containerSuffix)))); + } + } + } + + // add `configuration` to the URL query string + if (getConfiguration() != null) { + joiner.add(String.format(java.util.Locale.ROOT, "%sconfiguration%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getConfiguration())))); + } + + // add `name` to the URL query string + if (getName() != null) { + joiner.add(String.format(java.util.Locale.ROOT, "%sname%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getName())))); + } + // add `ownerId` to the URL query string if (getOwnerId() != null) { joiner.add(getOwnerId().toUrlQueryString(prefix + "ownerId" + suffix)); diff --git a/paas/src/main/java/org/thingsboard/client/model/DashboardPage.java b/paas/src/main/java/org/thingsboard/client/model/DashboardPage.java index 4bc5c381..f20ac3ac 100644 --- a/paas/src/main/java/org/thingsboard/client/model/DashboardPage.java +++ b/paas/src/main/java/org/thingsboard/client/model/DashboardPage.java @@ -41,10 +41,10 @@ * DashboardPage */ @JsonPropertyOrder({ - DashboardPage.JSON_PROPERTY_DASHBOARD_ID, DashboardPage.JSON_PROPERTY_LABEL, DashboardPage.JSON_PROPERTY_VISIBLE, - DashboardPage.JSON_PROPERTY_ICON + DashboardPage.JSON_PROPERTY_ICON, + DashboardPage.JSON_PROPERTY_DASHBOARD_ID }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.20.0") @JsonIgnoreProperties( @@ -54,10 +54,6 @@ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", visible = true) public class DashboardPage extends MobilePage { - public static final String JSON_PROPERTY_DASHBOARD_ID = "dashboardId"; - @javax.annotation.Nullable - private String dashboardId; - public static final String JSON_PROPERTY_LABEL = "label"; @javax.annotation.Nullable private String label; @@ -70,33 +66,13 @@ public class DashboardPage extends MobilePage { @javax.annotation.Nullable private String icon; - public DashboardPage() { - } - - public DashboardPage dashboardId(@javax.annotation.Nullable String dashboardId) { - this.dashboardId = dashboardId; - return this; - } - - /** - * Dashboard id - * @return dashboardId - */ + public static final String JSON_PROPERTY_DASHBOARD_ID = "dashboardId"; @javax.annotation.Nullable - @JsonProperty(value = JSON_PROPERTY_DASHBOARD_ID, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDashboardId() { - return dashboardId; - } - + private String dashboardId; - @JsonProperty(value = JSON_PROPERTY_DASHBOARD_ID, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDashboardId(@javax.annotation.Nullable String dashboardId) { - this.dashboardId = dashboardId; + public DashboardPage() { } - public DashboardPage label(@javax.annotation.Nullable String label) { this.label = label; return this; @@ -169,6 +145,30 @@ public void setIcon(@javax.annotation.Nullable String icon) { } + public DashboardPage dashboardId(@javax.annotation.Nullable String dashboardId) { + this.dashboardId = dashboardId; + return this; + } + + /** + * Dashboard id + * @return dashboardId + */ + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_DASHBOARD_ID, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDashboardId() { + return dashboardId; + } + + + @JsonProperty(value = JSON_PROPERTY_DASHBOARD_ID, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDashboardId(@javax.annotation.Nullable String dashboardId) { + this.dashboardId = dashboardId; + } + + @Override public DashboardPage type(@javax.annotation.Nonnull MobilePageType type) { this.setType(type); @@ -187,16 +187,16 @@ public boolean equals(Object o) { return false; } DashboardPage dashboardPage = (DashboardPage) o; - return Objects.equals(this.dashboardId, dashboardPage.dashboardId) && - Objects.equals(this.label, dashboardPage.label) && + return Objects.equals(this.label, dashboardPage.label) && Objects.equals(this.visible, dashboardPage.visible) && Objects.equals(this.icon, dashboardPage.icon) && + Objects.equals(this.dashboardId, dashboardPage.dashboardId) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(dashboardId, label, visible, icon, super.hashCode()); + return Objects.hash(label, visible, icon, dashboardId, super.hashCode()); } @Override @@ -204,10 +204,10 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DashboardPage {\n"); sb.append(" ").append(toIndentedString(super.toString())).append("\n"); - sb.append(" dashboardId: ").append(toIndentedString(dashboardId)).append("\n"); sb.append(" label: ").append(toIndentedString(label)).append("\n"); sb.append(" visible: ").append(toIndentedString(visible)).append("\n"); sb.append(" icon: ").append(toIndentedString(icon)).append("\n"); + sb.append(" dashboardId: ").append(toIndentedString(dashboardId)).append("\n"); sb.append("}"); return sb.toString(); } @@ -265,11 +265,6 @@ public String toUrlQueryString(String prefix) { joiner.add(String.format(java.util.Locale.ROOT, "%svisible%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getVisible())))); } - // add `dashboardId` to the URL query string - if (getDashboardId() != null) { - joiner.add(String.format(java.util.Locale.ROOT, "%sdashboardId%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getDashboardId())))); - } - // add `label` to the URL query string if (getLabel() != null) { joiner.add(String.format(java.util.Locale.ROOT, "%slabel%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getLabel())))); @@ -280,6 +275,11 @@ public String toUrlQueryString(String prefix) { joiner.add(String.format(java.util.Locale.ROOT, "%sicon%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getIcon())))); } + // add `dashboardId` to the URL query string + if (getDashboardId() != null) { + joiner.add(String.format(java.util.Locale.ROOT, "%sdashboardId%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getDashboardId())))); + } + return joiner.toString(); } static { diff --git a/paas/src/main/java/org/thingsboard/client/model/DebugConverterEventFilter.java b/paas/src/main/java/org/thingsboard/client/model/DebugConverterEventFilter.java index e907f12e..c4c9d492 100644 --- a/paas/src/main/java/org/thingsboard/client/model/DebugConverterEventFilter.java +++ b/paas/src/main/java/org/thingsboard/client/model/DebugConverterEventFilter.java @@ -42,12 +42,12 @@ */ @JsonPropertyOrder({ DebugConverterEventFilter.JSON_PROPERTY_SERVER, - DebugConverterEventFilter.JSON_PROPERTY_IS_ERROR, DebugConverterEventFilter.JSON_PROPERTY_ERROR_STR, DebugConverterEventFilter.JSON_PROPERTY_TYPE, DebugConverterEventFilter.JSON_PROPERTY_IN, DebugConverterEventFilter.JSON_PROPERTY_OUT, DebugConverterEventFilter.JSON_PROPERTY_METADATA, + DebugConverterEventFilter.JSON_PROPERTY_IS_ERROR, DebugConverterEventFilter.JSON_PROPERTY_ERROR }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.20.0") @@ -62,10 +62,6 @@ public class DebugConverterEventFilter extends EventFilter { @javax.annotation.Nullable private String server; - public static final String JSON_PROPERTY_IS_ERROR = "isError"; - @javax.annotation.Nullable - private Boolean isError; - public static final String JSON_PROPERTY_ERROR_STR = "errorStr"; @javax.annotation.Nullable private String errorStr; @@ -86,6 +82,10 @@ public class DebugConverterEventFilter extends EventFilter { @javax.annotation.Nullable private String metadata; + public static final String JSON_PROPERTY_IS_ERROR = "isError"; + @javax.annotation.Nullable + private Boolean isError; + public static final String JSON_PROPERTY_ERROR = "error"; @javax.annotation.Nullable private Boolean error; @@ -117,30 +117,6 @@ public void setServer(@javax.annotation.Nullable String server) { } - public DebugConverterEventFilter isError(@javax.annotation.Nullable Boolean isError) { - this.isError = isError; - return this; - } - - /** - * Get isError - * @return isError - */ - @javax.annotation.Nullable - @JsonProperty(value = JSON_PROPERTY_IS_ERROR, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getIsError() { - return isError; - } - - - @JsonProperty(value = JSON_PROPERTY_IS_ERROR, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsError(@javax.annotation.Nullable Boolean isError) { - this.isError = isError; - } - - public DebugConverterEventFilter errorStr(@javax.annotation.Nullable String errorStr) { this.errorStr = errorStr; return this; @@ -261,6 +237,30 @@ public void setMetadata(@javax.annotation.Nullable String metadata) { } + public DebugConverterEventFilter isError(@javax.annotation.Nullable Boolean isError) { + this.isError = isError; + return this; + } + + /** + * Get isError + * @return isError + */ + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_IS_ERROR, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getIsError() { + return isError; + } + + + @JsonProperty(value = JSON_PROPERTY_IS_ERROR, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIsError(@javax.annotation.Nullable Boolean isError) { + this.isError = isError; + } + + public DebugConverterEventFilter error(@javax.annotation.Nullable Boolean error) { this.error = error; return this; @@ -310,19 +310,19 @@ public boolean equals(Object o) { } DebugConverterEventFilter debugConverterEventFilter = (DebugConverterEventFilter) o; return Objects.equals(this.server, debugConverterEventFilter.server) && - Objects.equals(this.isError, debugConverterEventFilter.isError) && Objects.equals(this.errorStr, debugConverterEventFilter.errorStr) && Objects.equals(this.type, debugConverterEventFilter.type) && Objects.equals(this.in, debugConverterEventFilter.in) && Objects.equals(this.out, debugConverterEventFilter.out) && Objects.equals(this.metadata, debugConverterEventFilter.metadata) && + Objects.equals(this.isError, debugConverterEventFilter.isError) && Objects.equals(this.error, debugConverterEventFilter.error) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(server, isError, errorStr, type, in, out, metadata, error, super.hashCode()); + return Objects.hash(server, errorStr, type, in, out, metadata, isError, error, super.hashCode()); } @Override @@ -331,12 +331,12 @@ public String toString() { sb.append("class DebugConverterEventFilter {\n"); sb.append(" ").append(toIndentedString(super.toString())).append("\n"); sb.append(" server: ").append(toIndentedString(server)).append("\n"); - sb.append(" isError: ").append(toIndentedString(isError)).append("\n"); sb.append(" errorStr: ").append(toIndentedString(errorStr)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" in: ").append(toIndentedString(in)).append("\n"); sb.append(" out: ").append(toIndentedString(out)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append(" isError: ").append(toIndentedString(isError)).append("\n"); sb.append(" error: ").append(toIndentedString(error)).append("\n"); sb.append("}"); return sb.toString(); @@ -400,11 +400,6 @@ public String toUrlQueryString(String prefix) { joiner.add(String.format(java.util.Locale.ROOT, "%sserver%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getServer())))); } - // add `isError` to the URL query string - if (getIsError() != null) { - joiner.add(String.format(java.util.Locale.ROOT, "%sisError%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getIsError())))); - } - // add `errorStr` to the URL query string if (getErrorStr() != null) { joiner.add(String.format(java.util.Locale.ROOT, "%serrorStr%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getErrorStr())))); @@ -430,6 +425,11 @@ public String toUrlQueryString(String prefix) { joiner.add(String.format(java.util.Locale.ROOT, "%smetadata%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getMetadata())))); } + // add `isError` to the URL query string + if (getIsError() != null) { + joiner.add(String.format(java.util.Locale.ROOT, "%sisError%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getIsError())))); + } + // add `error` to the URL query string if (getError() != null) { joiner.add(String.format(java.util.Locale.ROOT, "%serror%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getError())))); diff --git a/paas/src/main/java/org/thingsboard/client/model/DebugIntegrationEventFilter.java b/paas/src/main/java/org/thingsboard/client/model/DebugIntegrationEventFilter.java index 863633ea..ea6e38e1 100644 --- a/paas/src/main/java/org/thingsboard/client/model/DebugIntegrationEventFilter.java +++ b/paas/src/main/java/org/thingsboard/client/model/DebugIntegrationEventFilter.java @@ -42,11 +42,11 @@ */ @JsonPropertyOrder({ DebugIntegrationEventFilter.JSON_PROPERTY_SERVER, - DebugIntegrationEventFilter.JSON_PROPERTY_IS_ERROR, DebugIntegrationEventFilter.JSON_PROPERTY_ERROR_STR, DebugIntegrationEventFilter.JSON_PROPERTY_TYPE, DebugIntegrationEventFilter.JSON_PROPERTY_MESSAGE, DebugIntegrationEventFilter.JSON_PROPERTY_STATUS_INTEGRATION, + DebugIntegrationEventFilter.JSON_PROPERTY_IS_ERROR, DebugIntegrationEventFilter.JSON_PROPERTY_ERROR }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.20.0") @@ -61,10 +61,6 @@ public class DebugIntegrationEventFilter extends EventFilter { @javax.annotation.Nullable private String server; - public static final String JSON_PROPERTY_IS_ERROR = "isError"; - @javax.annotation.Nullable - private Boolean isError; - public static final String JSON_PROPERTY_ERROR_STR = "errorStr"; @javax.annotation.Nullable private String errorStr; @@ -81,6 +77,10 @@ public class DebugIntegrationEventFilter extends EventFilter { @javax.annotation.Nullable private String statusIntegration; + public static final String JSON_PROPERTY_IS_ERROR = "isError"; + @javax.annotation.Nullable + private Boolean isError; + public static final String JSON_PROPERTY_ERROR = "error"; @javax.annotation.Nullable private Boolean error; @@ -112,30 +112,6 @@ public void setServer(@javax.annotation.Nullable String server) { } - public DebugIntegrationEventFilter isError(@javax.annotation.Nullable Boolean isError) { - this.isError = isError; - return this; - } - - /** - * Get isError - * @return isError - */ - @javax.annotation.Nullable - @JsonProperty(value = JSON_PROPERTY_IS_ERROR, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getIsError() { - return isError; - } - - - @JsonProperty(value = JSON_PROPERTY_IS_ERROR, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsError(@javax.annotation.Nullable Boolean isError) { - this.isError = isError; - } - - public DebugIntegrationEventFilter errorStr(@javax.annotation.Nullable String errorStr) { this.errorStr = errorStr; return this; @@ -232,6 +208,30 @@ public void setStatusIntegration(@javax.annotation.Nullable String statusIntegra } + public DebugIntegrationEventFilter isError(@javax.annotation.Nullable Boolean isError) { + this.isError = isError; + return this; + } + + /** + * Get isError + * @return isError + */ + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_IS_ERROR, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getIsError() { + return isError; + } + + + @JsonProperty(value = JSON_PROPERTY_IS_ERROR, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIsError(@javax.annotation.Nullable Boolean isError) { + this.isError = isError; + } + + public DebugIntegrationEventFilter error(@javax.annotation.Nullable Boolean error) { this.error = error; return this; @@ -281,18 +281,18 @@ public boolean equals(Object o) { } DebugIntegrationEventFilter debugIntegrationEventFilter = (DebugIntegrationEventFilter) o; return Objects.equals(this.server, debugIntegrationEventFilter.server) && - Objects.equals(this.isError, debugIntegrationEventFilter.isError) && Objects.equals(this.errorStr, debugIntegrationEventFilter.errorStr) && Objects.equals(this.type, debugIntegrationEventFilter.type) && Objects.equals(this.message, debugIntegrationEventFilter.message) && Objects.equals(this.statusIntegration, debugIntegrationEventFilter.statusIntegration) && + Objects.equals(this.isError, debugIntegrationEventFilter.isError) && Objects.equals(this.error, debugIntegrationEventFilter.error) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(server, isError, errorStr, type, message, statusIntegration, error, super.hashCode()); + return Objects.hash(server, errorStr, type, message, statusIntegration, isError, error, super.hashCode()); } @Override @@ -301,11 +301,11 @@ public String toString() { sb.append("class DebugIntegrationEventFilter {\n"); sb.append(" ").append(toIndentedString(super.toString())).append("\n"); sb.append(" server: ").append(toIndentedString(server)).append("\n"); - sb.append(" isError: ").append(toIndentedString(isError)).append("\n"); sb.append(" errorStr: ").append(toIndentedString(errorStr)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" statusIntegration: ").append(toIndentedString(statusIntegration)).append("\n"); + sb.append(" isError: ").append(toIndentedString(isError)).append("\n"); sb.append(" error: ").append(toIndentedString(error)).append("\n"); sb.append("}"); return sb.toString(); @@ -369,11 +369,6 @@ public String toUrlQueryString(String prefix) { joiner.add(String.format(java.util.Locale.ROOT, "%sserver%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getServer())))); } - // add `isError` to the URL query string - if (getIsError() != null) { - joiner.add(String.format(java.util.Locale.ROOT, "%sisError%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getIsError())))); - } - // add `errorStr` to the URL query string if (getErrorStr() != null) { joiner.add(String.format(java.util.Locale.ROOT, "%serrorStr%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getErrorStr())))); @@ -394,6 +389,11 @@ public String toUrlQueryString(String prefix) { joiner.add(String.format(java.util.Locale.ROOT, "%sstatusIntegration%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getStatusIntegration())))); } + // add `isError` to the URL query string + if (getIsError() != null) { + joiner.add(String.format(java.util.Locale.ROOT, "%sisError%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getIsError())))); + } + // add `error` to the URL query string if (getError() != null) { joiner.add(String.format(java.util.Locale.ROOT, "%serror%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getError())))); diff --git a/paas/src/main/java/org/thingsboard/client/model/DefaultMobilePage.java b/paas/src/main/java/org/thingsboard/client/model/DefaultMobilePage.java index ca5f7a23..7a9fb2c7 100644 --- a/paas/src/main/java/org/thingsboard/client/model/DefaultMobilePage.java +++ b/paas/src/main/java/org/thingsboard/client/model/DefaultMobilePage.java @@ -42,10 +42,10 @@ * DefaultMobilePage */ @JsonPropertyOrder({ - DefaultMobilePage.JSON_PROPERTY_ID, DefaultMobilePage.JSON_PROPERTY_LABEL, DefaultMobilePage.JSON_PROPERTY_VISIBLE, - DefaultMobilePage.JSON_PROPERTY_ICON + DefaultMobilePage.JSON_PROPERTY_ICON, + DefaultMobilePage.JSON_PROPERTY_ID }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.20.0") @JsonIgnoreProperties( @@ -55,10 +55,6 @@ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", visible = true) public class DefaultMobilePage extends MobilePage { - public static final String JSON_PROPERTY_ID = "id"; - @javax.annotation.Nullable - private DefaultPageId id; - public static final String JSON_PROPERTY_LABEL = "label"; @javax.annotation.Nullable private String label; @@ -71,33 +67,13 @@ public class DefaultMobilePage extends MobilePage { @javax.annotation.Nullable private String icon; - public DefaultMobilePage() { - } - - public DefaultMobilePage id(@javax.annotation.Nullable DefaultPageId id) { - this.id = id; - return this; - } - - /** - * Identifier for default page - * @return id - */ + public static final String JSON_PROPERTY_ID = "id"; @javax.annotation.Nullable - @JsonProperty(value = JSON_PROPERTY_ID, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public DefaultPageId getId() { - return id; - } - + private DefaultPageId id; - @JsonProperty(value = JSON_PROPERTY_ID, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(@javax.annotation.Nullable DefaultPageId id) { - this.id = id; + public DefaultMobilePage() { } - public DefaultMobilePage label(@javax.annotation.Nullable String label) { this.label = label; return this; @@ -170,6 +146,30 @@ public void setIcon(@javax.annotation.Nullable String icon) { } + public DefaultMobilePage id(@javax.annotation.Nullable DefaultPageId id) { + this.id = id; + return this; + } + + /** + * Identifier for default page + * @return id + */ + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_ID, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public DefaultPageId getId() { + return id; + } + + + @JsonProperty(value = JSON_PROPERTY_ID, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setId(@javax.annotation.Nullable DefaultPageId id) { + this.id = id; + } + + @Override public DefaultMobilePage type(@javax.annotation.Nonnull MobilePageType type) { this.setType(type); @@ -188,16 +188,16 @@ public boolean equals(Object o) { return false; } DefaultMobilePage defaultMobilePage = (DefaultMobilePage) o; - return Objects.equals(this.id, defaultMobilePage.id) && - Objects.equals(this.label, defaultMobilePage.label) && + return Objects.equals(this.label, defaultMobilePage.label) && Objects.equals(this.visible, defaultMobilePage.visible) && Objects.equals(this.icon, defaultMobilePage.icon) && + Objects.equals(this.id, defaultMobilePage.id) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(id, label, visible, icon, super.hashCode()); + return Objects.hash(label, visible, icon, id, super.hashCode()); } @Override @@ -205,10 +205,10 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DefaultMobilePage {\n"); sb.append(" ").append(toIndentedString(super.toString())).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" label: ").append(toIndentedString(label)).append("\n"); sb.append(" visible: ").append(toIndentedString(visible)).append("\n"); sb.append(" icon: ").append(toIndentedString(icon)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append("}"); return sb.toString(); } @@ -266,11 +266,6 @@ public String toUrlQueryString(String prefix) { joiner.add(String.format(java.util.Locale.ROOT, "%svisible%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getVisible())))); } - // add `id` to the URL query string - if (getId() != null) { - joiner.add(String.format(java.util.Locale.ROOT, "%sid%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); - } - // add `label` to the URL query string if (getLabel() != null) { joiner.add(String.format(java.util.Locale.ROOT, "%slabel%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getLabel())))); @@ -281,6 +276,11 @@ public String toUrlQueryString(String prefix) { joiner.add(String.format(java.util.Locale.ROOT, "%sicon%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getIcon())))); } + // add `id` to the URL query string + if (getId() != null) { + joiner.add(String.format(java.util.Locale.ROOT, "%sid%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getId())))); + } + return joiner.toString(); } static { diff --git a/paas/src/main/java/org/thingsboard/client/model/Device.java b/paas/src/main/java/org/thingsboard/client/model/Device.java index 946a39af..4d5c2625 100644 --- a/paas/src/main/java/org/thingsboard/client/model/Device.java +++ b/paas/src/main/java/org/thingsboard/client/model/Device.java @@ -410,7 +410,7 @@ public Device additionalInfo(@javax.annotation.Nullable com.fasterxml.jackson.da } /** - * Additional parameters of the device + * Additional parameters of the device. May include: 'gateway' (boolean, whether the device is a gateway), 'description' (string), 'lastConnectedGateway' (string, UUID of the last gateway that connected this device). * @return additionalInfo */ @javax.annotation.Nullable diff --git a/paas/src/main/java/org/thingsboard/client/model/DeviceInfo.java b/paas/src/main/java/org/thingsboard/client/model/DeviceInfo.java index 2287e3e5..854fcbbc 100644 --- a/paas/src/main/java/org/thingsboard/client/model/DeviceInfo.java +++ b/paas/src/main/java/org/thingsboard/client/model/DeviceInfo.java @@ -492,7 +492,7 @@ public DeviceInfo additionalInfo(@javax.annotation.Nullable com.fasterxml.jackso } /** - * Additional parameters of the device + * Additional parameters of the device. May include: 'gateway' (boolean, whether the device is a gateway), 'description' (string), 'lastConnectedGateway' (string, UUID of the last gateway that connected this device). * @return additionalInfo */ @javax.annotation.Nullable diff --git a/paas/src/main/java/org/thingsboard/client/model/DeviceTypeFilter.java b/paas/src/main/java/org/thingsboard/client/model/DeviceTypeFilter.java index 09e5eedd..73bd7616 100644 --- a/paas/src/main/java/org/thingsboard/client/model/DeviceTypeFilter.java +++ b/paas/src/main/java/org/thingsboard/client/model/DeviceTypeFilter.java @@ -42,9 +42,9 @@ * DeviceTypeFilter */ @JsonPropertyOrder({ - DeviceTypeFilter.JSON_PROPERTY_DEVICE_TYPE, DeviceTypeFilter.JSON_PROPERTY_DEVICE_TYPES, - DeviceTypeFilter.JSON_PROPERTY_DEVICE_NAME_FILTER + DeviceTypeFilter.JSON_PROPERTY_DEVICE_NAME_FILTER, + DeviceTypeFilter.JSON_PROPERTY_DEVICE_TYPE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.20.0") @JsonIgnoreProperties( @@ -54,10 +54,6 @@ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", visible = true) public class DeviceTypeFilter extends EntityFilter { - public static final String JSON_PROPERTY_DEVICE_TYPE = "deviceType"; - @javax.annotation.Nullable - private String deviceType; - public static final String JSON_PROPERTY_DEVICE_TYPES = "deviceTypes"; @javax.annotation.Nullable private List deviceTypes = new ArrayList<>(); @@ -66,35 +62,13 @@ public class DeviceTypeFilter extends EntityFilter { @javax.annotation.Nullable private String deviceNameFilter; - public DeviceTypeFilter() { - } - - public DeviceTypeFilter deviceType(@javax.annotation.Nullable String deviceType) { - this.deviceType = deviceType; - return this; - } - - /** - * Get deviceType - * @return deviceType - * @deprecated - */ - @Deprecated + public static final String JSON_PROPERTY_DEVICE_TYPE = "deviceType"; @javax.annotation.Nullable - @JsonProperty(value = JSON_PROPERTY_DEVICE_TYPE, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDeviceType() { - return deviceType; - } - + private String deviceType; - @JsonProperty(value = JSON_PROPERTY_DEVICE_TYPE, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDeviceType(@javax.annotation.Nullable String deviceType) { - this.deviceType = deviceType; + public DeviceTypeFilter() { } - public DeviceTypeFilter deviceTypes(@javax.annotation.Nullable List deviceTypes) { this.deviceTypes = deviceTypes; return this; @@ -151,6 +125,32 @@ public void setDeviceNameFilter(@javax.annotation.Nullable String deviceNameFilt } + public DeviceTypeFilter deviceType(@javax.annotation.Nullable String deviceType) { + this.deviceType = deviceType; + return this; + } + + /** + * Get deviceType + * @return deviceType + * @deprecated + */ + @Deprecated + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_DEVICE_TYPE, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDeviceType() { + return deviceType; + } + + + @JsonProperty(value = JSON_PROPERTY_DEVICE_TYPE, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDeviceType(@javax.annotation.Nullable String deviceType) { + this.deviceType = deviceType; + } + + @Override public DeviceTypeFilter type(@javax.annotation.Nonnull String type) { this.setType(type); @@ -169,15 +169,15 @@ public boolean equals(Object o) { return false; } DeviceTypeFilter deviceTypeFilter = (DeviceTypeFilter) o; - return Objects.equals(this.deviceType, deviceTypeFilter.deviceType) && - Objects.equals(this.deviceTypes, deviceTypeFilter.deviceTypes) && + return Objects.equals(this.deviceTypes, deviceTypeFilter.deviceTypes) && Objects.equals(this.deviceNameFilter, deviceTypeFilter.deviceNameFilter) && + Objects.equals(this.deviceType, deviceTypeFilter.deviceType) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(deviceType, deviceTypes, deviceNameFilter, super.hashCode()); + return Objects.hash(deviceTypes, deviceNameFilter, deviceType, super.hashCode()); } @Override @@ -185,9 +185,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DeviceTypeFilter {\n"); sb.append(" ").append(toIndentedString(super.toString())).append("\n"); - sb.append(" deviceType: ").append(toIndentedString(deviceType)).append("\n"); sb.append(" deviceTypes: ").append(toIndentedString(deviceTypes)).append("\n"); sb.append(" deviceNameFilter: ").append(toIndentedString(deviceNameFilter)).append("\n"); + sb.append(" deviceType: ").append(toIndentedString(deviceType)).append("\n"); sb.append("}"); return sb.toString(); } @@ -240,11 +240,6 @@ public String toUrlQueryString(String prefix) { joiner.add(String.format(java.util.Locale.ROOT, "%stype%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getType())))); } - // add `deviceType` to the URL query string - if (getDeviceType() != null) { - joiner.add(String.format(java.util.Locale.ROOT, "%sdeviceType%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getDeviceType())))); - } - // add `deviceTypes` to the URL query string if (getDeviceTypes() != null) { for (int i = 0; i < getDeviceTypes().size(); i++) { @@ -259,6 +254,11 @@ public String toUrlQueryString(String prefix) { joiner.add(String.format(java.util.Locale.ROOT, "%sdeviceNameFilter%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getDeviceNameFilter())))); } + // add `deviceType` to the URL query string + if (getDeviceType() != null) { + joiner.add(String.format(java.util.Locale.ROOT, "%sdeviceType%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getDeviceType())))); + } + return joiner.toString(); } static { diff --git a/paas/src/main/java/org/thingsboard/client/model/Edge.java b/paas/src/main/java/org/thingsboard/client/model/Edge.java index 04ba16a7..cdf1b9b4 100644 --- a/paas/src/main/java/org/thingsboard/client/model/Edge.java +++ b/paas/src/main/java/org/thingsboard/client/model/Edge.java @@ -122,7 +122,7 @@ public class Edge { public static final String JSON_PROPERTY_ADDITIONAL_INFO = "additionalInfo"; @javax.annotation.Nullable - private com.fasterxml.jackson.databind.JsonNode additionalInfo = null; + private com.fasterxml.jackson.databind.JsonNode additionalInfo; public Edge() { } @@ -459,7 +459,7 @@ public Edge additionalInfo(@javax.annotation.Nullable com.fasterxml.jackson.data } /** - * Get additionalInfo + * Additional parameters of the edge. May include: 'description' (string). * @return additionalInfo */ @javax.annotation.Nullable diff --git a/paas/src/main/java/org/thingsboard/client/model/EdgeInfo.java b/paas/src/main/java/org/thingsboard/client/model/EdgeInfo.java index 2f526338..0dc61d69 100644 --- a/paas/src/main/java/org/thingsboard/client/model/EdgeInfo.java +++ b/paas/src/main/java/org/thingsboard/client/model/EdgeInfo.java @@ -135,7 +135,7 @@ public class EdgeInfo { public static final String JSON_PROPERTY_ADDITIONAL_INFO = "additionalInfo"; @javax.annotation.Nullable - private com.fasterxml.jackson.databind.JsonNode additionalInfo = null; + private com.fasterxml.jackson.databind.JsonNode additionalInfo; public EdgeInfo() { } @@ -520,7 +520,7 @@ public EdgeInfo additionalInfo(@javax.annotation.Nullable com.fasterxml.jackson. } /** - * Get additionalInfo + * Additional parameters of the edge. May include: 'description' (string). * @return additionalInfo */ @javax.annotation.Nullable diff --git a/paas/src/main/java/org/thingsboard/client/model/EdgeTypeFilter.java b/paas/src/main/java/org/thingsboard/client/model/EdgeTypeFilter.java index ae09f398..52452af6 100644 --- a/paas/src/main/java/org/thingsboard/client/model/EdgeTypeFilter.java +++ b/paas/src/main/java/org/thingsboard/client/model/EdgeTypeFilter.java @@ -42,9 +42,9 @@ * EdgeTypeFilter */ @JsonPropertyOrder({ - EdgeTypeFilter.JSON_PROPERTY_EDGE_TYPE, EdgeTypeFilter.JSON_PROPERTY_EDGE_TYPES, - EdgeTypeFilter.JSON_PROPERTY_EDGE_NAME_FILTER + EdgeTypeFilter.JSON_PROPERTY_EDGE_NAME_FILTER, + EdgeTypeFilter.JSON_PROPERTY_EDGE_TYPE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.20.0") @JsonIgnoreProperties( @@ -54,10 +54,6 @@ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", visible = true) public class EdgeTypeFilter extends EntityFilter { - public static final String JSON_PROPERTY_EDGE_TYPE = "edgeType"; - @javax.annotation.Nullable - private String edgeType; - public static final String JSON_PROPERTY_EDGE_TYPES = "edgeTypes"; @javax.annotation.Nullable private List edgeTypes = new ArrayList<>(); @@ -66,35 +62,13 @@ public class EdgeTypeFilter extends EntityFilter { @javax.annotation.Nullable private String edgeNameFilter; - public EdgeTypeFilter() { - } - - public EdgeTypeFilter edgeType(@javax.annotation.Nullable String edgeType) { - this.edgeType = edgeType; - return this; - } - - /** - * Get edgeType - * @return edgeType - * @deprecated - */ - @Deprecated + public static final String JSON_PROPERTY_EDGE_TYPE = "edgeType"; @javax.annotation.Nullable - @JsonProperty(value = JSON_PROPERTY_EDGE_TYPE, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getEdgeType() { - return edgeType; - } - + private String edgeType; - @JsonProperty(value = JSON_PROPERTY_EDGE_TYPE, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEdgeType(@javax.annotation.Nullable String edgeType) { - this.edgeType = edgeType; + public EdgeTypeFilter() { } - public EdgeTypeFilter edgeTypes(@javax.annotation.Nullable List edgeTypes) { this.edgeTypes = edgeTypes; return this; @@ -151,6 +125,32 @@ public void setEdgeNameFilter(@javax.annotation.Nullable String edgeNameFilter) } + public EdgeTypeFilter edgeType(@javax.annotation.Nullable String edgeType) { + this.edgeType = edgeType; + return this; + } + + /** + * Get edgeType + * @return edgeType + * @deprecated + */ + @Deprecated + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_EDGE_TYPE, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getEdgeType() { + return edgeType; + } + + + @JsonProperty(value = JSON_PROPERTY_EDGE_TYPE, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEdgeType(@javax.annotation.Nullable String edgeType) { + this.edgeType = edgeType; + } + + @Override public EdgeTypeFilter type(@javax.annotation.Nonnull String type) { this.setType(type); @@ -169,15 +169,15 @@ public boolean equals(Object o) { return false; } EdgeTypeFilter edgeTypeFilter = (EdgeTypeFilter) o; - return Objects.equals(this.edgeType, edgeTypeFilter.edgeType) && - Objects.equals(this.edgeTypes, edgeTypeFilter.edgeTypes) && + return Objects.equals(this.edgeTypes, edgeTypeFilter.edgeTypes) && Objects.equals(this.edgeNameFilter, edgeTypeFilter.edgeNameFilter) && + Objects.equals(this.edgeType, edgeTypeFilter.edgeType) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(edgeType, edgeTypes, edgeNameFilter, super.hashCode()); + return Objects.hash(edgeTypes, edgeNameFilter, edgeType, super.hashCode()); } @Override @@ -185,9 +185,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class EdgeTypeFilter {\n"); sb.append(" ").append(toIndentedString(super.toString())).append("\n"); - sb.append(" edgeType: ").append(toIndentedString(edgeType)).append("\n"); sb.append(" edgeTypes: ").append(toIndentedString(edgeTypes)).append("\n"); sb.append(" edgeNameFilter: ").append(toIndentedString(edgeNameFilter)).append("\n"); + sb.append(" edgeType: ").append(toIndentedString(edgeType)).append("\n"); sb.append("}"); return sb.toString(); } @@ -240,11 +240,6 @@ public String toUrlQueryString(String prefix) { joiner.add(String.format(java.util.Locale.ROOT, "%stype%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getType())))); } - // add `edgeType` to the URL query string - if (getEdgeType() != null) { - joiner.add(String.format(java.util.Locale.ROOT, "%sedgeType%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getEdgeType())))); - } - // add `edgeTypes` to the URL query string if (getEdgeTypes() != null) { for (int i = 0; i < getEdgeTypes().size(); i++) { @@ -259,6 +254,11 @@ public String toUrlQueryString(String prefix) { joiner.add(String.format(java.util.Locale.ROOT, "%sedgeNameFilter%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getEdgeNameFilter())))); } + // add `edgeType` to the URL query string + if (getEdgeType() != null) { + joiner.add(String.format(java.util.Locale.ROOT, "%sedgeType%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getEdgeType())))); + } + return joiner.toString(); } static { diff --git a/paas/src/main/java/org/thingsboard/client/model/EntityAggregationCalculatedFieldConfiguration.java b/paas/src/main/java/org/thingsboard/client/model/EntityAggregationCalculatedFieldConfiguration.java index 381b5497..e44bb987 100644 --- a/paas/src/main/java/org/thingsboard/client/model/EntityAggregationCalculatedFieldConfiguration.java +++ b/paas/src/main/java/org/thingsboard/client/model/EntityAggregationCalculatedFieldConfiguration.java @@ -220,6 +220,12 @@ public void setProduceIntermediateResult(@javax.annotation.Nullable Boolean prod } + @Override + public EntityAggregationCalculatedFieldConfiguration aiGenerated(@javax.annotation.Nullable Boolean aiGenerated) { + this.setAiGenerated(aiGenerated); + return this; + } + @Override public EntityAggregationCalculatedFieldConfiguration output(@javax.annotation.Nonnull Output output) { this.setOutput(output); @@ -314,6 +320,11 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); + // add `aiGenerated` to the URL query string + if (getAiGenerated() != null) { + joiner.add(String.format(java.util.Locale.ROOT, "%saiGenerated%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getAiGenerated())))); + } + // add `output` to the URL query string if (getOutput() != null) { joiner.add(getOutput().toUrlQueryString(prefix + "output" + suffix)); diff --git a/paas/src/main/java/org/thingsboard/client/model/EntityGroup.java b/paas/src/main/java/org/thingsboard/client/model/EntityGroup.java index f7a1bfab..bfea9676 100644 --- a/paas/src/main/java/org/thingsboard/client/model/EntityGroup.java +++ b/paas/src/main/java/org/thingsboard/client/model/EntityGroup.java @@ -361,7 +361,7 @@ public EntityGroup additionalInfo(@javax.annotation.Nullable com.fasterxml.jacks } /** - * Arbitrary JSON with additional information about the group + * Additional parameters of the entity group. May include: 'description' (string), 'isPublic' (boolean, whether this group is shared publicly), 'publicCustomerId' (string, UUID of the public customer associated with this group). * @return additionalInfo */ @javax.annotation.Nullable diff --git a/paas/src/main/java/org/thingsboard/client/model/EntityGroupInfo.java b/paas/src/main/java/org/thingsboard/client/model/EntityGroupInfo.java index d080fb0c..98a2b668 100644 --- a/paas/src/main/java/org/thingsboard/client/model/EntityGroupInfo.java +++ b/paas/src/main/java/org/thingsboard/client/model/EntityGroupInfo.java @@ -369,7 +369,7 @@ public EntityGroupInfo additionalInfo(@javax.annotation.Nullable com.fasterxml.j } /** - * Arbitrary JSON with additional information about the group + * Additional parameters of the entity group. May include: 'description' (string), 'isPublic' (boolean, whether this group is shared publicly), 'publicCustomerId' (string, UUID of the public customer associated with this group). * @return additionalInfo */ @javax.annotation.Nullable diff --git a/paas/src/main/java/org/thingsboard/client/model/EntityRelation.java b/paas/src/main/java/org/thingsboard/client/model/EntityRelation.java index 839163cd..ba971f99 100644 --- a/paas/src/main/java/org/thingsboard/client/model/EntityRelation.java +++ b/paas/src/main/java/org/thingsboard/client/model/EntityRelation.java @@ -199,7 +199,7 @@ public EntityRelation additionalInfo(@javax.annotation.Nullable com.fasterxml.ja } /** - * Additional parameters of the relation + * Additional parameters of the relation. * @return additionalInfo */ @javax.annotation.Nullable diff --git a/paas/src/main/java/org/thingsboard/client/model/EntityRelationInfo.java b/paas/src/main/java/org/thingsboard/client/model/EntityRelationInfo.java index 842257ed..18e0df33 100644 --- a/paas/src/main/java/org/thingsboard/client/model/EntityRelationInfo.java +++ b/paas/src/main/java/org/thingsboard/client/model/EntityRelationInfo.java @@ -247,7 +247,7 @@ public EntityRelationInfo additionalInfo(@javax.annotation.Nullable com.fasterxm } /** - * Additional parameters of the relation + * Additional parameters of the relation. * @return additionalInfo */ @javax.annotation.Nullable diff --git a/paas/src/main/java/org/thingsboard/client/model/EntityView.java b/paas/src/main/java/org/thingsboard/client/model/EntityView.java index 52560a23..7f9479a2 100644 --- a/paas/src/main/java/org/thingsboard/client/model/EntityView.java +++ b/paas/src/main/java/org/thingsboard/client/model/EntityView.java @@ -379,7 +379,7 @@ public EntityView additionalInfo(@javax.annotation.Nullable com.fasterxml.jackso } /** - * Additional parameters of the device + * Additional parameters of the entity view. May include: 'description' (string). * @return additionalInfo */ @javax.annotation.Nullable diff --git a/paas/src/main/java/org/thingsboard/client/model/EntityViewInfo.java b/paas/src/main/java/org/thingsboard/client/model/EntityViewInfo.java index de60a965..74c8e402 100644 --- a/paas/src/main/java/org/thingsboard/client/model/EntityViewInfo.java +++ b/paas/src/main/java/org/thingsboard/client/model/EntityViewInfo.java @@ -440,7 +440,7 @@ public EntityViewInfo additionalInfo(@javax.annotation.Nullable com.fasterxml.ja } /** - * Additional parameters of the device + * Additional parameters of the entity view. May include: 'description' (string). * @return additionalInfo */ @javax.annotation.Nullable diff --git a/paas/src/main/java/org/thingsboard/client/model/EntityViewTypeFilter.java b/paas/src/main/java/org/thingsboard/client/model/EntityViewTypeFilter.java index e8bd7482..484da5e6 100644 --- a/paas/src/main/java/org/thingsboard/client/model/EntityViewTypeFilter.java +++ b/paas/src/main/java/org/thingsboard/client/model/EntityViewTypeFilter.java @@ -42,9 +42,9 @@ * EntityViewTypeFilter */ @JsonPropertyOrder({ - EntityViewTypeFilter.JSON_PROPERTY_ENTITY_VIEW_TYPE, EntityViewTypeFilter.JSON_PROPERTY_ENTITY_VIEW_TYPES, - EntityViewTypeFilter.JSON_PROPERTY_ENTITY_VIEW_NAME_FILTER + EntityViewTypeFilter.JSON_PROPERTY_ENTITY_VIEW_NAME_FILTER, + EntityViewTypeFilter.JSON_PROPERTY_ENTITY_VIEW_TYPE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.20.0") @JsonIgnoreProperties( @@ -54,10 +54,6 @@ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", visible = true) public class EntityViewTypeFilter extends EntityFilter { - public static final String JSON_PROPERTY_ENTITY_VIEW_TYPE = "entityViewType"; - @javax.annotation.Nullable - private String entityViewType; - public static final String JSON_PROPERTY_ENTITY_VIEW_TYPES = "entityViewTypes"; @javax.annotation.Nullable private List entityViewTypes = new ArrayList<>(); @@ -66,35 +62,13 @@ public class EntityViewTypeFilter extends EntityFilter { @javax.annotation.Nullable private String entityViewNameFilter; - public EntityViewTypeFilter() { - } - - public EntityViewTypeFilter entityViewType(@javax.annotation.Nullable String entityViewType) { - this.entityViewType = entityViewType; - return this; - } - - /** - * Get entityViewType - * @return entityViewType - * @deprecated - */ - @Deprecated + public static final String JSON_PROPERTY_ENTITY_VIEW_TYPE = "entityViewType"; @javax.annotation.Nullable - @JsonProperty(value = JSON_PROPERTY_ENTITY_VIEW_TYPE, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getEntityViewType() { - return entityViewType; - } - + private String entityViewType; - @JsonProperty(value = JSON_PROPERTY_ENTITY_VIEW_TYPE, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEntityViewType(@javax.annotation.Nullable String entityViewType) { - this.entityViewType = entityViewType; + public EntityViewTypeFilter() { } - public EntityViewTypeFilter entityViewTypes(@javax.annotation.Nullable List entityViewTypes) { this.entityViewTypes = entityViewTypes; return this; @@ -151,6 +125,32 @@ public void setEntityViewNameFilter(@javax.annotation.Nullable String entityView } + public EntityViewTypeFilter entityViewType(@javax.annotation.Nullable String entityViewType) { + this.entityViewType = entityViewType; + return this; + } + + /** + * Get entityViewType + * @return entityViewType + * @deprecated + */ + @Deprecated + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_ENTITY_VIEW_TYPE, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getEntityViewType() { + return entityViewType; + } + + + @JsonProperty(value = JSON_PROPERTY_ENTITY_VIEW_TYPE, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEntityViewType(@javax.annotation.Nullable String entityViewType) { + this.entityViewType = entityViewType; + } + + @Override public EntityViewTypeFilter type(@javax.annotation.Nonnull String type) { this.setType(type); @@ -169,15 +169,15 @@ public boolean equals(Object o) { return false; } EntityViewTypeFilter entityViewTypeFilter = (EntityViewTypeFilter) o; - return Objects.equals(this.entityViewType, entityViewTypeFilter.entityViewType) && - Objects.equals(this.entityViewTypes, entityViewTypeFilter.entityViewTypes) && + return Objects.equals(this.entityViewTypes, entityViewTypeFilter.entityViewTypes) && Objects.equals(this.entityViewNameFilter, entityViewTypeFilter.entityViewNameFilter) && + Objects.equals(this.entityViewType, entityViewTypeFilter.entityViewType) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(entityViewType, entityViewTypes, entityViewNameFilter, super.hashCode()); + return Objects.hash(entityViewTypes, entityViewNameFilter, entityViewType, super.hashCode()); } @Override @@ -185,9 +185,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class EntityViewTypeFilter {\n"); sb.append(" ").append(toIndentedString(super.toString())).append("\n"); - sb.append(" entityViewType: ").append(toIndentedString(entityViewType)).append("\n"); sb.append(" entityViewTypes: ").append(toIndentedString(entityViewTypes)).append("\n"); sb.append(" entityViewNameFilter: ").append(toIndentedString(entityViewNameFilter)).append("\n"); + sb.append(" entityViewType: ").append(toIndentedString(entityViewType)).append("\n"); sb.append("}"); return sb.toString(); } @@ -240,11 +240,6 @@ public String toUrlQueryString(String prefix) { joiner.add(String.format(java.util.Locale.ROOT, "%stype%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getType())))); } - // add `entityViewType` to the URL query string - if (getEntityViewType() != null) { - joiner.add(String.format(java.util.Locale.ROOT, "%sentityViewType%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getEntityViewType())))); - } - // add `entityViewTypes` to the URL query string if (getEntityViewTypes() != null) { for (int i = 0; i < getEntityViewTypes().size(); i++) { @@ -259,6 +254,11 @@ public String toUrlQueryString(String prefix) { joiner.add(String.format(java.util.Locale.ROOT, "%sentityViewNameFilter%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getEntityViewNameFilter())))); } + // add `entityViewType` to the URL query string + if (getEntityViewType() != null) { + joiner.add(String.format(java.util.Locale.ROOT, "%sentityViewType%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getEntityViewType())))); + } + return joiner.toString(); } static { diff --git a/paas/src/main/java/org/thingsboard/client/model/FeaturesInfo.java b/paas/src/main/java/org/thingsboard/client/model/FeaturesInfo.java index ba95bd5a..eab34c56 100644 --- a/paas/src/main/java/org/thingsboard/client/model/FeaturesInfo.java +++ b/paas/src/main/java/org/thingsboard/client/model/FeaturesInfo.java @@ -37,10 +37,10 @@ @JsonPropertyOrder({ FeaturesInfo.JSON_PROPERTY_SMS_ENABLED, FeaturesInfo.JSON_PROPERTY_OAUTH_ENABLED, + FeaturesInfo.JSON_PROPERTY_NOTIFICATION_ENABLED, FeaturesInfo.JSON_PROPERTY_WHITE_LABELING_ENABLED, FeaturesInfo.JSON_PROPERTY_TWO_FA_ENABLED, - FeaturesInfo.JSON_PROPERTY_EMAIL_ENABLED, - FeaturesInfo.JSON_PROPERTY_NOTIFICATION_ENABLED + FeaturesInfo.JSON_PROPERTY_EMAIL_ENABLED }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.20.0") public class FeaturesInfo { @@ -52,6 +52,10 @@ public class FeaturesInfo { @javax.annotation.Nullable private Boolean oauthEnabled; + public static final String JSON_PROPERTY_NOTIFICATION_ENABLED = "notificationEnabled"; + @javax.annotation.Nullable + private Boolean notificationEnabled; + public static final String JSON_PROPERTY_WHITE_LABELING_ENABLED = "whiteLabelingEnabled"; @javax.annotation.Nullable private Boolean whiteLabelingEnabled; @@ -64,10 +68,6 @@ public class FeaturesInfo { @javax.annotation.Nullable private Boolean emailEnabled; - public static final String JSON_PROPERTY_NOTIFICATION_ENABLED = "notificationEnabled"; - @javax.annotation.Nullable - private Boolean notificationEnabled; - public FeaturesInfo() { } @@ -119,6 +119,30 @@ public void setOauthEnabled(@javax.annotation.Nullable Boolean oauthEnabled) { } + public FeaturesInfo notificationEnabled(@javax.annotation.Nullable Boolean notificationEnabled) { + this.notificationEnabled = notificationEnabled; + return this; + } + + /** + * Get notificationEnabled + * @return notificationEnabled + */ + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_NOTIFICATION_ENABLED, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getNotificationEnabled() { + return notificationEnabled; + } + + + @JsonProperty(value = JSON_PROPERTY_NOTIFICATION_ENABLED, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setNotificationEnabled(@javax.annotation.Nullable Boolean notificationEnabled) { + this.notificationEnabled = notificationEnabled; + } + + public FeaturesInfo whiteLabelingEnabled(@javax.annotation.Nullable Boolean whiteLabelingEnabled) { this.whiteLabelingEnabled = whiteLabelingEnabled; return this; @@ -191,30 +215,6 @@ public void setEmailEnabled(@javax.annotation.Nullable Boolean emailEnabled) { } - public FeaturesInfo notificationEnabled(@javax.annotation.Nullable Boolean notificationEnabled) { - this.notificationEnabled = notificationEnabled; - return this; - } - - /** - * Get notificationEnabled - * @return notificationEnabled - */ - @javax.annotation.Nullable - @JsonProperty(value = JSON_PROPERTY_NOTIFICATION_ENABLED, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getNotificationEnabled() { - return notificationEnabled; - } - - - @JsonProperty(value = JSON_PROPERTY_NOTIFICATION_ENABLED, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNotificationEnabled(@javax.annotation.Nullable Boolean notificationEnabled) { - this.notificationEnabled = notificationEnabled; - } - - /** * Return true if this FeaturesInfo object is equal to o. */ @@ -229,15 +229,15 @@ public boolean equals(Object o) { FeaturesInfo featuresInfo = (FeaturesInfo) o; return Objects.equals(this.smsEnabled, featuresInfo.smsEnabled) && Objects.equals(this.oauthEnabled, featuresInfo.oauthEnabled) && + Objects.equals(this.notificationEnabled, featuresInfo.notificationEnabled) && Objects.equals(this.whiteLabelingEnabled, featuresInfo.whiteLabelingEnabled) && Objects.equals(this.twoFaEnabled, featuresInfo.twoFaEnabled) && - Objects.equals(this.emailEnabled, featuresInfo.emailEnabled) && - Objects.equals(this.notificationEnabled, featuresInfo.notificationEnabled); + Objects.equals(this.emailEnabled, featuresInfo.emailEnabled); } @Override public int hashCode() { - return Objects.hash(smsEnabled, oauthEnabled, whiteLabelingEnabled, twoFaEnabled, emailEnabled, notificationEnabled); + return Objects.hash(smsEnabled, oauthEnabled, notificationEnabled, whiteLabelingEnabled, twoFaEnabled, emailEnabled); } @Override @@ -246,10 +246,10 @@ public String toString() { sb.append("class FeaturesInfo {\n"); sb.append(" smsEnabled: ").append(toIndentedString(smsEnabled)).append("\n"); sb.append(" oauthEnabled: ").append(toIndentedString(oauthEnabled)).append("\n"); + sb.append(" notificationEnabled: ").append(toIndentedString(notificationEnabled)).append("\n"); sb.append(" whiteLabelingEnabled: ").append(toIndentedString(whiteLabelingEnabled)).append("\n"); sb.append(" twoFaEnabled: ").append(toIndentedString(twoFaEnabled)).append("\n"); sb.append(" emailEnabled: ").append(toIndentedString(emailEnabled)).append("\n"); - sb.append(" notificationEnabled: ").append(toIndentedString(notificationEnabled)).append("\n"); sb.append("}"); return sb.toString(); } @@ -307,6 +307,11 @@ public String toUrlQueryString(String prefix) { joiner.add(String.format(java.util.Locale.ROOT, "%soauthEnabled%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getOauthEnabled())))); } + // add `notificationEnabled` to the URL query string + if (getNotificationEnabled() != null) { + joiner.add(String.format(java.util.Locale.ROOT, "%snotificationEnabled%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getNotificationEnabled())))); + } + // add `whiteLabelingEnabled` to the URL query string if (getWhiteLabelingEnabled() != null) { joiner.add(String.format(java.util.Locale.ROOT, "%swhiteLabelingEnabled%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getWhiteLabelingEnabled())))); @@ -322,11 +327,6 @@ public String toUrlQueryString(String prefix) { joiner.add(String.format(java.util.Locale.ROOT, "%semailEnabled%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getEmailEnabled())))); } - // add `notificationEnabled` to the URL query string - if (getNotificationEnabled() != null) { - joiner.add(String.format(java.util.Locale.ROOT, "%snotificationEnabled%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getNotificationEnabled())))); - } - return joiner.toString(); } } diff --git a/paas/src/main/java/org/thingsboard/client/model/GeofencingCalculatedFieldConfiguration.java b/paas/src/main/java/org/thingsboard/client/model/GeofencingCalculatedFieldConfiguration.java index dd8783e0..60f0a24e 100644 --- a/paas/src/main/java/org/thingsboard/client/model/GeofencingCalculatedFieldConfiguration.java +++ b/paas/src/main/java/org/thingsboard/client/model/GeofencingCalculatedFieldConfiguration.java @@ -181,6 +181,12 @@ public void setScheduledUpdateInterval(@javax.annotation.Nullable Integer schedu } + @Override + public GeofencingCalculatedFieldConfiguration aiGenerated(@javax.annotation.Nullable Boolean aiGenerated) { + this.setAiGenerated(aiGenerated); + return this; + } + @Override public GeofencingCalculatedFieldConfiguration output(@javax.annotation.Nonnull Output output) { this.setOutput(output); @@ -273,6 +279,11 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); + // add `aiGenerated` to the URL query string + if (getAiGenerated() != null) { + joiner.add(String.format(java.util.Locale.ROOT, "%saiGenerated%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getAiGenerated())))); + } + // add `output` to the URL query string if (getOutput() != null) { joiner.add(getOutput().toUrlQueryString(prefix + "output" + suffix)); diff --git a/paas/src/main/java/org/thingsboard/client/model/GroupPermission.java b/paas/src/main/java/org/thingsboard/client/model/GroupPermission.java index 4bf047c3..94ced734 100644 --- a/paas/src/main/java/org/thingsboard/client/model/GroupPermission.java +++ b/paas/src/main/java/org/thingsboard/client/model/GroupPermission.java @@ -58,11 +58,11 @@ public class GroupPermission { private TenantId tenantId; public static final String JSON_PROPERTY_USER_GROUP_ID = "userGroupId"; - @javax.annotation.Nullable + @javax.annotation.Nonnull private EntityGroupId userGroupId; public static final String JSON_PROPERTY_ROLE_ID = "roleId"; - @javax.annotation.Nullable + @javax.annotation.Nonnull private RoleId roleId; public static final String JSON_PROPERTY_ENTITY_GROUP_ID = "entityGroupId"; @@ -99,11 +99,13 @@ public GroupPermission() { @JsonCreator public GroupPermission( @JsonProperty(JSON_PROPERTY_TENANT_ID) TenantId tenantId, + @JsonProperty(JSON_PROPERTY_ENTITY_GROUP_TYPE) EntityType entityGroupType, @JsonProperty(JSON_PROPERTY_CREATED_TIME) Long createdTime, @JsonProperty(JSON_PROPERTY_NAME) String name ) { this(); this.tenantId = tenantId; + this.entityGroupType = entityGroupType; this.createdTime = createdTime; this.name = name; } @@ -122,50 +124,50 @@ public TenantId getTenantId() { - public GroupPermission userGroupId(@javax.annotation.Nullable EntityGroupId userGroupId) { + public GroupPermission userGroupId(@javax.annotation.Nonnull EntityGroupId userGroupId) { this.userGroupId = userGroupId; return this; } /** - * JSON object with the User Group Id. Represent user group that will have permissions to perform operations against corresponding Entity Group. + * JSON object with the User Group Id. Represents the user group that will have permissions to perform operations against the corresponding entity group. * @return userGroupId */ - @javax.annotation.Nullable - @JsonProperty(value = JSON_PROPERTY_USER_GROUP_ID, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @javax.annotation.Nonnull + @JsonProperty(value = JSON_PROPERTY_USER_GROUP_ID, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public EntityGroupId getUserGroupId() { return userGroupId; } - @JsonProperty(value = JSON_PROPERTY_USER_GROUP_ID, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUserGroupId(@javax.annotation.Nullable EntityGroupId userGroupId) { + @JsonProperty(value = JSON_PROPERTY_USER_GROUP_ID, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setUserGroupId(@javax.annotation.Nonnull EntityGroupId userGroupId) { this.userGroupId = userGroupId; } - public GroupPermission roleId(@javax.annotation.Nullable RoleId roleId) { + public GroupPermission roleId(@javax.annotation.Nonnull RoleId roleId) { this.roleId = roleId; return this; } /** - * JSON object with the Role Id. Represent set of permissions. + * JSON object with the Role Id. Represents the set of permissions. The role type (GENERIC or GROUP) determines whether 'entityGroupId' is required. * @return roleId */ - @javax.annotation.Nullable - @JsonProperty(value = JSON_PROPERTY_ROLE_ID, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @javax.annotation.Nonnull + @JsonProperty(value = JSON_PROPERTY_ROLE_ID, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public RoleId getRoleId() { return roleId; } - @JsonProperty(value = JSON_PROPERTY_ROLE_ID, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRoleId(@javax.annotation.Nullable RoleId roleId) { + @JsonProperty(value = JSON_PROPERTY_ROLE_ID, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setRoleId(@javax.annotation.Nonnull RoleId roleId) { this.roleId = roleId; } @@ -176,7 +178,7 @@ public GroupPermission entityGroupId(@javax.annotation.Nullable EntityGroupId en } /** - * JSON object with the Entity Group Id. Represent entity (device, asset, etc.) group. + * JSON object with the Entity Group Id. Required when using a GROUP role — specifies the entity group to which the permissions apply. Must be null or omitted when using a GENERIC role. * @return entityGroupId */ @javax.annotation.Nullable @@ -194,13 +196,8 @@ public void setEntityGroupId(@javax.annotation.Nullable EntityGroupId entityGrou } - public GroupPermission entityGroupType(@javax.annotation.Nullable EntityType entityGroupType) { - this.entityGroupType = entityGroupType; - return this; - } - /** - * Type of the entities in the group: DEVICE, ASSET, CUSTOMER, etc. + * Type of the entities in the group: DEVICE, ASSET, CUSTOMER, etc. Auto-populated from the referenced entity group. Null for generic permissions. * @return entityGroupType */ @javax.annotation.Nullable @@ -211,11 +208,6 @@ public EntityType getEntityGroupType() { } - @JsonProperty(value = JSON_PROPERTY_ENTITY_GROUP_TYPE, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEntityGroupType(@javax.annotation.Nullable EntityType entityGroupType) { - this.entityGroupType = entityGroupType; - } public GroupPermission isPublic(@javax.annotation.Nullable Boolean isPublic) { diff --git a/paas/src/main/java/org/thingsboard/client/model/GroupPermissionInfo.java b/paas/src/main/java/org/thingsboard/client/model/GroupPermissionInfo.java index 3baf5001..f5661eff 100644 --- a/paas/src/main/java/org/thingsboard/client/model/GroupPermissionInfo.java +++ b/paas/src/main/java/org/thingsboard/client/model/GroupPermissionInfo.java @@ -75,11 +75,11 @@ public class GroupPermissionInfo { private TenantId tenantId; public static final String JSON_PROPERTY_USER_GROUP_ID = "userGroupId"; - @javax.annotation.Nullable + @javax.annotation.Nonnull private EntityGroupId userGroupId; public static final String JSON_PROPERTY_ROLE_ID = "roleId"; - @javax.annotation.Nullable + @javax.annotation.Nonnull private RoleId roleId; public static final String JSON_PROPERTY_ENTITY_GROUP_ID = "entityGroupId"; @@ -137,11 +137,13 @@ public GroupPermissionInfo() { public GroupPermissionInfo( @JsonProperty(JSON_PROPERTY_CREATED_TIME) Long createdTime, @JsonProperty(JSON_PROPERTY_TENANT_ID) TenantId tenantId, + @JsonProperty(JSON_PROPERTY_ENTITY_GROUP_TYPE) EntityType entityGroupType, @JsonProperty(JSON_PROPERTY_NAME) String name ) { this(); this.createdTime = createdTime; this.tenantId = tenantId; + this.entityGroupType = entityGroupType; this.name = name; } @@ -197,50 +199,50 @@ public TenantId getTenantId() { - public GroupPermissionInfo userGroupId(@javax.annotation.Nullable EntityGroupId userGroupId) { + public GroupPermissionInfo userGroupId(@javax.annotation.Nonnull EntityGroupId userGroupId) { this.userGroupId = userGroupId; return this; } /** - * JSON object with the User Group Id. Represent user group that will have permissions to perform operations against corresponding Entity Group. + * JSON object with the User Group Id. Represents the user group that will have permissions to perform operations against the corresponding entity group. * @return userGroupId */ - @javax.annotation.Nullable - @JsonProperty(value = JSON_PROPERTY_USER_GROUP_ID, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @javax.annotation.Nonnull + @JsonProperty(value = JSON_PROPERTY_USER_GROUP_ID, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public EntityGroupId getUserGroupId() { return userGroupId; } - @JsonProperty(value = JSON_PROPERTY_USER_GROUP_ID, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUserGroupId(@javax.annotation.Nullable EntityGroupId userGroupId) { + @JsonProperty(value = JSON_PROPERTY_USER_GROUP_ID, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setUserGroupId(@javax.annotation.Nonnull EntityGroupId userGroupId) { this.userGroupId = userGroupId; } - public GroupPermissionInfo roleId(@javax.annotation.Nullable RoleId roleId) { + public GroupPermissionInfo roleId(@javax.annotation.Nonnull RoleId roleId) { this.roleId = roleId; return this; } /** - * JSON object with the Role Id. Represent set of permissions. + * JSON object with the Role Id. Represents the set of permissions. The role type (GENERIC or GROUP) determines whether 'entityGroupId' is required. * @return roleId */ - @javax.annotation.Nullable - @JsonProperty(value = JSON_PROPERTY_ROLE_ID, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @javax.annotation.Nonnull + @JsonProperty(value = JSON_PROPERTY_ROLE_ID, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public RoleId getRoleId() { return roleId; } - @JsonProperty(value = JSON_PROPERTY_ROLE_ID, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRoleId(@javax.annotation.Nullable RoleId roleId) { + @JsonProperty(value = JSON_PROPERTY_ROLE_ID, required = true) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setRoleId(@javax.annotation.Nonnull RoleId roleId) { this.roleId = roleId; } @@ -251,7 +253,7 @@ public GroupPermissionInfo entityGroupId(@javax.annotation.Nullable EntityGroupI } /** - * JSON object with the Entity Group Id. Represent entity (device, asset, etc.) group. + * JSON object with the Entity Group Id. Required when using a GROUP role — specifies the entity group to which the permissions apply. Must be null or omitted when using a GENERIC role. * @return entityGroupId */ @javax.annotation.Nullable @@ -269,13 +271,8 @@ public void setEntityGroupId(@javax.annotation.Nullable EntityGroupId entityGrou } - public GroupPermissionInfo entityGroupType(@javax.annotation.Nullable EntityType entityGroupType) { - this.entityGroupType = entityGroupType; - return this; - } - /** - * Type of the entities in the group: DEVICE, ASSET, CUSTOMER, etc. + * Type of the entities in the group: DEVICE, ASSET, CUSTOMER, etc. Auto-populated from the referenced entity group. Null for generic permissions. * @return entityGroupType */ @javax.annotation.Nullable @@ -286,11 +283,6 @@ public EntityType getEntityGroupType() { } - @JsonProperty(value = JSON_PROPERTY_ENTITY_GROUP_TYPE, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setEntityGroupType(@javax.annotation.Nullable EntityType entityGroupType) { - this.entityGroupType = entityGroupType; - } public GroupPermissionInfo role(@javax.annotation.Nullable Role role) { diff --git a/paas/src/main/java/org/thingsboard/client/model/LoginWhiteLabelingParams.java b/paas/src/main/java/org/thingsboard/client/model/LoginWhiteLabelingParams.java index bde36c8f..925dc15b 100644 --- a/paas/src/main/java/org/thingsboard/client/model/LoginWhiteLabelingParams.java +++ b/paas/src/main/java/org/thingsboard/client/model/LoginWhiteLabelingParams.java @@ -53,6 +53,7 @@ LoginWhiteLabelingParams.JSON_PROPERTY_CUSTOM_CSS, LoginWhiteLabelingParams.JSON_PROPERTY_HIDE_CONNECTIVITY_DIALOG, LoginWhiteLabelingParams.JSON_PROPERTY_OVERRIDE_TRENDZ_NAME, + LoginWhiteLabelingParams.JSON_PROPERTY_HIDE_CHAT_BOT, LoginWhiteLabelingParams.JSON_PROPERTY_PAGE_BACKGROUND_COLOR, LoginWhiteLabelingParams.JSON_PROPERTY_DARK_FOREGROUND, LoginWhiteLabelingParams.JSON_PROPERTY_DOMAIN_ID, @@ -123,6 +124,10 @@ public class LoginWhiteLabelingParams { @javax.annotation.Nullable private Boolean overrideTrendzName; + public static final String JSON_PROPERTY_HIDE_CHAT_BOT = "hideChatBot"; + @javax.annotation.Nullable + private Boolean hideChatBot; + public static final String JSON_PROPERTY_PAGE_BACKGROUND_COLOR = "pageBackgroundColor"; @javax.annotation.Nullable private String pageBackgroundColor; @@ -512,6 +517,30 @@ public void setOverrideTrendzName(@javax.annotation.Nullable Boolean overrideTre } + public LoginWhiteLabelingParams hideChatBot(@javax.annotation.Nullable Boolean hideChatBot) { + this.hideChatBot = hideChatBot; + return this; + } + + /** + * Hide chat bot + * @return hideChatBot + */ + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_HIDE_CHAT_BOT, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getHideChatBot() { + return hideChatBot; + } + + + @JsonProperty(value = JSON_PROPERTY_HIDE_CHAT_BOT, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setHideChatBot(@javax.annotation.Nullable Boolean hideChatBot) { + this.hideChatBot = hideChatBot; + } + + public LoginWhiteLabelingParams pageBackgroundColor(@javax.annotation.Nullable String pageBackgroundColor) { this.pageBackgroundColor = pageBackgroundColor; return this; @@ -707,6 +736,7 @@ public boolean equals(Object o) { Objects.equals(this.customCss, loginWhiteLabelingParams.customCss) && Objects.equals(this.hideConnectivityDialog, loginWhiteLabelingParams.hideConnectivityDialog) && Objects.equals(this.overrideTrendzName, loginWhiteLabelingParams.overrideTrendzName) && + Objects.equals(this.hideChatBot, loginWhiteLabelingParams.hideChatBot) && Objects.equals(this.pageBackgroundColor, loginWhiteLabelingParams.pageBackgroundColor) && Objects.equals(this.darkForeground, loginWhiteLabelingParams.darkForeground) && Objects.equals(this.domainId, loginWhiteLabelingParams.domainId) && @@ -718,7 +748,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(logoImageUrl, logoImageHeight, appTitle, favicon, paletteSettings, helpLinkBaseUrl, uiHelpBaseUrl, enableHelpLinks, whiteLabelingEnabled, showNameVersion, platformName, platformVersion, customCss, hideConnectivityDialog, overrideTrendzName, pageBackgroundColor, darkForeground, domainId, baseUrl, prohibitDifferentUrl, adminSettingsId, showNameBottom); + return Objects.hash(logoImageUrl, logoImageHeight, appTitle, favicon, paletteSettings, helpLinkBaseUrl, uiHelpBaseUrl, enableHelpLinks, whiteLabelingEnabled, showNameVersion, platformName, platformVersion, customCss, hideConnectivityDialog, overrideTrendzName, hideChatBot, pageBackgroundColor, darkForeground, domainId, baseUrl, prohibitDifferentUrl, adminSettingsId, showNameBottom); } @Override @@ -740,6 +770,7 @@ public String toString() { sb.append(" customCss: ").append(toIndentedString(customCss)).append("\n"); sb.append(" hideConnectivityDialog: ").append(toIndentedString(hideConnectivityDialog)).append("\n"); sb.append(" overrideTrendzName: ").append(toIndentedString(overrideTrendzName)).append("\n"); + sb.append(" hideChatBot: ").append(toIndentedString(hideChatBot)).append("\n"); sb.append(" pageBackgroundColor: ").append(toIndentedString(pageBackgroundColor)).append("\n"); sb.append(" darkForeground: ").append(toIndentedString(darkForeground)).append("\n"); sb.append(" domainId: ").append(toIndentedString(domainId)).append("\n"); @@ -869,6 +900,11 @@ public String toUrlQueryString(String prefix) { joiner.add(String.format(java.util.Locale.ROOT, "%soverrideTrendzName%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getOverrideTrendzName())))); } + // add `hideChatBot` to the URL query string + if (getHideChatBot() != null) { + joiner.add(String.format(java.util.Locale.ROOT, "%shideChatBot%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getHideChatBot())))); + } + // add `pageBackgroundColor` to the URL query string if (getPageBackgroundColor() != null) { joiner.add(String.format(java.util.Locale.ROOT, "%spageBackgroundColor%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getPageBackgroundColor())))); diff --git a/paas/src/main/java/org/thingsboard/client/model/OAuth2Client.java b/paas/src/main/java/org/thingsboard/client/model/OAuth2Client.java index d950441d..f67c506a 100644 --- a/paas/src/main/java/org/thingsboard/client/model/OAuth2Client.java +++ b/paas/src/main/java/org/thingsboard/client/model/OAuth2Client.java @@ -210,7 +210,7 @@ public OAuth2Client additionalInfo(@javax.annotation.Nonnull com.fasterxml.jacks } /** - * Additional info of OAuth2 client (e.g. providerName) + * Additional info of OAuth2 client. Must include: 'providerName' (string, name of the OAuth2 provider). * @return additionalInfo */ @javax.annotation.Nonnull diff --git a/paas/src/main/java/org/thingsboard/client/model/PropagationCalculatedFieldConfiguration.java b/paas/src/main/java/org/thingsboard/client/model/PropagationCalculatedFieldConfiguration.java index f533942a..0484642c 100644 --- a/paas/src/main/java/org/thingsboard/client/model/PropagationCalculatedFieldConfiguration.java +++ b/paas/src/main/java/org/thingsboard/client/model/PropagationCalculatedFieldConfiguration.java @@ -181,6 +181,12 @@ public void setApplyExpressionToResolvedArguments(@javax.annotation.Nullable Boo } + @Override + public PropagationCalculatedFieldConfiguration aiGenerated(@javax.annotation.Nullable Boolean aiGenerated) { + this.setAiGenerated(aiGenerated); + return this; + } + @Override public PropagationCalculatedFieldConfiguration output(@javax.annotation.Nonnull Output output) { this.setOutput(output); @@ -273,6 +279,11 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); + // add `aiGenerated` to the URL query string + if (getAiGenerated() != null) { + joiner.add(String.format(java.util.Locale.ROOT, "%saiGenerated%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getAiGenerated())))); + } + // add `output` to the URL query string if (getOutput() != null) { joiner.add(getOutput().toUrlQueryString(prefix + "output" + suffix)); diff --git a/paas/src/main/java/org/thingsboard/client/model/RelatedEntitiesAggregationCalculatedFieldConfiguration.java b/paas/src/main/java/org/thingsboard/client/model/RelatedEntitiesAggregationCalculatedFieldConfiguration.java index 50d41c5d..322dbec9 100644 --- a/paas/src/main/java/org/thingsboard/client/model/RelatedEntitiesAggregationCalculatedFieldConfiguration.java +++ b/paas/src/main/java/org/thingsboard/client/model/RelatedEntitiesAggregationCalculatedFieldConfiguration.java @@ -277,6 +277,12 @@ public void setScheduledUpdateEnabled(@javax.annotation.Nullable Boolean schedul } + @Override + public RelatedEntitiesAggregationCalculatedFieldConfiguration aiGenerated(@javax.annotation.Nullable Boolean aiGenerated) { + this.setAiGenerated(aiGenerated); + return this; + } + @Override public RelatedEntitiesAggregationCalculatedFieldConfiguration output(@javax.annotation.Nonnull Output output) { this.setOutput(output); @@ -375,6 +381,11 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); + // add `aiGenerated` to the URL query string + if (getAiGenerated() != null) { + joiner.add(String.format(java.util.Locale.ROOT, "%saiGenerated%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getAiGenerated())))); + } + // add `output` to the URL query string if (getOutput() != null) { joiner.add(getOutput().toUrlQueryString(prefix + "output" + suffix)); diff --git a/paas/src/main/java/org/thingsboard/client/model/Role.java b/paas/src/main/java/org/thingsboard/client/model/Role.java index 6eac39fb..83d7b32e 100644 --- a/paas/src/main/java/org/thingsboard/client/model/Role.java +++ b/paas/src/main/java/org/thingsboard/client/model/Role.java @@ -292,7 +292,7 @@ public Role additionalInfo(@javax.annotation.Nullable com.fasterxml.jackson.data } /** - * Additional parameters of the role + * Additional parameters of the role. May include: 'description' (string). * @return additionalInfo */ @javax.annotation.Nullable diff --git a/paas/src/main/java/org/thingsboard/client/model/RuleChainDebugEventFilter.java b/paas/src/main/java/org/thingsboard/client/model/RuleChainDebugEventFilter.java index e139b231..833de14b 100644 --- a/paas/src/main/java/org/thingsboard/client/model/RuleChainDebugEventFilter.java +++ b/paas/src/main/java/org/thingsboard/client/model/RuleChainDebugEventFilter.java @@ -42,9 +42,9 @@ */ @JsonPropertyOrder({ RuleChainDebugEventFilter.JSON_PROPERTY_SERVER, - RuleChainDebugEventFilter.JSON_PROPERTY_IS_ERROR, RuleChainDebugEventFilter.JSON_PROPERTY_ERROR_STR, RuleChainDebugEventFilter.JSON_PROPERTY_MESSAGE, + RuleChainDebugEventFilter.JSON_PROPERTY_IS_ERROR, RuleChainDebugEventFilter.JSON_PROPERTY_ERROR }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.20.0") @@ -59,10 +59,6 @@ public class RuleChainDebugEventFilter extends EventFilter { @javax.annotation.Nullable private String server; - public static final String JSON_PROPERTY_IS_ERROR = "isError"; - @javax.annotation.Nullable - private Boolean isError; - public static final String JSON_PROPERTY_ERROR_STR = "errorStr"; @javax.annotation.Nullable private String errorStr; @@ -71,6 +67,10 @@ public class RuleChainDebugEventFilter extends EventFilter { @javax.annotation.Nullable private String message; + public static final String JSON_PROPERTY_IS_ERROR = "isError"; + @javax.annotation.Nullable + private Boolean isError; + public static final String JSON_PROPERTY_ERROR = "error"; @javax.annotation.Nullable private Boolean error; @@ -102,30 +102,6 @@ public void setServer(@javax.annotation.Nullable String server) { } - public RuleChainDebugEventFilter isError(@javax.annotation.Nullable Boolean isError) { - this.isError = isError; - return this; - } - - /** - * Get isError - * @return isError - */ - @javax.annotation.Nullable - @JsonProperty(value = JSON_PROPERTY_IS_ERROR, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getIsError() { - return isError; - } - - - @JsonProperty(value = JSON_PROPERTY_IS_ERROR, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsError(@javax.annotation.Nullable Boolean isError) { - this.isError = isError; - } - - public RuleChainDebugEventFilter errorStr(@javax.annotation.Nullable String errorStr) { this.errorStr = errorStr; return this; @@ -174,6 +150,30 @@ public void setMessage(@javax.annotation.Nullable String message) { } + public RuleChainDebugEventFilter isError(@javax.annotation.Nullable Boolean isError) { + this.isError = isError; + return this; + } + + /** + * Get isError + * @return isError + */ + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_IS_ERROR, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getIsError() { + return isError; + } + + + @JsonProperty(value = JSON_PROPERTY_IS_ERROR, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIsError(@javax.annotation.Nullable Boolean isError) { + this.isError = isError; + } + + public RuleChainDebugEventFilter error(@javax.annotation.Nullable Boolean error) { this.error = error; return this; @@ -223,16 +223,16 @@ public boolean equals(Object o) { } RuleChainDebugEventFilter ruleChainDebugEventFilter = (RuleChainDebugEventFilter) o; return Objects.equals(this.server, ruleChainDebugEventFilter.server) && - Objects.equals(this.isError, ruleChainDebugEventFilter.isError) && Objects.equals(this.errorStr, ruleChainDebugEventFilter.errorStr) && Objects.equals(this.message, ruleChainDebugEventFilter.message) && + Objects.equals(this.isError, ruleChainDebugEventFilter.isError) && Objects.equals(this.error, ruleChainDebugEventFilter.error) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(server, isError, errorStr, message, error, super.hashCode()); + return Objects.hash(server, errorStr, message, isError, error, super.hashCode()); } @Override @@ -241,9 +241,9 @@ public String toString() { sb.append("class RuleChainDebugEventFilter {\n"); sb.append(" ").append(toIndentedString(super.toString())).append("\n"); sb.append(" server: ").append(toIndentedString(server)).append("\n"); - sb.append(" isError: ").append(toIndentedString(isError)).append("\n"); sb.append(" errorStr: ").append(toIndentedString(errorStr)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" isError: ").append(toIndentedString(isError)).append("\n"); sb.append(" error: ").append(toIndentedString(error)).append("\n"); sb.append("}"); return sb.toString(); @@ -307,11 +307,6 @@ public String toUrlQueryString(String prefix) { joiner.add(String.format(java.util.Locale.ROOT, "%sserver%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getServer())))); } - // add `isError` to the URL query string - if (getIsError() != null) { - joiner.add(String.format(java.util.Locale.ROOT, "%sisError%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getIsError())))); - } - // add `errorStr` to the URL query string if (getErrorStr() != null) { joiner.add(String.format(java.util.Locale.ROOT, "%serrorStr%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getErrorStr())))); @@ -322,6 +317,11 @@ public String toUrlQueryString(String prefix) { joiner.add(String.format(java.util.Locale.ROOT, "%smessage%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getMessage())))); } + // add `isError` to the URL query string + if (getIsError() != null) { + joiner.add(String.format(java.util.Locale.ROOT, "%sisError%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getIsError())))); + } + // add `error` to the URL query string if (getError() != null) { joiner.add(String.format(java.util.Locale.ROOT, "%serror%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getError())))); diff --git a/paas/src/main/java/org/thingsboard/client/model/RuleNode.java b/paas/src/main/java/org/thingsboard/client/model/RuleNode.java index 5c587f30..a4dbb24c 100644 --- a/paas/src/main/java/org/thingsboard/client/model/RuleNode.java +++ b/paas/src/main/java/org/thingsboard/client/model/RuleNode.java @@ -395,7 +395,7 @@ public RuleNode additionalInfo(@javax.annotation.Nullable com.fasterxml.jackson. } /** - * Additional parameters of the rule node. Contains 'layoutX' and 'layoutY' properties for visualization. + * Additional parameters of the rule node. May include: 'layoutX' (number, X coordinate for visualization), 'layoutY' (number, Y coordinate for visualization), 'description' (string). * @return additionalInfo */ @javax.annotation.Nullable diff --git a/paas/src/main/java/org/thingsboard/client/model/RuleNodeDebugEventFilter.java b/paas/src/main/java/org/thingsboard/client/model/RuleNodeDebugEventFilter.java index 74c7f029..2bb03d17 100644 --- a/paas/src/main/java/org/thingsboard/client/model/RuleNodeDebugEventFilter.java +++ b/paas/src/main/java/org/thingsboard/client/model/RuleNodeDebugEventFilter.java @@ -42,7 +42,6 @@ */ @JsonPropertyOrder({ RuleNodeDebugEventFilter.JSON_PROPERTY_SERVER, - RuleNodeDebugEventFilter.JSON_PROPERTY_IS_ERROR, RuleNodeDebugEventFilter.JSON_PROPERTY_ERROR_STR, RuleNodeDebugEventFilter.JSON_PROPERTY_MSG_DIRECTION_TYPE, RuleNodeDebugEventFilter.JSON_PROPERTY_ENTITY_ID, @@ -52,6 +51,7 @@ RuleNodeDebugEventFilter.JSON_PROPERTY_RELATION_TYPE, RuleNodeDebugEventFilter.JSON_PROPERTY_DATA_SEARCH, RuleNodeDebugEventFilter.JSON_PROPERTY_METADATA_SEARCH, + RuleNodeDebugEventFilter.JSON_PROPERTY_IS_ERROR, RuleNodeDebugEventFilter.JSON_PROPERTY_ERROR }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.20.0") @@ -66,10 +66,6 @@ public class RuleNodeDebugEventFilter extends EventFilter { @javax.annotation.Nullable private String server; - public static final String JSON_PROPERTY_IS_ERROR = "isError"; - @javax.annotation.Nullable - private Boolean isError; - public static final String JSON_PROPERTY_ERROR_STR = "errorStr"; @javax.annotation.Nullable private String errorStr; @@ -174,6 +170,10 @@ public static EntityTypeEnum fromValue(String value) { @javax.annotation.Nullable private String metadataSearch; + public static final String JSON_PROPERTY_IS_ERROR = "isError"; + @javax.annotation.Nullable + private Boolean isError; + public static final String JSON_PROPERTY_ERROR = "error"; @javax.annotation.Nullable private Boolean error; @@ -205,30 +205,6 @@ public void setServer(@javax.annotation.Nullable String server) { } - public RuleNodeDebugEventFilter isError(@javax.annotation.Nullable Boolean isError) { - this.isError = isError; - return this; - } - - /** - * Get isError - * @return isError - */ - @javax.annotation.Nullable - @JsonProperty(value = JSON_PROPERTY_IS_ERROR, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getIsError() { - return isError; - } - - - @JsonProperty(value = JSON_PROPERTY_IS_ERROR, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsError(@javax.annotation.Nullable Boolean isError) { - this.isError = isError; - } - - public RuleNodeDebugEventFilter errorStr(@javax.annotation.Nullable String errorStr) { this.errorStr = errorStr; return this; @@ -445,6 +421,30 @@ public void setMetadataSearch(@javax.annotation.Nullable String metadataSearch) } + public RuleNodeDebugEventFilter isError(@javax.annotation.Nullable Boolean isError) { + this.isError = isError; + return this; + } + + /** + * Get isError + * @return isError + */ + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_IS_ERROR, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getIsError() { + return isError; + } + + + @JsonProperty(value = JSON_PROPERTY_IS_ERROR, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIsError(@javax.annotation.Nullable Boolean isError) { + this.isError = isError; + } + + public RuleNodeDebugEventFilter error(@javax.annotation.Nullable Boolean error) { this.error = error; return this; @@ -494,7 +494,6 @@ public boolean equals(Object o) { } RuleNodeDebugEventFilter ruleNodeDebugEventFilter = (RuleNodeDebugEventFilter) o; return Objects.equals(this.server, ruleNodeDebugEventFilter.server) && - Objects.equals(this.isError, ruleNodeDebugEventFilter.isError) && Objects.equals(this.errorStr, ruleNodeDebugEventFilter.errorStr) && Objects.equals(this.msgDirectionType, ruleNodeDebugEventFilter.msgDirectionType) && Objects.equals(this.entityId, ruleNodeDebugEventFilter.entityId) && @@ -504,13 +503,14 @@ public boolean equals(Object o) { Objects.equals(this.relationType, ruleNodeDebugEventFilter.relationType) && Objects.equals(this.dataSearch, ruleNodeDebugEventFilter.dataSearch) && Objects.equals(this.metadataSearch, ruleNodeDebugEventFilter.metadataSearch) && + Objects.equals(this.isError, ruleNodeDebugEventFilter.isError) && Objects.equals(this.error, ruleNodeDebugEventFilter.error) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(server, isError, errorStr, msgDirectionType, entityId, entityType, msgId, msgType, relationType, dataSearch, metadataSearch, error, super.hashCode()); + return Objects.hash(server, errorStr, msgDirectionType, entityId, entityType, msgId, msgType, relationType, dataSearch, metadataSearch, isError, error, super.hashCode()); } @Override @@ -519,7 +519,6 @@ public String toString() { sb.append("class RuleNodeDebugEventFilter {\n"); sb.append(" ").append(toIndentedString(super.toString())).append("\n"); sb.append(" server: ").append(toIndentedString(server)).append("\n"); - sb.append(" isError: ").append(toIndentedString(isError)).append("\n"); sb.append(" errorStr: ").append(toIndentedString(errorStr)).append("\n"); sb.append(" msgDirectionType: ").append(toIndentedString(msgDirectionType)).append("\n"); sb.append(" entityId: ").append(toIndentedString(entityId)).append("\n"); @@ -529,6 +528,7 @@ public String toString() { sb.append(" relationType: ").append(toIndentedString(relationType)).append("\n"); sb.append(" dataSearch: ").append(toIndentedString(dataSearch)).append("\n"); sb.append(" metadataSearch: ").append(toIndentedString(metadataSearch)).append("\n"); + sb.append(" isError: ").append(toIndentedString(isError)).append("\n"); sb.append(" error: ").append(toIndentedString(error)).append("\n"); sb.append("}"); return sb.toString(); @@ -592,11 +592,6 @@ public String toUrlQueryString(String prefix) { joiner.add(String.format(java.util.Locale.ROOT, "%sserver%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getServer())))); } - // add `isError` to the URL query string - if (getIsError() != null) { - joiner.add(String.format(java.util.Locale.ROOT, "%sisError%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getIsError())))); - } - // add `errorStr` to the URL query string if (getErrorStr() != null) { joiner.add(String.format(java.util.Locale.ROOT, "%serrorStr%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getErrorStr())))); @@ -642,6 +637,11 @@ public String toUrlQueryString(String prefix) { joiner.add(String.format(java.util.Locale.ROOT, "%smetadataSearch%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getMetadataSearch())))); } + // add `isError` to the URL query string + if (getIsError() != null) { + joiner.add(String.format(java.util.Locale.ROOT, "%sisError%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getIsError())))); + } + // add `error` to the URL query string if (getError() != null) { joiner.add(String.format(java.util.Locale.ROOT, "%serror%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getError())))); diff --git a/paas/src/main/java/org/thingsboard/client/model/ScriptCalculatedFieldConfiguration.java b/paas/src/main/java/org/thingsboard/client/model/ScriptCalculatedFieldConfiguration.java index 2d1c1413..b8c38311 100644 --- a/paas/src/main/java/org/thingsboard/client/model/ScriptCalculatedFieldConfiguration.java +++ b/paas/src/main/java/org/thingsboard/client/model/ScriptCalculatedFieldConfiguration.java @@ -122,6 +122,12 @@ public void setExpression(@javax.annotation.Nullable String expression) { } + @Override + public ScriptCalculatedFieldConfiguration aiGenerated(@javax.annotation.Nullable Boolean aiGenerated) { + this.setAiGenerated(aiGenerated); + return this; + } + @Override public ScriptCalculatedFieldConfiguration output(@javax.annotation.Nonnull Output output) { this.setOutput(output); @@ -210,6 +216,11 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); + // add `aiGenerated` to the URL query string + if (getAiGenerated() != null) { + joiner.add(String.format(java.util.Locale.ROOT, "%saiGenerated%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getAiGenerated())))); + } + // add `output` to the URL query string if (getOutput() != null) { joiner.add(getOutput().toUrlQueryString(prefix + "output" + suffix)); diff --git a/paas/src/main/java/org/thingsboard/client/model/SimpleCalculatedFieldConfiguration.java b/paas/src/main/java/org/thingsboard/client/model/SimpleCalculatedFieldConfiguration.java index a792bc35..667dec2e 100644 --- a/paas/src/main/java/org/thingsboard/client/model/SimpleCalculatedFieldConfiguration.java +++ b/paas/src/main/java/org/thingsboard/client/model/SimpleCalculatedFieldConfiguration.java @@ -151,6 +151,12 @@ public void setUseLatestTs(@javax.annotation.Nullable Boolean useLatestTs) { } + @Override + public SimpleCalculatedFieldConfiguration aiGenerated(@javax.annotation.Nullable Boolean aiGenerated) { + this.setAiGenerated(aiGenerated); + return this; + } + @Override public SimpleCalculatedFieldConfiguration output(@javax.annotation.Nonnull Output output) { this.setOutput(output); @@ -241,6 +247,11 @@ public String toUrlQueryString(String prefix) { StringJoiner joiner = new StringJoiner("&"); + // add `aiGenerated` to the URL query string + if (getAiGenerated() != null) { + joiner.add(String.format(java.util.Locale.ROOT, "%saiGenerated%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getAiGenerated())))); + } + // add `output` to the URL query string if (getOutput() != null) { joiner.add(getOutput().toUrlQueryString(prefix + "output" + suffix)); diff --git a/paas/src/main/java/org/thingsboard/client/model/Tenant.java b/paas/src/main/java/org/thingsboard/client/model/Tenant.java index d6a3f26c..e9b662ca 100644 --- a/paas/src/main/java/org/thingsboard/client/model/Tenant.java +++ b/paas/src/main/java/org/thingsboard/client/model/Tenant.java @@ -625,7 +625,7 @@ public Tenant additionalInfo(@javax.annotation.Nullable com.fasterxml.jackson.da } /** - * Additional parameters of the device + * Additional parameters of the tenant. May include: 'description' (string), 'homeDashboardId' (string, UUID of the home dashboard), 'homeDashboardHideToolbar' (boolean, whether to hide the dashboard toolbar). * @return additionalInfo */ @javax.annotation.Nullable diff --git a/paas/src/main/java/org/thingsboard/client/model/TenantInfo.java b/paas/src/main/java/org/thingsboard/client/model/TenantInfo.java index 6a812c99..c2a13576 100644 --- a/paas/src/main/java/org/thingsboard/client/model/TenantInfo.java +++ b/paas/src/main/java/org/thingsboard/client/model/TenantInfo.java @@ -654,7 +654,7 @@ public TenantInfo additionalInfo(@javax.annotation.Nullable com.fasterxml.jackso } /** - * Additional parameters of the device + * Additional parameters of the tenant. May include: 'description' (string), 'homeDashboardId' (string, UUID of the home dashboard), 'homeDashboardHideToolbar' (boolean, whether to hide the dashboard toolbar). * @return additionalInfo */ @javax.annotation.Nullable diff --git a/paas/src/main/java/org/thingsboard/client/model/TimeSeriesChartKeySettings.java b/paas/src/main/java/org/thingsboard/client/model/TimeSeriesChartKeySettings.java index 01f99d48..b4ca95de 100644 --- a/paas/src/main/java/org/thingsboard/client/model/TimeSeriesChartKeySettings.java +++ b/paas/src/main/java/org/thingsboard/client/model/TimeSeriesChartKeySettings.java @@ -45,13 +45,13 @@ * TimeSeriesChartKeySettings */ @JsonPropertyOrder({ + TimeSeriesChartKeySettings.JSON_PROPERTY_Y_AXIS_ID, TimeSeriesChartKeySettings.JSON_PROPERTY_SHOW_IN_LEGEND, TimeSeriesChartKeySettings.JSON_PROPERTY_SERIES_TYPE, TimeSeriesChartKeySettings.JSON_PROPERTY_LINE_SETTINGS, TimeSeriesChartKeySettings.JSON_PROPERTY_BAR_SETTINGS, TimeSeriesChartKeySettings.JSON_PROPERTY_COMPARISON_SETTINGS, - TimeSeriesChartKeySettings.JSON_PROPERTY_YAXIS_ID, - TimeSeriesChartKeySettings.JSON_PROPERTY_Y_AXIS_ID + TimeSeriesChartKeySettings.JSON_PROPERTY_YAXIS_ID }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.20.0") @JsonIgnoreProperties( @@ -61,6 +61,10 @@ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", visible = true) public class TimeSeriesChartKeySettings extends DataKeySettings { + public static final String JSON_PROPERTY_Y_AXIS_ID = "yAxisId"; + @javax.annotation.Nullable + private String yAxisId; + public static final String JSON_PROPERTY_SHOW_IN_LEGEND = "showInLegend"; @javax.annotation.Nullable private Boolean showInLegend; @@ -85,13 +89,33 @@ public class TimeSeriesChartKeySettings extends DataKeySettings { @javax.annotation.Nullable private String yaxisId; - public static final String JSON_PROPERTY_Y_AXIS_ID = "yAxisId"; + public TimeSeriesChartKeySettings() { + } + + public TimeSeriesChartKeySettings yAxisId(@javax.annotation.Nullable String yAxisId) { + this.yAxisId = yAxisId; + return this; + } + + /** + * Get yAxisId + * @return yAxisId + */ @javax.annotation.Nullable - private String yAxisId; + @JsonProperty(value = JSON_PROPERTY_Y_AXIS_ID, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getyAxisId() { + return yAxisId; + } - public TimeSeriesChartKeySettings() { + + @JsonProperty(value = JSON_PROPERTY_Y_AXIS_ID, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setyAxisId(@javax.annotation.Nullable String yAxisId) { + this.yAxisId = yAxisId; } + public TimeSeriesChartKeySettings showInLegend(@javax.annotation.Nullable Boolean showInLegend) { this.showInLegend = showInLegend; return this; @@ -236,30 +260,6 @@ public void setYaxisId(@javax.annotation.Nullable String yaxisId) { } - public TimeSeriesChartKeySettings yAxisId(@javax.annotation.Nullable String yAxisId) { - this.yAxisId = yAxisId; - return this; - } - - /** - * Get yAxisId - * @return yAxisId - */ - @javax.annotation.Nullable - @JsonProperty(value = JSON_PROPERTY_Y_AXIS_ID, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getyAxisId() { - return yAxisId; - } - - - @JsonProperty(value = JSON_PROPERTY_Y_AXIS_ID, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setyAxisId(@javax.annotation.Nullable String yAxisId) { - this.yAxisId = yAxisId; - } - - @Override public TimeSeriesChartKeySettings type(@javax.annotation.Nonnull DataKeySettingsType type) { this.setType(type); @@ -278,19 +278,19 @@ public boolean equals(Object o) { return false; } TimeSeriesChartKeySettings timeSeriesChartKeySettings = (TimeSeriesChartKeySettings) o; - return Objects.equals(this.showInLegend, timeSeriesChartKeySettings.showInLegend) && + return Objects.equals(this.yAxisId, timeSeriesChartKeySettings.yAxisId) && + Objects.equals(this.showInLegend, timeSeriesChartKeySettings.showInLegend) && Objects.equals(this.seriesType, timeSeriesChartKeySettings.seriesType) && Objects.equals(this.lineSettings, timeSeriesChartKeySettings.lineSettings) && Objects.equals(this.barSettings, timeSeriesChartKeySettings.barSettings) && Objects.equals(this.comparisonSettings, timeSeriesChartKeySettings.comparisonSettings) && Objects.equals(this.yaxisId, timeSeriesChartKeySettings.yaxisId) && - Objects.equals(this.yAxisId, timeSeriesChartKeySettings.yAxisId) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(showInLegend, seriesType, lineSettings, barSettings, comparisonSettings, yaxisId, yAxisId, super.hashCode()); + return Objects.hash(yAxisId, showInLegend, seriesType, lineSettings, barSettings, comparisonSettings, yaxisId, super.hashCode()); } @Override @@ -298,13 +298,13 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TimeSeriesChartKeySettings {\n"); sb.append(" ").append(toIndentedString(super.toString())).append("\n"); + sb.append(" yAxisId: ").append(toIndentedString(yAxisId)).append("\n"); sb.append(" showInLegend: ").append(toIndentedString(showInLegend)).append("\n"); sb.append(" seriesType: ").append(toIndentedString(seriesType)).append("\n"); sb.append(" lineSettings: ").append(toIndentedString(lineSettings)).append("\n"); sb.append(" barSettings: ").append(toIndentedString(barSettings)).append("\n"); sb.append(" comparisonSettings: ").append(toIndentedString(comparisonSettings)).append("\n"); sb.append(" yaxisId: ").append(toIndentedString(yaxisId)).append("\n"); - sb.append(" yAxisId: ").append(toIndentedString(yAxisId)).append("\n"); sb.append("}"); return sb.toString(); } @@ -357,6 +357,11 @@ public String toUrlQueryString(String prefix) { joiner.add(String.format(java.util.Locale.ROOT, "%stype%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getType())))); } + // add `yAxisId` to the URL query string + if (getyAxisId() != null) { + joiner.add(String.format(java.util.Locale.ROOT, "%syAxisId%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getyAxisId())))); + } + // add `showInLegend` to the URL query string if (getShowInLegend() != null) { joiner.add(String.format(java.util.Locale.ROOT, "%sshowInLegend%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getShowInLegend())))); @@ -387,11 +392,6 @@ public String toUrlQueryString(String prefix) { joiner.add(String.format(java.util.Locale.ROOT, "%syaxisId%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getYaxisId())))); } - // add `yAxisId` to the URL query string - if (getyAxisId() != null) { - joiner.add(String.format(java.util.Locale.ROOT, "%syAxisId%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getyAxisId())))); - } - return joiner.toString(); } static { diff --git a/paas/src/main/java/org/thingsboard/client/model/TsKvEntry.java b/paas/src/main/java/org/thingsboard/client/model/TsKvEntry.java index 4c9de9ca..21ce1513 100644 --- a/paas/src/main/java/org/thingsboard/client/model/TsKvEntry.java +++ b/paas/src/main/java/org/thingsboard/client/model/TsKvEntry.java @@ -45,11 +45,11 @@ TsKvEntry.JSON_PROPERTY_KEY, TsKvEntry.JSON_PROPERTY_BOOLEAN_VALUE, TsKvEntry.JSON_PROPERTY_VALUE_AS_STRING, + TsKvEntry.JSON_PROPERTY_LONG_VALUE, + TsKvEntry.JSON_PROPERTY_DOUBLE_VALUE, TsKvEntry.JSON_PROPERTY_DATA_TYPE, TsKvEntry.JSON_PROPERTY_JSON_VALUE, TsKvEntry.JSON_PROPERTY_STR_VALUE, - TsKvEntry.JSON_PROPERTY_LONG_VALUE, - TsKvEntry.JSON_PROPERTY_DOUBLE_VALUE, TsKvEntry.JSON_PROPERTY_VERSION }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.20.0") @@ -73,6 +73,14 @@ public class TsKvEntry { @javax.annotation.Nullable private String valueAsString; + public static final String JSON_PROPERTY_LONG_VALUE = "longValue"; + @javax.annotation.Nullable + private Long longValue; + + public static final String JSON_PROPERTY_DOUBLE_VALUE = "doubleValue"; + @javax.annotation.Nullable + private Double doubleValue; + public static final String JSON_PROPERTY_DATA_TYPE = "dataType"; @javax.annotation.Nullable private DataType dataType; @@ -85,14 +93,6 @@ public class TsKvEntry { @javax.annotation.Nullable private String strValue; - public static final String JSON_PROPERTY_LONG_VALUE = "longValue"; - @javax.annotation.Nullable - private Long longValue; - - public static final String JSON_PROPERTY_DOUBLE_VALUE = "doubleValue"; - @javax.annotation.Nullable - private Double doubleValue; - public static final String JSON_PROPERTY_VERSION = "version"; @javax.annotation.Nullable private Long version; @@ -228,6 +228,54 @@ public void setValueAsString(@javax.annotation.Nullable String valueAsString) { } + public TsKvEntry longValue(@javax.annotation.Nullable Long longValue) { + this.longValue = longValue; + return this; + } + + /** + * Get longValue + * @return longValue + */ + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_LONG_VALUE, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Long getLongValue() { + return longValue; + } + + + @JsonProperty(value = JSON_PROPERTY_LONG_VALUE, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setLongValue(@javax.annotation.Nullable Long longValue) { + this.longValue = longValue; + } + + + public TsKvEntry doubleValue(@javax.annotation.Nullable Double doubleValue) { + this.doubleValue = doubleValue; + return this; + } + + /** + * Get doubleValue + * @return doubleValue + */ + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_DOUBLE_VALUE, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Double getDoubleValue() { + return doubleValue; + } + + + @JsonProperty(value = JSON_PROPERTY_DOUBLE_VALUE, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDoubleValue(@javax.annotation.Nullable Double doubleValue) { + this.doubleValue = doubleValue; + } + + public TsKvEntry dataType(@javax.annotation.Nullable DataType dataType) { this.dataType = dataType; return this; @@ -300,54 +348,6 @@ public void setStrValue(@javax.annotation.Nullable String strValue) { } - public TsKvEntry longValue(@javax.annotation.Nullable Long longValue) { - this.longValue = longValue; - return this; - } - - /** - * Get longValue - * @return longValue - */ - @javax.annotation.Nullable - @JsonProperty(value = JSON_PROPERTY_LONG_VALUE, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getLongValue() { - return longValue; - } - - - @JsonProperty(value = JSON_PROPERTY_LONG_VALUE, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLongValue(@javax.annotation.Nullable Long longValue) { - this.longValue = longValue; - } - - - public TsKvEntry doubleValue(@javax.annotation.Nullable Double doubleValue) { - this.doubleValue = doubleValue; - return this; - } - - /** - * Get doubleValue - * @return doubleValue - */ - @javax.annotation.Nullable - @JsonProperty(value = JSON_PROPERTY_DOUBLE_VALUE, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Double getDoubleValue() { - return doubleValue; - } - - - @JsonProperty(value = JSON_PROPERTY_DOUBLE_VALUE, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDoubleValue(@javax.annotation.Nullable Double doubleValue) { - this.doubleValue = doubleValue; - } - - public TsKvEntry version(@javax.annotation.Nullable Long version) { this.version = version; return this; @@ -389,11 +389,11 @@ public boolean equals(Object o) { Objects.equals(this.key, tsKvEntry.key) && Objects.equals(this.booleanValue, tsKvEntry.booleanValue) && Objects.equals(this.valueAsString, tsKvEntry.valueAsString) && + Objects.equals(this.longValue, tsKvEntry.longValue) && + Objects.equals(this.doubleValue, tsKvEntry.doubleValue) && Objects.equals(this.dataType, tsKvEntry.dataType) && Objects.equals(this.jsonValue, tsKvEntry.jsonValue) && Objects.equals(this.strValue, tsKvEntry.strValue) && - Objects.equals(this.longValue, tsKvEntry.longValue) && - Objects.equals(this.doubleValue, tsKvEntry.doubleValue) && Objects.equals(this.version, tsKvEntry.version); } @@ -403,7 +403,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(ts, hashCodeNullable(value), key, booleanValue, valueAsString, dataType, jsonValue, strValue, longValue, doubleValue, version); + return Objects.hash(ts, hashCodeNullable(value), key, booleanValue, valueAsString, longValue, doubleValue, dataType, jsonValue, strValue, version); } private static int hashCodeNullable(JsonNullable a) { @@ -422,11 +422,11 @@ public String toString() { sb.append(" key: ").append(toIndentedString(key)).append("\n"); sb.append(" booleanValue: ").append(toIndentedString(booleanValue)).append("\n"); sb.append(" valueAsString: ").append(toIndentedString(valueAsString)).append("\n"); + sb.append(" longValue: ").append(toIndentedString(longValue)).append("\n"); + sb.append(" doubleValue: ").append(toIndentedString(doubleValue)).append("\n"); sb.append(" dataType: ").append(toIndentedString(dataType)).append("\n"); sb.append(" jsonValue: ").append(toIndentedString(jsonValue)).append("\n"); sb.append(" strValue: ").append(toIndentedString(strValue)).append("\n"); - sb.append(" longValue: ").append(toIndentedString(longValue)).append("\n"); - sb.append(" doubleValue: ").append(toIndentedString(doubleValue)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append("}"); return sb.toString(); @@ -500,6 +500,16 @@ public String toUrlQueryString(String prefix) { joiner.add(String.format(java.util.Locale.ROOT, "%svalueAsString%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getValueAsString())))); } + // add `longValue` to the URL query string + if (getLongValue() != null) { + joiner.add(String.format(java.util.Locale.ROOT, "%slongValue%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getLongValue())))); + } + + // add `doubleValue` to the URL query string + if (getDoubleValue() != null) { + joiner.add(String.format(java.util.Locale.ROOT, "%sdoubleValue%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getDoubleValue())))); + } + // add `dataType` to the URL query string if (getDataType() != null) { joiner.add(String.format(java.util.Locale.ROOT, "%sdataType%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getDataType())))); @@ -515,16 +525,6 @@ public String toUrlQueryString(String prefix) { joiner.add(String.format(java.util.Locale.ROOT, "%sstrValue%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getStrValue())))); } - // add `longValue` to the URL query string - if (getLongValue() != null) { - joiner.add(String.format(java.util.Locale.ROOT, "%slongValue%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getLongValue())))); - } - - // add `doubleValue` to the URL query string - if (getDoubleValue() != null) { - joiner.add(String.format(java.util.Locale.ROOT, "%sdoubleValue%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getDoubleValue())))); - } - // add `version` to the URL query string if (getVersion() != null) { joiner.add(String.format(java.util.Locale.ROOT, "%sversion%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getVersion())))); diff --git a/paas/src/main/java/org/thingsboard/client/model/User.java b/paas/src/main/java/org/thingsboard/client/model/User.java index 6abdd6d9..fa443977 100644 --- a/paas/src/main/java/org/thingsboard/client/model/User.java +++ b/paas/src/main/java/org/thingsboard/client/model/User.java @@ -417,7 +417,7 @@ public User additionalInfo(@javax.annotation.Nullable com.fasterxml.jackson.data } /** - * Additional parameters of the user + * Additional parameters of the user. May include: 'defaultDashboardId' (string, UUID of the default dashboard), 'defaultDashboardFullscreen' (boolean), 'homeDashboardId' (string, UUID of the home dashboard), 'homeDashboardHideToolbar' (boolean), 'lang' (string, user locale, e.g. 'en_US'), 'authProviderName' (string, name of the authentication provider). * @return additionalInfo */ @javax.annotation.Nullable diff --git a/paas/src/main/java/org/thingsboard/client/model/UserInfo.java b/paas/src/main/java/org/thingsboard/client/model/UserInfo.java index 828fded1..7e950212 100644 --- a/paas/src/main/java/org/thingsboard/client/model/UserInfo.java +++ b/paas/src/main/java/org/thingsboard/client/model/UserInfo.java @@ -478,7 +478,7 @@ public UserInfo additionalInfo(@javax.annotation.Nullable com.fasterxml.jackson. } /** - * Additional parameters of the user + * Additional parameters of the user. May include: 'defaultDashboardId' (string, UUID of the default dashboard), 'defaultDashboardFullscreen' (boolean), 'homeDashboardId' (string, UUID of the home dashboard), 'homeDashboardHideToolbar' (boolean), 'lang' (string, user locale, e.g. 'en_US'), 'authProviderName' (string, name of the authentication provider). * @return additionalInfo */ @javax.annotation.Nullable diff --git a/paas/src/main/java/org/thingsboard/client/model/WebViewPage.java b/paas/src/main/java/org/thingsboard/client/model/WebViewPage.java index e02cef2c..d0d5588c 100644 --- a/paas/src/main/java/org/thingsboard/client/model/WebViewPage.java +++ b/paas/src/main/java/org/thingsboard/client/model/WebViewPage.java @@ -41,10 +41,10 @@ * WebViewPage */ @JsonPropertyOrder({ - WebViewPage.JSON_PROPERTY_URL, WebViewPage.JSON_PROPERTY_LABEL, WebViewPage.JSON_PROPERTY_VISIBLE, - WebViewPage.JSON_PROPERTY_ICON + WebViewPage.JSON_PROPERTY_ICON, + WebViewPage.JSON_PROPERTY_URL }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.20.0") @JsonIgnoreProperties( @@ -54,10 +54,6 @@ @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", visible = true) public class WebViewPage extends MobilePage { - public static final String JSON_PROPERTY_URL = "url"; - @javax.annotation.Nullable - private String url; - public static final String JSON_PROPERTY_LABEL = "label"; @javax.annotation.Nullable private String label; @@ -70,33 +66,13 @@ public class WebViewPage extends MobilePage { @javax.annotation.Nullable private String icon; - public WebViewPage() { - } - - public WebViewPage url(@javax.annotation.Nullable String url) { - this.url = url; - return this; - } - - /** - * Url - * @return url - */ + public static final String JSON_PROPERTY_URL = "url"; @javax.annotation.Nullable - @JsonProperty(value = JSON_PROPERTY_URL, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getUrl() { - return url; - } - + private String url; - @JsonProperty(value = JSON_PROPERTY_URL, required = false) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUrl(@javax.annotation.Nullable String url) { - this.url = url; + public WebViewPage() { } - public WebViewPage label(@javax.annotation.Nullable String label) { this.label = label; return this; @@ -169,6 +145,30 @@ public void setIcon(@javax.annotation.Nullable String icon) { } + public WebViewPage url(@javax.annotation.Nullable String url) { + this.url = url; + return this; + } + + /** + * Url + * @return url + */ + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_URL, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getUrl() { + return url; + } + + + @JsonProperty(value = JSON_PROPERTY_URL, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUrl(@javax.annotation.Nullable String url) { + this.url = url; + } + + @Override public WebViewPage type(@javax.annotation.Nonnull MobilePageType type) { this.setType(type); @@ -187,16 +187,16 @@ public boolean equals(Object o) { return false; } WebViewPage webViewPage = (WebViewPage) o; - return Objects.equals(this.url, webViewPage.url) && - Objects.equals(this.label, webViewPage.label) && + return Objects.equals(this.label, webViewPage.label) && Objects.equals(this.visible, webViewPage.visible) && Objects.equals(this.icon, webViewPage.icon) && + Objects.equals(this.url, webViewPage.url) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(url, label, visible, icon, super.hashCode()); + return Objects.hash(label, visible, icon, url, super.hashCode()); } @Override @@ -204,10 +204,10 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class WebViewPage {\n"); sb.append(" ").append(toIndentedString(super.toString())).append("\n"); - sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append(" label: ").append(toIndentedString(label)).append("\n"); sb.append(" visible: ").append(toIndentedString(visible)).append("\n"); sb.append(" icon: ").append(toIndentedString(icon)).append("\n"); + sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append("}"); return sb.toString(); } @@ -265,11 +265,6 @@ public String toUrlQueryString(String prefix) { joiner.add(String.format(java.util.Locale.ROOT, "%svisible%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getVisible())))); } - // add `url` to the URL query string - if (getUrl() != null) { - joiner.add(String.format(java.util.Locale.ROOT, "%surl%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getUrl())))); - } - // add `label` to the URL query string if (getLabel() != null) { joiner.add(String.format(java.util.Locale.ROOT, "%slabel%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getLabel())))); @@ -280,6 +275,11 @@ public String toUrlQueryString(String prefix) { joiner.add(String.format(java.util.Locale.ROOT, "%sicon%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getIcon())))); } + // add `url` to the URL query string + if (getUrl() != null) { + joiner.add(String.format(java.util.Locale.ROOT, "%surl%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getUrl())))); + } + return joiner.toString(); } static { diff --git a/paas/src/main/java/org/thingsboard/client/model/WhiteLabelingParams.java b/paas/src/main/java/org/thingsboard/client/model/WhiteLabelingParams.java index 920090d5..ea979aa2 100644 --- a/paas/src/main/java/org/thingsboard/client/model/WhiteLabelingParams.java +++ b/paas/src/main/java/org/thingsboard/client/model/WhiteLabelingParams.java @@ -51,7 +51,8 @@ WhiteLabelingParams.JSON_PROPERTY_PLATFORM_VERSION, WhiteLabelingParams.JSON_PROPERTY_CUSTOM_CSS, WhiteLabelingParams.JSON_PROPERTY_HIDE_CONNECTIVITY_DIALOG, - WhiteLabelingParams.JSON_PROPERTY_OVERRIDE_TRENDZ_NAME + WhiteLabelingParams.JSON_PROPERTY_OVERRIDE_TRENDZ_NAME, + WhiteLabelingParams.JSON_PROPERTY_HIDE_CHAT_BOT }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.20.0") public class WhiteLabelingParams { @@ -115,6 +116,10 @@ public class WhiteLabelingParams { @javax.annotation.Nullable private Boolean overrideTrendzName; + public static final String JSON_PROPERTY_HIDE_CHAT_BOT = "hideChatBot"; + @javax.annotation.Nullable + private Boolean hideChatBot; + public WhiteLabelingParams() { } @@ -476,6 +481,30 @@ public void setOverrideTrendzName(@javax.annotation.Nullable Boolean overrideTre } + public WhiteLabelingParams hideChatBot(@javax.annotation.Nullable Boolean hideChatBot) { + this.hideChatBot = hideChatBot; + return this; + } + + /** + * Hide chat bot + * @return hideChatBot + */ + @javax.annotation.Nullable + @JsonProperty(value = JSON_PROPERTY_HIDE_CHAT_BOT, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getHideChatBot() { + return hideChatBot; + } + + + @JsonProperty(value = JSON_PROPERTY_HIDE_CHAT_BOT, required = false) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setHideChatBot(@javax.annotation.Nullable Boolean hideChatBot) { + this.hideChatBot = hideChatBot; + } + + /** * Return true if this WhiteLabelingParams object is equal to o. */ @@ -502,12 +531,13 @@ public boolean equals(Object o) { Objects.equals(this.platformVersion, whiteLabelingParams.platformVersion) && Objects.equals(this.customCss, whiteLabelingParams.customCss) && Objects.equals(this.hideConnectivityDialog, whiteLabelingParams.hideConnectivityDialog) && - Objects.equals(this.overrideTrendzName, whiteLabelingParams.overrideTrendzName); + Objects.equals(this.overrideTrendzName, whiteLabelingParams.overrideTrendzName) && + Objects.equals(this.hideChatBot, whiteLabelingParams.hideChatBot); } @Override public int hashCode() { - return Objects.hash(logoImageUrl, logoImageHeight, appTitle, favicon, paletteSettings, helpLinkBaseUrl, uiHelpBaseUrl, enableHelpLinks, whiteLabelingEnabled, showNameVersion, platformName, platformVersion, customCss, hideConnectivityDialog, overrideTrendzName); + return Objects.hash(logoImageUrl, logoImageHeight, appTitle, favicon, paletteSettings, helpLinkBaseUrl, uiHelpBaseUrl, enableHelpLinks, whiteLabelingEnabled, showNameVersion, platformName, platformVersion, customCss, hideConnectivityDialog, overrideTrendzName, hideChatBot); } @Override @@ -529,6 +559,7 @@ public String toString() { sb.append(" customCss: ").append(toIndentedString(customCss)).append("\n"); sb.append(" hideConnectivityDialog: ").append(toIndentedString(hideConnectivityDialog)).append("\n"); sb.append(" overrideTrendzName: ").append(toIndentedString(overrideTrendzName)).append("\n"); + sb.append(" hideChatBot: ").append(toIndentedString(hideChatBot)).append("\n"); sb.append("}"); return sb.toString(); } @@ -651,6 +682,11 @@ public String toUrlQueryString(String prefix) { joiner.add(String.format(java.util.Locale.ROOT, "%soverrideTrendzName%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getOverrideTrendzName())))); } + // add `hideChatBot` to the URL query string + if (getHideChatBot() != null) { + joiner.add(String.format(java.util.Locale.ROOT, "%shideChatBot%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getHideChatBot())))); + } + return joiner.toString(); } }