Skip to content

Commit

Permalink
Regenerate client from commit 2cf8d83c of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Oct 16, 2023
1 parent 0939634 commit 2a91b83
Show file tree
Hide file tree
Showing 30 changed files with 92 additions and 311 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.6",
"regenerated": "2023-10-13 14:48:31.209305",
"spec_repo_commit": "9c0d47b3"
"regenerated": "2023-10-16 13:58:38.228364",
"spec_repo_commit": "2cf8d83c"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2023-10-13 14:48:31.229549",
"spec_repo_commit": "9c0d47b3"
"regenerated": "2023-10-16 13:58:38.246403",
"spec_repo_commit": "2cf8d83c"
}
}
}
5 changes: 4 additions & 1 deletion examples/v2/confluent-cloud/DeleteConfluentAccount.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@ import (
)

func main() {
// there is a valid "confluent_account" in the system
ConfluentAccountDataID := os.Getenv("CONFLUENT_ACCOUNT_DATA_ID")

ctx := datadog.NewDefaultContext(context.Background())
configuration := datadog.NewConfiguration()
apiClient := datadog.NewAPIClient(configuration)
api := datadogV2.NewConfluentCloudApi(apiClient)
r, err := api.DeleteConfluentAccount(ctx, "account_id")
r, err := api.DeleteConfluentAccount(ctx, ConfluentAccountDataID)

if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ConfluentCloudApi.DeleteConfluentAccount`: %v\n", err)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,14 @@ import (
)

func main() {
// there is a valid "confluent_account" in the system
ConfluentAccountDataID := os.Getenv("CONFLUENT_ACCOUNT_DATA_ID")

ctx := datadog.NewDefaultContext(context.Background())
configuration := datadog.NewConfiguration()
apiClient := datadog.NewAPIClient(configuration)
api := datadogV2.NewConfluentCloudApi(apiClient)
r, err := api.DeleteConfluentAccount(ctx, ConfluentAccountDataID)
r, err := api.DeleteConfluentResource(ctx, "account_id", "resource_id")

if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ConfluentCloudApi.DeleteConfluentAccount`: %v\n", err)
fmt.Fprintf(os.Stderr, "Error when calling `ConfluentCloudApi.DeleteConfluentResource`: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
2 changes: 1 addition & 1 deletion examples/v2/downtimes/ListMonitorDowntimes.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func main() {
configuration := datadog.NewConfiguration()
apiClient := datadog.NewAPIClient(configuration)
api := datadogV2.NewDowntimesApi(apiClient)
resp, r, err := api.ListMonitorDowntimes(ctx, 9223372036854775807)
resp, r, err := api.ListMonitorDowntimes(ctx, 35534610)

if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `DowntimesApi.ListMonitorDowntimes`: %v\n", err)
Expand Down
29 changes: 0 additions & 29 deletions examples/v2/downtimes/ListMonitorDowntimes_128979780.go

This file was deleted.

9 changes: 2 additions & 7 deletions examples/v2/key-management/CreateCurrentUserApplicationKey.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,10 @@ import (
func main() {
body := datadogV2.ApplicationKeyCreateRequest{
Data: datadogV2.ApplicationKeyCreateData{
Type: datadogV2.APPLICATIONKEYSTYPE_APPLICATION_KEYS,
Attributes: datadogV2.ApplicationKeyCreateAttributes{
Name: "Application Key for managing dashboards",
Scopes: *datadog.NewNullableList(&[]string{
"dashboards_read",
"dashboards_write",
"dashboards_public_share",
}),
Name: "Example-Key-Management",
},
Type: datadogV2.APPLICATIONKEYSTYPE_APPLICATION_KEYS,
},
}
ctx := datadog.NewDefaultContext(context.Background())
Expand Down

This file was deleted.

5 changes: 4 additions & 1 deletion examples/v2/key-management/DeleteApplicationKey.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@ import (
)

func main() {
// there is a valid "application_key" in the system
ApplicationKeyDataID := os.Getenv("APPLICATION_KEY_DATA_ID")

ctx := datadog.NewDefaultContext(context.Background())
configuration := datadog.NewConfiguration()
apiClient := datadog.NewAPIClient(configuration)
api := datadogV2.NewKeyManagementApi(apiClient)
r, err := api.DeleteApplicationKey(ctx, "app_key_id")
r, err := api.DeleteApplicationKey(ctx, ApplicationKeyDataID)

if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `KeyManagementApi.DeleteApplicationKey`: %v\n", err)
Expand Down
28 changes: 0 additions & 28 deletions examples/v2/key-management/DeleteApplicationKey_771691550.go

This file was deleted.

This file was deleted.

29 changes: 0 additions & 29 deletions examples/v2/key-management/ListApplicationKeys_2237010090.go

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2023-10-16T13:02:15.749Z
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
interactions:
- request:
body: |
{"data":{"attributes":{"api_key":"TestDeleteresourcefromConfluentaccountreturnsOKresponse1665090164","api_secret":"test-api-secret","resources":[{"id":"test-resource-id","resource_type":"kafka","tags":["tag1","tag2:val2"]}],"tags":["tag1","tag2:val2"]},"type":"confluent-cloud-accounts"}}
{"data":{"attributes":{"api_key":"TestDeleteConfluentaccountreturnsOKresponse1697461335","api_secret":"test-api-secret","resources":[{"id":"test-resource-id","resource_type":"kafka","tags":["tag1","tag2:val2"]}],"tags":["tag1","tag2:val2"]},"type":"confluent-cloud-accounts"}}
form: {}
headers:
Accept:
Expand All @@ -11,7 +11,7 @@ interactions:
method: POST
url: https://api.datadoghq.com/api/v2/integrations/confluent-cloud/accounts
response:
body: '{"data":{"attributes":{"api_key":"TestDeleteresourcefromConfluentaccountreturnsOKresponse1665090164","resources":[{"id":"test-resource-id","resource_type":"kafka","tags":["tag1","tag2:val2"]}],"tags":["tag1","tag2:val2"]},"type":"confluent-cloud-accounts","id":"xxmv3lgki4"}}
body: '{"data":{"type":"confluent-cloud-accounts","attributes":{"resources":[{"tags":["tag1","tag2:val2"],"id":"test-resource-id","enable_custom_metrics":false,"resource_type":"kafka"}],"tags":["tag1","tag2:val2"],"api_key":"TestDeleteConfluentaccountreturnsOKresponse1697461335"},"id":"ed3f03aa36fdd7ba6b48381d54280e45"}}
'
code: 201
Expand All @@ -27,7 +27,7 @@ interactions:
Accept:
- '*/*'
method: DELETE
url: https://api.datadoghq.com/api/v2/integrations/confluent-cloud/accounts/xxmv3lgki4
url: https://api.datadoghq.com/api/v2/integrations/confluent-cloud/accounts/ed3f03aa36fdd7ba6b48381d54280e45
response:
body: ''
code: 204
Expand All @@ -43,7 +43,7 @@ interactions:
Accept:
- '*/*'
method: DELETE
url: https://api.datadoghq.com/api/v2/integrations/confluent-cloud/accounts/xxmv3lgki4
url: https://api.datadoghq.com/api/v2/integrations/confluent-cloud/accounts/ed3f03aa36fdd7ba6b48381d54280e45
response:
body: '{"errors":["Account not found not found"]}'
code: 404
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
2022-05-12T09:52:01.416Z
2023-10-16T13:55:48.764Z
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
interactions:
- request:
body: |
{"data":{"attributes":{"name":"Test-Create_an_Application_key_for_current_user_returns_Created_response-1652349121"},"type":"application_keys"}}
{"data":{"attributes":{"name":"Test-Create_an_application_key_for_current_user_returns_Created_response-1697464548"},"type":"application_keys"}}
form: {}
headers:
Accept:
Expand All @@ -11,7 +11,7 @@ interactions:
method: POST
url: https://api.datadoghq.com/api/v2/current_user/application_keys
response:
body: '{"data":{"type":"application_keys","id":"e1441667-cea7-4d53-85a8-7c7ea6191b2e","attributes":{"name":"Test-Create_an_Application_key_for_current_user_returns_Created_response-1652349121","created_at":"2022-05-12T09:52:01.912193+00:00","last4":"xxxx","key":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"leak_information":{"data":null}}}}'
body: '{"data":{"type":"application_keys","id":"513684db-d430-45bd-8239-0715320c9488","attributes":{"name":"Test-Create_an_application_key_for_current_user_returns_Created_response-1697464548","created_at":"2023-10-16T13:55:49.254647+00:00","last4":"xxxx","key":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","scopes":null},"relationships":{"owned_by":{"data":{"type":"users","id":"3ad549bf-eba0-11e9-a77a-0705486660d0"}},"leak_information":{"data":null}}}}'
code: 201
duration: ''
headers:
Expand All @@ -25,11 +25,13 @@ interactions:
Accept:
- '*/*'
method: DELETE
url: https://api.datadoghq.com/api/v2/current_user/application_keys/e1441667-cea7-4d53-85a8-7c7ea6191b2e
url: https://api.datadoghq.com/api/v2/current_user/application_keys/513684db-d430-45bd-8239-0715320c9488
response:
body: ''
code: 204
duration: ''
headers: {}
headers:
Content-Type:
- text/html; charset=utf-8
status: 204 No Content
version: 1
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2022-05-12T09:52:06.912Z
2023-10-16T13:18:28.907Z
Loading

0 comments on commit 2a91b83

Please sign in to comment.