Skip to content

Commit ffc4ead

Browse files
committed
feat: update to latest swagger version
1 parent 6883ae6 commit ffc4ead

6 files changed

Lines changed: 336 additions & 93 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ This release introduces a support for new InfluxDB OSS API definitions - [oss.ym
2020
- `DeleteService` is used to delete time series data instead of `DefaultService`
2121
- `Run` contains list of `LogEvent` in `Log` property
2222
- `DBRPs` contains list of `DBRP` in `Content` property
23+
- `DbrPsService` uses `DBRPCreate` to create `DBRP`
2324
- Inheritance structure:
2425
- `Check` <- `CheckDiscriminator` <- `CheckBase`
2526
- `NotificationEndpoint` <- `NotificationEndpointDiscriminator` <- `NotificationEndpointBase`

client/src/generated/java/com/influxdb/client/domain/DBRP.java

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@ public class DBRP {
3838
@SerializedName(SERIALIZED_NAME_ORG_I_D)
3939
private String orgID;
4040

41-
public static final String SERIALIZED_NAME_ORG = "org";
42-
@SerializedName(SERIALIZED_NAME_ORG)
43-
private String org;
44-
4541
public static final String SERIALIZED_NAME_BUCKET_I_D = "bucketID";
4642
@SerializedName(SERIALIZED_NAME_BUCKET_I_D)
4743
private String bucketID;
@@ -66,7 +62,7 @@ public class DBRP {
6662
* the mapping identifier
6763
* @return id
6864
**/
69-
@ApiModelProperty(value = "the mapping identifier")
65+
@ApiModelProperty(required = true, value = "the mapping identifier")
7066
public String getId() {
7167
return id;
7268
}
@@ -89,24 +85,6 @@ public void setOrgID(String orgID) {
8985
this.orgID = orgID;
9086
}
9187

92-
public DBRP org(String org) {
93-
this.org = org;
94-
return this;
95-
}
96-
97-
/**
98-
* the organization that owns this mapping.
99-
* @return org
100-
**/
101-
@ApiModelProperty(value = "the organization that owns this mapping.")
102-
public String getOrg() {
103-
return org;
104-
}
105-
106-
public void setOrg(String org) {
107-
this.org = org;
108-
}
109-
11088
public DBRP bucketID(String bucketID) {
11189
this.bucketID = bucketID;
11290
return this;
@@ -170,7 +148,7 @@ public DBRP _default(Boolean _default) {
170148
* Specify if this mapping represents the default retention policy for the database specificed.
171149
* @return _default
172150
**/
173-
@ApiModelProperty(value = "Specify if this mapping represents the default retention policy for the database specificed.")
151+
@ApiModelProperty(required = true, value = "Specify if this mapping represents the default retention policy for the database specificed.")
174152
public Boolean getDefault() {
175153
return _default;
176154
}
@@ -209,7 +187,6 @@ public boolean equals(java.lang.Object o) {
209187
DBRP DBRP = (DBRP) o;
210188
return Objects.equals(this.id, DBRP.id) &&
211189
Objects.equals(this.orgID, DBRP.orgID) &&
212-
Objects.equals(this.org, DBRP.org) &&
213190
Objects.equals(this.bucketID, DBRP.bucketID) &&
214191
Objects.equals(this.database, DBRP.database) &&
215192
Objects.equals(this.retentionPolicy, DBRP.retentionPolicy) &&
@@ -219,7 +196,7 @@ public boolean equals(java.lang.Object o) {
219196

220197
@Override
221198
public int hashCode() {
222-
return Objects.hash(id, orgID, org, bucketID, database, retentionPolicy, _default, links);
199+
return Objects.hash(id, orgID, bucketID, database, retentionPolicy, _default, links);
223200
}
224201

225202

@@ -229,7 +206,6 @@ public String toString() {
229206
sb.append("class DBRP {\n");
230207
sb.append(" id: ").append(toIndentedString(id)).append("\n");
231208
sb.append(" orgID: ").append(toIndentedString(orgID)).append("\n");
232-
sb.append(" org: ").append(toIndentedString(org)).append("\n");
233209
sb.append(" bucketID: ").append(toIndentedString(bucketID)).append("\n");
234210
sb.append(" database: ").append(toIndentedString(database)).append("\n");
235211
sb.append(" retentionPolicy: ").append(toIndentedString(retentionPolicy)).append("\n");
Lines changed: 214 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,214 @@
1+
/*
2+
* Influx OSS API Service
3+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4+
*
5+
* OpenAPI spec version: 2.0.0
6+
*
7+
*
8+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9+
* https://openapi-generator.tech
10+
* Do not edit the class manually.
11+
*/
12+
13+
14+
package com.influxdb.client.domain;
15+
16+
import java.util.Objects;
17+
import java.util.Arrays;
18+
import com.google.gson.TypeAdapter;
19+
import com.google.gson.annotations.JsonAdapter;
20+
import com.google.gson.annotations.SerializedName;
21+
import com.google.gson.stream.JsonReader;
22+
import com.google.gson.stream.JsonWriter;
23+
import io.swagger.annotations.ApiModel;
24+
import io.swagger.annotations.ApiModelProperty;
25+
import java.io.IOException;
26+
27+
/**
28+
* DBRPCreate
29+
*/
30+
31+
public class DBRPCreate {
32+
public static final String SERIALIZED_NAME_ORG_I_D = "orgID";
33+
@SerializedName(SERIALIZED_NAME_ORG_I_D)
34+
private String orgID;
35+
36+
public static final String SERIALIZED_NAME_ORG = "org";
37+
@SerializedName(SERIALIZED_NAME_ORG)
38+
private String org;
39+
40+
public static final String SERIALIZED_NAME_BUCKET_I_D = "bucketID";
41+
@SerializedName(SERIALIZED_NAME_BUCKET_I_D)
42+
private String bucketID;
43+
44+
public static final String SERIALIZED_NAME_DATABASE = "database";
45+
@SerializedName(SERIALIZED_NAME_DATABASE)
46+
private String database;
47+
48+
public static final String SERIALIZED_NAME_RETENTION_POLICY = "retention_policy";
49+
@SerializedName(SERIALIZED_NAME_RETENTION_POLICY)
50+
private String retentionPolicy;
51+
52+
public static final String SERIALIZED_NAME_DEFAULT = "default";
53+
@SerializedName(SERIALIZED_NAME_DEFAULT)
54+
private Boolean _default;
55+
56+
public DBRPCreate orgID(String orgID) {
57+
this.orgID = orgID;
58+
return this;
59+
}
60+
61+
/**
62+
* the organization ID that owns this mapping.
63+
* @return orgID
64+
**/
65+
@ApiModelProperty(value = "the organization ID that owns this mapping.")
66+
public String getOrgID() {
67+
return orgID;
68+
}
69+
70+
public void setOrgID(String orgID) {
71+
this.orgID = orgID;
72+
}
73+
74+
public DBRPCreate org(String org) {
75+
this.org = org;
76+
return this;
77+
}
78+
79+
/**
80+
* the organization that owns this mapping.
81+
* @return org
82+
**/
83+
@ApiModelProperty(value = "the organization that owns this mapping.")
84+
public String getOrg() {
85+
return org;
86+
}
87+
88+
public void setOrg(String org) {
89+
this.org = org;
90+
}
91+
92+
public DBRPCreate bucketID(String bucketID) {
93+
this.bucketID = bucketID;
94+
return this;
95+
}
96+
97+
/**
98+
* the bucket ID used as target for the translation.
99+
* @return bucketID
100+
**/
101+
@ApiModelProperty(required = true, value = "the bucket ID used as target for the translation.")
102+
public String getBucketID() {
103+
return bucketID;
104+
}
105+
106+
public void setBucketID(String bucketID) {
107+
this.bucketID = bucketID;
108+
}
109+
110+
public DBRPCreate database(String database) {
111+
this.database = database;
112+
return this;
113+
}
114+
115+
/**
116+
* InfluxDB v1 database
117+
* @return database
118+
**/
119+
@ApiModelProperty(required = true, value = "InfluxDB v1 database")
120+
public String getDatabase() {
121+
return database;
122+
}
123+
124+
public void setDatabase(String database) {
125+
this.database = database;
126+
}
127+
128+
public DBRPCreate retentionPolicy(String retentionPolicy) {
129+
this.retentionPolicy = retentionPolicy;
130+
return this;
131+
}
132+
133+
/**
134+
* InfluxDB v1 retention policy
135+
* @return retentionPolicy
136+
**/
137+
@ApiModelProperty(required = true, value = "InfluxDB v1 retention policy")
138+
public String getRetentionPolicy() {
139+
return retentionPolicy;
140+
}
141+
142+
public void setRetentionPolicy(String retentionPolicy) {
143+
this.retentionPolicy = retentionPolicy;
144+
}
145+
146+
public DBRPCreate _default(Boolean _default) {
147+
this._default = _default;
148+
return this;
149+
}
150+
151+
/**
152+
* Specify if this mapping represents the default retention policy for the database specificed.
153+
* @return _default
154+
**/
155+
@ApiModelProperty(value = "Specify if this mapping represents the default retention policy for the database specificed.")
156+
public Boolean getDefault() {
157+
return _default;
158+
}
159+
160+
public void setDefault(Boolean _default) {
161+
this._default = _default;
162+
}
163+
164+
165+
@Override
166+
public boolean equals(java.lang.Object o) {
167+
if (this == o) {
168+
return true;
169+
}
170+
if (o == null || getClass() != o.getClass()) {
171+
return false;
172+
}
173+
DBRPCreate dbRPCreate = (DBRPCreate) o;
174+
return Objects.equals(this.orgID, dbRPCreate.orgID) &&
175+
Objects.equals(this.org, dbRPCreate.org) &&
176+
Objects.equals(this.bucketID, dbRPCreate.bucketID) &&
177+
Objects.equals(this.database, dbRPCreate.database) &&
178+
Objects.equals(this.retentionPolicy, dbRPCreate.retentionPolicy) &&
179+
Objects.equals(this._default, dbRPCreate._default);
180+
}
181+
182+
@Override
183+
public int hashCode() {
184+
return Objects.hash(orgID, org, bucketID, database, retentionPolicy, _default);
185+
}
186+
187+
188+
@Override
189+
public String toString() {
190+
StringBuilder sb = new StringBuilder();
191+
sb.append("class DBRPCreate {\n");
192+
sb.append(" orgID: ").append(toIndentedString(orgID)).append("\n");
193+
sb.append(" org: ").append(toIndentedString(org)).append("\n");
194+
sb.append(" bucketID: ").append(toIndentedString(bucketID)).append("\n");
195+
sb.append(" database: ").append(toIndentedString(database)).append("\n");
196+
sb.append(" retentionPolicy: ").append(toIndentedString(retentionPolicy)).append("\n");
197+
sb.append(" _default: ").append(toIndentedString(_default)).append("\n");
198+
sb.append("}");
199+
return sb.toString();
200+
}
201+
202+
/**
203+
* Convert the given object to string with each line indented by 4 spaces
204+
* (except the first line).
205+
*/
206+
private String toIndentedString(java.lang.Object o) {
207+
if (o == null) {
208+
return "null";
209+
}
210+
return o.toString().replace("\n", "\n ");
211+
}
212+
213+
}
214+
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
/*
2+
* Influx OSS API Service
3+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4+
*
5+
* OpenAPI spec version: 2.0.0
6+
*
7+
*
8+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9+
* https://openapi-generator.tech
10+
* Do not edit the class manually.
11+
*/
12+
13+
14+
package com.influxdb.client.domain;
15+
16+
import java.util.Objects;
17+
import java.util.Arrays;
18+
import com.google.gson.TypeAdapter;
19+
import com.google.gson.annotations.JsonAdapter;
20+
import com.google.gson.annotations.SerializedName;
21+
import com.google.gson.stream.JsonReader;
22+
import com.google.gson.stream.JsonWriter;
23+
import com.influxdb.client.domain.DBRP;
24+
import io.swagger.annotations.ApiModel;
25+
import io.swagger.annotations.ApiModelProperty;
26+
import java.io.IOException;
27+
28+
/**
29+
* DBRPGet
30+
*/
31+
32+
public class DBRPGet {
33+
public static final String SERIALIZED_NAME_CONTENT = "content";
34+
@SerializedName(SERIALIZED_NAME_CONTENT)
35+
private DBRP content = null;
36+
37+
public DBRPGet content(DBRP content) {
38+
this.content = content;
39+
return this;
40+
}
41+
42+
/**
43+
* Get content
44+
* @return content
45+
**/
46+
@ApiModelProperty(value = "")
47+
public DBRP getContent() {
48+
return content;
49+
}
50+
51+
public void setContent(DBRP content) {
52+
this.content = content;
53+
}
54+
55+
56+
@Override
57+
public boolean equals(java.lang.Object o) {
58+
if (this == o) {
59+
return true;
60+
}
61+
if (o == null || getClass() != o.getClass()) {
62+
return false;
63+
}
64+
DBRPGet dbRPGet = (DBRPGet) o;
65+
return Objects.equals(this.content, dbRPGet.content);
66+
}
67+
68+
@Override
69+
public int hashCode() {
70+
return Objects.hash(content);
71+
}
72+
73+
74+
@Override
75+
public String toString() {
76+
StringBuilder sb = new StringBuilder();
77+
sb.append("class DBRPGet {\n");
78+
sb.append(" content: ").append(toIndentedString(content)).append("\n");
79+
sb.append("}");
80+
return sb.toString();
81+
}
82+
83+
/**
84+
* Convert the given object to string with each line indented by 4 spaces
85+
* (except the first line).
86+
*/
87+
private String toIndentedString(java.lang.Object o) {
88+
if (o == null) {
89+
return "null";
90+
}
91+
return o.toString().replace("\n", "\n ");
92+
}
93+
94+
}
95+

0 commit comments

Comments
 (0)