Skip to content

Commit 50be215

Browse files
ViacheslavKlimovTeamCity
andauthored
Update PE OpenAPI spec (from master) (#18)
Co-authored-by: TeamCity <teamcity@thingsboard.io>
1 parent d3a00ce commit 50be215

File tree

9 files changed

+139
-139
lines changed

9 files changed

+139
-139
lines changed

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/docs/ReportTimeSeriesChartSettings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
| **legendLabelColor** | **String** | | [optional] |
2424
| **legendValueFont** | **Font** | | [optional] |
2525
| **legendValueColor** | **String** | | [optional] |
26-
| **xaxis** | **TimeSeriesChartXAxisSettings** | | [optional] |
2726
| **yaxes** | **Map\<String, TimeSeriesChartYAxisSettings\>** | | [optional] |
27+
| **xaxis** | **TimeSeriesChartXAxisSettings** | | [optional] |
2828
| **thresholds** | **List\<TimeSeriesChartThreshold\>** | | [optional] |
2929
| **grid** | **TimeSeriesChartGridSettings** | | [optional] |
3030
| **yAxes** | **Map\<String, TimeSeriesChartYAxisSettings\>** | | [optional] |

pe/spec/openapi.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -125480,13 +125480,13 @@
125480125480
"$ref": "#/components/schemas/JsonNode",
125481125481
"description": "Additional parameters of the integration"
125482125482
},
125483-
"edgeTemplate": {
125484-
"type": "boolean",
125485-
"description": "Boolean flag that specifies that is regular or edge template integration"
125486-
},
125487125483
"remote": {
125488125484
"type": "boolean",
125489125485
"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"
125486+
},
125487+
"edgeTemplate": {
125488+
"type": "boolean",
125489+
"description": "Boolean flag that specifies that is regular or edge template integration"
125490125490
}
125491125491
},
125492125492
"required": [
@@ -125582,13 +125582,13 @@
125582125582
"stats": {
125583125583
"$ref": "#/components/schemas/ArrayNode"
125584125584
},
125585-
"edgeTemplate": {
125586-
"type": "boolean",
125587-
"description": "Boolean flag that specifies that is regular or edge template integration"
125588-
},
125589125585
"remote": {
125590125586
"type": "boolean",
125591125587
"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"
125588+
},
125589+
"edgeTemplate": {
125590+
"type": "boolean",
125591+
"description": "Boolean flag that specifies that is regular or edge template integration"
125592125592
}
125593125593
},
125594125594
"required": [
@@ -133450,15 +133450,15 @@
133450133450
"legendValueColor": {
133451133451
"type": "string"
133452133452
},
133453-
"xaxis": {
133454-
"$ref": "#/components/schemas/TimeSeriesChartXAxisSettings"
133455-
},
133456133453
"yaxes": {
133457133454
"type": "object",
133458133455
"additionalProperties": {
133459133456
"$ref": "#/components/schemas/TimeSeriesChartYAxisSettings"
133460133457
}
133461133458
},
133459+
"xaxis": {
133460+
"$ref": "#/components/schemas/TimeSeriesChartXAxisSettings"
133461+
},
133462133462
"thresholds": {
133463133463
"type": "array",
133464133464
"items": {

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

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@
5656
Integration.JSON_PROPERTY_SECRET,
5757
Integration.JSON_PROPERTY_CONFIGURATION,
5858
Integration.JSON_PROPERTY_ADDITIONAL_INFO,
59-
Integration.JSON_PROPERTY_EDGE_TEMPLATE,
60-
Integration.JSON_PROPERTY_REMOTE
59+
Integration.JSON_PROPERTY_REMOTE,
60+
Integration.JSON_PROPERTY_EDGE_TEMPLATE
6161
})
6262
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.20.0")
6363
public class Integration {
@@ -125,14 +125,14 @@ public class Integration {
125125
@javax.annotation.Nullable
126126
private com.fasterxml.jackson.databind.JsonNode additionalInfo;
127127

128-
public static final String JSON_PROPERTY_EDGE_TEMPLATE = "edgeTemplate";
129-
@javax.annotation.Nullable
130-
private Boolean edgeTemplate;
131-
132128
public static final String JSON_PROPERTY_REMOTE = "remote";
133129
@javax.annotation.Nullable
134130
private Boolean remote;
135131

132+
public static final String JSON_PROPERTY_EDGE_TEMPLATE = "edgeTemplate";
133+
@javax.annotation.Nullable
134+
private Boolean edgeTemplate;
135+
136136
public Integration() {
137137
}
138138

@@ -512,51 +512,51 @@ public void setAdditionalInfo(@javax.annotation.Nullable com.fasterxml.jackson.d
512512
}
513513

514514

515-
public Integration edgeTemplate(@javax.annotation.Nullable Boolean edgeTemplate) {
516-
this.edgeTemplate = edgeTemplate;
515+
public Integration remote(@javax.annotation.Nullable Boolean remote) {
516+
this.remote = remote;
517517
return this;
518518
}
519519

520520
/**
521-
* Boolean flag that specifies that is regular or edge template integration
522-
* @return edgeTemplate
521+
* 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
522+
* @return remote
523523
*/
524524
@javax.annotation.Nullable
525-
@JsonProperty(value = JSON_PROPERTY_EDGE_TEMPLATE, required = false)
525+
@JsonProperty(value = JSON_PROPERTY_REMOTE, required = false)
526526
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
527-
public Boolean getEdgeTemplate() {
528-
return edgeTemplate;
527+
public Boolean getRemote() {
528+
return remote;
529529
}
530530

531531

532-
@JsonProperty(value = JSON_PROPERTY_EDGE_TEMPLATE, required = false)
532+
@JsonProperty(value = JSON_PROPERTY_REMOTE, required = false)
533533
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
534-
public void setEdgeTemplate(@javax.annotation.Nullable Boolean edgeTemplate) {
535-
this.edgeTemplate = edgeTemplate;
534+
public void setRemote(@javax.annotation.Nullable Boolean remote) {
535+
this.remote = remote;
536536
}
537537

538538

539-
public Integration remote(@javax.annotation.Nullable Boolean remote) {
540-
this.remote = remote;
539+
public Integration edgeTemplate(@javax.annotation.Nullable Boolean edgeTemplate) {
540+
this.edgeTemplate = edgeTemplate;
541541
return this;
542542
}
543543

544544
/**
545-
* 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
546-
* @return remote
545+
* Boolean flag that specifies that is regular or edge template integration
546+
* @return edgeTemplate
547547
*/
548548
@javax.annotation.Nullable
549-
@JsonProperty(value = JSON_PROPERTY_REMOTE, required = false)
549+
@JsonProperty(value = JSON_PROPERTY_EDGE_TEMPLATE, required = false)
550550
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
551-
public Boolean getRemote() {
552-
return remote;
551+
public Boolean getEdgeTemplate() {
552+
return edgeTemplate;
553553
}
554554

555555

556-
@JsonProperty(value = JSON_PROPERTY_REMOTE, required = false)
556+
@JsonProperty(value = JSON_PROPERTY_EDGE_TEMPLATE, required = false)
557557
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
558-
public void setRemote(@javax.annotation.Nullable Boolean remote) {
559-
this.remote = remote;
558+
public void setEdgeTemplate(@javax.annotation.Nullable Boolean edgeTemplate) {
559+
this.edgeTemplate = edgeTemplate;
560560
}
561561

562562

@@ -588,13 +588,13 @@ public boolean equals(Object o) {
588588
Objects.equals(this.secret, integration.secret) &&
589589
Objects.equals(this._configuration, integration._configuration) &&
590590
Objects.equals(this.additionalInfo, integration.additionalInfo) &&
591-
Objects.equals(this.edgeTemplate, integration.edgeTemplate) &&
592-
Objects.equals(this.remote, integration.remote);
591+
Objects.equals(this.remote, integration.remote) &&
592+
Objects.equals(this.edgeTemplate, integration.edgeTemplate);
593593
}
594594

595595
@Override
596596
public int hashCode() {
597-
return Objects.hash(id, createdTime, tenantId, name, type, debugMode, debugSettings, enabled, allowCreateDevicesOrAssets, version, defaultConverterId, downlinkConverterId, routingKey, secret, _configuration, additionalInfo, edgeTemplate, remote);
597+
return Objects.hash(id, createdTime, tenantId, name, type, debugMode, debugSettings, enabled, allowCreateDevicesOrAssets, version, defaultConverterId, downlinkConverterId, routingKey, secret, _configuration, additionalInfo, remote, edgeTemplate);
598598
}
599599

600600
@Override
@@ -617,8 +617,8 @@ public String toString() {
617617
sb.append(" secret: ").append(toIndentedString(secret)).append("\n");
618618
sb.append(" _configuration: ").append(toIndentedString(_configuration)).append("\n");
619619
sb.append(" additionalInfo: ").append(toIndentedString(additionalInfo)).append("\n");
620-
sb.append(" edgeTemplate: ").append(toIndentedString(edgeTemplate)).append("\n");
621620
sb.append(" remote: ").append(toIndentedString(remote)).append("\n");
621+
sb.append(" edgeTemplate: ").append(toIndentedString(edgeTemplate)).append("\n");
622622
sb.append("}");
623623
return sb.toString();
624624
}
@@ -746,16 +746,16 @@ public String toUrlQueryString(String prefix) {
746746
joiner.add(String.format(java.util.Locale.ROOT, "%sadditionalInfo%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getAdditionalInfo()))));
747747
}
748748

749-
// add `edgeTemplate` to the URL query string
750-
if (getEdgeTemplate() != null) {
751-
joiner.add(String.format(java.util.Locale.ROOT, "%sedgeTemplate%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getEdgeTemplate()))));
752-
}
753-
754749
// add `remote` to the URL query string
755750
if (getRemote() != null) {
756751
joiner.add(String.format(java.util.Locale.ROOT, "%sremote%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getRemote()))));
757752
}
758753

754+
// add `edgeTemplate` to the URL query string
755+
if (getEdgeTemplate() != null) {
756+
joiner.add(String.format(java.util.Locale.ROOT, "%sedgeTemplate%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getEdgeTemplate()))));
757+
}
758+
759759
return joiner.toString();
760760
}
761761
}

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

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@
5555
IntegrationInfo.JSON_PROPERTY_VERSION,
5656
IntegrationInfo.JSON_PROPERTY_STATUS,
5757
IntegrationInfo.JSON_PROPERTY_STATS,
58-
IntegrationInfo.JSON_PROPERTY_EDGE_TEMPLATE,
59-
IntegrationInfo.JSON_PROPERTY_REMOTE
58+
IntegrationInfo.JSON_PROPERTY_REMOTE,
59+
IntegrationInfo.JSON_PROPERTY_EDGE_TEMPLATE
6060
})
6161
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.20.0")
6262
public class IntegrationInfo {
@@ -107,14 +107,14 @@ public class IntegrationInfo {
107107
public static final String JSON_PROPERTY_STATS = "stats";
108108
private JsonNullable<Object> stats = JsonNullable.<Object>of(null);
109109

110-
public static final String JSON_PROPERTY_EDGE_TEMPLATE = "edgeTemplate";
111-
@javax.annotation.Nullable
112-
private Boolean edgeTemplate;
113-
114110
public static final String JSON_PROPERTY_REMOTE = "remote";
115111
@javax.annotation.Nullable
116112
private Boolean remote;
117113

114+
public static final String JSON_PROPERTY_EDGE_TEMPLATE = "edgeTemplate";
115+
@javax.annotation.Nullable
116+
private Boolean edgeTemplate;
117+
118118
public IntegrationInfo() {
119119
}
120120

@@ -406,51 +406,51 @@ public void setStats(@javax.annotation.Nullable Object stats) {
406406
}
407407

408408

409-
public IntegrationInfo edgeTemplate(@javax.annotation.Nullable Boolean edgeTemplate) {
410-
this.edgeTemplate = edgeTemplate;
409+
public IntegrationInfo remote(@javax.annotation.Nullable Boolean remote) {
410+
this.remote = remote;
411411
return this;
412412
}
413413

414414
/**
415-
* Boolean flag that specifies that is regular or edge template integration
416-
* @return edgeTemplate
415+
* 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
416+
* @return remote
417417
*/
418418
@javax.annotation.Nullable
419-
@JsonProperty(value = JSON_PROPERTY_EDGE_TEMPLATE, required = false)
419+
@JsonProperty(value = JSON_PROPERTY_REMOTE, required = false)
420420
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
421-
public Boolean getEdgeTemplate() {
422-
return edgeTemplate;
421+
public Boolean getRemote() {
422+
return remote;
423423
}
424424

425425

426-
@JsonProperty(value = JSON_PROPERTY_EDGE_TEMPLATE, required = false)
426+
@JsonProperty(value = JSON_PROPERTY_REMOTE, required = false)
427427
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
428-
public void setEdgeTemplate(@javax.annotation.Nullable Boolean edgeTemplate) {
429-
this.edgeTemplate = edgeTemplate;
428+
public void setRemote(@javax.annotation.Nullable Boolean remote) {
429+
this.remote = remote;
430430
}
431431

432432

433-
public IntegrationInfo remote(@javax.annotation.Nullable Boolean remote) {
434-
this.remote = remote;
433+
public IntegrationInfo edgeTemplate(@javax.annotation.Nullable Boolean edgeTemplate) {
434+
this.edgeTemplate = edgeTemplate;
435435
return this;
436436
}
437437

438438
/**
439-
* 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
440-
* @return remote
439+
* Boolean flag that specifies that is regular or edge template integration
440+
* @return edgeTemplate
441441
*/
442442
@javax.annotation.Nullable
443-
@JsonProperty(value = JSON_PROPERTY_REMOTE, required = false)
443+
@JsonProperty(value = JSON_PROPERTY_EDGE_TEMPLATE, required = false)
444444
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
445-
public Boolean getRemote() {
446-
return remote;
445+
public Boolean getEdgeTemplate() {
446+
return edgeTemplate;
447447
}
448448

449449

450-
@JsonProperty(value = JSON_PROPERTY_REMOTE, required = false)
450+
@JsonProperty(value = JSON_PROPERTY_EDGE_TEMPLATE, required = false)
451451
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
452-
public void setRemote(@javax.annotation.Nullable Boolean remote) {
453-
this.remote = remote;
452+
public void setEdgeTemplate(@javax.annotation.Nullable Boolean edgeTemplate) {
453+
this.edgeTemplate = edgeTemplate;
454454
}
455455

456456

@@ -478,8 +478,8 @@ public boolean equals(Object o) {
478478
Objects.equals(this.version, integrationInfo.version) &&
479479
Objects.equals(this.status, integrationInfo.status) &&
480480
equalsNullable(this.stats, integrationInfo.stats) &&
481-
Objects.equals(this.edgeTemplate, integrationInfo.edgeTemplate) &&
482-
Objects.equals(this.remote, integrationInfo.remote);
481+
Objects.equals(this.remote, integrationInfo.remote) &&
482+
Objects.equals(this.edgeTemplate, integrationInfo.edgeTemplate);
483483
}
484484

485485
private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b) {
@@ -488,7 +488,7 @@ private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b)
488488

489489
@Override
490490
public int hashCode() {
491-
return Objects.hash(id, createdTime, tenantId, name, type, debugMode, debugSettings, enabled, allowCreateDevicesOrAssets, version, status, hashCodeNullable(stats), edgeTemplate, remote);
491+
return Objects.hash(id, createdTime, tenantId, name, type, debugMode, debugSettings, enabled, allowCreateDevicesOrAssets, version, status, hashCodeNullable(stats), remote, edgeTemplate);
492492
}
493493

494494
private static <T> int hashCodeNullable(JsonNullable<T> a) {
@@ -514,8 +514,8 @@ public String toString() {
514514
sb.append(" version: ").append(toIndentedString(version)).append("\n");
515515
sb.append(" status: ").append(toIndentedString(status)).append("\n");
516516
sb.append(" stats: ").append(toIndentedString(stats)).append("\n");
517-
sb.append(" edgeTemplate: ").append(toIndentedString(edgeTemplate)).append("\n");
518517
sb.append(" remote: ").append(toIndentedString(remote)).append("\n");
518+
sb.append(" edgeTemplate: ").append(toIndentedString(edgeTemplate)).append("\n");
519519
sb.append("}");
520520
return sb.toString();
521521
}
@@ -623,16 +623,16 @@ public String toUrlQueryString(String prefix) {
623623
joiner.add(String.format(java.util.Locale.ROOT, "%sstats%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getStats()))));
624624
}
625625

626-
// add `edgeTemplate` to the URL query string
627-
if (getEdgeTemplate() != null) {
628-
joiner.add(String.format(java.util.Locale.ROOT, "%sedgeTemplate%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getEdgeTemplate()))));
629-
}
630-
631626
// add `remote` to the URL query string
632627
if (getRemote() != null) {
633628
joiner.add(String.format(java.util.Locale.ROOT, "%sremote%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getRemote()))));
634629
}
635630

631+
// add `edgeTemplate` to the URL query string
632+
if (getEdgeTemplate() != null) {
633+
joiner.add(String.format(java.util.Locale.ROOT, "%sedgeTemplate%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getEdgeTemplate()))));
634+
}
635+
636636
return joiner.toString();
637637
}
638638
}

0 commit comments

Comments
 (0)