Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
136 changes: 35 additions & 101 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,14 @@ components:
schema:
format: int64
type: integer
CloudInventorySyncConfigID:
description: Unique identifier of the Storage Management configuration.
example: abc123
in: path
name: id
required: true
schema:
type: string
CloudWorkloadSecurityAgentRuleID:
description: "The ID of the Agent rule"
example: 3b5-v82-ns6
Expand Down Expand Up @@ -19897,45 +19905,6 @@ components:
x-enum-varnames:
- "TRUE"
- "FALSE"
CostTagMetadataMonth:
description: A month that has Cloud Cost Management tag metadata available for a given provider.
properties:
id:
description: The month, in `YYYY-MM` format.
example: "2026-04"
type: string
type:
$ref: "#/components/schemas/CostTagMetadataMonthType"
required:
- id
- type
type: object
CostTagMetadataMonthType:
default: cost_tag_metadata_month
description: Type of the Cloud Cost Management tag metadata month resource.
enum:
- cost_tag_metadata_month
example: cost_tag_metadata_month
type: string
x-enum-varnames:
- COST_TAG_METADATA_MONTH
CostTagMetadataMonthsResponse:
description: List of months that have Cloud Cost Management tag metadata for the requested provider, ordered most-recent first and capped at 36 months.
example:
data:
- id: "2026-04"
type: cost_tag_metadata_month
- id: "2026-03"
type: cost_tag_metadata_month
properties:
data:
description: List of months that have tag metadata available.
items:
$ref: "#/components/schemas/CostTagMetadataMonth"
type: array
required:
- data
type: object
CostTagType:
default: cost_tag
description: Type of the Cloud Cost Management tag resource.
Expand Down Expand Up @@ -107705,6 +107674,33 @@ paths:
operator: OR
permissions:
- aws_configurations_manage
/api/v2/cloudinventoryservice/syncconfigs/{id}:
delete:
description: |-
Delete a Storage Management configuration by its unique identifier. Deleting a configuration stops inventory file synchronization for the associated cloud account.
operationId: DeleteSyncConfig
parameters:
- $ref: "#/components/parameters/CloudInventorySyncConfigID"
responses:
"204":
description: No Content
"403":
$ref: "#/components/responses/ForbiddenResponse"
"404":
content:
application/json:
schema:
$ref: "#/components/schemas/JSONAPIErrorResponse"
description: Not Found
"429":
$ref: "#/components/responses/TooManyRequestsResponse"
summary: Delete a Storage Management configuration
tags:
- Storage Management
"x-permission":
operator: OR
permissions:
- aws_configurations_manage
/api/v2/code-coverage/branch/summary:
post:
description: |-
Expand Down Expand Up @@ -111174,68 +111170,6 @@ paths:
x-unstable: |-
**Note**: This endpoint is in preview and is subject to change.
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
/api/v2/cost/tag_metadata/months:
get:
description: |-
List months that have Cloud Cost Management tag metadata for a given provider,
ordered most-recent first. The response is capped at 36 months.
operationId: ListCostTagMetadataMonths
parameters:
- description: |-
Provider to scope the query to. Use the value of the `providername` tag in CCM
(for example, `aws`, `azure`, `gcp`, `Oracle`, `Confluent Cloud`, `Snowflake`).
For costs uploaded through the Custom Costs API, use `custom`.
Values are case-sensitive.
example: aws
in: query
name: filter[provider]
required: true
schema:
type: string
responses:
"200":
content:
application/json:
examples:
default:
value:
data:
- id: "2026-04"
type: cost_tag_metadata_month
- id: "2026-03"
type: cost_tag_metadata_month
schema:
$ref: "#/components/schemas/CostTagMetadataMonthsResponse"
description: OK
"400":
content:
application/json:
schema:
$ref: "#/components/schemas/APIErrorResponse"
description: Bad Request
"403":
content:
application/json:
schema:
$ref: "#/components/schemas/APIErrorResponse"
description: Forbidden
"429":
$ref: "#/components/responses/TooManyRequestsResponse"
security:
- apiKeyAuth: []
appKeyAuth: []
- AuthZ:
- cloud_cost_management_read
summary: List Cloud Cost Management tag metadata months
tags:
- Cloud Cost Management
"x-permission":
operator: OR
permissions:
- cloud_cost_management_read
x-unstable: |-
**Note**: This endpoint is in preview and is subject to change.
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
/api/v2/cost/tag_metadata/orchestrators:
get:
description: List container orchestrators (for example, `kubernetes`, `ecs`) detected in Cloud Cost Management data for the requested period.
Expand Down
21 changes: 0 additions & 21 deletions docs/datadog_api_client.v2.model.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7872,27 +7872,6 @@ datadog\_api\_client.v2.model.cost\_tag\_metadata\_daily\_filter module
:members:
:show-inheritance:

datadog\_api\_client.v2.model.cost\_tag\_metadata\_month module
---------------------------------------------------------------

.. automodule:: datadog_api_client.v2.model.cost_tag_metadata_month
:members:
:show-inheritance:

datadog\_api\_client.v2.model.cost\_tag\_metadata\_month\_type module
---------------------------------------------------------------------

.. automodule:: datadog_api_client.v2.model.cost_tag_metadata_month_type
:members:
:show-inheritance:

datadog\_api\_client.v2.model.cost\_tag\_metadata\_months\_response module
--------------------------------------------------------------------------

.. automodule:: datadog_api_client.v2.model.cost_tag_metadata_months_response
:members:
:show-inheritance:

datadog\_api\_client.v2.model.cost\_tag\_type module
----------------------------------------------------

Expand Down
16 changes: 0 additions & 16 deletions examples/v2/cloud-cost-management/ListCostTagMetadataMonths.py

This file was deleted.

13 changes: 13 additions & 0 deletions examples/v2/storage-management/DeleteSyncConfig.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
"""
Delete a Storage Management configuration returns "No Content" response
"""

from datadog_api_client import ApiClient, Configuration
from datadog_api_client.v2.api.storage_management_api import StorageManagementApi

configuration = Configuration()
with ApiClient(configuration) as api_client:
api_instance = StorageManagementApi(api_client)
api_instance.delete_sync_config(
id="id",
)
1 change: 0 additions & 1 deletion src/datadog_api_client/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,6 @@ def __init__(
"v2.list_cost_tag_key_sources": False,
"v2.list_cost_tag_metadata": False,
"v2.list_cost_tag_metadata_metrics": False,
"v2.list_cost_tag_metadata_months": False,
"v2.list_cost_tag_metadata_orchestrators": False,
"v2.search_cost_recommendations": False,
"v2.create_dashboard_secure_embed": False,
Expand Down
45 changes: 0 additions & 45 deletions src/datadog_api_client/v2/api/cloud_cost_management_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
from datadog_api_client.v2.model.cost_tag_metadata_daily_filter import CostTagMetadataDailyFilter
from datadog_api_client.v2.model.cost_currency_response import CostCurrencyResponse
from datadog_api_client.v2.model.cost_metrics_response import CostMetricsResponse
from datadog_api_client.v2.model.cost_tag_metadata_months_response import CostTagMetadataMonthsResponse
from datadog_api_client.v2.model.cost_orchestrators_response import CostOrchestratorsResponse
from datadog_api_client.v2.model.cost_tag_key_sources_response import CostTagKeySourcesResponse
from datadog_api_client.v2.model.cost_tags_response import CostTagsResponse
Expand Down Expand Up @@ -1283,29 +1282,6 @@ def __init__(self, api_client=None):
api_client=api_client,
)

self._list_cost_tag_metadata_months_endpoint = _Endpoint(
settings={
"response_type": (CostTagMetadataMonthsResponse,),
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
"endpoint_path": "/api/v2/cost/tag_metadata/months",
"operation_id": "list_cost_tag_metadata_months",
"http_method": "GET",
"version": "v2",
},
params_map={
"filter_provider": {
"required": True,
"openapi_types": (str,),
"attribute": "filter[provider]",
"location": "query",
},
},
headers_map={
"accept": ["application/json"],
},
api_client=api_client,
)

self._list_cost_tag_metadata_orchestrators_endpoint = _Endpoint(
settings={
"response_type": (CostOrchestratorsResponse,),
Expand Down Expand Up @@ -2796,27 +2772,6 @@ def list_cost_tag_metadata_metrics(

return self._list_cost_tag_metadata_metrics_endpoint.call_with_http_info(**kwargs)

def list_cost_tag_metadata_months(
self,
filter_provider: str,
) -> CostTagMetadataMonthsResponse:
"""List Cloud Cost Management tag metadata months.

List months that have Cloud Cost Management tag metadata for a given provider,
ordered most-recent first. The response is capped at 36 months.

:param filter_provider: Provider to scope the query to. Use the value of the ``providername`` tag in CCM
(for example, ``aws`` , ``azure`` , ``gcp`` , ``Oracle`` , ``Confluent Cloud`` , ``Snowflake`` ).
For costs uploaded through the Custom Costs API, use ``custom``.
Values are case-sensitive.
:type filter_provider: str
:rtype: CostTagMetadataMonthsResponse
"""
kwargs: Dict[str, Any] = {}
kwargs["filter_provider"] = filter_provider

return self._list_cost_tag_metadata_months_endpoint.call_with_http_info(**kwargs)

def list_cost_tag_metadata_orchestrators(
self,
filter_month: str,
Expand Down
40 changes: 40 additions & 0 deletions src/datadog_api_client/v2/api/storage_management_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,29 @@ def __init__(self, api_client=None):
api_client = ApiClient(Configuration())
self.api_client = api_client

self._delete_sync_config_endpoint = _Endpoint(
settings={
"response_type": None,
"auth": ["apiKeyAuth", "appKeyAuth"],
"endpoint_path": "/api/v2/cloudinventoryservice/syncconfigs/{id}",
"operation_id": "delete_sync_config",
"http_method": "DELETE",
"version": "v2",
},
params_map={
"id": {
"required": True,
"openapi_types": (str,),
"attribute": "id",
"location": "path",
},
},
headers_map={
"accept": ["*/*"],
},
api_client=api_client,
)

self._upsert_sync_config_endpoint = _Endpoint(
settings={
"response_type": (CloudInventorySyncConfigResponse,),
Expand All @@ -41,6 +64,23 @@ def __init__(self, api_client=None):
api_client=api_client,
)

def delete_sync_config(
self,
id: str,
) -> None:
"""Delete a Storage Management configuration.

Delete a Storage Management configuration by its unique identifier. Deleting a configuration stops inventory file synchronization for the associated cloud account.

:param id: Unique identifier of the Storage Management configuration.
:type id: str
:rtype: None
"""
kwargs: Dict[str, Any] = {}
kwargs["id"] = id

return self._delete_sync_config_endpoint.call_with_http_info(**kwargs)

def upsert_sync_config(
self,
body: UpsertCloudInventorySyncConfigRequest,
Expand Down
46 changes: 0 additions & 46 deletions src/datadog_api_client/v2/model/cost_tag_metadata_month.py

This file was deleted.

Loading
Loading