Skip to content

Commit 82decb0

Browse files
author
TeamCity
committed
Update PE OpenAPI spec (from master)
1 parent d5c54de commit 82decb0

11 files changed

Lines changed: 173 additions & 86 deletions

File tree

pe/docs/CalculatedField.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
| **configurationVersion** | **Integer** | Version of calculated field configuration. | [optional] |
1919
| **_configuration** | **CalculatedFieldConfiguration** | | |
2020
| **version** | **Long** | | [optional] |
21+
| **additionalInfo** | **com.fasterxml.jackson.databind.JsonNode** | Additional parameters of the calculated field | [optional] |
2122

2223

2324

pe/docs/CalculatedFieldInfo.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
| **configurationVersion** | **Integer** | Version of calculated field configuration. | [optional] |
1919
| **_configuration** | **CalculatedFieldConfiguration** | | |
2020
| **version** | **Long** | | [optional] |
21+
| **additionalInfo** | **com.fasterxml.jackson.databind.JsonNode** | Additional parameters of the calculated field | [optional] |
2122
| **entityName** | **String** | | [optional] |
2223

2324

pe/docs/EdgeEventType.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@
9494

9595
* `AI_MODEL` (value: `"AI_MODEL"`)
9696

97+
* `API_KEY` (value: `"API_KEY"`)
98+
9799

98100

99101
---

pe/docs/Integration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ A JSON value representing the integration.
2525
| **secret** | **String** | String value used by the remote integrations. Remote integration uses this value along with the 'routingKey' for kind of security and validation to be able to connect to the platform using Grpc | [optional] |
2626
| **_configuration** | **com.fasterxml.jackson.databind.JsonNode** | JSON object representing integration configuration. Each integration type has specific configuration with the connectivity parameters (like 'host' and 'port' for MQTT type or 'baseUrl' for HTTP based type, etc.) and other important parameters dependent on the integration type | |
2727
| **additionalInfo** | **com.fasterxml.jackson.databind.JsonNode** | Additional parameters of the integration | [optional] |
28-
| **edgeTemplate** | **Boolean** | Boolean flag that specifies that is regular or edge template integration | [optional] |
2928
| **remote** | **Boolean** | Boolean flag to enable/disable the integration to be executed remotely. Remote integration is launched in a separate microservice. Local integration is executed by the platform core | [optional] |
29+
| **edgeTemplate** | **Boolean** | Boolean flag that specifies that is regular or edge template integration | [optional] |
3030

3131

3232

pe/docs/IntegrationInfo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
| **version** | **Long** | | [optional] |
2020
| **status** | **Object** | | [optional] |
2121
| **stats** | **Object** | | [optional] |
22-
| **edgeTemplate** | **Boolean** | Boolean flag that specifies that is regular or edge template integration | [optional] |
2322
| **remote** | **Boolean** | Boolean flag to enable/disable the integration to be executed remotely. Remote integration is launched in a separate microservice. Local integration is executed by the platform core | [optional] |
23+
| **edgeTemplate** | **Boolean** | Boolean flag that specifies that is regular or edge template integration | [optional] |
2424

2525

2626

pe/spec/openapi.json

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -117787,6 +117787,10 @@
117787117787
"version": {
117788117788
"type": "integer",
117789117789
"format": "int64"
117790+
},
117791+
"additionalInfo": {
117792+
"$ref": "#/components/schemas/JsonNode",
117793+
"description": "Additional parameters of the calculated field"
117790117794
}
117791117795
},
117792117796
"required": [
@@ -117966,6 +117970,10 @@
117966117970
"type": "integer",
117967117971
"format": "int64"
117968117972
},
117973+
"additionalInfo": {
117974+
"$ref": "#/components/schemas/JsonNode",
117975+
"description": "Additional parameters of the calculated field"
117976+
},
117969117977
"entityName": {
117970117978
"type": "string"
117971117979
}
@@ -122131,7 +122139,8 @@
122131122139
"ENCRYPTION_KEY",
122132122140
"SECRET",
122133122141
"REPORT_TEMPLATE",
122134-
"AI_MODEL"
122142+
"AI_MODEL",
122143+
"API_KEY"
122135122144
]
122136122145
},
122137122146
"EdgeId": {
@@ -125529,13 +125538,13 @@
125529125538
"$ref": "#/components/schemas/JsonNode",
125530125539
"description": "Additional parameters of the integration"
125531125540
},
125532-
"edgeTemplate": {
125533-
"type": "boolean",
125534-
"description": "Boolean flag that specifies that is regular or edge template integration"
125535-
},
125536125541
"remote": {
125537125542
"type": "boolean",
125538125543
"description": "Boolean flag to enable/disable the integration to be executed remotely. Remote integration is launched in a separate microservice. Local integration is executed by the platform core"
125544+
},
125545+
"edgeTemplate": {
125546+
"type": "boolean",
125547+
"description": "Boolean flag that specifies that is regular or edge template integration"
125539125548
}
125540125549
},
125541125550
"required": [
@@ -125646,13 +125655,13 @@
125646125655
"stats": {
125647125656
"$ref": "#/components/schemas/ArrayNode"
125648125657
},
125649-
"edgeTemplate": {
125650-
"type": "boolean",
125651-
"description": "Boolean flag that specifies that is regular or edge template integration"
125652-
},
125653125658
"remote": {
125654125659
"type": "boolean",
125655125660
"description": "Boolean flag to enable/disable the integration to be executed remotely. Remote integration is launched in a separate microservice. Local integration is executed by the platform core"
125661+
},
125662+
"edgeTemplate": {
125663+
"type": "boolean",
125664+
"description": "Boolean flag that specifies that is regular or edge template integration"
125656125665
}
125657125666
},
125658125667
"required": [

pe/src/main/java/org/thingsboard/client/model/CalculatedField.java

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@
5151
CalculatedField.JSON_PROPERTY_DEBUG_SETTINGS,
5252
CalculatedField.JSON_PROPERTY_CONFIGURATION_VERSION,
5353
CalculatedField.JSON_PROPERTY_CONFIGURATION,
54-
CalculatedField.JSON_PROPERTY_VERSION
54+
CalculatedField.JSON_PROPERTY_VERSION,
55+
CalculatedField.JSON_PROPERTY_ADDITIONAL_INFO
5556
})
5657
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.20.0")
5758
public class CalculatedField {
@@ -99,6 +100,10 @@ public class CalculatedField {
99100
@javax.annotation.Nullable
100101
private Long version;
101102

103+
public static final String JSON_PROPERTY_ADDITIONAL_INFO = "additionalInfo";
104+
@javax.annotation.Nullable
105+
private com.fasterxml.jackson.databind.JsonNode additionalInfo;
106+
102107
public CalculatedField() {
103108
}
104109

@@ -366,6 +371,30 @@ public void setVersion(@javax.annotation.Nullable Long version) {
366371
}
367372

368373

374+
public CalculatedField additionalInfo(@javax.annotation.Nullable com.fasterxml.jackson.databind.JsonNode additionalInfo) {
375+
this.additionalInfo = additionalInfo;
376+
return this;
377+
}
378+
379+
/**
380+
* Additional parameters of the calculated field
381+
* @return additionalInfo
382+
*/
383+
@javax.annotation.Nullable
384+
@JsonProperty(value = JSON_PROPERTY_ADDITIONAL_INFO, required = false)
385+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
386+
public com.fasterxml.jackson.databind.JsonNode getAdditionalInfo() {
387+
return additionalInfo;
388+
}
389+
390+
391+
@JsonProperty(value = JSON_PROPERTY_ADDITIONAL_INFO, required = false)
392+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
393+
public void setAdditionalInfo(@javax.annotation.Nullable com.fasterxml.jackson.databind.JsonNode additionalInfo) {
394+
this.additionalInfo = additionalInfo;
395+
}
396+
397+
369398
/**
370399
* Return true if this CalculatedField object is equal to o.
371400
*/
@@ -388,12 +417,13 @@ public boolean equals(Object o) {
388417
Objects.equals(this.debugSettings, calculatedField.debugSettings) &&
389418
Objects.equals(this.configurationVersion, calculatedField.configurationVersion) &&
390419
Objects.equals(this._configuration, calculatedField._configuration) &&
391-
Objects.equals(this.version, calculatedField.version);
420+
Objects.equals(this.version, calculatedField.version) &&
421+
Objects.equals(this.additionalInfo, calculatedField.additionalInfo);
392422
}
393423

394424
@Override
395425
public int hashCode() {
396-
return Objects.hash(id, createdTime, tenantId, entityId, type, name, debugMode, debugSettings, configurationVersion, _configuration, version);
426+
return Objects.hash(id, createdTime, tenantId, entityId, type, name, debugMode, debugSettings, configurationVersion, _configuration, version, additionalInfo);
397427
}
398428

399429
@Override
@@ -411,6 +441,7 @@ public String toString() {
411441
sb.append(" configurationVersion: ").append(toIndentedString(configurationVersion)).append("\n");
412442
sb.append(" _configuration: ").append(toIndentedString(_configuration)).append("\n");
413443
sb.append(" version: ").append(toIndentedString(version)).append("\n");
444+
sb.append(" additionalInfo: ").append(toIndentedString(additionalInfo)).append("\n");
414445
sb.append("}");
415446
return sb.toString();
416447
}
@@ -513,6 +544,11 @@ public String toUrlQueryString(String prefix) {
513544
joiner.add(String.format(java.util.Locale.ROOT, "%sversion%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getVersion()))));
514545
}
515546

547+
// add `additionalInfo` to the URL query string
548+
if (getAdditionalInfo() != null) {
549+
joiner.add(String.format(java.util.Locale.ROOT, "%sadditionalInfo%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getAdditionalInfo()))));
550+
}
551+
516552
return joiner.toString();
517553
}
518554
}

pe/src/main/java/org/thingsboard/client/model/CalculatedFieldInfo.java

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
CalculatedFieldInfo.JSON_PROPERTY_CONFIGURATION_VERSION,
5353
CalculatedFieldInfo.JSON_PROPERTY_CONFIGURATION,
5454
CalculatedFieldInfo.JSON_PROPERTY_VERSION,
55+
CalculatedFieldInfo.JSON_PROPERTY_ADDITIONAL_INFO,
5556
CalculatedFieldInfo.JSON_PROPERTY_ENTITY_NAME
5657
})
5758
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.20.0")
@@ -100,6 +101,10 @@ public class CalculatedFieldInfo {
100101
@javax.annotation.Nullable
101102
private Long version;
102103

104+
public static final String JSON_PROPERTY_ADDITIONAL_INFO = "additionalInfo";
105+
@javax.annotation.Nullable
106+
private com.fasterxml.jackson.databind.JsonNode additionalInfo;
107+
103108
public static final String JSON_PROPERTY_ENTITY_NAME = "entityName";
104109
@javax.annotation.Nullable
105110
private String entityName;
@@ -371,6 +376,30 @@ public void setVersion(@javax.annotation.Nullable Long version) {
371376
}
372377

373378

379+
public CalculatedFieldInfo additionalInfo(@javax.annotation.Nullable com.fasterxml.jackson.databind.JsonNode additionalInfo) {
380+
this.additionalInfo = additionalInfo;
381+
return this;
382+
}
383+
384+
/**
385+
* Additional parameters of the calculated field
386+
* @return additionalInfo
387+
*/
388+
@javax.annotation.Nullable
389+
@JsonProperty(value = JSON_PROPERTY_ADDITIONAL_INFO, required = false)
390+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
391+
public com.fasterxml.jackson.databind.JsonNode getAdditionalInfo() {
392+
return additionalInfo;
393+
}
394+
395+
396+
@JsonProperty(value = JSON_PROPERTY_ADDITIONAL_INFO, required = false)
397+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
398+
public void setAdditionalInfo(@javax.annotation.Nullable com.fasterxml.jackson.databind.JsonNode additionalInfo) {
399+
this.additionalInfo = additionalInfo;
400+
}
401+
402+
374403
public CalculatedFieldInfo entityName(@javax.annotation.Nullable String entityName) {
375404
this.entityName = entityName;
376405
return this;
@@ -418,12 +447,13 @@ public boolean equals(Object o) {
418447
Objects.equals(this.configurationVersion, calculatedFieldInfo.configurationVersion) &&
419448
Objects.equals(this._configuration, calculatedFieldInfo._configuration) &&
420449
Objects.equals(this.version, calculatedFieldInfo.version) &&
450+
Objects.equals(this.additionalInfo, calculatedFieldInfo.additionalInfo) &&
421451
Objects.equals(this.entityName, calculatedFieldInfo.entityName);
422452
}
423453

424454
@Override
425455
public int hashCode() {
426-
return Objects.hash(id, createdTime, tenantId, entityId, type, name, debugMode, debugSettings, configurationVersion, _configuration, version, entityName);
456+
return Objects.hash(id, createdTime, tenantId, entityId, type, name, debugMode, debugSettings, configurationVersion, _configuration, version, additionalInfo, entityName);
427457
}
428458

429459
@Override
@@ -441,6 +471,7 @@ public String toString() {
441471
sb.append(" configurationVersion: ").append(toIndentedString(configurationVersion)).append("\n");
442472
sb.append(" _configuration: ").append(toIndentedString(_configuration)).append("\n");
443473
sb.append(" version: ").append(toIndentedString(version)).append("\n");
474+
sb.append(" additionalInfo: ").append(toIndentedString(additionalInfo)).append("\n");
444475
sb.append(" entityName: ").append(toIndentedString(entityName)).append("\n");
445476
sb.append("}");
446477
return sb.toString();
@@ -544,6 +575,11 @@ public String toUrlQueryString(String prefix) {
544575
joiner.add(String.format(java.util.Locale.ROOT, "%sversion%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getVersion()))));
545576
}
546577

578+
// add `additionalInfo` to the URL query string
579+
if (getAdditionalInfo() != null) {
580+
joiner.add(String.format(java.util.Locale.ROOT, "%sadditionalInfo%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getAdditionalInfo()))));
581+
}
582+
547583
// add `entityName` to the URL query string
548584
if (getEntityName() != null) {
549585
joiner.add(String.format(java.util.Locale.ROOT, "%sentityName%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getEntityName()))));

pe/src/main/java/org/thingsboard/client/model/EdgeEventType.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@ public enum EdgeEventType {
118118

119119
REPORT_TEMPLATE("REPORT_TEMPLATE"),
120120

121-
AI_MODEL("AI_MODEL");
121+
AI_MODEL("AI_MODEL"),
122+
123+
API_KEY("API_KEY");
122124

123125
private String value;
124126

0 commit comments

Comments
 (0)