Skip to content

Commit d09313c

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 74836c6 of spec repo
1 parent a4e8cef commit d09313c

27 files changed

+1301
-834
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 08:07:41.661597",
8-
"spec_repo_commit": "c7fa062"
7+
"regenerated": "2021-09-27 13:45:28.398478",
8+
"spec_repo_commit": "74836c6"
99
},
1010
"v2": {
1111
"apigentools_version": "1.5.1.dev2",
12-
"regenerated": "2021-09-27 08:08:20.543243",
13-
"spec_repo_commit": "c7fa062"
12+
"regenerated": "2021-09-27 13:46:14.611761",
13+
"spec_repo_commit": "74836c6"
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ Name | Type | Description | Notes
6363

6464
### HTTP request headers
6565

66-
- **Content-Type**: application/json
67-
- **Accept**: application/json
66+
- **Content-Type**: text/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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,10 @@ 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

106-
final String[] localVarContentTypes = {"application/json"};
106+
final String[] localVarContentTypes = {"text/json"};
107107
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
108108

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

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/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;

src/main/java/com/datadog/api/v1/openapi.yaml

Lines changed: 19 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -741,39 +741,39 @@ paths:
741741
operationId: SubmitServiceCheck
742742
requestBody:
743743
content:
744-
application/json:
744+
text/json:
745745
schema:
746746
$ref: '#/components/schemas/ServiceChecks'
747747
description: Service Check request body.
748748
required: true
749749
responses:
750750
"202":
751751
content:
752-
application/json:
752+
text/json:
753753
schema:
754754
$ref: '#/components/schemas/IntakePayloadAccepted'
755755
description: Payload accepted
756756
"400":
757757
content:
758-
application/json:
758+
text/json:
759759
schema:
760760
$ref: '#/components/schemas/APIErrorResponse'
761761
description: Bad Request
762762
"403":
763763
content:
764-
application/json:
764+
text/json:
765765
schema:
766766
$ref: '#/components/schemas/APIErrorResponse'
767767
description: Authentication Error
768768
"408":
769769
content:
770-
application/json:
770+
text/json:
771771
schema:
772772
$ref: '#/components/schemas/APIErrorResponse'
773773
description: Request timeout
774774
"413":
775775
content:
776-
application/json:
776+
text/json:
777777
schema:
778778
$ref: '#/components/schemas/APIErrorResponse'
779779
description: Payload too large
@@ -786,8 +786,8 @@ paths:
786786
x-menu-order: 1
787787
x-undo:
788788
type: safe
789-
x-contentType: application/json
790-
x-accepts: application/json
789+
x-contentType: text/json
790+
x-accepts: text/json
791791
/api/v1/daily_custom_reports:
792792
get:
793793
description: Get daily custom reports.
@@ -6541,7 +6541,7 @@ paths:
65416541
operationId: SubmitMetrics
65426542
requestBody:
65436543
content:
6544-
application/json:
6544+
text/json:
65456545
examples:
65466546
dynamic-points:
65476547
description: Post time-series data that can be graphed on Datadog’s
@@ -6561,31 +6561,31 @@ paths:
65616561
responses:
65626562
"202":
65636563
content:
6564-
application/json:
6564+
text/json:
65656565
schema:
65666566
$ref: '#/components/schemas/IntakePayloadAccepted'
65676567
description: Payload accepted
65686568
"400":
65696569
content:
6570-
application/json:
6570+
text/json:
65716571
schema:
65726572
$ref: '#/components/schemas/APIErrorResponse'
65736573
description: Bad Request
65746574
"403":
65756575
content:
6576-
application/json:
6576+
text/json:
65776577
schema:
65786578
$ref: '#/components/schemas/APIErrorResponse'
65796579
description: Authentication error
65806580
"408":
65816581
content:
6582-
application/json:
6582+
text/json:
65836583
schema:
65846584
$ref: '#/components/schemas/APIErrorResponse'
65856585
description: Request timeout
65866586
"413":
65876587
content:
6588-
application/json:
6588+
text/json:
65896589
schema:
65906590
$ref: '#/components/schemas/APIErrorResponse'
65916591
description: Payload too large
@@ -6598,8 +6598,8 @@ paths:
65986598
x-menu-order: 1
65996599
x-undo:
66006600
type: safe
6601-
x-contentType: application/json
6602-
x-accepts: application/json
6601+
x-contentType: text/json
6602+
x-accepts: text/json
66036603
/api/v1/slo:
66046604
get:
66056605
description: Get a list of service level objective objects for your organization.
@@ -11830,6 +11830,7 @@ components:
1183011830
type: string
1183111831
name:
1183211832
description: Name of the creator.
11833+
nullable: true
1183311834
type: string
1183411835
readOnly: true
1183511836
type: object
@@ -14975,8 +14976,6 @@ components:
1497514976
- IMAGE
1497614977
IntakePayloadAccepted:
1497714978
description: The payload accepted for intake.
14978-
example:
14979-
status: ok
1498014979
properties:
1498114980
status:
1498214981
description: The status of the intake payload.
@@ -16694,12 +16693,6 @@ components:
1669416693
type: object
1669516694
MetricsPayload:
1669616695
description: The metrics' payload.
16697-
example:
16698-
series:
16699-
- metric: system.load.1
16700-
points:
16701-
- - 1.475317847E9
16702-
- 0.7
1670316696
properties:
1670416697
series:
1670516698
description: A list of time series to submit to Datadog.
@@ -18039,12 +18032,14 @@ components:
1803918032
type: string
1804018033
name:
1804118034
description: Name of the user.
18035+
nullable: true
1804218036
type: string
1804318037
status:
1804418038
description: Status of the user.
1804518039
type: string
1804618040
title:
1804718041
description: Title of the user.
18042+
nullable: true
1804818043
type: string
1804918044
verified:
1805018045
description: Whether the user is verified.
@@ -20879,14 +20874,6 @@ components:
2087920874
type: object
2088020875
ServiceCheck:
2088120876
description: An object containing service check and status.
20882-
example:
20883-
check: app.ok
20884-
message: app is running
20885-
host_name: app.host1
20886-
status: 0
20887-
tags:
20888-
- environment:test
20889-
timestamp: 0
2089020877
properties:
2089120878
check:
2089220879
description: The check.

0 commit comments

Comments
 (0)