Skip to content

Commit a3a1a49

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit bc275d1 of spec repo
1 parent 228e9be commit a3a1a49

File tree

6 files changed

+34
-12
lines changed

6 files changed

+34
-12
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": "2022-01-13 12:57:54.756060",
8-
"spec_repo_commit": "1ae19d0"
7+
"regenerated": "2022-01-13 15:32:12.340188",
8+
"spec_repo_commit": "bc275d1"
99
},
1010
"v2": {
1111
"apigentools_version": "1.5.1.dev2",
12-
"regenerated": "2022-01-13 12:57:54.780238",
13-
"spec_repo_commit": "1ae19d0"
12+
"regenerated": "2022-01-13 15:32:12.362669",
13+
"spec_repo_commit": "bc275d1"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16460,6 +16460,14 @@ paths:
1646016460
required: false
1646116461
schema:
1646216462
type: boolean
16463+
- description: 'When `true`, this query only returns deleted custom created
16464+
16465+
or cloned dashboards.'
16466+
in: query
16467+
name: filter[deleted]
16468+
required: false
16469+
schema:
16470+
type: boolean
1646316471
responses:
1646416472
'200':
1646516473
content:

api/v1/datadog/api_dashboards.go

Lines changed: 14 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/v1/datadog/docs/DashboardsApi.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,10 @@ func main() {
299299
ctx := datadog.NewDefaultContext(context.Background())
300300

301301
filterShared := true // bool | When `true`, this query only returns shared custom created or cloned dashboards. (optional)
302+
filterDeleted := true // bool | When `true`, this query only returns deleted custom created or cloned dashboards. (optional)
302303
optionalParams := datadog.ListDashboardsOptionalParameters{
303304
FilterShared: &filterShared,
305+
FilterDeleted: &filterDeleted,
304306
}
305307

306308
configuration := datadog.NewConfiguration()
@@ -323,9 +325,10 @@ func main() {
323325

324326
Other parameters are passed through a pointer to a ListDashboardsOptionalParameters struct.
325327

326-
| Name | Type | Description | Notes |
327-
| ---------------- | -------- | ------------------------------------------------------------------------------------------ | ----- |
328-
| **filterShared** | **bool** | When `true`, this query only returns shared custom created or cloned dashboards. |
328+
| Name | Type | Description | Notes |
329+
| ----------------- | -------- | ------------------------------------------------------------------------------------------- | ----- |
330+
| **filterShared** | **bool** | When `true`, this query only returns shared custom created or cloned dashboards. |
331+
| **filterDeleted** | **bool** | When `true`, this query only returns deleted custom created or cloned dashboards. |
329332

330333
### Return type
331334

examples/v1/dashboards/ListDashboards.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ func main() {
1515
ctx := datadog.NewDefaultContext(context.Background())
1616
configuration := datadog.NewConfiguration()
1717
apiClient := datadog.NewAPIClient(configuration)
18-
resp, r, err := apiClient.DashboardsApi.ListDashboards(ctx, *datadog.NewListDashboardsOptionalParameters().WithFilterShared(false))
18+
resp, r, err := apiClient.DashboardsApi.ListDashboards(ctx, *datadog.NewListDashboardsOptionalParameters().WithFilterShared(false).WithFilterDeleted(false))
1919

2020
if err != nil {
2121
fmt.Fprintf(os.Stderr, "Error when calling `DashboardsApi.ListDashboards`: %v\n", err)

tests/scenarios/features/v1/dashboards.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,7 @@ Feature: Dashboards
429429
Given new "ListDashboards" request
430430
And there is a valid "dashboard" in the system
431431
And request contains "filter[shared]" parameter with value false
432+
And request contains "filter[deleted]" parameter with value false
432433
When the request is sent
433434
Then the response status is 200 OK
434435

0 commit comments

Comments
 (0)