Skip to content

Commit

Permalink
Regenerate client from commit cb0a2c0 of spec repo (#1364)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <[email protected]>
Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Mar 3, 2022
1 parent 910f326 commit 182cc20
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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.6.2",
"regenerated": "2022-03-02 17:37:30.178691",
"spec_repo_commit": "cd0cc83"
"regenerated": "2022-03-03 15:05:24.528621",
"spec_repo_commit": "cb0a2c0"
},
"v2": {
"apigentools_version": "1.6.2",
"regenerated": "2022-03-02 17:37:30.190455",
"spec_repo_commit": "cd0cc83"
"regenerated": "2022-03-03 15:05:24.543432",
"spec_repo_commit": "cb0a2c0"
}
}
}
6 changes: 3 additions & 3 deletions examples/v1/synthetics/GetAPITestResult_1321866518.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ import (

func main() {
// there is a "synthetics_api_test_with_wrong_dns" in the system
SyntheticsAPITestWithWrongDnsPublicID := os.Getenv("SYNTHETICS_API_TEST_WITH_WRONG_DNS_PUBLIC_ID")
SyntheticsAPITestWithWrongDNSPublicID := os.Getenv("SYNTHETICS_API_TEST_WITH_WRONG_DNS_PUBLIC_ID")

// the "synthetics_api_test_with_wrong_dns" is triggered
SyntheticsAPITestWithWrongDnsResultResults0ResultID := os.Getenv("SYNTHETICS_API_TEST_WITH_WRONG_DNS_RESULT_RESULTS_0_RESULT_ID")
SyntheticsAPITestWithWrongDNSResultResults0ResultID := os.Getenv("SYNTHETICS_API_TEST_WITH_WRONG_DNS_RESULT_RESULTS_0_RESULT_ID")

ctx := datadog.NewDefaultContext(context.Background())
configuration := datadog.NewConfiguration()
apiClient := datadog.NewAPIClient(configuration)
resp, r, err := apiClient.SyntheticsApi.GetAPITestResult(ctx, SyntheticsAPITestWithWrongDnsPublicID, SyntheticsAPITestWithWrongDnsResultResults0ResultID)
resp, r, err := apiClient.SyntheticsApi.GetAPITestResult(ctx, SyntheticsAPITestWithWrongDNSPublicID, SyntheticsAPITestWithWrongDNSResultResults0ResultID)

if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SyntheticsApi.GetAPITestResult`: %v\n", err)
Expand Down

0 comments on commit 182cc20

Please sign in to comment.