Skip to content

Commit 7a1cae9

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit accbc92 of spec repo
1 parent 7749ccd commit 7a1cae9

19 files changed

Lines changed: 1691 additions & 0 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 219 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1754,6 +1754,80 @@ components:
17541754
required:
17551755
- role_name
17561756
type: object
1757+
AWSCCMConfig:
1758+
description: AWS Cloud Cost Management config.
1759+
properties:
1760+
data_export_configs:
1761+
description: List of data export configurations for Cost and Usage Reports.
1762+
items:
1763+
$ref: '#/components/schemas/DataExportConfig'
1764+
type: array
1765+
type: object
1766+
AWSCCMConfigRequest:
1767+
description: AWS CCM Config Create/Update Request body.
1768+
properties:
1769+
data:
1770+
$ref: '#/components/schemas/AWSCCMConfigRequestData'
1771+
required:
1772+
- data
1773+
type: object
1774+
AWSCCMConfigRequestAttributes:
1775+
description: AWS CCM Config attributes for Create/Update requests.
1776+
properties:
1777+
ccm_config:
1778+
$ref: '#/components/schemas/AWSCCMConfig'
1779+
type: object
1780+
AWSCCMConfigRequestData:
1781+
description: AWS CCM Config Create/Update Request data.
1782+
properties:
1783+
attributes:
1784+
$ref: '#/components/schemas/AWSCCMConfigRequestAttributes'
1785+
type:
1786+
$ref: '#/components/schemas/AWSCCMConfigType'
1787+
required:
1788+
- attributes
1789+
- type
1790+
type: object
1791+
AWSCCMConfigResponse:
1792+
description: AWS CCM Config response body.
1793+
properties:
1794+
data:
1795+
$ref: '#/components/schemas/AWSCCMConfigResponseData'
1796+
required:
1797+
- data
1798+
type: object
1799+
AWSCCMConfigResponseAttributes:
1800+
description: AWS CCM Config response attributes.
1801+
properties:
1802+
data_export_configs:
1803+
description: List of data export configurations for Cost and Usage Reports.
1804+
items:
1805+
$ref: '#/components/schemas/DataExportConfig'
1806+
type: array
1807+
type: object
1808+
AWSCCMConfigResponseData:
1809+
description: AWS CCM Config response data.
1810+
properties:
1811+
attributes:
1812+
$ref: '#/components/schemas/AWSCCMConfigResponseAttributes'
1813+
id:
1814+
description: The ID of the AWS Account Integration Config.
1815+
example: 00000000-0000-0000-0000-000000000000
1816+
type: string
1817+
type:
1818+
$ref: '#/components/schemas/AWSCCMConfigType'
1819+
required:
1820+
- type
1821+
type: object
1822+
AWSCCMConfigType:
1823+
default: ccm_config
1824+
description: AWS CCM Config resource type.
1825+
enum:
1826+
- ccm_config
1827+
example: ccm_config
1828+
type: string
1829+
x-enum-varnames:
1830+
- CCM_CONFIG
17571831
AWSCredentials:
17581832
description: The definition of `AWSCredentials` object.
17591833
oneOf:
@@ -16799,6 +16873,30 @@ components:
1679916873
example: canceled
1680016874
type: string
1680116875
type: object
16876+
DataExportConfig:
16877+
description: AWS Cost and Usage Report data export configuration.
16878+
properties:
16879+
bucket_name:
16880+
description: Name of the S3 bucket where the Cost and Usage Report is stored.
16881+
example: billing
16882+
type: string
16883+
bucket_region:
16884+
description: AWS region of the S3 bucket.
16885+
example: us-east-1
16886+
type: string
16887+
report_name:
16888+
description: Name of the Cost and Usage Report.
16889+
example: cost-and-usage-report
16890+
type: string
16891+
report_prefix:
16892+
description: S3 prefix where the Cost and Usage Report is stored.
16893+
example: reports
16894+
type: string
16895+
report_type:
16896+
description: Type of the Cost and Usage Report.
16897+
example: CUR2.0
16898+
type: string
16899+
type: object
1680216900
DataRelationshipsTeams:
1680316901
description: Associates teams with this schedule in a data structure.
1680416902
properties:
@@ -71192,6 +71290,127 @@ paths:
7119271290
operator: OR
7119371291
permissions:
7119471292
- aws_configuration_edit
71293+
/api/v2/integration/aws/accounts/{aws_account_config_id}/ccm_config:
71294+
delete:
71295+
description: Delete the Cloud Cost Management config for an AWS Account Integration
71296+
Config by config ID.
71297+
operationId: DeleteAWSAccountCCMConfig
71298+
parameters:
71299+
- $ref: '#/components/parameters/AWSAccountConfigIDPathParameter'
71300+
responses:
71301+
'204':
71302+
description: No Content
71303+
'403':
71304+
$ref: '#/components/responses/ForbiddenResponse'
71305+
'404':
71306+
$ref: '#/components/responses/NotFoundResponse'
71307+
'429':
71308+
$ref: '#/components/responses/TooManyRequestsResponse'
71309+
summary: Delete AWS CCM config
71310+
tags:
71311+
- AWS Integration
71312+
x-permission:
71313+
operator: OR
71314+
permissions:
71315+
- aws_configuration_edit
71316+
get:
71317+
description: Get the Cloud Cost Management config for an AWS Account Integration
71318+
Config by config ID.
71319+
operationId: GetAWSAccountCCMConfig
71320+
parameters:
71321+
- $ref: '#/components/parameters/AWSAccountConfigIDPathParameter'
71322+
responses:
71323+
'200':
71324+
content:
71325+
application/json:
71326+
schema:
71327+
$ref: '#/components/schemas/AWSCCMConfigResponse'
71328+
description: AWS CCM Config object
71329+
'403':
71330+
$ref: '#/components/responses/ForbiddenResponse'
71331+
'404':
71332+
$ref: '#/components/responses/NotFoundResponse'
71333+
'429':
71334+
$ref: '#/components/responses/TooManyRequestsResponse'
71335+
summary: Get AWS CCM config
71336+
tags:
71337+
- AWS Integration
71338+
x-permission:
71339+
operator: OR
71340+
permissions:
71341+
- aws_configuration_read
71342+
patch:
71343+
description: Update the Cloud Cost Management config for an AWS Account Integration
71344+
Config by config ID.
71345+
operationId: UpdateAWSAccountCCMConfig
71346+
parameters:
71347+
- $ref: '#/components/parameters/AWSAccountConfigIDPathParameter'
71348+
requestBody:
71349+
content:
71350+
application/json:
71351+
schema:
71352+
$ref: '#/components/schemas/AWSCCMConfigRequest'
71353+
description: Update a Cloud Cost Management config for an AWS Account Integration
71354+
Config.
71355+
required: true
71356+
responses:
71357+
'200':
71358+
content:
71359+
application/json:
71360+
schema:
71361+
$ref: '#/components/schemas/AWSCCMConfigResponse'
71362+
description: AWS CCM Config object
71363+
'403':
71364+
$ref: '#/components/responses/ForbiddenResponse'
71365+
'404':
71366+
$ref: '#/components/responses/NotFoundResponse'
71367+
'429':
71368+
$ref: '#/components/responses/TooManyRequestsResponse'
71369+
summary: Update AWS CCM config
71370+
tags:
71371+
- AWS Integration
71372+
x-codegen-request-body-name: body
71373+
x-permission:
71374+
operator: OR
71375+
permissions:
71376+
- aws_configuration_edit
71377+
post:
71378+
description: Create the Cloud Cost Management config for an AWS Account Integration
71379+
Config by config ID.
71380+
operationId: CreateAWSAccountCCMConfig
71381+
parameters:
71382+
- $ref: '#/components/parameters/AWSAccountConfigIDPathParameter'
71383+
requestBody:
71384+
content:
71385+
application/json:
71386+
schema:
71387+
$ref: '#/components/schemas/AWSCCMConfigRequest'
71388+
description: Create a Cloud Cost Management config for an AWS Account Integration
71389+
Config.
71390+
required: true
71391+
responses:
71392+
'200':
71393+
content:
71394+
application/json:
71395+
schema:
71396+
$ref: '#/components/schemas/AWSCCMConfigResponse'
71397+
description: AWS CCM Config object
71398+
'403':
71399+
$ref: '#/components/responses/ForbiddenResponse'
71400+
'404':
71401+
$ref: '#/components/responses/NotFoundResponse'
71402+
'409':
71403+
$ref: '#/components/responses/ConflictResponse'
71404+
'429':
71405+
$ref: '#/components/responses/TooManyRequestsResponse'
71406+
summary: Create AWS CCM config
71407+
tags:
71408+
- AWS Integration
71409+
x-codegen-request-body-name: body
71410+
x-permission:
71411+
operator: OR
71412+
permissions:
71413+
- aws_configuration_edit
7119571414
/api/v2/integration/aws/available_namespaces:
7119671415
get:
7119771416
description: Get a list of available AWS CloudWatch namespaces that can send
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Create AWS CCM config returns "AWS CCM Config object" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::AWSIntegrationAPI.new
5+
6+
body = DatadogAPIClient::V2::AWSCCMConfigRequest.new({
7+
data: DatadogAPIClient::V2::AWSCCMConfigRequestData.new({
8+
attributes: DatadogAPIClient::V2::AWSCCMConfigRequestAttributes.new({
9+
ccm_config: DatadogAPIClient::V2::AWSCCMConfig.new({
10+
data_export_configs: [
11+
DatadogAPIClient::V2::DataExportConfig.new({
12+
bucket_name: "billing",
13+
bucket_region: "us-east-1",
14+
report_name: "cost-and-usage-report",
15+
report_prefix: "reports",
16+
report_type: "CUR2.0",
17+
}),
18+
],
19+
}),
20+
}),
21+
type: DatadogAPIClient::V2::AWSCCMConfigType::CCM_CONFIG,
22+
}),
23+
})
24+
p api_instance.create_aws_account_ccm_config("aws_account_config_id", body)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Delete AWS CCM config returns "No Content" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::AWSIntegrationAPI.new
5+
api_instance.delete_aws_account_ccm_config("aws_account_config_id")
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Get AWS CCM config returns "AWS CCM Config object" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::AWSIntegrationAPI.new
5+
p api_instance.get_aws_account_ccm_config("aws_account_config_id")
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Update AWS CCM config returns "AWS CCM Config object" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::AWSIntegrationAPI.new
5+
6+
body = DatadogAPIClient::V2::AWSCCMConfigRequest.new({
7+
data: DatadogAPIClient::V2::AWSCCMConfigRequestData.new({
8+
attributes: DatadogAPIClient::V2::AWSCCMConfigRequestAttributes.new({
9+
ccm_config: DatadogAPIClient::V2::AWSCCMConfig.new({
10+
data_export_configs: [
11+
DatadogAPIClient::V2::DataExportConfig.new({
12+
bucket_name: "billing",
13+
bucket_region: "us-east-1",
14+
report_name: "cost-and-usage-report",
15+
report_prefix: "reports",
16+
report_type: "CUR2.0",
17+
}),
18+
],
19+
}),
20+
}),
21+
type: DatadogAPIClient::V2::AWSCCMConfigType::CCM_CONFIG,
22+
}),
23+
})
24+
p api_instance.update_aws_account_ccm_config("aws_account_config_id", body)

features/scenarios_model_mapping.rb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2199,6 +2199,20 @@
21992199
"aws_account_config_id" => "String",
22002200
"body" => "AWSAccountUpdateRequest",
22012201
},
2202+
"v2.DeleteAWSAccountCCMConfig" => {
2203+
"aws_account_config_id" => "String",
2204+
},
2205+
"v2.GetAWSAccountCCMConfig" => {
2206+
"aws_account_config_id" => "String",
2207+
},
2208+
"v2.UpdateAWSAccountCCMConfig" => {
2209+
"aws_account_config_id" => "String",
2210+
"body" => "AWSCCMConfigRequest",
2211+
},
2212+
"v2.CreateAWSAccountCCMConfig" => {
2213+
"aws_account_config_id" => "String",
2214+
"body" => "AWSCCMConfigRequest",
2215+
},
22022216
"v2.DeleteAWSEventBridgeSource" => {
22032217
"body" => "AWSEventBridgeDeleteRequest",
22042218
},

0 commit comments

Comments
 (0)