Skip to content

Commit b3db598

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit c2bf4d2 of spec repo
1 parent f46763b commit b3db598

File tree

33 files changed

+1339
-836
lines changed

33 files changed

+1339
-836
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.5.1.dev2",
7-
"regenerated": "2021-09-27 09:41:31.750263",
8-
"spec_repo_commit": "c02444e"
7+
"regenerated": "2021-09-28 12:42:38.355294",
8+
"spec_repo_commit": "c2bf4d2"
99
},
1010
"v2": {
1111
"apigentools_version": "1.5.1.dev2",
12-
"regenerated": "2021-09-27 09:42:16.323837",
13-
"spec_repo_commit": "c02444e"
12+
"regenerated": "2021-09-28 12:43:26.715219",
13+
"spec_repo_commit": "c2bf4d2"
1414
}
1515
}
1616
}

api_docs/v1/MetricsApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,8 @@ Name | Type | Description | Notes
342342

343343
### HTTP request headers
344344

345-
- **Content-Type**: application/json
346-
- **Accept**: application/json
345+
- **Content-Type**: text/json
346+
- **Accept**: text/json
347347

348348
### HTTP response details
349349
| Status code | Description | Response headers |

api_docs/v1/ServiceChecksApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Name | Type | Description | Notes
6464
### HTTP request headers
6565

6666
- **Content-Type**: application/json
67-
- **Accept**: application/json
67+
- **Accept**: text/json
6868

6969
### HTTP response details
7070
| Status code | Description | Response headers |

src/main/java/com/datadog/api/v1/client/api/MetricsApi.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -519,10 +519,10 @@ public ApiResponse<IntakePayloadAccepted> submitMetricsWithHttpInfo(MetricsPaylo
519519
// Set Operation-ID header for telemetry
520520
localVarHeaderParams.put("DD-OPERATION-ID", "submitMetrics");
521521

522-
final String[] localVarAccepts = {"application/json"};
522+
final String[] localVarAccepts = {"text/json"};
523523
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
524524

525-
final String[] localVarContentTypes = {"application/json"};
525+
final String[] localVarContentTypes = {"text/json"};
526526
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
527527

528528
String[] localVarAuthNames = new String[] {"apiKeyAuth"};

src/main/java/com/datadog/api/v1/client/api/ServiceChecksApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public ApiResponse<IntakePayloadAccepted> submitServiceCheckWithHttpInfo(List<Se
100100
// Set Operation-ID header for telemetry
101101
localVarHeaderParams.put("DD-OPERATION-ID", "submitServiceCheck");
102102

103-
final String[] localVarAccepts = {"application/json"};
103+
final String[] localVarAccepts = {"text/json"};
104104
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
105105

106106
final String[] localVarContentTypes = {"application/json"};

src/main/java/com/datadog/api/v1/client/model/Creator.java

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import io.swagger.annotations.ApiModel;
1818
import io.swagger.annotations.ApiModelProperty;
1919
import java.util.Objects;
20+
import org.openapitools.jackson.nullable.JsonNullable;
2021

2122
/** Object describing the creator of the shared element. */
2223
@ApiModel(description = "Object describing the creator of the shared element.")
@@ -35,7 +36,7 @@ public class Creator {
3536
private String handle;
3637

3738
public static final String JSON_PROPERTY_NAME = "name";
38-
private String name;
39+
private JsonNullable<String> name = JsonNullable.<String>undefined();
3940

4041
public Creator email(String email) {
4142
this.email = email;
@@ -82,7 +83,7 @@ public void setHandle(String handle) {
8283
}
8384

8485
public Creator name(String name) {
85-
this.name = name;
86+
this.name = JsonNullable.<String>of(name);
8687
return this;
8788
}
8889

@@ -93,16 +94,26 @@ public Creator name(String name) {
9394
*/
9495
@javax.annotation.Nullable
9596
@ApiModelProperty(value = "Name of the creator.")
97+
@JsonIgnore
98+
public String getName() {
99+
return name.orElse(null);
100+
}
101+
96102
@JsonProperty(JSON_PROPERTY_NAME)
97103
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
98-
public String getName() {
104+
public JsonNullable<String> getName_JsonNullable() {
99105
return name;
100106
}
101107

102-
public void setName(String name) {
108+
@JsonProperty(JSON_PROPERTY_NAME)
109+
public void setName_JsonNullable(JsonNullable<String> name) {
103110
this.name = name;
104111
}
105112

113+
public void setName(String name) {
114+
this.name = JsonNullable.<String>of(name);
115+
}
116+
106117
/** Return true if this Creator object is equal to o. */
107118
@Override
108119
public boolean equals(Object o) {

src/main/java/com/datadog/api/v1/client/model/DashboardSummaryDefinition.java

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import io.swagger.annotations.ApiModelProperty;
1919
import java.time.OffsetDateTime;
2020
import java.util.Objects;
21+
import org.openapitools.jackson.nullable.JsonNullable;
2122

2223
/** Dashboard definition. */
2324
@ApiModel(description = "Dashboard definition.")
@@ -42,7 +43,7 @@ public class DashboardSummaryDefinition {
4243
private OffsetDateTime createdAt;
4344

4445
public static final String JSON_PROPERTY_DESCRIPTION = "description";
45-
private String description;
46+
private JsonNullable<String> description = JsonNullable.<String>undefined();
4647

4748
public static final String JSON_PROPERTY_ID = "id";
4849
private String id;
@@ -107,7 +108,7 @@ public void setCreatedAt(OffsetDateTime createdAt) {
107108
}
108109

109110
public DashboardSummaryDefinition description(String description) {
110-
this.description = description;
111+
this.description = JsonNullable.<String>of(description);
111112
return this;
112113
}
113114

@@ -118,16 +119,26 @@ public DashboardSummaryDefinition description(String description) {
118119
*/
119120
@javax.annotation.Nullable
120121
@ApiModelProperty(value = "Description of the dashboard.")
122+
@JsonIgnore
123+
public String getDescription() {
124+
return description.orElse(null);
125+
}
126+
121127
@JsonProperty(JSON_PROPERTY_DESCRIPTION)
122128
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
123-
public String getDescription() {
129+
public JsonNullable<String> getDescription_JsonNullable() {
124130
return description;
125131
}
126132

127-
public void setDescription(String description) {
133+
@JsonProperty(JSON_PROPERTY_DESCRIPTION)
134+
public void setDescription_JsonNullable(JsonNullable<String> description) {
128135
this.description = description;
129136
}
130137

138+
public void setDescription(String description) {
139+
this.description = JsonNullable.<String>of(description);
140+
}
141+
131142
public DashboardSummaryDefinition id(String id) {
132143
this.id = id;
133144
return this;

src/main/java/com/datadog/api/v1/client/model/MetricsQueryMetadata.java

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import io.swagger.annotations.ApiModelProperty;
1919
import java.util.List;
2020
import java.util.Objects;
21+
import org.openapitools.jackson.nullable.JsonNullable;
2122

2223
/** Object containing all metric names returned and their associated metadata. */
2324
@ApiModel(
@@ -41,7 +42,7 @@
4142
public class MetricsQueryMetadata {
4243
@JsonIgnore public boolean unparsed = false;
4344
public static final String JSON_PROPERTY_AGGR = "aggr";
44-
private String aggr;
45+
private JsonNullable<String> aggr = JsonNullable.<String>undefined();
4546

4647
public static final String JSON_PROPERTY_DISPLAY_NAME = "display_name";
4748
private String displayName;
@@ -86,12 +87,26 @@ public class MetricsQueryMetadata {
8687
*/
8788
@javax.annotation.Nullable
8889
@ApiModelProperty(example = "avg", value = "Aggregation type.")
90+
@JsonIgnore
91+
public String getAggr() {
92+
93+
if (aggr == null) {
94+
aggr = JsonNullable.<String>undefined();
95+
}
96+
return aggr.orElse(null);
97+
}
98+
8999
@JsonProperty(JSON_PROPERTY_AGGR)
90100
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
91-
public String getAggr() {
101+
public JsonNullable<String> getAggr_JsonNullable() {
92102
return aggr;
93103
}
94104

105+
@JsonProperty(JSON_PROPERTY_AGGR)
106+
private void setAggr_JsonNullable(JsonNullable<String> aggr) {
107+
this.aggr = aggr;
108+
}
109+
95110
/**
96111
* Display name of the metric.
97112
*

src/main/java/com/datadog/api/v1/client/model/NotebookAuthor.java

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import io.swagger.annotations.ApiModelProperty;
1919
import java.time.OffsetDateTime;
2020
import java.util.Objects;
21+
import org.openapitools.jackson.nullable.JsonNullable;
2122

2223
/** Attributes of user object returned by the API. */
2324
@ApiModel(description = "Attributes of user object returned by the API.")
@@ -51,13 +52,13 @@ public class NotebookAuthor {
5152
private String icon;
5253

5354
public static final String JSON_PROPERTY_NAME = "name";
54-
private String name;
55+
private JsonNullable<String> name = JsonNullable.<String>undefined();
5556

5657
public static final String JSON_PROPERTY_STATUS = "status";
5758
private String status;
5859

5960
public static final String JSON_PROPERTY_TITLE = "title";
60-
private String title;
61+
private JsonNullable<String> title = JsonNullable.<String>undefined();
6162

6263
public static final String JSON_PROPERTY_VERIFIED = "verified";
6364
private Boolean verified;
@@ -173,7 +174,7 @@ public void setIcon(String icon) {
173174
}
174175

175176
public NotebookAuthor name(String name) {
176-
this.name = name;
177+
this.name = JsonNullable.<String>of(name);
177178
return this;
178179
}
179180

@@ -184,16 +185,26 @@ public NotebookAuthor name(String name) {
184185
*/
185186
@javax.annotation.Nullable
186187
@ApiModelProperty(value = "Name of the user.")
188+
@JsonIgnore
189+
public String getName() {
190+
return name.orElse(null);
191+
}
192+
187193
@JsonProperty(JSON_PROPERTY_NAME)
188194
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
189-
public String getName() {
195+
public JsonNullable<String> getName_JsonNullable() {
190196
return name;
191197
}
192198

193-
public void setName(String name) {
199+
@JsonProperty(JSON_PROPERTY_NAME)
200+
public void setName_JsonNullable(JsonNullable<String> name) {
194201
this.name = name;
195202
}
196203

204+
public void setName(String name) {
205+
this.name = JsonNullable.<String>of(name);
206+
}
207+
197208
public NotebookAuthor status(String status) {
198209
this.status = status;
199210
return this;
@@ -217,7 +228,7 @@ public void setStatus(String status) {
217228
}
218229

219230
public NotebookAuthor title(String title) {
220-
this.title = title;
231+
this.title = JsonNullable.<String>of(title);
221232
return this;
222233
}
223234

@@ -228,16 +239,26 @@ public NotebookAuthor title(String title) {
228239
*/
229240
@javax.annotation.Nullable
230241
@ApiModelProperty(value = "Title of the user.")
242+
@JsonIgnore
243+
public String getTitle() {
244+
return title.orElse(null);
245+
}
246+
231247
@JsonProperty(JSON_PROPERTY_TITLE)
232248
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
233-
public String getTitle() {
249+
public JsonNullable<String> getTitle_JsonNullable() {
234250
return title;
235251
}
236252

237-
public void setTitle(String title) {
253+
@JsonProperty(JSON_PROPERTY_TITLE)
254+
public void setTitle_JsonNullable(JsonNullable<String> title) {
238255
this.title = title;
239256
}
240257

258+
public void setTitle(String title) {
259+
this.title = JsonNullable.<String>of(title);
260+
}
261+
241262
public NotebookAuthor verified(Boolean verified) {
242263
this.verified = verified;
243264
return this;

0 commit comments

Comments
 (0)