Skip to content

Commit fa6ca7c

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 97dbe42 of spec repo
1 parent 0acfd73 commit fa6ca7c

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:
@@ -16804,6 +16878,30 @@ components:
1680416878
example: canceled
1680516879
type: string
1680616880
type: object
16881+
DataExportConfig:
16882+
description: AWS Cost and Usage Report data export configuration.
16883+
properties:
16884+
bucket_name:
16885+
description: Name of the S3 bucket where the Cost and Usage Report is stored.
16886+
example: billing
16887+
type: string
16888+
bucket_region:
16889+
description: AWS region of the S3 bucket.
16890+
example: us-east-1
16891+
type: string
16892+
report_name:
16893+
description: Name of the Cost and Usage Report.
16894+
example: cost-and-usage-report
16895+
type: string
16896+
report_prefix:
16897+
description: S3 prefix where the Cost and Usage Report is stored.
16898+
example: reports
16899+
type: string
16900+
report_type:
16901+
description: Type of the Cost and Usage Report.
16902+
example: CUR2.0
16903+
type: string
16904+
type: object
1680716905
DataRelationshipsTeams:
1680816906
description: Associates teams with this schedule in a data structure.
1680916907
properties:
@@ -72147,6 +72245,127 @@ paths:
7214772245
operator: OR
7214872246
permissions:
7214972247
- aws_configuration_edit
72248+
/api/v2/integration/aws/accounts/{aws_account_config_id}/ccm_config:
72249+
delete:
72250+
description: Delete the Cloud Cost Management config for an AWS Account Integration
72251+
Config by config ID.
72252+
operationId: DeleteAWSAccountCCMConfig
72253+
parameters:
72254+
- $ref: '#/components/parameters/AWSAccountConfigIDPathParameter'
72255+
responses:
72256+
'204':
72257+
description: No Content.
72258+
'403':
72259+
$ref: '#/components/responses/ForbiddenResponse'
72260+
'404':
72261+
$ref: '#/components/responses/NotFoundResponse'
72262+
'429':
72263+
$ref: '#/components/responses/TooManyRequestsResponse'
72264+
summary: Delete AWS CCM config
72265+
tags:
72266+
- AWS Integration
72267+
x-permission:
72268+
operator: OR
72269+
permissions:
72270+
- aws_configuration_edit
72271+
get:
72272+
description: Get the Cloud Cost Management config for an AWS Account Integration
72273+
Config by config ID.
72274+
operationId: GetAWSAccountCCMConfig
72275+
parameters:
72276+
- $ref: '#/components/parameters/AWSAccountConfigIDPathParameter'
72277+
responses:
72278+
'200':
72279+
content:
72280+
application/json:
72281+
schema:
72282+
$ref: '#/components/schemas/AWSCcmConfigResponse'
72283+
description: AWS CCM Config object.
72284+
'403':
72285+
$ref: '#/components/responses/ForbiddenResponse'
72286+
'404':
72287+
$ref: '#/components/responses/NotFoundResponse'
72288+
'429':
72289+
$ref: '#/components/responses/TooManyRequestsResponse'
72290+
summary: Get AWS CCM config
72291+
tags:
72292+
- AWS Integration
72293+
x-permission:
72294+
operator: OR
72295+
permissions:
72296+
- aws_configuration_read
72297+
patch:
72298+
description: Update the Cloud Cost Management config for an AWS Account Integration
72299+
Config by config ID.
72300+
operationId: UpdateAWSAccountCCMConfig
72301+
parameters:
72302+
- $ref: '#/components/parameters/AWSAccountConfigIDPathParameter'
72303+
requestBody:
72304+
content:
72305+
application/json:
72306+
schema:
72307+
$ref: '#/components/schemas/AWSCcmConfigRequest'
72308+
description: Update a Cloud Cost Management config for an AWS Account Integration
72309+
Config.
72310+
required: true
72311+
responses:
72312+
'200':
72313+
content:
72314+
application/json:
72315+
schema:
72316+
$ref: '#/components/schemas/AWSCcmConfigResponse'
72317+
description: AWS CCM Config object.
72318+
'403':
72319+
$ref: '#/components/responses/ForbiddenResponse'
72320+
'404':
72321+
$ref: '#/components/responses/NotFoundResponse'
72322+
'429':
72323+
$ref: '#/components/responses/TooManyRequestsResponse'
72324+
summary: Update AWS CCM config
72325+
tags:
72326+
- AWS Integration
72327+
x-codegen-request-body-name: body
72328+
x-permission:
72329+
operator: OR
72330+
permissions:
72331+
- aws_configuration_edit
72332+
post:
72333+
description: Create the Cloud Cost Management config for an AWS Account Integration
72334+
Config by config ID.
72335+
operationId: CreateAWSAccountCCMConfig
72336+
parameters:
72337+
- $ref: '#/components/parameters/AWSAccountConfigIDPathParameter'
72338+
requestBody:
72339+
content:
72340+
application/json:
72341+
schema:
72342+
$ref: '#/components/schemas/AWSCcmConfigRequest'
72343+
description: Create a Cloud Cost Management config for an AWS Account Integration
72344+
Config.
72345+
required: true
72346+
responses:
72347+
'200':
72348+
content:
72349+
application/json:
72350+
schema:
72351+
$ref: '#/components/schemas/AWSCcmConfigResponse'
72352+
description: AWS CCM Config object.
72353+
'403':
72354+
$ref: '#/components/responses/ForbiddenResponse'
72355+
'404':
72356+
$ref: '#/components/responses/NotFoundResponse'
72357+
'409':
72358+
$ref: '#/components/responses/ConflictResponse'
72359+
'429':
72360+
$ref: '#/components/responses/TooManyRequestsResponse'
72361+
summary: Create AWS CCM config
72362+
tags:
72363+
- AWS Integration
72364+
x-codegen-request-body-name: body
72365+
x-permission:
72366+
operator: OR
72367+
permissions:
72368+
- aws_configuration_edit
7215072369
/api/v2/integration/aws/available_namespaces:
7215172370
get:
7215272371
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)