Skip to content

Commit 1b4353d

Browse files
authored
Use the same image as other SDKs (#474)
The examples in the docs are not used for now.
1 parent 4973325 commit 1b4353d

12 files changed

+78
-72
lines changed

docker-compose.generator.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: "3"
22
services:
33
datadog-api-client-v1:
4-
image: datadog/docker-library:openapi-generator-typescript-array-examples-905e6309a85
4+
image: datadog/docker-library:openapi-generator-cli-60b29e1f8e2
55
user: "${UID}:${GID}"
66
volumes:
77
- .:/src:rw
@@ -30,7 +30,7 @@ services:
3030
- -t
3131
- ".generator/templates"
3232
datadog-api-client-v2:
33-
image: datadog/docker-library:openapi-generator-typescript-array-examples-905e6309a85
33+
image: datadog/docker-library:openapi-generator-cli-60b29e1f8e2
3434
user: "${UID}:${GID}"
3535
volumes:
3636
- .:/src:rw

docs/v1/LogsApi.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -131,13 +131,6 @@ let params: v1.LogsApiSubmitLogRequest = {
131131
message: "2019-11-19T14:37:58,995 INFO [process.name][20081] Hello World",
132132
service: "payment",
133133
},
134-
{
135-
ddsource: "nginx",
136-
ddtags: "env:staging,version:5.1",
137-
hostname: "i-012345678",
138-
message: "2019-11-19T14:37:58,995 INFO [process.name][20081] Hello World",
139-
service: "payment",
140-
},
141134
],
142135
// ContentEncoding | HTTP header used to compress the media-type. (optional)
143136
contentEncoding: "gzip",

docs/v1/MetricsApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ let params: v1.MetricsApiSubmitMetricsRequest = {
296296
host: "test.example.com",
297297
interval: 20,
298298
metric: "system.load.1",
299-
points: [[1.575317847e9, 0.5]],
299+
points: [1.575317847e9, 0.5],
300300
tags: ["environment:test"],
301301
type: "rate",
302302
},

docs/v1/NotebooksApi.md

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,6 @@ let params: v1.NotebooksApiCreateNotebookRequest = {
3535
attributes: {
3636
definition: {
3737
text: `# Example Header
38-
example content`,
39-
type: "markdown",
40-
},
41-
},
42-
type: "notebook_cells",
43-
},
44-
{
45-
attributes: {
46-
definition: {
47-
text: `# Example Header
4838
example content`,
4939
type: "markdown",
5040
},
@@ -345,16 +335,6 @@ let params: v1.NotebooksApiUpdateNotebookRequest = {
345335
attributes: {
346336
definition: {
347337
text: `# Example Header
348-
example content`,
349-
type: "markdown",
350-
},
351-
},
352-
type: "notebook_cells",
353-
},
354-
{
355-
attributes: {
356-
definition: {
357-
text: `# Example Header
358338
example content`,
359339
type: "markdown",
360340
},

docs/v1/ServiceLevelObjectivesApi.md

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,6 @@ let params: v1.ServiceLevelObjectivesApiCreateSLORequest = {
111111
warning: 90.0,
112112
warningDisplay: "90.0",
113113
},
114-
{
115-
target: 99.9,
116-
targetDisplay: "99.9",
117-
timeframe: "30d",
118-
warning: 90.0,
119-
warningDisplay: "90.0",
120-
},
121114
],
122115
type: "metric",
123116
},
@@ -614,13 +607,6 @@ let params: v1.ServiceLevelObjectivesApiUpdateSLORequest = {
614607
warning: 90.0,
615608
warningDisplay: "90.0",
616609
},
617-
{
618-
target: 99.9,
619-
targetDisplay: "99.9",
620-
timeframe: "30d",
621-
warning: 90.0,
622-
warningDisplay: "90.0",
623-
},
624610
],
625611
type: "metric",
626612
},

docs/v1/SyntheticsApi.md

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,14 @@ let params: v1.SyntheticsApiCreateSyntheticsAPITestRequest = {
252252
steps: [
253253
{
254254
allowFailure: true,
255-
assertions: [],
255+
assertions: [
256+
{
257+
operator: "contains",
258+
property: "property_example",
259+
target: null,
260+
type: "statusCode",
261+
},
262+
],
256263
extractedValues: [
257264
{
258265
field: "content-type",
@@ -401,7 +408,14 @@ let params: v1.SyntheticsApiCreateSyntheticsBrowserTestRequest = {
401408
// SyntheticsBrowserTest | Details of the test to create.
402409
body: {
403410
config: {
404-
assertions: [],
411+
assertions: [
412+
{
413+
operator: "contains",
414+
property: "property_example",
415+
target: null,
416+
type: "statusCode",
417+
},
418+
],
405419
configVariables: [
406420
{
407421
example: "example_example",
@@ -1843,7 +1857,14 @@ let params: v1.SyntheticsApiUpdateAPITestRequest = {
18431857
steps: [
18441858
{
18451859
allowFailure: true,
1846-
assertions: [],
1860+
assertions: [
1861+
{
1862+
operator: "contains",
1863+
property: "property_example",
1864+
target: null,
1865+
type: "statusCode",
1866+
},
1867+
],
18471868
extractedValues: [
18481869
{
18491870
field: "content-type",
@@ -1995,7 +2016,14 @@ let params: v1.SyntheticsApiUpdateBrowserTestRequest = {
19952016
// SyntheticsBrowserTest | New test details to be saved.
19962017
body: {
19972018
config: {
1998-
assertions: [],
2019+
assertions: [
2020+
{
2021+
operator: "contains",
2022+
property: "property_example",
2023+
target: null,
2024+
type: "statusCode",
2025+
},
2026+
],
19992027
configVariables: [
20002028
{
20012029
example: "example_example",

docs/v2/IncidentsApi.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -366,10 +366,6 @@ let params: v2.IncidentsApiUpdateIncidentRequest = {
366366
id: "00000000-0000-0000-0000-000000000000",
367367
type: "incident_integrations",
368368
},
369-
{
370-
id: "00000000-0000-0000-0000-000000000000",
371-
type: "incident_integrations",
372-
},
373369
],
374370
},
375371
lastModifiedByUser: {

docs/v2/LogsApi.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -336,13 +336,6 @@ let params: v2.LogsApiSubmitLogRequest = {
336336
message: "2019-11-19T14:37:58,995 INFO [process.name][20081] Hello World",
337337
service: "payment",
338338
},
339-
{
340-
ddsource: "nginx",
341-
ddtags: "env:staging,version:5.1",
342-
hostname: "i-012345678",
343-
message: "2019-11-19T14:37:58,995 INFO [process.name][20081] Hello World",
344-
service: "payment",
345-
},
346339
],
347340
// ContentEncoding | HTTP header used to compress the media-type. (optional)
348341
contentEncoding: "gzip",

docs/v2/MetricsApi.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@ let params: v2.MetricsApiCreateTagConfigurationRequest = {
4242
space: "sum",
4343
time: "sum",
4444
},
45-
{
46-
space: "sum",
47-
time: "sum",
48-
},
4945
],
5046
includePercentiles: true,
5147
metricType: "count",
@@ -451,10 +447,6 @@ let params: v2.MetricsApiUpdateTagConfigurationRequest = {
451447
space: "sum",
452448
time: "sum",
453449
},
454-
{
455-
space: "sum",
456-
time: "sum",
457-
},
458450
],
459451
includePercentiles: true,
460452
tags: ["app", "datacenter"],

docs/v2/RolesApi.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,12 @@ let params: v2.RolesApiCreateRoleRequest = {
260260
],
261261
},
262262
users: {
263-
data: [],
263+
data: [
264+
{
265+
id: "00000000-0000-0000-0000-000000000000",
266+
type: "users",
267+
},
268+
],
264269
},
265270
},
266271
type: "roles",

0 commit comments

Comments
 (0)