From 19343c51a4669f7d63ebc81e76af475648284ac5 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Fri, 8 May 2026 20:30:13 +0000 Subject: [PATCH] Regenerate client from commit 108dbc1 of spec repo --- .generator/schemas/v2/openapi.yaml | 178 ++++++++++++++++++ docs/datadog_api_client.v2.model.rst | 56 ++++++ .../ListCustomAllocationRulesStatus.py | 13 ++ .../ListTagPipelinesRulesetsStatus.py | 13 ++ .../v2/api/cloud_cost_management_api.py | 58 ++++++ .../arbitrary_rule_status_response_array.py | 40 ++++ .../arbitrary_rule_status_response_data.py | 66 +++++++ ...ry_rule_status_response_data_attributes.py | 33 ++++ ...rbitrary_rule_status_response_data_type.py | 35 ++++ .../v2/model/ruleset_status_resp_array.py | 40 ++++ .../v2/model/ruleset_status_resp_data.py | 56 ++++++ .../ruleset_status_resp_data_attributes.py | 33 ++++ .../v2/model/ruleset_status_resp_data_type.py | 35 ++++ src/datadog_api_client/v2/models/__init__.py | 18 ++ .../v2/features/cloud_cost_management.feature | 12 ++ tests/v2/features/undo.json | 12 ++ 16 files changed, 698 insertions(+) create mode 100644 examples/v2/cloud-cost-management/ListCustomAllocationRulesStatus.py create mode 100644 examples/v2/cloud-cost-management/ListTagPipelinesRulesetsStatus.py create mode 100644 src/datadog_api_client/v2/model/arbitrary_rule_status_response_array.py create mode 100644 src/datadog_api_client/v2/model/arbitrary_rule_status_response_data.py create mode 100644 src/datadog_api_client/v2/model/arbitrary_rule_status_response_data_attributes.py create mode 100644 src/datadog_api_client/v2/model/arbitrary_rule_status_response_data_type.py create mode 100644 src/datadog_api_client/v2/model/ruleset_status_resp_array.py create mode 100644 src/datadog_api_client/v2/model/ruleset_status_resp_data.py create mode 100644 src/datadog_api_client/v2/model/ruleset_status_resp_data_attributes.py create mode 100644 src/datadog_api_client/v2/model/ruleset_status_resp_data_type.py diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 6c5ab83507..8b2d780900 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -6353,6 +6353,62 @@ components: type: string x-enum-varnames: - ARBITRARY_RULE + ArbitraryRuleStatusResponseArray: + description: Processing statuses for all custom allocation rules in the specified organization. + example: + data: + - attributes: + processing_status: processing + id: "123" + type: arbitrary_rule_status + - attributes: + processing_status: done + id: "456" + type: arbitrary_rule_status + properties: + data: + description: Processing status for a custom allocation rule. + items: + $ref: "#/components/schemas/ArbitraryRuleStatusResponseData" + type: array + required: + - data + type: object + ArbitraryRuleStatusResponseData: + description: Processing status for a custom allocation rule. + properties: + attributes: + $ref: "#/components/schemas/ArbitraryRuleStatusResponseDataAttributes" + id: + description: The unique identifier of the custom allocation rule. + example: "123" + type: string + type: + $ref: "#/components/schemas/ArbitraryRuleStatusResponseDataType" + required: + - id + - type + - attributes + type: object + ArbitraryRuleStatusResponseDataAttributes: + description: Processing status for a custom allocation rule. + properties: + processing_status: + description: The processing status of the custom allocation rule. + example: processing + type: string + required: + - processing_status + type: object + ArbitraryRuleStatusResponseDataType: + default: arbitrary_rule_status + description: Custom allocation rule status resource type. + enum: + - arbitrary_rule_status + example: arbitrary_rule_status + type: string + x-enum-varnames: + - ARBITRARY_RULE_STATUS Argument: description: A named argument for a custom static analysis rule. properties: @@ -60251,6 +60307,62 @@ components: type: string x-enum-varnames: - RULESET + RulesetStatusRespArray: + description: Processing statuses for all tag pipeline rulesets in the specified organization. + example: + data: + - attributes: + processing_status: processing + id: 55ef2385-9ae1-4410-90c4-5ac1b60fec10 + type: ruleset_status + - attributes: + processing_status: done + id: a7b8c9d0-1234-5678-9abc-def012345678 + type: ruleset_status + properties: + data: + description: Processing status for a tag pipeline ruleset. + items: + $ref: "#/components/schemas/RulesetStatusRespData" + type: array + required: + - data + type: object + RulesetStatusRespData: + description: Processing status for a tag pipeline ruleset. + properties: + attributes: + $ref: "#/components/schemas/RulesetStatusRespDataAttributes" + id: + description: The unique identifier of the ruleset. + example: 55ef2385-9ae1-4410-90c4-5ac1b60fec10 + type: string + type: + $ref: "#/components/schemas/RulesetStatusRespDataType" + required: + - id + - type + - attributes + type: object + RulesetStatusRespDataAttributes: + description: Processing status for a tag pipeline ruleset. + properties: + processing_status: + description: The processing status of the ruleset. + example: processing + type: string + required: + - processing_status + type: object + RulesetStatusRespDataType: + default: ruleset_status + description: Ruleset status resource type. + enum: + - ruleset_status + example: ruleset_status + type: string + x-enum-varnames: + - RULESET_STATUS RumCrossProductSampling: description: The configuration for cross-product retention filters. properties: @@ -94692,6 +94804,39 @@ paths: summary: Reorder custom allocation rules tags: - Cloud Cost Management + /api/v2/cost/arbitrary_rule/status: + get: + description: List the processing status of all custom allocation rules. Returns only the ID and processing status for each rule. + operationId: ListCustomAllocationRulesStatus + responses: + "200": + content: + application/json: + examples: + default: + value: + data: + - attributes: + processing_status: processing + id: "123" + type: arbitrary_rule_status + - attributes: + processing_status: done + id: "456" + type: arbitrary_rule_status + schema: + $ref: "#/components/schemas/ArbitraryRuleStatusResponseArray" + description: OK + "429": + $ref: "#/components/responses/TooManyRequestsResponse" + security: + - apiKeyAuth: [] + appKeyAuth: [] + - AuthZ: + - cloud_cost_management_read + summary: List custom allocation rule statuses + tags: + - Cloud Cost Management /api/v2/cost/arbitrary_rule/{rule_id}: delete: description: Delete a custom allocation rule - Delete an existing custom allocation rule by its ID @@ -140761,6 +140906,39 @@ paths: summary: Reorder tag pipeline rulesets tags: - Cloud Cost Management + /api/v2/tags/enrichment/status: + get: + description: List the processing status of all tag pipeline rulesets. Returns only the ID and processing status for each ruleset. + operationId: ListTagPipelinesRulesetsStatus + responses: + "200": + content: + application/json: + examples: + default: + value: + data: + - attributes: + processing_status: processing + id: 55ef2385-9ae1-4410-90c4-5ac1b60fec10 + type: ruleset_status + - attributes: + processing_status: done + id: a7b8c9d0-1234-5678-9abc-def012345678 + type: ruleset_status + schema: + $ref: "#/components/schemas/RulesetStatusRespArray" + description: OK + "429": + $ref: "#/components/responses/TooManyRequestsResponse" + security: + - apiKeyAuth: [] + appKeyAuth: [] + - AuthZ: + - cloud_cost_management_read + summary: List tag pipeline ruleset statuses + tags: + - Cloud Cost Management /api/v2/tags/enrichment/validate-query: post: description: Validate a tag pipeline query - Validate the syntax and structure of a tag pipeline query diff --git a/docs/datadog_api_client.v2.model.rst b/docs/datadog_api_client.v2.model.rst index 2ef3221597..1ddd9b702e 100644 --- a/docs/datadog_api_client.v2.model.rst +++ b/docs/datadog_api_client.v2.model.rst @@ -1369,6 +1369,34 @@ datadog\_api\_client.v2.model.arbitrary\_rule\_response\_data\_type module :members: :show-inheritance: +datadog\_api\_client.v2.model.arbitrary\_rule\_status\_response\_array module +----------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.arbitrary_rule_status_response_array + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.arbitrary\_rule\_status\_response\_data module +---------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.arbitrary_rule_status_response_data + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.arbitrary\_rule\_status\_response\_data\_attributes module +---------------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.arbitrary_rule_status_response_data_attributes + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.arbitrary\_rule\_status\_response\_data\_type module +---------------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.arbitrary_rule_status_response_data_type + :members: + :show-inheritance: + datadog\_api\_client.v2.model.argument module --------------------------------------------- @@ -26380,6 +26408,34 @@ datadog\_api\_client.v2.model.ruleset\_resp\_data\_type module :members: :show-inheritance: +datadog\_api\_client.v2.model.ruleset\_status\_resp\_array module +----------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.ruleset_status_resp_array + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.ruleset\_status\_resp\_data module +---------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.ruleset_status_resp_data + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.ruleset\_status\_resp\_data\_attributes module +---------------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.ruleset_status_resp_data_attributes + :members: + :show-inheritance: + +datadog\_api\_client.v2.model.ruleset\_status\_resp\_data\_type module +---------------------------------------------------------------------- + +.. automodule:: datadog_api_client.v2.model.ruleset_status_resp_data_type + :members: + :show-inheritance: + datadog\_api\_client.v2.model.rum\_aggregate\_bucket\_value module ------------------------------------------------------------------ diff --git a/examples/v2/cloud-cost-management/ListCustomAllocationRulesStatus.py b/examples/v2/cloud-cost-management/ListCustomAllocationRulesStatus.py new file mode 100644 index 0000000000..a672a82621 --- /dev/null +++ b/examples/v2/cloud-cost-management/ListCustomAllocationRulesStatus.py @@ -0,0 +1,13 @@ +""" +List custom allocation rule statuses returns "OK" response +""" + +from datadog_api_client import ApiClient, Configuration +from datadog_api_client.v2.api.cloud_cost_management_api import CloudCostManagementApi + +configuration = Configuration() +with ApiClient(configuration) as api_client: + api_instance = CloudCostManagementApi(api_client) + response = api_instance.list_custom_allocation_rules_status() + + print(response) diff --git a/examples/v2/cloud-cost-management/ListTagPipelinesRulesetsStatus.py b/examples/v2/cloud-cost-management/ListTagPipelinesRulesetsStatus.py new file mode 100644 index 0000000000..281372ece0 --- /dev/null +++ b/examples/v2/cloud-cost-management/ListTagPipelinesRulesetsStatus.py @@ -0,0 +1,13 @@ +""" +List tag pipeline ruleset statuses returns "OK" response +""" + +from datadog_api_client import ApiClient, Configuration +from datadog_api_client.v2.api.cloud_cost_management_api import CloudCostManagementApi + +configuration = Configuration() +with ApiClient(configuration) as api_client: + api_instance = CloudCostManagementApi(api_client) + response = api_instance.list_tag_pipelines_rulesets_status() + + print(response) diff --git a/src/datadog_api_client/v2/api/cloud_cost_management_api.py b/src/datadog_api_client/v2/api/cloud_cost_management_api.py index 0e895e45a1..964c0919c4 100644 --- a/src/datadog_api_client/v2/api/cloud_cost_management_api.py +++ b/src/datadog_api_client/v2/api/cloud_cost_management_api.py @@ -15,6 +15,7 @@ from datadog_api_client.v2.model.arbitrary_rule_response import ArbitraryRuleResponse from datadog_api_client.v2.model.arbitrary_cost_upsert_request import ArbitraryCostUpsertRequest from datadog_api_client.v2.model.reorder_rule_resource_array import ReorderRuleResourceArray +from datadog_api_client.v2.model.arbitrary_rule_status_response_array import ArbitraryRuleStatusResponseArray from datadog_api_client.v2.model.aws_cur_configs_response import AwsCURConfigsResponse from datadog_api_client.v2.model.aws_cur_config_response import AwsCurConfigResponse from datadog_api_client.v2.model.aws_cur_config_post_request import AwsCURConfigPostRequest @@ -43,6 +44,7 @@ from datadog_api_client.v2.model.ruleset_resp import RulesetResp from datadog_api_client.v2.model.create_ruleset_request import CreateRulesetRequest from datadog_api_client.v2.model.reorder_ruleset_resource_array import ReorderRulesetResourceArray +from datadog_api_client.v2.model.ruleset_status_resp_array import RulesetStatusRespArray from datadog_api_client.v2.model.rules_validate_query_response import RulesValidateQueryResponse from datadog_api_client.v2.model.rules_validate_query_request import RulesValidateQueryRequest from datadog_api_client.v2.model.update_ruleset_request import UpdateRulesetRequest @@ -576,6 +578,22 @@ def __init__(self, api_client=None): api_client=api_client, ) + self._list_custom_allocation_rules_status_endpoint = _Endpoint( + settings={ + "response_type": (ArbitraryRuleStatusResponseArray,), + "auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"], + "endpoint_path": "/api/v2/cost/arbitrary_rule/status", + "operation_id": "list_custom_allocation_rules_status", + "http_method": "GET", + "version": "v2", + }, + params_map={}, + headers_map={ + "accept": ["application/json"], + }, + api_client=api_client, + ) + self._list_custom_costs_files_endpoint = _Endpoint( settings={ "response_type": (CustomCostsFileListResponse,), @@ -640,6 +658,22 @@ def __init__(self, api_client=None): api_client=api_client, ) + self._list_tag_pipelines_rulesets_status_endpoint = _Endpoint( + settings={ + "response_type": (RulesetStatusRespArray,), + "auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"], + "endpoint_path": "/api/v2/tags/enrichment/status", + "operation_id": "list_tag_pipelines_rulesets_status", + "http_method": "GET", + "version": "v2", + }, + params_map={}, + headers_map={ + "accept": ["application/json"], + }, + api_client=api_client, + ) + self._reorder_custom_allocation_rules_endpoint = _Endpoint( settings={ "response_type": None, @@ -1311,6 +1345,18 @@ def list_custom_allocation_rules( kwargs: Dict[str, Any] = {} return self._list_custom_allocation_rules_endpoint.call_with_http_info(**kwargs) + def list_custom_allocation_rules_status( + self, + ) -> ArbitraryRuleStatusResponseArray: + """List custom allocation rule statuses. + + List the processing status of all custom allocation rules. Returns only the ID and processing status for each rule. + + :rtype: ArbitraryRuleStatusResponseArray + """ + kwargs: Dict[str, Any] = {} + return self._list_custom_allocation_rules_status_endpoint.call_with_http_info(**kwargs) + def list_custom_costs_files( self, *, @@ -1372,6 +1418,18 @@ def list_tag_pipelines_rulesets( kwargs: Dict[str, Any] = {} return self._list_tag_pipelines_rulesets_endpoint.call_with_http_info(**kwargs) + def list_tag_pipelines_rulesets_status( + self, + ) -> RulesetStatusRespArray: + """List tag pipeline ruleset statuses. + + List the processing status of all tag pipeline rulesets. Returns only the ID and processing status for each ruleset. + + :rtype: RulesetStatusRespArray + """ + kwargs: Dict[str, Any] = {} + return self._list_tag_pipelines_rulesets_status_endpoint.call_with_http_info(**kwargs) + def reorder_custom_allocation_rules( self, body: ReorderRuleResourceArray, diff --git a/src/datadog_api_client/v2/model/arbitrary_rule_status_response_array.py b/src/datadog_api_client/v2/model/arbitrary_rule_status_response_array.py new file mode 100644 index 0000000000..84c2b72905 --- /dev/null +++ b/src/datadog_api_client/v2/model/arbitrary_rule_status_response_array.py @@ -0,0 +1,40 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + +from typing import List, TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.arbitrary_rule_status_response_data import ArbitraryRuleStatusResponseData + + +class ArbitraryRuleStatusResponseArray(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.arbitrary_rule_status_response_data import ArbitraryRuleStatusResponseData + + return { + "data": ([ArbitraryRuleStatusResponseData],), + } + + attribute_map = { + "data": "data", + } + + def __init__(self_, data: List[ArbitraryRuleStatusResponseData], **kwargs): + """ + Processing statuses for all custom allocation rules in the specified organization. + + :param data: Processing status for a custom allocation rule. + :type data: [ArbitraryRuleStatusResponseData] + """ + super().__init__(kwargs) + + self_.data = data diff --git a/src/datadog_api_client/v2/model/arbitrary_rule_status_response_data.py b/src/datadog_api_client/v2/model/arbitrary_rule_status_response_data.py new file mode 100644 index 0000000000..779f142e3e --- /dev/null +++ b/src/datadog_api_client/v2/model/arbitrary_rule_status_response_data.py @@ -0,0 +1,66 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + +from typing import TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.arbitrary_rule_status_response_data_attributes import ( + ArbitraryRuleStatusResponseDataAttributes, + ) + from datadog_api_client.v2.model.arbitrary_rule_status_response_data_type import ArbitraryRuleStatusResponseDataType + + +class ArbitraryRuleStatusResponseData(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.arbitrary_rule_status_response_data_attributes import ( + ArbitraryRuleStatusResponseDataAttributes, + ) + from datadog_api_client.v2.model.arbitrary_rule_status_response_data_type import ( + ArbitraryRuleStatusResponseDataType, + ) + + return { + "attributes": (ArbitraryRuleStatusResponseDataAttributes,), + "id": (str,), + "type": (ArbitraryRuleStatusResponseDataType,), + } + + attribute_map = { + "attributes": "attributes", + "id": "id", + "type": "type", + } + + def __init__( + self_, + attributes: ArbitraryRuleStatusResponseDataAttributes, + id: str, + type: ArbitraryRuleStatusResponseDataType, + **kwargs, + ): + """ + Processing status for a custom allocation rule. + + :param attributes: Processing status for a custom allocation rule. + :type attributes: ArbitraryRuleStatusResponseDataAttributes + + :param id: The unique identifier of the custom allocation rule. + :type id: str + + :param type: Custom allocation rule status resource type. + :type type: ArbitraryRuleStatusResponseDataType + """ + super().__init__(kwargs) + + self_.attributes = attributes + self_.id = id + self_.type = type diff --git a/src/datadog_api_client/v2/model/arbitrary_rule_status_response_data_attributes.py b/src/datadog_api_client/v2/model/arbitrary_rule_status_response_data_attributes.py new file mode 100644 index 0000000000..7f254be4ff --- /dev/null +++ b/src/datadog_api_client/v2/model/arbitrary_rule_status_response_data_attributes.py @@ -0,0 +1,33 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, +) + + +class ArbitraryRuleStatusResponseDataAttributes(ModelNormal): + @cached_property + def openapi_types(_): + return { + "processing_status": (str,), + } + + attribute_map = { + "processing_status": "processing_status", + } + + def __init__(self_, processing_status: str, **kwargs): + """ + Processing status for a custom allocation rule. + + :param processing_status: The processing status of the custom allocation rule. + :type processing_status: str + """ + super().__init__(kwargs) + + self_.processing_status = processing_status diff --git a/src/datadog_api_client/v2/model/arbitrary_rule_status_response_data_type.py b/src/datadog_api_client/v2/model/arbitrary_rule_status_response_data_type.py new file mode 100644 index 0000000000..d92919afad --- /dev/null +++ b/src/datadog_api_client/v2/model/arbitrary_rule_status_response_data_type.py @@ -0,0 +1,35 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + + +from datadog_api_client.model_utils import ( + ModelSimple, + cached_property, +) + +from typing import ClassVar + + +class ArbitraryRuleStatusResponseDataType(ModelSimple): + """ + Custom allocation rule status resource type. + + :param value: If omitted defaults to "arbitrary_rule_status". Must be one of ["arbitrary_rule_status"]. + :type value: str + """ + + allowed_values = { + "arbitrary_rule_status", + } + ARBITRARY_RULE_STATUS: ClassVar["ArbitraryRuleStatusResponseDataType"] + + @cached_property + def openapi_types(_): + return { + "value": (str,), + } + + +ArbitraryRuleStatusResponseDataType.ARBITRARY_RULE_STATUS = ArbitraryRuleStatusResponseDataType("arbitrary_rule_status") diff --git a/src/datadog_api_client/v2/model/ruleset_status_resp_array.py b/src/datadog_api_client/v2/model/ruleset_status_resp_array.py new file mode 100644 index 0000000000..91d386e2cc --- /dev/null +++ b/src/datadog_api_client/v2/model/ruleset_status_resp_array.py @@ -0,0 +1,40 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + +from typing import List, TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.ruleset_status_resp_data import RulesetStatusRespData + + +class RulesetStatusRespArray(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.ruleset_status_resp_data import RulesetStatusRespData + + return { + "data": ([RulesetStatusRespData],), + } + + attribute_map = { + "data": "data", + } + + def __init__(self_, data: List[RulesetStatusRespData], **kwargs): + """ + Processing statuses for all tag pipeline rulesets in the specified organization. + + :param data: Processing status for a tag pipeline ruleset. + :type data: [RulesetStatusRespData] + """ + super().__init__(kwargs) + + self_.data = data diff --git a/src/datadog_api_client/v2/model/ruleset_status_resp_data.py b/src/datadog_api_client/v2/model/ruleset_status_resp_data.py new file mode 100644 index 0000000000..d0cfac409b --- /dev/null +++ b/src/datadog_api_client/v2/model/ruleset_status_resp_data.py @@ -0,0 +1,56 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + +from typing import TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.ruleset_status_resp_data_attributes import RulesetStatusRespDataAttributes + from datadog_api_client.v2.model.ruleset_status_resp_data_type import RulesetStatusRespDataType + + +class RulesetStatusRespData(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.ruleset_status_resp_data_attributes import RulesetStatusRespDataAttributes + from datadog_api_client.v2.model.ruleset_status_resp_data_type import RulesetStatusRespDataType + + return { + "attributes": (RulesetStatusRespDataAttributes,), + "id": (str,), + "type": (RulesetStatusRespDataType,), + } + + attribute_map = { + "attributes": "attributes", + "id": "id", + "type": "type", + } + + def __init__( + self_, attributes: RulesetStatusRespDataAttributes, id: str, type: RulesetStatusRespDataType, **kwargs + ): + """ + Processing status for a tag pipeline ruleset. + + :param attributes: Processing status for a tag pipeline ruleset. + :type attributes: RulesetStatusRespDataAttributes + + :param id: The unique identifier of the ruleset. + :type id: str + + :param type: Ruleset status resource type. + :type type: RulesetStatusRespDataType + """ + super().__init__(kwargs) + + self_.attributes = attributes + self_.id = id + self_.type = type diff --git a/src/datadog_api_client/v2/model/ruleset_status_resp_data_attributes.py b/src/datadog_api_client/v2/model/ruleset_status_resp_data_attributes.py new file mode 100644 index 0000000000..3e5b115ca9 --- /dev/null +++ b/src/datadog_api_client/v2/model/ruleset_status_resp_data_attributes.py @@ -0,0 +1,33 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, +) + + +class RulesetStatusRespDataAttributes(ModelNormal): + @cached_property + def openapi_types(_): + return { + "processing_status": (str,), + } + + attribute_map = { + "processing_status": "processing_status", + } + + def __init__(self_, processing_status: str, **kwargs): + """ + Processing status for a tag pipeline ruleset. + + :param processing_status: The processing status of the ruleset. + :type processing_status: str + """ + super().__init__(kwargs) + + self_.processing_status = processing_status diff --git a/src/datadog_api_client/v2/model/ruleset_status_resp_data_type.py b/src/datadog_api_client/v2/model/ruleset_status_resp_data_type.py new file mode 100644 index 0000000000..578df50111 --- /dev/null +++ b/src/datadog_api_client/v2/model/ruleset_status_resp_data_type.py @@ -0,0 +1,35 @@ +# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. +# This product includes software developed at Datadog (https://www.datadoghq.com/). +# Copyright 2019-Present Datadog, Inc. +from __future__ import annotations + + +from datadog_api_client.model_utils import ( + ModelSimple, + cached_property, +) + +from typing import ClassVar + + +class RulesetStatusRespDataType(ModelSimple): + """ + Ruleset status resource type. + + :param value: If omitted defaults to "ruleset_status". Must be one of ["ruleset_status"]. + :type value: str + """ + + allowed_values = { + "ruleset_status", + } + RULESET_STATUS: ClassVar["RulesetStatusRespDataType"] + + @cached_property + def openapi_types(_): + return { + "value": (str,), + } + + +RulesetStatusRespDataType.RULESET_STATUS = RulesetStatusRespDataType("ruleset_status") diff --git a/src/datadog_api_client/v2/models/__init__.py b/src/datadog_api_client/v2/models/__init__.py index b0022a14c0..1f05a76351 100644 --- a/src/datadog_api_client/v2/models/__init__.py +++ b/src/datadog_api_client/v2/models/__init__.py @@ -408,6 +408,12 @@ ArbitraryRuleResponseDataAttributesStrategyEvaluateGroupedByFiltersItems, ) from datadog_api_client.v2.model.arbitrary_rule_response_data_type import ArbitraryRuleResponseDataType +from datadog_api_client.v2.model.arbitrary_rule_status_response_array import ArbitraryRuleStatusResponseArray +from datadog_api_client.v2.model.arbitrary_rule_status_response_data import ArbitraryRuleStatusResponseData +from datadog_api_client.v2.model.arbitrary_rule_status_response_data_attributes import ( + ArbitraryRuleStatusResponseDataAttributes, +) +from datadog_api_client.v2.model.arbitrary_rule_status_response_data_type import ArbitraryRuleStatusResponseDataType from datadog_api_client.v2.model.argument import Argument from datadog_api_client.v2.model.asana_access_token import AsanaAccessToken from datadog_api_client.v2.model.asana_access_token_type import AsanaAccessTokenType @@ -5402,6 +5408,10 @@ RulesetRespDataAttributesRulesItemsReferenceTableFieldPairsItems, ) from datadog_api_client.v2.model.ruleset_resp_data_type import RulesetRespDataType +from datadog_api_client.v2.model.ruleset_status_resp_array import RulesetStatusRespArray +from datadog_api_client.v2.model.ruleset_status_resp_data import RulesetStatusRespData +from datadog_api_client.v2.model.ruleset_status_resp_data_attributes import RulesetStatusRespDataAttributes +from datadog_api_client.v2.model.ruleset_status_resp_data_type import RulesetStatusRespDataType from datadog_api_client.v2.model.rum_cross_product_sampling import RumCrossProductSampling from datadog_api_client.v2.model.rum_cross_product_sampling_create import RumCrossProductSamplingCreate from datadog_api_client.v2.model.rum_cross_product_sampling_update import RumCrossProductSamplingUpdate @@ -7778,6 +7788,10 @@ "ArbitraryRuleResponseDataAttributesStrategyBasedOnCostsItems", "ArbitraryRuleResponseDataAttributesStrategyEvaluateGroupedByFiltersItems", "ArbitraryRuleResponseDataType", + "ArbitraryRuleStatusResponseArray", + "ArbitraryRuleStatusResponseData", + "ArbitraryRuleStatusResponseDataAttributes", + "ArbitraryRuleStatusResponseDataType", "Argument", "AsanaAccessToken", "AsanaAccessTokenType", @@ -11320,6 +11334,10 @@ "RulesetRespDataAttributesRulesItemsReferenceTable", "RulesetRespDataAttributesRulesItemsReferenceTableFieldPairsItems", "RulesetRespDataType", + "RulesetStatusRespArray", + "RulesetStatusRespData", + "RulesetStatusRespDataAttributes", + "RulesetStatusRespDataType", "RumCrossProductSampling", "RumCrossProductSamplingCreate", "RumCrossProductSamplingUpdate", diff --git a/tests/v2/features/cloud_cost_management.feature b/tests/v2/features/cloud_cost_management.feature index c5fc0adc05..1e9f5de20c 100644 --- a/tests/v2/features/cloud_cost_management.feature +++ b/tests/v2/features/cloud_cost_management.feature @@ -351,6 +351,12 @@ Feature: Cloud Cost Management When the request is sent Then the response status is 200 OK + @generated @skip @team:DataDog/cloud-cost-management + Scenario: List custom allocation rule statuses returns "OK" response + Given new "ListCustomAllocationRulesStatus" request + When the request is sent + Then the response status is 200 OK + @replay-only @team:DataDog/cloud-cost-management Scenario: List custom allocation rules returns "OK" response Given new "ListCustomAllocationRules" request @@ -358,6 +364,12 @@ Feature: Cloud Cost Management Then the response status is 200 OK And the response "data[0].attributes.rule_name" is equal to "example-arbitrary-cost-rule" + @generated @skip @team:DataDog/cloud-cost-management + Scenario: List tag pipeline ruleset statuses returns "OK" response + Given new "ListTagPipelinesRulesetsStatus" request + When the request is sent + Then the response status is 200 OK + @replay-only @team:DataDog/cloud-cost-management Scenario: List tag pipeline rulesets returns "OK" response Given new "ListTagPipelinesRulesets" request diff --git a/tests/v2/features/undo.json b/tests/v2/features/undo.json index a3e509a0bc..edc8769079 100644 --- a/tests/v2/features/undo.json +++ b/tests/v2/features/undo.json @@ -1283,6 +1283,12 @@ "type": "idempotent" } }, + "ListCustomAllocationRulesStatus": { + "tag": "Cloud Cost Management", + "undo": { + "type": "safe" + } + }, "DeleteCustomAllocationRule": { "tag": "Cloud Cost Management", "undo": { @@ -6703,6 +6709,12 @@ "type": "idempotent" } }, + "ListTagPipelinesRulesetsStatus": { + "tag": "Cloud Cost Management", + "undo": { + "type": "safe" + } + }, "ValidateQuery": { "tag": "Cloud Cost Management", "undo": {