Skip to content

Commit

Permalink
Regenerate client from commit bc275d1 of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Jan 13, 2022
1 parent 228e9be commit a3a1a49
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.5.1.dev2",
"regenerated": "2022-01-13 12:57:54.756060",
"spec_repo_commit": "1ae19d0"
"regenerated": "2022-01-13 15:32:12.340188",
"spec_repo_commit": "bc275d1"
},
"v2": {
"apigentools_version": "1.5.1.dev2",
"regenerated": "2022-01-13 12:57:54.780238",
"spec_repo_commit": "1ae19d0"
"regenerated": "2022-01-13 15:32:12.362669",
"spec_repo_commit": "bc275d1"
}
}
}
8 changes: 8 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16460,6 +16460,14 @@ paths:
required: false
schema:
type: boolean
- description: 'When `true`, this query only returns deleted custom created

or cloned dashboards.'
in: query
name: filter[deleted]
required: false
schema:
type: boolean
responses:
'200':
content:
Expand Down
18 changes: 14 additions & 4 deletions api/v1/datadog/api_dashboards.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions api/v1/datadog/docs/DashboardsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,10 @@ func main() {
ctx := datadog.NewDefaultContext(context.Background())

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

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

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

| Name | Type | Description | Notes |
| ---------------- | -------- | ------------------------------------------------------------------------------------------ | ----- |
| **filterShared** | **bool** | When `true`, this query only returns shared custom created or cloned dashboards. |
| Name | Type | Description | Notes |
| ----------------- | -------- | ------------------------------------------------------------------------------------------- | ----- |
| **filterShared** | **bool** | When `true`, this query only returns shared custom created or cloned dashboards. |
| **filterDeleted** | **bool** | When `true`, this query only returns deleted custom created or cloned dashboards. |

### Return type

Expand Down
2 changes: 1 addition & 1 deletion examples/v1/dashboards/ListDashboards.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func main() {
ctx := datadog.NewDefaultContext(context.Background())
configuration := datadog.NewConfiguration()
apiClient := datadog.NewAPIClient(configuration)
resp, r, err := apiClient.DashboardsApi.ListDashboards(ctx, *datadog.NewListDashboardsOptionalParameters().WithFilterShared(false))
resp, r, err := apiClient.DashboardsApi.ListDashboards(ctx, *datadog.NewListDashboardsOptionalParameters().WithFilterShared(false).WithFilterDeleted(false))

if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DashboardsApi.ListDashboards`: %v\n", err)
Expand Down
1 change: 1 addition & 0 deletions tests/scenarios/features/v1/dashboards.feature
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,7 @@ Feature: Dashboards
Given new "ListDashboards" request
And there is a valid "dashboard" in the system
And request contains "filter[shared]" parameter with value false
And request contains "filter[deleted]" parameter with value false
When the request is sent
Then the response status is 200 OK

Expand Down

0 comments on commit a3a1a49

Please sign in to comment.