From bec90f8fa53426d6d99f832077a7f5f8384df634 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Thu, 17 Sep 2020 09:15:38 +0000 Subject: [PATCH] Regenerate client from commit 2cc8a06 of spec repo --- .apigentools-info | 8 ++++---- api/v1/datadog/README.md | 2 +- api/v1/datadog/api/openapi.yaml | 17 +++-------------- api/v1/datadog/api_synthetics.go | 13 ++----------- api/v1/datadog/docs/SyntheticsApi.md | 15 +++++---------- .../api/v1/datadog/features/synthetics.feature | 12 ++++++------ 6 files changed, 21 insertions(+), 46 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index e597e602bf1..3b7f74b6bde 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.2.0", - "regenerated": "2020-09-16 15:43:27.803485", - "spec_repo_commit": "cbef552" + "regenerated": "2020-09-17 09:15:32.112617", + "spec_repo_commit": "2cc8a06" }, "v2": { "apigentools_version": "1.2.0", - "regenerated": "2020-09-16 15:43:33.662783", - "spec_repo_commit": "cbef552" + "regenerated": "2020-09-17 09:15:37.617382", + "spec_repo_commit": "2cc8a06" } } } \ No newline at end of file diff --git a/api/v1/datadog/README.md b/api/v1/datadog/README.md index 50013c78999..b4f59e6d6b8 100644 --- a/api/v1/datadog/README.md +++ b/api/v1/datadog/README.md @@ -184,7 +184,7 @@ Class | Method | HTTP request | Description *SyntheticsApi* | [**GetBrowserTestResult**](docs/SyntheticsApi.md#getbrowsertestresult) | **Get** /api/v1/synthetics/tests/browser/{public_id}/results/{result_id} | Get a test result (browser) *SyntheticsApi* | [**GetTest**](docs/SyntheticsApi.md#gettest) | **Get** /api/v1/synthetics/tests/{public_id} | Get a test configuration (API) *SyntheticsApi* | [**ListLocations**](docs/SyntheticsApi.md#listlocations) | **Get** /api/v1/synthetics/locations | Get all locations (public and private) -*SyntheticsApi* | [**ListTests**](docs/SyntheticsApi.md#listtests) | **Get** /api/v1/synthetics/tests | Get a list of tests +*SyntheticsApi* | [**ListTests**](docs/SyntheticsApi.md#listtests) | **Get** /api/v1/synthetics/tests | Get the list of all tests *SyntheticsApi* | [**TriggerCITests**](docs/SyntheticsApi.md#triggercitests) | **Post** /api/v1/synthetics/tests/trigger/ci | Trigger some Synthetics tests for CI *SyntheticsApi* | [**UpdateTest**](docs/SyntheticsApi.md#updatetest) | **Put** /api/v1/synthetics/tests/{public_id} | Edit a test *SyntheticsApi* | [**UpdateTestPauseStatus**](docs/SyntheticsApi.md#updatetestpausestatus) | **Put** /api/v1/synthetics/tests/{public_id}/status | Pause or start a test diff --git a/api/v1/datadog/api/openapi.yaml b/api/v1/datadog/api/openapi.yaml index 56e35e18b77..67b3997076d 100644 --- a/api/v1/datadog/api/openapi.yaml +++ b/api/v1/datadog/api/openapi.yaml @@ -4531,26 +4531,15 @@ paths: - Synthetics /api/v1/synthetics/tests: get: - description: Get the list of all Synthetic tests (can be filtered by type). + description: Get the list of all Synthetic tests. operationId: ListTests - parameters: - - description: API or browser to filter the list by test type, undefined to - get the unfiltered list. - explode: true - in: query - name: check_type - required: false - schema: - type: string - style: form responses: "200": content: application/json: schema: $ref: '#/components/schemas/SyntheticsListTestsResponse' - description: OK - Returns the list of all Synthetic tests (properly filtered - by type). + description: OK - Returns the list of all Synthetic tests. "403": content: application/json: @@ -4563,7 +4552,7 @@ paths: schema: $ref: '#/components/schemas/APIErrorResponse' description: Synthetics is not activated for the user. - summary: Get a list of tests + summary: Get the list of all tests tags: - Synthetics post: diff --git a/api/v1/datadog/api_synthetics.go b/api/v1/datadog/api_synthetics.go index c79fa8a5100..b96f779e613 100644 --- a/api/v1/datadog/api_synthetics.go +++ b/api/v1/datadog/api_synthetics.go @@ -1942,17 +1942,11 @@ func (r apiListLocationsRequest) Execute() (SyntheticsLocations, *_nethttp.Respo type apiListTestsRequest struct { ctx _context.Context apiService *SyntheticsApiService - checkType *string -} - -func (r apiListTestsRequest) CheckType(checkType string) apiListTestsRequest { - r.checkType = &checkType - return r } /* -ListTests Get a list of tests -Get the list of all Synthetic tests (can be filtered by type). +ListTests Get the list of all tests +Get the list of all Synthetic tests. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @return apiListTestsRequest */ @@ -1988,9 +1982,6 @@ func (r apiListTestsRequest) Execute() (SyntheticsListTestsResponse, *_nethttp.R localVarQueryParams := _neturl.Values{} localVarFormParams := _neturl.Values{} - if r.checkType != nil { - localVarQueryParams.Add("check_type", parameterToString(*r.checkType, "")) - } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/api/v1/datadog/docs/SyntheticsApi.md b/api/v1/datadog/docs/SyntheticsApi.md index 336cf4b65c8..0e65be59385 100644 --- a/api/v1/datadog/docs/SyntheticsApi.md +++ b/api/v1/datadog/docs/SyntheticsApi.md @@ -16,7 +16,7 @@ Method | HTTP request | Description [**GetBrowserTestResult**](SyntheticsApi.md#GetBrowserTestResult) | **Get** /api/v1/synthetics/tests/browser/{public_id}/results/{result_id} | Get a test result (browser) [**GetTest**](SyntheticsApi.md#GetTest) | **Get** /api/v1/synthetics/tests/{public_id} | Get a test configuration (API) [**ListLocations**](SyntheticsApi.md#ListLocations) | **Get** /api/v1/synthetics/locations | Get all locations (public and private) -[**ListTests**](SyntheticsApi.md#ListTests) | **Get** /api/v1/synthetics/tests | Get a list of tests +[**ListTests**](SyntheticsApi.md#ListTests) | **Get** /api/v1/synthetics/tests | Get the list of all tests [**TriggerCITests**](SyntheticsApi.md#TriggerCITests) | **Post** /api/v1/synthetics/tests/trigger/ci | Trigger some Synthetics tests for CI [**UpdateTest**](SyntheticsApi.md#UpdateTest) | **Put** /api/v1/synthetics/tests/{public_id} | Edit a test [**UpdateTestPauseStatus**](SyntheticsApi.md#UpdateTestPauseStatus) | **Put** /api/v1/synthetics/tests/{public_id}/status | Pause or start a test @@ -1018,9 +1018,9 @@ Other parameters are passed through a pointer to a apiListLocationsRequest struc ## ListTests -> SyntheticsListTestsResponse ListTests(ctx).CheckType(checkType).Execute() +> SyntheticsListTestsResponse ListTests(ctx).Execute() -Get a list of tests +Get the list of all tests @@ -1050,11 +1050,10 @@ func main() { }, ) - checkType := "checkType_example" // string | API or browser to filter the list by test type, undefined to get the unfiltered list. (optional) configuration := datadog.NewConfiguration() api_client := datadog.NewAPIClient(configuration) - resp, r, err := api_client.SyntheticsApi.ListTests(ctx).CheckType(checkType).Execute() + resp, r, err := api_client.SyntheticsApi.ListTests(ctx).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `SyntheticsApi.ListTests``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -1066,17 +1065,13 @@ func main() { ### Path Parameters - +This endpoint does not need any parameter. ### Other Parameters Other parameters are passed through a pointer to a apiListTestsRequest struct via the builder pattern -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **checkType** | **string** | API or browser to filter the list by test type, undefined to get the unfiltered list. | - ### Return type [**SyntheticsListTestsResponse**](SyntheticsListTestsResponse.md) diff --git a/tests/api/v1/datadog/features/synthetics.feature b/tests/api/v1/datadog/features/synthetics.feature index 1c02eabfe5c..dbe6983ca8e 100644 --- a/tests/api/v1/datadog/features/synthetics.feature +++ b/tests/api/v1/datadog/features/synthetics.feature @@ -21,12 +21,6 @@ Feature: Synthetics When the request is sent Then the response status is 200 OK - @generated @skip - Scenario: Get a list of tests returns "OK - Returns the list of all Synthetic tests (properly filtered by type)." response - Given new "ListTests" request - When the request is sent - Then the response status is 200 OK - Returns the list of all Synthetic tests (properly filtered by type). - @generated @skip Scenario: Create a test returns "OK - Returns the created test details." response Given new "CreateTest" request @@ -129,3 +123,9 @@ Feature: Synthetics And body {} When the request is sent Then the response status is 200 OK + + @generated @skip + Scenario: Get the list of all tests returns "OK - Returns the list of all Synthetic tests." response + Given new "ListTests" request + When the request is sent + Then the response status is 200 OK - Returns the list of all Synthetic tests.