diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 620108cc5b..4ac4cbb66f 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -791,11 +791,6 @@ components: items: $ref: "#/components/schemas/ResourceProviderConfig" type: array - secretless_auth_enabled: - description: |- - (Preview) When enabled, Datadog authenticates with this app registration using federated workload identity credentials instead of a client secret. - example: true - type: boolean tenant_name: description: Your Azure Active Directory ID. example: "testc44-1234-5678-9101-cc00736ftest" diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 95a832b986..4589031445 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -6369,6 +6369,62 @@ components: type: string x-enum-varnames: - ARBITRARY_RULE + ArbitraryRuleStatusResponseArray: + description: The definition of `ArbitraryRuleStatusResponseArray` object. + 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: The `ArbitraryRuleStatusResponseArray` `data`. + items: + $ref: "#/components/schemas/ArbitraryRuleStatusResponseData" + type: array + required: + - data + type: object + ArbitraryRuleStatusResponseData: + description: The definition of `ArbitraryRuleStatusResponseData` object. + 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: The definition of `ArbitraryRuleStatusResponseDataAttributes` object. + 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: Arbitrary 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: @@ -60338,6 +60394,62 @@ components: type: string x-enum-varnames: - RULESET + RulesetStatusRespArray: + description: The definition of `RulesetStatusRespArray` object. + 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: The `RulesetStatusRespArray` `data`. + items: + $ref: "#/components/schemas/RulesetStatusRespData" + type: array + required: + - data + type: object + RulesetStatusRespData: + description: The definition of `RulesetStatusRespData` object. + 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: The definition of `RulesetStatusRespDataAttributes` object. + 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: @@ -92445,6 +92557,27 @@ 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: + schema: + $ref: "#/components/schemas/ArbitraryRuleStatusResponseArray" + description: OK + "429": + $ref: "#/components/responses/TooManyRequestsResponse" + security: + - apiKeyAuth: [] + appKeyAuth: [] + - AuthZ: + - cloud_cost_management_read + summary: List custom allocation rules status + 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 @@ -131002,6 +131135,27 @@ 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: + schema: + $ref: "#/components/schemas/RulesetStatusRespArray" + description: OK + "429": + $ref: "#/components/responses/TooManyRequestsResponse" + security: + - apiKeyAuth: [] + appKeyAuth: [] + - AuthZ: + - cloud_cost_management_read + summary: List tag pipeline rulesets status + 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 5c291d979b..0b250d65d1 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 --------------------------------------------- @@ -26464,6 +26492,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/v1/azure-integration/UpdateAzureHostFilters.py b/examples/v1/azure-integration/UpdateAzureHostFilters.py index 10479b0877..ddb277349b 100644 --- a/examples/v1/azure-integration/UpdateAzureHostFilters.py +++ b/examples/v1/azure-integration/UpdateAzureHostFilters.py @@ -30,7 +30,6 @@ namespace="Microsoft.Compute", ), ], - secretless_auth_enabled=True, tenant_name="testc44-1234-5678-9101-cc00736ftest", usage_metrics_enabled=True, ) diff --git a/examples/v1/azure-integration/UpdateAzureIntegration.py b/examples/v1/azure-integration/UpdateAzureIntegration.py index a83eaca8fd..548a15dac6 100644 --- a/examples/v1/azure-integration/UpdateAzureIntegration.py +++ b/examples/v1/azure-integration/UpdateAzureIntegration.py @@ -21,7 +21,6 @@ new_client_id="9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d", new_tenant_name="9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d", resource_collection_enabled=True, - secretless_auth_enabled=True, tenant_name="9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d", ) diff --git a/examples/v2/cloud-cost-management/ListCustomAllocationRulesStatus.py b/examples/v2/cloud-cost-management/ListCustomAllocationRulesStatus.py new file mode 100644 index 0000000000..57616e8d05 --- /dev/null +++ b/examples/v2/cloud-cost-management/ListCustomAllocationRulesStatus.py @@ -0,0 +1,13 @@ +""" +List custom allocation rules status 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..96c3b84ac9 --- /dev/null +++ b/examples/v2/cloud-cost-management/ListTagPipelinesRulesetsStatus.py @@ -0,0 +1,13 @@ +""" +List tag pipeline rulesets status 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/v1/model/azure_account.py b/src/datadog_api_client/v1/model/azure_account.py index df0f72dd8a..f82d098bae 100644 --- a/src/datadog_api_client/v1/model/azure_account.py +++ b/src/datadog_api_client/v1/model/azure_account.py @@ -38,7 +38,6 @@ def openapi_types(_): "new_tenant_name": (str,), "resource_collection_enabled": (bool,), "resource_provider_configs": ([ResourceProviderConfig],), - "secretless_auth_enabled": (bool,), "tenant_name": (str,), "usage_metrics_enabled": (bool,), } @@ -59,7 +58,6 @@ def openapi_types(_): "new_tenant_name": "new_tenant_name", "resource_collection_enabled": "resource_collection_enabled", "resource_provider_configs": "resource_provider_configs", - "secretless_auth_enabled": "secretless_auth_enabled", "tenant_name": "tenant_name", "usage_metrics_enabled": "usage_metrics_enabled", } @@ -81,7 +79,6 @@ def __init__( new_tenant_name: Union[str, UnsetType] = unset, resource_collection_enabled: Union[bool, UnsetType] = unset, resource_provider_configs: Union[List[ResourceProviderConfig], UnsetType] = unset, - secretless_auth_enabled: Union[bool, UnsetType] = unset, tenant_name: Union[str, UnsetType] = unset, usage_metrics_enabled: Union[bool, UnsetType] = unset, **kwargs, @@ -138,9 +135,6 @@ def __init__( :param resource_provider_configs: Configuration settings applied to resources from the specified Azure resource providers. :type resource_provider_configs: [ResourceProviderConfig], optional - :param secretless_auth_enabled: (Preview) When enabled, Datadog authenticates with this app registration using federated workload identity credentials instead of a client secret. - :type secretless_auth_enabled: bool, optional - :param tenant_name: Your Azure Active Directory ID. :type tenant_name: str, optional @@ -177,8 +171,6 @@ def __init__( kwargs["resource_collection_enabled"] = resource_collection_enabled if resource_provider_configs is not unset: kwargs["resource_provider_configs"] = resource_provider_configs - if secretless_auth_enabled is not unset: - kwargs["secretless_auth_enabled"] = secretless_auth_enabled if tenant_name is not unset: kwargs["tenant_name"] = tenant_name if usage_metrics_enabled is not unset: 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..a3bec996cb 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 rules status. + + 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 rulesets status. + + 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..deb0c2ff24 --- /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): + """ + The definition of ``ArbitraryRuleStatusResponseArray`` object. + + :param data: The ``ArbitraryRuleStatusResponseArray`` ``data``. + :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..4e81af0e67 --- /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, + ): + """ + The definition of ``ArbitraryRuleStatusResponseData`` object. + + :param attributes: The definition of ``ArbitraryRuleStatusResponseDataAttributes`` object. + :type attributes: ArbitraryRuleStatusResponseDataAttributes + + :param id: The unique identifier of the custom allocation rule. + :type id: str + + :param type: Arbitrary 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..ff7e4b98e5 --- /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): + """ + The definition of ``ArbitraryRuleStatusResponseDataAttributes`` object. + + :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..7e1dca69a0 --- /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): + """ + Arbitrary 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..a1a5ee9a97 --- /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): + """ + The definition of ``RulesetStatusRespArray`` object. + + :param data: The ``RulesetStatusRespArray`` ``data``. + :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..649070aa3d --- /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 + ): + """ + The definition of ``RulesetStatusRespData`` object. + + :param attributes: The definition of ``RulesetStatusRespDataAttributes`` object. + :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..e5ef53069a --- /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): + """ + The definition of ``RulesetStatusRespDataAttributes`` object. + + :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 e3055977a2..396741c2b4 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 @@ -5412,6 +5418,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 @@ -7766,6 +7776,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/v1/cassettes/test_scenarios/test_delete_an_azure_integration_returns_ok_response.frozen b/tests/v1/cassettes/test_scenarios/test_delete_an_azure_integration_returns_ok_response.frozen index fc085ae47b..4cf590b2a0 100644 --- a/tests/v1/cassettes/test_scenarios/test_delete_an_azure_integration_returns_ok_response.frozen +++ b/tests/v1/cassettes/test_scenarios/test_delete_an_azure_integration_returns_ok_response.frozen @@ -1 +1 @@ -2026-05-04T13:56:51.846Z \ No newline at end of file +2024-12-17T21:43:00.678Z \ No newline at end of file diff --git a/tests/v1/cassettes/test_scenarios/test_delete_an_azure_integration_returns_ok_response.yaml b/tests/v1/cassettes/test_scenarios/test_delete_an_azure_integration_returns_ok_response.yaml index bdb5b1af70..11bd3382ac 100644 --- a/tests/v1/cassettes/test_scenarios/test_delete_an_azure_integration_returns_ok_response.yaml +++ b/tests/v1/cassettes/test_scenarios/test_delete_an_azure_integration_returns_ok_response.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: '{"app_service_plan_filters":"key:value,filter:example","automute":true,"client_id":"17779030-0000-0000-0000-177790301100","client_secret":"TestingRh2nx664kUy5dIApvM54T4AtO","container_app_filters":"key:value,filter:example","cspm_enabled":true,"custom_metrics_enabled":true,"errors":["*"],"host_filters":"key:value,filter:example","metrics_enabled":true,"metrics_enabled_default":true,"new_client_id":"17779030-0000-0000-0000-177790301100","new_tenant_name":"17779030-0000-0000-0000-177790301100","resource_collection_enabled":true,"resource_provider_configs":[{"metrics_enabled":false,"namespace":"Microsoft.Compute"},{"metrics_enabled":false,"namespace":"Microsoft.Web"}],"secretless_auth_enabled":false,"tenant_name":"17779030-0000-0000-0000-177790301100","usage_metrics_enabled":true}' + body: '{"app_service_plan_filters":"key:value,filter:example","automute":true,"client_id":"17344717-0000-0000-0000-173447178000","client_secret":"TestingRh2nx664kUy5dIApvM54T4AtO","container_app_filters":"key:value,filter:example","cspm_enabled":true,"custom_metrics_enabled":true,"errors":["*"],"host_filters":"key:value,filter:example","metrics_enabled":true,"metrics_enabled_default":true,"new_client_id":"17344717-0000-0000-0000-173447178000","new_tenant_name":"17344717-0000-0000-0000-173447178000","resource_collection_enabled":true,"resource_provider_configs":[{"metrics_enabled":false,"namespace":"Microsoft.Compute"},{"metrics_enabled":false,"namespace":"Microsoft.Web"}],"tenant_name":"17344717-0000-0000-0000-173447178000","usage_metrics_enabled":true}' headers: accept: - application/json @@ -20,7 +20,7 @@ interactions: code: 200 message: OK - request: - body: '{"client_id":"17779030-0000-0000-0000-177790301100","tenant_name":"17779030-0000-0000-0000-177790301100"}' + body: '{"client_id":"17344717-0000-0000-0000-173447178000","tenant_name":"17344717-0000-0000-0000-173447178000"}' headers: accept: - application/json @@ -40,7 +40,7 @@ interactions: code: 200 message: OK - request: - body: '{"client_id":"17779030-0000-0000-0000-177790301100","tenant_name":"17779030-0000-0000-0000-177790301100"}' + body: '{"client_id":"17344717-0000-0000-0000-173447178000","tenant_name":"17344717-0000-0000-0000-173447178000"}' headers: accept: - application/json diff --git a/tests/v1/cassettes/test_scenarios/test_update_an_azure_integration_returns_ok_response.frozen b/tests/v1/cassettes/test_scenarios/test_update_an_azure_integration_returns_ok_response.frozen index 08d5b0bf6a..d500dc214e 100644 --- a/tests/v1/cassettes/test_scenarios/test_update_an_azure_integration_returns_ok_response.frozen +++ b/tests/v1/cassettes/test_scenarios/test_update_an_azure_integration_returns_ok_response.frozen @@ -1 +1 @@ -2026-05-04T13:56:52.686Z \ No newline at end of file +2024-12-17T21:43:01.129Z \ No newline at end of file diff --git a/tests/v1/cassettes/test_scenarios/test_update_an_azure_integration_returns_ok_response.yaml b/tests/v1/cassettes/test_scenarios/test_update_an_azure_integration_returns_ok_response.yaml index bb5c4d8683..92ac1431f1 100644 --- a/tests/v1/cassettes/test_scenarios/test_update_an_azure_integration_returns_ok_response.yaml +++ b/tests/v1/cassettes/test_scenarios/test_update_an_azure_integration_returns_ok_response.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: '{"app_service_plan_filters":"key:value,filter:example","automute":true,"client_id":"17779030-0000-0000-0000-177790301200","client_secret":"TestingRh2nx664kUy5dIApvM54T4AtO","container_app_filters":"key:value,filter:example","cspm_enabled":true,"custom_metrics_enabled":true,"errors":["*"],"host_filters":"key:value,filter:example","metrics_enabled":true,"metrics_enabled_default":true,"new_client_id":"17779030-0000-0000-0000-177790301200","new_tenant_name":"17779030-0000-0000-0000-177790301200","resource_collection_enabled":true,"resource_provider_configs":[{"metrics_enabled":false,"namespace":"Microsoft.Compute"},{"metrics_enabled":false,"namespace":"Microsoft.Web"}],"secretless_auth_enabled":false,"tenant_name":"17779030-0000-0000-0000-177790301200","usage_metrics_enabled":true}' + body: '{"app_service_plan_filters":"key:value,filter:example","automute":true,"client_id":"17344717-0000-0000-0000-173447178100","client_secret":"TestingRh2nx664kUy5dIApvM54T4AtO","container_app_filters":"key:value,filter:example","cspm_enabled":true,"custom_metrics_enabled":true,"errors":["*"],"host_filters":"key:value,filter:example","metrics_enabled":true,"metrics_enabled_default":true,"new_client_id":"17344717-0000-0000-0000-173447178100","new_tenant_name":"17344717-0000-0000-0000-173447178100","resource_collection_enabled":true,"resource_provider_configs":[{"metrics_enabled":false,"namespace":"Microsoft.Compute"},{"metrics_enabled":false,"namespace":"Microsoft.Web"}],"tenant_name":"17344717-0000-0000-0000-173447178100","usage_metrics_enabled":true}' headers: accept: - application/json @@ -20,7 +20,7 @@ interactions: code: 200 message: OK - request: - body: '{"app_service_plan_filters":"key:value,filter:example","automute":true,"client_id":"17779030-0000-0000-0000-177790301200","client_secret":"TestingRh2nx664kUy5dIApvM54T4AtO","container_app_filters":"key:value,filter:example","cspm_enabled":true,"custom_metrics_enabled":true,"errors":["*"],"host_filters":"key:value,filter:example","new_client_id":"17779030-0000-0000-0000-177790301200","new_tenant_name":"17779030-0000-0000-0000-177790301200","resource_collection_enabled":true,"secretless_auth_enabled":true,"tenant_name":"17779030-0000-0000-0000-177790301200"}' + body: '{"app_service_plan_filters":"key:value,filter:example","automute":true,"client_id":"17344717-0000-0000-0000-173447178100","client_secret":"TestingRh2nx664kUy5dIApvM54T4AtO","container_app_filters":"key:value,filter:example","cspm_enabled":true,"custom_metrics_enabled":true,"errors":["*"],"host_filters":"key:value,filter:example","new_client_id":"17344717-0000-0000-0000-173447178100","new_tenant_name":"17344717-0000-0000-0000-173447178100","resource_collection_enabled":true,"tenant_name":"17344717-0000-0000-0000-173447178100"}' headers: accept: - application/json @@ -40,7 +40,7 @@ interactions: code: 200 message: OK - request: - body: '{"client_id":"17779030-0000-0000-0000-177790301200","tenant_name":"17779030-0000-0000-0000-177790301200"}' + body: '{"client_id":"17344717-0000-0000-0000-173447178100","tenant_name":"17344717-0000-0000-0000-173447178100"}' headers: accept: - application/json diff --git a/tests/v1/features/azure_integration.feature b/tests/v1/features/azure_integration.feature index 6ba40e91e5..8d31237b5b 100644 --- a/tests/v1/features/azure_integration.feature +++ b/tests/v1/features/azure_integration.feature @@ -12,7 +12,7 @@ Feature: Azure Integration @generated @skip @team:DataDog/azure-integrations Scenario: Create an Azure integration returns "Bad Request" response Given new "CreateAzureIntegration" request - And body with value {"app_service_plan_filters": "key:value,filter:example", "automute": true, "client_id": "testc7f6-1234-5678-9101-3fcbf464test", "client_secret": "TestingRh2nx664kUy5dIApvM54T4AtO", "container_app_filters": "key:value,filter:example", "cspm_enabled": true, "custom_metrics_enabled": true, "errors": ["*"], "host_filters": "key:value,filter:example", "metrics_enabled": true, "metrics_enabled_default": true, "new_client_id": "new1c7f6-1234-5678-9101-3fcbf464test", "new_tenant_name": "new1c44-1234-5678-9101-cc00736ftest", "resource_collection_enabled": true, "resource_provider_configs": [{"metrics_enabled": true, "namespace": "Microsoft.Compute"}], "secretless_auth_enabled": true, "tenant_name": "testc44-1234-5678-9101-cc00736ftest", "usage_metrics_enabled": true} + And body with value {"app_service_plan_filters": "key:value,filter:example", "automute": true, "client_id": "testc7f6-1234-5678-9101-3fcbf464test", "client_secret": "TestingRh2nx664kUy5dIApvM54T4AtO", "container_app_filters": "key:value,filter:example", "cspm_enabled": true, "custom_metrics_enabled": true, "errors": ["*"], "host_filters": "key:value,filter:example", "metrics_enabled": true, "metrics_enabled_default": true, "new_client_id": "new1c7f6-1234-5678-9101-3fcbf464test", "new_tenant_name": "new1c44-1234-5678-9101-cc00736ftest", "resource_collection_enabled": true, "resource_provider_configs": [{"metrics_enabled": true, "namespace": "Microsoft.Compute"}], "tenant_name": "testc44-1234-5678-9101-cc00736ftest", "usage_metrics_enabled": true} When the request is sent Then the response status is 400 Bad Request @@ -26,7 +26,7 @@ Feature: Azure Integration @generated @skip @team:DataDog/azure-integrations Scenario: Delete an Azure integration returns "Bad Request" response Given new "DeleteAzureIntegration" request - And body with value {"app_service_plan_filters": "key:value,filter:example", "automute": true, "client_id": "testc7f6-1234-5678-9101-3fcbf464test", "client_secret": "TestingRh2nx664kUy5dIApvM54T4AtO", "container_app_filters": "key:value,filter:example", "cspm_enabled": true, "custom_metrics_enabled": true, "errors": ["*"], "host_filters": "key:value,filter:example", "metrics_enabled": true, "metrics_enabled_default": true, "new_client_id": "new1c7f6-1234-5678-9101-3fcbf464test", "new_tenant_name": "new1c44-1234-5678-9101-cc00736ftest", "resource_collection_enabled": true, "resource_provider_configs": [{"metrics_enabled": true, "namespace": "Microsoft.Compute"}], "secretless_auth_enabled": true, "tenant_name": "testc44-1234-5678-9101-cc00736ftest", "usage_metrics_enabled": true} + And body with value {"app_service_plan_filters": "key:value,filter:example", "automute": true, "client_id": "testc7f6-1234-5678-9101-3fcbf464test", "client_secret": "TestingRh2nx664kUy5dIApvM54T4AtO", "container_app_filters": "key:value,filter:example", "cspm_enabled": true, "custom_metrics_enabled": true, "errors": ["*"], "host_filters": "key:value,filter:example", "metrics_enabled": true, "metrics_enabled_default": true, "new_client_id": "new1c7f6-1234-5678-9101-3fcbf464test", "new_tenant_name": "new1c44-1234-5678-9101-cc00736ftest", "resource_collection_enabled": true, "resource_provider_configs": [{"metrics_enabled": true, "namespace": "Microsoft.Compute"}], "tenant_name": "testc44-1234-5678-9101-cc00736ftest", "usage_metrics_enabled": true} When the request is sent Then the response status is 400 Bad Request @@ -53,21 +53,21 @@ Feature: Azure Integration @generated @skip @team:DataDog/azure-integrations Scenario: Update Azure integration host filters returns "Bad Request" response Given new "UpdateAzureHostFilters" request - And body with value {"app_service_plan_filters": "key:value,filter:example", "automute": true, "client_id": "testc7f6-1234-5678-9101-3fcbf464test", "client_secret": "TestingRh2nx664kUy5dIApvM54T4AtO", "container_app_filters": "key:value,filter:example", "cspm_enabled": true, "custom_metrics_enabled": true, "errors": ["*"], "host_filters": "key:value,filter:example", "metrics_enabled": true, "metrics_enabled_default": true, "new_client_id": "new1c7f6-1234-5678-9101-3fcbf464test", "new_tenant_name": "new1c44-1234-5678-9101-cc00736ftest", "resource_collection_enabled": true, "resource_provider_configs": [{"metrics_enabled": true, "namespace": "Microsoft.Compute"}], "secretless_auth_enabled": true, "tenant_name": "testc44-1234-5678-9101-cc00736ftest", "usage_metrics_enabled": true} + And body with value {"app_service_plan_filters": "key:value,filter:example", "automute": true, "client_id": "testc7f6-1234-5678-9101-3fcbf464test", "client_secret": "TestingRh2nx664kUy5dIApvM54T4AtO", "container_app_filters": "key:value,filter:example", "cspm_enabled": true, "custom_metrics_enabled": true, "errors": ["*"], "host_filters": "key:value,filter:example", "metrics_enabled": true, "metrics_enabled_default": true, "new_client_id": "new1c7f6-1234-5678-9101-3fcbf464test", "new_tenant_name": "new1c44-1234-5678-9101-cc00736ftest", "resource_collection_enabled": true, "resource_provider_configs": [{"metrics_enabled": true, "namespace": "Microsoft.Compute"}], "tenant_name": "testc44-1234-5678-9101-cc00736ftest", "usage_metrics_enabled": true} When the request is sent Then the response status is 400 Bad Request @generated @skip @team:DataDog/azure-integrations Scenario: Update Azure integration host filters returns "OK" response Given new "UpdateAzureHostFilters" request - And body with value {"app_service_plan_filters": "key:value,filter:example", "automute": true, "client_id": "testc7f6-1234-5678-9101-3fcbf464test", "client_secret": "TestingRh2nx664kUy5dIApvM54T4AtO", "container_app_filters": "key:value,filter:example", "cspm_enabled": true, "custom_metrics_enabled": true, "errors": ["*"], "host_filters": "key:value,filter:example", "metrics_enabled": true, "metrics_enabled_default": true, "new_client_id": "new1c7f6-1234-5678-9101-3fcbf464test", "new_tenant_name": "new1c44-1234-5678-9101-cc00736ftest", "resource_collection_enabled": true, "resource_provider_configs": [{"metrics_enabled": true, "namespace": "Microsoft.Compute"}], "secretless_auth_enabled": true, "tenant_name": "testc44-1234-5678-9101-cc00736ftest", "usage_metrics_enabled": true} + And body with value {"app_service_plan_filters": "key:value,filter:example", "automute": true, "client_id": "testc7f6-1234-5678-9101-3fcbf464test", "client_secret": "TestingRh2nx664kUy5dIApvM54T4AtO", "container_app_filters": "key:value,filter:example", "cspm_enabled": true, "custom_metrics_enabled": true, "errors": ["*"], "host_filters": "key:value,filter:example", "metrics_enabled": true, "metrics_enabled_default": true, "new_client_id": "new1c7f6-1234-5678-9101-3fcbf464test", "new_tenant_name": "new1c44-1234-5678-9101-cc00736ftest", "resource_collection_enabled": true, "resource_provider_configs": [{"metrics_enabled": true, "namespace": "Microsoft.Compute"}], "tenant_name": "testc44-1234-5678-9101-cc00736ftest", "usage_metrics_enabled": true} When the request is sent Then the response status is 200 OK @generated @skip @team:DataDog/azure-integrations Scenario: Update an Azure integration returns "Bad Request" response Given new "UpdateAzureIntegration" request - And body with value {"app_service_plan_filters": "key:value,filter:example", "automute": true, "client_id": "testc7f6-1234-5678-9101-3fcbf464test", "client_secret": "TestingRh2nx664kUy5dIApvM54T4AtO", "container_app_filters": "key:value,filter:example", "cspm_enabled": true, "custom_metrics_enabled": true, "errors": ["*"], "host_filters": "key:value,filter:example", "metrics_enabled": true, "metrics_enabled_default": true, "new_client_id": "new1c7f6-1234-5678-9101-3fcbf464test", "new_tenant_name": "new1c44-1234-5678-9101-cc00736ftest", "resource_collection_enabled": true, "resource_provider_configs": [{"metrics_enabled": true, "namespace": "Microsoft.Compute"}], "secretless_auth_enabled": true, "tenant_name": "testc44-1234-5678-9101-cc00736ftest", "usage_metrics_enabled": true} + And body with value {"app_service_plan_filters": "key:value,filter:example", "automute": true, "client_id": "testc7f6-1234-5678-9101-3fcbf464test", "client_secret": "TestingRh2nx664kUy5dIApvM54T4AtO", "container_app_filters": "key:value,filter:example", "cspm_enabled": true, "custom_metrics_enabled": true, "errors": ["*"], "host_filters": "key:value,filter:example", "metrics_enabled": true, "metrics_enabled_default": true, "new_client_id": "new1c7f6-1234-5678-9101-3fcbf464test", "new_tenant_name": "new1c44-1234-5678-9101-cc00736ftest", "resource_collection_enabled": true, "resource_provider_configs": [{"metrics_enabled": true, "namespace": "Microsoft.Compute"}], "tenant_name": "testc44-1234-5678-9101-cc00736ftest", "usage_metrics_enabled": true} When the request is sent Then the response status is 400 Bad Request @@ -75,6 +75,6 @@ Feature: Azure Integration Scenario: Update an Azure integration returns "OK" response Given there is a valid "azure_account" in the system And new "UpdateAzureIntegration" request - And body with value {"app_service_plan_filters": "key:value,filter:example", "automute": true, "client_id": "{{ uuid }}", "client_secret": "TestingRh2nx664kUy5dIApvM54T4AtO", "container_app_filters": "key:value,filter:example", "cspm_enabled": true, "custom_metrics_enabled": true, "errors": ["*"], "host_filters": "key:value,filter:example", "new_client_id": "{{ uuid }}", "new_tenant_name": "{{ uuid }}", "resource_collection_enabled": true, "secretless_auth_enabled": true, "tenant_name": "{{ uuid }}"} + And body with value {"app_service_plan_filters": "key:value,filter:example", "automute": true, "client_id": "{{ uuid }}", "client_secret": "TestingRh2nx664kUy5dIApvM54T4AtO", "container_app_filters": "key:value,filter:example", "cspm_enabled": true, "custom_metrics_enabled": true, "errors": ["*"], "host_filters": "key:value,filter:example", "new_client_id": "{{ uuid }}", "new_tenant_name": "{{ uuid }}", "resource_collection_enabled": true, "tenant_name": "{{ uuid }}"} When the request is sent Then the response status is 200 OK diff --git a/tests/v1/features/given.json b/tests/v1/features/given.json index 4415a28bc0..2606012caa 100644 --- a/tests/v1/features/given.json +++ b/tests/v1/features/given.json @@ -117,7 +117,7 @@ { "name": "body", "origin": "request", - "value": "{\n \"app_service_plan_filters\": \"key:value,filter:example\",\n \"automute\": true,\n \"client_id\": \"{{ uuid }}\",\n \"client_secret\": \"TestingRh2nx664kUy5dIApvM54T4AtO\",\n \"container_app_filters\": \"key:value,filter:example\",\n \"cspm_enabled\": true,\n \"custom_metrics_enabled\": true,\n \"errors\": [\"*\"],\n \"host_filters\": \"key:value,filter:example\",\n \"metrics_enabled\": true,\n \"metrics_enabled_default\": true,\n \"new_client_id\": \"{{ uuid }}\",\n \"new_tenant_name\": \"{{ uuid }}\",\n \"resource_collection_enabled\": true,\n \"resource_provider_configs\": [\n {\n \"namespace\": \"Microsoft.Compute\",\n \"metrics_enabled\": false\n },\n {\n \"namespace\": \"Microsoft.Web\",\n \"metrics_enabled\": false\n }\n ],\n \"secretless_auth_enabled\": false,\n \"tenant_name\": \"{{ uuid }}\",\n \"usage_metrics_enabled\": true\n}" + "value": "{\n \"app_service_plan_filters\": \"key:value,filter:example\",\n \"automute\": true,\n \"client_id\": \"{{ uuid }}\",\n \"client_secret\": \"TestingRh2nx664kUy5dIApvM54T4AtO\",\n \"container_app_filters\": \"key:value,filter:example\",\n \"cspm_enabled\": true,\n \"custom_metrics_enabled\": true,\n \"errors\": [\"*\"],\n \"host_filters\": \"key:value,filter:example\",\n \"metrics_enabled\": true,\n \"metrics_enabled_default\": true,\n \"new_client_id\": \"{{ uuid }}\",\n \"new_tenant_name\": \"{{ uuid }}\",\n \"resource_collection_enabled\": true,\n \"resource_provider_configs\": [\n {\n \"namespace\": \"Microsoft.Compute\",\n \"metrics_enabled\": false\n },\n {\n \"namespace\": \"Microsoft.Web\",\n \"metrics_enabled\": false\n }\n ],\n \"tenant_name\": \"{{ uuid }}\",\n \"usage_metrics_enabled\": true\n}" } ], "step": "there is a valid \"azure_account\" in the system", diff --git a/tests/v2/features/cloud_cost_management.feature b/tests/v2/features/cloud_cost_management.feature index c5fc0adc05..5a2be1e25a 100644 --- a/tests/v2/features/cloud_cost_management.feature +++ b/tests/v2/features/cloud_cost_management.feature @@ -358,6 +358,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 custom allocation rules status 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 tag pipeline rulesets returns "OK" response Given new "ListTagPipelinesRulesets" request @@ -365,6 +371,12 @@ Feature: Cloud Cost Management Then the response status is 200 OK And the response "data[0].attributes.name" is equal to "New Ruleset" + @generated @skip @team:DataDog/cloud-cost-management + Scenario: List tag pipeline rulesets status returns "OK" response + Given new "ListTagPipelinesRulesetsStatus" request + When the request is sent + Then the response status is 200 OK + @generated @skip @team:DataDog/cloud-cost-management Scenario: Reorder custom allocation rules returns "Successfully reordered rules" response Given new "ReorderCustomAllocationRules" request diff --git a/tests/v2/features/undo.json b/tests/v2/features/undo.json index 21d7896f03..1acde7aa53 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": { @@ -6691,6 +6697,12 @@ "type": "idempotent" } }, + "ListTagPipelinesRulesetsStatus": { + "tag": "Cloud Cost Management", + "undo": { + "type": "safe" + } + }, "ValidateQuery": { "tag": "Cloud Cost Management", "undo": {