Skip to content

Commit 25424b2

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Remove /api/v2/cost/enabled (#2304)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent d0d13ae commit 25424b2

File tree

12 files changed

+4
-322
lines changed

12 files changed

+4
-322
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2024-12-10 13:52:25.561950",
8-
"spec_repo_commit": "4f71be94"
7+
"regenerated": "2024-12-10 14:43:50.083055",
8+
"spec_repo_commit": "408f0b84"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-12-10 13:52:25.579439",
13-
"spec_repo_commit": "4f71be94"
12+
"regenerated": "2024-12-10 14:43:50.102581",
13+
"spec_repo_commit": "408f0b84"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -4929,42 +4929,6 @@ components:
49294929
type: string
49304930
x-enum-varnames:
49314931
- CLOUD_CONFIGURATION
4932-
CloudCostActivity:
4933-
description: Cloud Cost Activity.
4934-
properties:
4935-
attributes:
4936-
$ref: '#/components/schemas/CloudCostActivityAttributes'
4937-
type:
4938-
$ref: '#/components/schemas/CloudCostActivityType'
4939-
required:
4940-
- attributes
4941-
- type
4942-
type: object
4943-
CloudCostActivityAttributes:
4944-
description: Attributes for Cloud Cost activity.
4945-
properties:
4946-
is_enabled:
4947-
description: Whether or not the cloud account is enabled.
4948-
example: true
4949-
type: boolean
4950-
required:
4951-
- is_enabled
4952-
type: object
4953-
CloudCostActivityResponse:
4954-
description: Response for Cloud Cost activity.
4955-
properties:
4956-
data:
4957-
$ref: '#/components/schemas/CloudCostActivity'
4958-
type: object
4959-
CloudCostActivityType:
4960-
default: cloud_cost_activity
4961-
description: Type of Cloud Cost Activity.
4962-
enum:
4963-
- cloud_cost_activity
4964-
example: cloud_cost_activity
4965-
type: string
4966-
x-enum-varnames:
4967-
- CLOUD_COST_ACTIVITY
49684932
CloudWorkloadSecurityAgentRuleAction:
49694933
description: The action the rule can perform if triggered.
49704934
properties:
@@ -30572,38 +30536,6 @@ paths:
3057230536
summary: Get Custom Costs file
3057330537
tags:
3057430538
- Cloud Cost Management
30575-
/api/v2/cost/enabled:
30576-
get:
30577-
deprecated: true
30578-
description: Get the Cloud Cost Management activity.
30579-
operationId: GetCloudCostActivity
30580-
responses:
30581-
'200':
30582-
content:
30583-
application/json:
30584-
schema:
30585-
$ref: '#/components/schemas/CloudCostActivityResponse'
30586-
description: OK
30587-
'403':
30588-
content:
30589-
application/json:
30590-
schema:
30591-
$ref: '#/components/schemas/APIErrorResponse'
30592-
description: Forbidden
30593-
'429':
30594-
$ref: '#/components/responses/TooManyRequestsResponse'
30595-
security:
30596-
- apiKeyAuth: []
30597-
appKeyAuth: []
30598-
- AuthZ:
30599-
- cloud_cost_management_read
30600-
summary: Cloud Cost Enabled
30601-
tags:
30602-
- Cloud Cost Management
30603-
x-permission:
30604-
operator: OR
30605-
permissions:
30606-
- cloud_cost_management_read
3060730539
/api/v2/cost_by_tag/active_billing_dimensions:
3060830540
get:
3060930541
description: Get active billing dimensions for cost attribution. Cost data for

docs/datadog_api_client.v2.model.rst

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1852,34 +1852,6 @@ datadog\_api\_client.v2.model.cloud\_configuration\_rule\_type module
18521852
:members:
18531853
:show-inheritance:
18541854

1855-
datadog\_api\_client.v2.model.cloud\_cost\_activity module
1856-
----------------------------------------------------------
1857-
1858-
.. automodule:: datadog_api_client.v2.model.cloud_cost_activity
1859-
:members:
1860-
:show-inheritance:
1861-
1862-
datadog\_api\_client.v2.model.cloud\_cost\_activity\_attributes module
1863-
----------------------------------------------------------------------
1864-
1865-
.. automodule:: datadog_api_client.v2.model.cloud_cost_activity_attributes
1866-
:members:
1867-
:show-inheritance:
1868-
1869-
datadog\_api\_client.v2.model.cloud\_cost\_activity\_response module
1870-
--------------------------------------------------------------------
1871-
1872-
.. automodule:: datadog_api_client.v2.model.cloud_cost_activity_response
1873-
:members:
1874-
:show-inheritance:
1875-
1876-
datadog\_api\_client.v2.model.cloud\_cost\_activity\_type module
1877-
----------------------------------------------------------------
1878-
1879-
.. automodule:: datadog_api_client.v2.model.cloud_cost_activity_type
1880-
:members:
1881-
:show-inheritance:
1882-
18831855
datadog\_api\_client.v2.model.cloud\_workload\_security\_agent\_rule\_action module
18841856
-----------------------------------------------------------------------------------
18851857

examples/v2/cloud-cost-management/GetCloudCostActivity.py

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/datadog_api_client/v2/api/cloud_cost_management_api.py

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from __future__ import annotations
55

66
from typing import Any, Dict, List
7-
import warnings
87

98
from datadog_api_client.api_client import ApiClient, Endpoint as _Endpoint
109
from datadog_api_client.configuration import Configuration
@@ -20,7 +19,6 @@
2019
from datadog_api_client.v2.model.custom_costs_file_upload_response import CustomCostsFileUploadResponse
2120
from datadog_api_client.v2.model.custom_costs_file_line_item import CustomCostsFileLineItem
2221
from datadog_api_client.v2.model.custom_costs_file_get_response import CustomCostsFileGetResponse
23-
from datadog_api_client.v2.model.cloud_cost_activity_response import CloudCostActivityResponse
2422

2523

2624
class CloudCostManagementApi:
@@ -142,22 +140,6 @@ def __init__(self, api_client=None):
142140
api_client=api_client,
143141
)
144142

145-
self._get_cloud_cost_activity_endpoint = _Endpoint(
146-
settings={
147-
"response_type": (CloudCostActivityResponse,),
148-
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
149-
"endpoint_path": "/api/v2/cost/enabled",
150-
"operation_id": "get_cloud_cost_activity",
151-
"http_method": "GET",
152-
"version": "v2",
153-
},
154-
params_map={},
155-
headers_map={
156-
"accept": ["application/json"],
157-
},
158-
api_client=api_client,
159-
)
160-
161143
self._get_custom_costs_file_endpoint = _Endpoint(
162144
settings={
163145
"response_type": (CustomCostsFileGetResponse,),
@@ -385,19 +367,6 @@ def delete_custom_costs_file(
385367

386368
return self._delete_custom_costs_file_endpoint.call_with_http_info(**kwargs)
387369

388-
def get_cloud_cost_activity(
389-
self,
390-
) -> CloudCostActivityResponse:
391-
"""Cloud Cost Enabled. **Deprecated**.
392-
393-
Get the Cloud Cost Management activity.
394-
395-
:rtype: CloudCostActivityResponse
396-
"""
397-
kwargs: Dict[str, Any] = {}
398-
warnings.warn("get_cloud_cost_activity is deprecated", DeprecationWarning, stacklevel=2)
399-
return self._get_cloud_cost_activity_endpoint.call_with_http_info(**kwargs)
400-
401370
def get_custom_costs_file(
402371
self,
403372
file_id: str,

src/datadog_api_client/v2/model/cloud_cost_activity.py

Lines changed: 0 additions & 48 deletions
This file was deleted.

src/datadog_api_client/v2/model/cloud_cost_activity_attributes.py

Lines changed: 0 additions & 33 deletions
This file was deleted.

src/datadog_api_client/v2/model/cloud_cost_activity_response.py

Lines changed: 0 additions & 42 deletions
This file was deleted.

src/datadog_api_client/v2/model/cloud_cost_activity_type.py

Lines changed: 0 additions & 35 deletions
This file was deleted.

src/datadog_api_client/v2/models/__init__.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -292,10 +292,6 @@
292292
from datadog_api_client.v2.model.cloud_configuration_rule_options import CloudConfigurationRuleOptions
293293
from datadog_api_client.v2.model.cloud_configuration_rule_payload import CloudConfigurationRulePayload
294294
from datadog_api_client.v2.model.cloud_configuration_rule_type import CloudConfigurationRuleType
295-
from datadog_api_client.v2.model.cloud_cost_activity import CloudCostActivity
296-
from datadog_api_client.v2.model.cloud_cost_activity_attributes import CloudCostActivityAttributes
297-
from datadog_api_client.v2.model.cloud_cost_activity_response import CloudCostActivityResponse
298-
from datadog_api_client.v2.model.cloud_cost_activity_type import CloudCostActivityType
299295
from datadog_api_client.v2.model.cloud_workload_security_agent_rule_action import CloudWorkloadSecurityAgentRuleAction
300296
from datadog_api_client.v2.model.cloud_workload_security_agent_rule_attributes import (
301297
CloudWorkloadSecurityAgentRuleAttributes,
@@ -2424,10 +2420,6 @@
24242420
"CloudConfigurationRuleOptions",
24252421
"CloudConfigurationRulePayload",
24262422
"CloudConfigurationRuleType",
2427-
"CloudCostActivity",
2428-
"CloudCostActivityAttributes",
2429-
"CloudCostActivityResponse",
2430-
"CloudCostActivityType",
24312423
"CloudWorkloadSecurityAgentRuleAction",
24322424
"CloudWorkloadSecurityAgentRuleAttributes",
24332425
"CloudWorkloadSecurityAgentRuleCreateAttributes",

0 commit comments

Comments
 (0)