Skip to content

Commit 3022c8b

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 597f461 of spec repo (DataDog#3358)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 9bf4732 commit 3022c8b

40 files changed

Lines changed: 4565 additions & 0 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 863 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Delete a Cloud Cost Management tag description returns "No Content" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new
5+
api_instance.delete_cost_tag_description_by_key("tag_key")
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Generate a Cloud Cost Management tag description returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new
5+
p api_instance.generate_cost_tag_description_by_key("tag_key")
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Get a Cloud Cost Management tag description returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new
5+
p api_instance.get_cost_tag_description_by_key("tag_key")
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Upsert a Cloud Cost Management tag description returns "No Content" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new
5+
6+
body = DatadogAPIClient::V2::CostTagDescriptionUpsertRequest.new({
7+
data: DatadogAPIClient::V2::CostTagDescriptionUpsertRequestData.new({
8+
attributes: DatadogAPIClient::V2::CostTagDescriptionUpsertRequestDataAttributes.new({
9+
cloud: "aws",
10+
description: "AWS account that owns this cost.",
11+
}),
12+
id: "account_id",
13+
type: DatadogAPIClient::V2::CostTagDescriptionType::COST_TAG_DESCRIPTION,
14+
}),
15+
})
16+
api_instance.upsert_cost_tag_description_by_key("tag_key", body)
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Delete an OAuth2 client scopes restriction returns "No Content" response
2+
3+
require "datadog_api_client"
4+
DatadogAPIClient.configure do |config|
5+
config.unstable_operations["v2.delete_scopes_restriction".to_sym] = true
6+
end
7+
api_instance = DatadogAPIClient::V2::OAuth2ClientPublicAPI.new
8+
api_instance.delete_scopes_restriction("fafa8e1c-36a5-11f0-a83d-da7ad0900001")
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Get an OAuth2 client scopes restriction returns "OK" response
2+
3+
require "datadog_api_client"
4+
DatadogAPIClient.configure do |config|
5+
config.unstable_operations["v2.get_scopes_restriction".to_sym] = true
6+
end
7+
api_instance = DatadogAPIClient::V2::OAuth2ClientPublicAPI.new
8+
p api_instance.get_scopes_restriction("fafa8e1c-36a5-11f0-a83d-da7ad0900001")
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Register an OAuth2 client returns "Created" response
2+
3+
require "datadog_api_client"
4+
DatadogAPIClient.configure do |config|
5+
config.unstable_operations["v2.register_o_auth_client".to_sym] = true
6+
end
7+
api_instance = DatadogAPIClient::V2::OAuth2ClientPublicAPI.new
8+
9+
body = DatadogAPIClient::V2::OAuthClientRegistrationRequest.new({
10+
client_name: "Example MCP Client",
11+
client_uri: "https://example.com",
12+
grant_types: [
13+
DatadogAPIClient::V2::OAuthClientRegistrationGrantType::AUTHORIZATION_CODE,
14+
DatadogAPIClient::V2::OAuthClientRegistrationGrantType::REFRESH_TOKEN,
15+
],
16+
jwks_uri: "https://example.com/.well-known/jwks.json",
17+
logo_uri: "https://example.com/logo.png",
18+
policy_uri: "https://example.com/privacy",
19+
redirect_uris: [
20+
"https://example.com/oauth/callback",
21+
],
22+
response_types: [
23+
DatadogAPIClient::V2::OAuthClientRegistrationResponseType::CODE,
24+
],
25+
scope: "openid profile",
26+
token_endpoint_auth_method: "none",
27+
tos_uri: "https://example.com/tos",
28+
})
29+
p api_instance.register_o_auth_client(body)
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Upsert an OAuth2 client scopes restriction returns "OK" response
2+
3+
require "datadog_api_client"
4+
DatadogAPIClient.configure do |config|
5+
config.unstable_operations["v2.upsert_scopes_restriction".to_sym] = true
6+
end
7+
api_instance = DatadogAPIClient::V2::OAuth2ClientPublicAPI.new
8+
9+
body = DatadogAPIClient::V2::UpsertOAuthScopesRestrictionRequest.new({
10+
data: DatadogAPIClient::V2::UpsertOAuthScopesRestrictionData.new({
11+
attributes: DatadogAPIClient::V2::UpsertOAuthScopesRestrictionDataAttributes.new({
12+
oidc_scopes: [
13+
DatadogAPIClient::V2::OAuthOidcScope::OPENID,
14+
DatadogAPIClient::V2::OAuthOidcScope::EMAIL,
15+
],
16+
permission_scopes: [
17+
"dashboards_read",
18+
"metrics_read",
19+
],
20+
}),
21+
type: DatadogAPIClient::V2::UpsertOAuthScopesRestrictionType::UPSERT_SCOPES_RESTRICTION,
22+
}),
23+
})
24+
p api_instance.upsert_scopes_restriction("fafa8e1c-36a5-11f0-a83d-da7ad0900001", body)

features/scenarios_model_mapping.rb

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2622,6 +2622,21 @@
26222622
"v2.ListCostTagDescriptions" => {
26232623
"filter_cloud" => "String",
26242624
},
2625+
"v2.DeleteCostTagDescriptionByKey" => {
2626+
"tag_key" => "String",
2627+
"cloud" => "String",
2628+
},
2629+
"v2.GetCostTagDescriptionByKey" => {
2630+
"tag_key" => "String",
2631+
"filter_cloud" => "String",
2632+
},
2633+
"v2.UpsertCostTagDescriptionByKey" => {
2634+
"tag_key" => "String",
2635+
"body" => "CostTagDescriptionUpsertRequest",
2636+
},
2637+
"v2.GenerateCostTagDescriptionByKey" => {
2638+
"tag_key" => "String",
2639+
},
26252640
"v2.ListCostTagKeys" => {
26262641
"filter_metric" => "String",
26272642
"filter_tags" => "Array<String>",
@@ -3881,6 +3896,19 @@
38813896
"tags" => "String",
38823897
"limit" => "Integer",
38833898
},
3899+
"v2.DeleteScopesRestriction" => {
3900+
"client_uuid" => "UUID",
3901+
},
3902+
"v2.GetScopesRestriction" => {
3903+
"client_uuid" => "UUID",
3904+
},
3905+
"v2.UpsertScopesRestriction" => {
3906+
"client_uuid" => "UUID",
3907+
"body" => "UpsertOAuthScopesRestrictionRequest",
3908+
},
3909+
"v2.RegisterOAuthClient" => {
3910+
"body" => "OAuthClientRegistrationRequest",
3911+
},
38843912
"v2.ListPipelines" => {
38853913
"page_size" => "Integer",
38863914
"page_number" => "Integer",

0 commit comments

Comments
 (0)