diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 6c5ab8350716..8b2d7809001e 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/examples/v2/cloud-cost-management/ListCustomAllocationRulesStatus.ts b/examples/v2/cloud-cost-management/ListCustomAllocationRulesStatus.ts new file mode 100644 index 000000000000..035e7fa1b62e --- /dev/null +++ b/examples/v2/cloud-cost-management/ListCustomAllocationRulesStatus.ts @@ -0,0 +1,17 @@ +/** + * List custom allocation rule statuses returns "OK" response + */ + +import { client, v2 } from "@datadog/datadog-api-client"; + +const configuration = client.createConfiguration(); +const apiInstance = new v2.CloudCostManagementApi(configuration); + +apiInstance + .listCustomAllocationRulesStatus() + .then((data: v2.ArbitraryRuleStatusResponseArray) => { + console.log( + "API called successfully. Returned data: " + JSON.stringify(data) + ); + }) + .catch((error: any) => console.error(error)); diff --git a/examples/v2/cloud-cost-management/ListTagPipelinesRulesetsStatus.ts b/examples/v2/cloud-cost-management/ListTagPipelinesRulesetsStatus.ts new file mode 100644 index 000000000000..9660b728344e --- /dev/null +++ b/examples/v2/cloud-cost-management/ListTagPipelinesRulesetsStatus.ts @@ -0,0 +1,17 @@ +/** + * List tag pipeline ruleset statuses returns "OK" response + */ + +import { client, v2 } from "@datadog/datadog-api-client"; + +const configuration = client.createConfiguration(); +const apiInstance = new v2.CloudCostManagementApi(configuration); + +apiInstance + .listTagPipelinesRulesetsStatus() + .then((data: v2.RulesetStatusRespArray) => { + console.log( + "API called successfully. Returned data: " + JSON.stringify(data) + ); + }) + .catch((error: any) => console.error(error)); diff --git a/features/support/scenarios_model_mapping.ts b/features/support/scenarios_model_mapping.ts index 75e66668d86c..940a7f71d243 100644 --- a/features/support/scenarios_model_mapping.ts +++ b/features/support/scenarios_model_mapping.ts @@ -5952,6 +5952,9 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = { }, "operationResponseType": "{}", }, + "v2.ListCustomAllocationRulesStatus": { + "operationResponseType": "ArbitraryRuleStatusResponseArray", + }, "v2.GetCustomAllocationRule": { "ruleId": { "type": "number", @@ -6184,6 +6187,9 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = { }, "operationResponseType": "{}", }, + "v2.ListTagPipelinesRulesetsStatus": { + "operationResponseType": "RulesetStatusRespArray", + }, "v2.ValidateQuery": { "body": { "type": "RulesValidateQueryRequest", diff --git a/features/v2/cloud_cost_management.feature b/features/v2/cloud_cost_management.feature index c5fc0adc05de..1e9f5de20c20 100644 --- a/features/v2/cloud_cost_management.feature +++ b/features/v2/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/features/v2/undo.json b/features/v2/undo.json index a3e509a0bcb3..edc876907919 100644 --- a/features/v2/undo.json +++ b/features/v2/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": { diff --git a/packages/datadog-api-client-v2/apis/CloudCostManagementApi.ts b/packages/datadog-api-client-v2/apis/CloudCostManagementApi.ts index 83b7c046a15e..1fd9dea12cec 100644 --- a/packages/datadog-api-client-v2/apis/CloudCostManagementApi.ts +++ b/packages/datadog-api-client-v2/apis/CloudCostManagementApi.ts @@ -20,6 +20,7 @@ import { APIErrorResponse } from "../models/APIErrorResponse"; import { ArbitraryCostUpsertRequest } from "../models/ArbitraryCostUpsertRequest"; import { ArbitraryRuleResponse } from "../models/ArbitraryRuleResponse"; import { ArbitraryRuleResponseArray } from "../models/ArbitraryRuleResponseArray"; +import { ArbitraryRuleStatusResponseArray } from "../models/ArbitraryRuleStatusResponseArray"; import { AwsCURConfigPatchRequest } from "../models/AwsCURConfigPatchRequest"; import { AwsCURConfigPostRequest } from "../models/AwsCURConfigPostRequest"; import { AwsCurConfigResponse } from "../models/AwsCurConfigResponse"; @@ -47,6 +48,7 @@ import { ReorderRuleResourceArray } from "../models/ReorderRuleResourceArray"; import { ReorderRulesetResourceArray } from "../models/ReorderRulesetResourceArray"; import { RulesetResp } from "../models/RulesetResp"; import { RulesetRespArray } from "../models/RulesetRespArray"; +import { RulesetStatusRespArray } from "../models/RulesetStatusRespArray"; import { RulesValidateQueryRequest } from "../models/RulesValidateQueryRequest"; import { RulesValidateQueryResponse } from "../models/RulesValidateQueryResponse"; import { UCConfigPair } from "../models/UCConfigPair"; @@ -891,6 +893,31 @@ export class CloudCostManagementApiRequestFactory extends BaseAPIRequestFactory return requestContext; } + public async listCustomAllocationRulesStatus( + _options?: Configuration + ): Promise { + const _config = _options || this.configuration; + + // Path Params + const localVarPath = "/api/v2/cost/arbitrary_rule/status"; + + // Make Request Context + const requestContext = _config + .getServer("v2.CloudCostManagementApi.listCustomAllocationRulesStatus") + .makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + + // Apply auth methods + applySecurityAuthentication(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + "AuthZ", + ]); + + return requestContext; + } + public async listCustomCostsFiles( pageNumber?: number, pageSize?: number, @@ -991,6 +1018,31 @@ export class CloudCostManagementApiRequestFactory extends BaseAPIRequestFactory return requestContext; } + public async listTagPipelinesRulesetsStatus( + _options?: Configuration + ): Promise { + const _config = _options || this.configuration; + + // Path Params + const localVarPath = "/api/v2/tags/enrichment/status"; + + // Make Request Context + const requestContext = _config + .getServer("v2.CloudCostManagementApi.listTagPipelinesRulesetsStatus") + .makeRequestContext(localVarPath, HttpMethod.GET); + requestContext.setHeaderParam("Accept", "application/json"); + requestContext.setHttpConfig(_config.httpConfig); + + // Apply auth methods + applySecurityAuthentication(_config, requestContext, [ + "apiKeyAuth", + "appKeyAuth", + "AuthZ", + ]); + + return requestContext; + } + public async reorderCustomAllocationRules( body: ReorderRuleResourceArray, _options?: Configuration @@ -2932,6 +2984,66 @@ export class CloudCostManagementApiResponseProcessor { ); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listCustomAllocationRulesStatus + * @throws ApiException if the response code was not in [200, 299] + */ + public async listCustomAllocationRulesStatus( + response: ResponseContext + ): Promise { + const contentType = ObjectSerializer.normalizeMediaType( + response.headers["content-type"] + ); + if (response.httpStatusCode === 200) { + const body: ArbitraryRuleStatusResponseArray = + ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ArbitraryRuleStatusResponseArray" + ) as ArbitraryRuleStatusResponseArray; + return body; + } + if (response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse( + await response.body.text(), + contentType + ); + let body: APIErrorResponse; + try { + body = ObjectSerializer.deserialize( + bodyText, + "APIErrorResponse" + ) as APIErrorResponse; + } catch (error) { + logger.debug(`Got error deserializing error: ${error}`); + throw new ApiException( + response.httpStatusCode, + bodyText + ); + } + throw new ApiException(response.httpStatusCode, body); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: ArbitraryRuleStatusResponseArray = + ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "ArbitraryRuleStatusResponseArray", + "" + ) as ArbitraryRuleStatusResponseArray; + return body; + } + + const body = (await response.body.text()) || ""; + throw new ApiException( + response.httpStatusCode, + 'Unknown API Status Code!\nBody: "' + body + '"' + ); + } + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -3052,6 +3164,64 @@ export class CloudCostManagementApiResponseProcessor { ); } + /** + * Unwraps the actual response sent by the server from the response context and deserializes the response content + * to the expected objects + * + * @params response Response returned by the server for a request to listTagPipelinesRulesetsStatus + * @throws ApiException if the response code was not in [200, 299] + */ + public async listTagPipelinesRulesetsStatus( + response: ResponseContext + ): Promise { + const contentType = ObjectSerializer.normalizeMediaType( + response.headers["content-type"] + ); + if (response.httpStatusCode === 200) { + const body: RulesetStatusRespArray = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "RulesetStatusRespArray" + ) as RulesetStatusRespArray; + return body; + } + if (response.httpStatusCode === 429) { + const bodyText = ObjectSerializer.parse( + await response.body.text(), + contentType + ); + let body: APIErrorResponse; + try { + body = ObjectSerializer.deserialize( + bodyText, + "APIErrorResponse" + ) as APIErrorResponse; + } catch (error) { + logger.debug(`Got error deserializing error: ${error}`); + throw new ApiException( + response.httpStatusCode, + bodyText + ); + } + throw new ApiException(response.httpStatusCode, body); + } + + // Work around for missing responses in specification, e.g. for petstore.yaml + if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) { + const body: RulesetStatusRespArray = ObjectSerializer.deserialize( + ObjectSerializer.parse(await response.body.text(), contentType), + "RulesetStatusRespArray", + "" + ) as RulesetStatusRespArray; + return body; + } + + const body = (await response.body.text()) || ""; + throw new ApiException( + response.httpStatusCode, + 'Unknown API Status Code!\nBody: "' + body + '"' + ); + } + /** * Unwraps the actual response sent by the server from the response context and deserializes the response content * to the expected objects @@ -4587,6 +4757,26 @@ export class CloudCostManagementApi { }); } + /** + * List the processing status of all custom allocation rules. Returns only the ID and processing status for each rule. + * @param param The request object + */ + public listCustomAllocationRulesStatus( + options?: Configuration + ): Promise { + const requestContextPromise = + this.requestFactory.listCustomAllocationRulesStatus(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listCustomAllocationRulesStatus( + responseContext + ); + }); + }); + } + /** * List the Custom Costs files. * @param param The request object @@ -4633,6 +4823,26 @@ export class CloudCostManagementApi { }); } + /** + * List the processing status of all tag pipeline rulesets. Returns only the ID and processing status for each ruleset. + * @param param The request object + */ + public listTagPipelinesRulesetsStatus( + options?: Configuration + ): Promise { + const requestContextPromise = + this.requestFactory.listTagPipelinesRulesetsStatus(options); + return requestContextPromise.then((requestContext) => { + return this.configuration.httpApi + .send(requestContext) + .then((responseContext) => { + return this.responseProcessor.listTagPipelinesRulesetsStatus( + responseContext + ); + }); + }); + } + /** * Reorder custom allocation rules - Change the execution order of custom allocation rules. * diff --git a/packages/datadog-api-client-v2/index.ts b/packages/datadog-api-client-v2/index.ts index 329394fee367..b7dd8b1fabcb 100644 --- a/packages/datadog-api-client-v2/index.ts +++ b/packages/datadog-api-client-v2/index.ts @@ -1564,6 +1564,10 @@ export { ArbitraryRuleResponseDataAttributesStrategyAllocatedByItemsAllocatedTag export { ArbitraryRuleResponseDataAttributesStrategyBasedOnCostsItems } from "./models/ArbitraryRuleResponseDataAttributesStrategyBasedOnCostsItems"; export { ArbitraryRuleResponseDataAttributesStrategyEvaluateGroupedByFiltersItems } from "./models/ArbitraryRuleResponseDataAttributesStrategyEvaluateGroupedByFiltersItems"; export { ArbitraryRuleResponseDataType } from "./models/ArbitraryRuleResponseDataType"; +export { ArbitraryRuleStatusResponseArray } from "./models/ArbitraryRuleStatusResponseArray"; +export { ArbitraryRuleStatusResponseData } from "./models/ArbitraryRuleStatusResponseData"; +export { ArbitraryRuleStatusResponseDataAttributes } from "./models/ArbitraryRuleStatusResponseDataAttributes"; +export { ArbitraryRuleStatusResponseDataType } from "./models/ArbitraryRuleStatusResponseDataType"; export { Argument } from "./models/Argument"; export { AsanaAccessToken } from "./models/AsanaAccessToken"; export { AsanaAccessTokenType } from "./models/AsanaAccessTokenType"; @@ -5105,6 +5109,10 @@ export { RulesetRespDataAttributesRulesItemsQueryAddition } from "./models/Rules export { RulesetRespDataAttributesRulesItemsReferenceTable } from "./models/RulesetRespDataAttributesRulesItemsReferenceTable"; export { RulesetRespDataAttributesRulesItemsReferenceTableFieldPairsItems } from "./models/RulesetRespDataAttributesRulesItemsReferenceTableFieldPairsItems"; export { RulesetRespDataType } from "./models/RulesetRespDataType"; +export { RulesetStatusRespArray } from "./models/RulesetStatusRespArray"; +export { RulesetStatusRespData } from "./models/RulesetStatusRespData"; +export { RulesetStatusRespDataAttributes } from "./models/RulesetStatusRespDataAttributes"; +export { RulesetStatusRespDataType } from "./models/RulesetStatusRespDataType"; export { RuleSeverity } from "./models/RuleSeverity"; export { RulesValidateQueryRequest } from "./models/RulesValidateQueryRequest"; export { RulesValidateQueryRequestData } from "./models/RulesValidateQueryRequestData"; diff --git a/packages/datadog-api-client-v2/models/ArbitraryRuleStatusResponseArray.ts b/packages/datadog-api-client-v2/models/ArbitraryRuleStatusResponseArray.ts new file mode 100644 index 000000000000..203bdd7636f1 --- /dev/null +++ b/packages/datadog-api-client-v2/models/ArbitraryRuleStatusResponseArray.ts @@ -0,0 +1,54 @@ +/** + * 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 2020-Present Datadog, Inc. + */ +import { ArbitraryRuleStatusResponseData } from "./ArbitraryRuleStatusResponseData"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * Processing statuses for all custom allocation rules in the specified organization. + */ +export class ArbitraryRuleStatusResponseArray { + /** + * Processing status for a custom allocation rule. + */ + "data": Array; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + data: { + baseName: "data", + type: "Array", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return ArbitraryRuleStatusResponseArray.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/ArbitraryRuleStatusResponseData.ts b/packages/datadog-api-client-v2/models/ArbitraryRuleStatusResponseData.ts new file mode 100644 index 000000000000..11ab79f3630c --- /dev/null +++ b/packages/datadog-api-client-v2/models/ArbitraryRuleStatusResponseData.ts @@ -0,0 +1,73 @@ +/** + * 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 2020-Present Datadog, Inc. + */ +import { ArbitraryRuleStatusResponseDataAttributes } from "./ArbitraryRuleStatusResponseDataAttributes"; +import { ArbitraryRuleStatusResponseDataType } from "./ArbitraryRuleStatusResponseDataType"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * Processing status for a custom allocation rule. + */ +export class ArbitraryRuleStatusResponseData { + /** + * Processing status for a custom allocation rule. + */ + "attributes": ArbitraryRuleStatusResponseDataAttributes; + /** + * The unique identifier of the custom allocation rule. + */ + "id": string; + /** + * Custom allocation rule status resource type. + */ + "type": ArbitraryRuleStatusResponseDataType; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + attributes: { + baseName: "attributes", + type: "ArbitraryRuleStatusResponseDataAttributes", + required: true, + }, + id: { + baseName: "id", + type: "string", + required: true, + }, + type: { + baseName: "type", + type: "ArbitraryRuleStatusResponseDataType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return ArbitraryRuleStatusResponseData.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/ArbitraryRuleStatusResponseDataAttributes.ts b/packages/datadog-api-client-v2/models/ArbitraryRuleStatusResponseDataAttributes.ts new file mode 100644 index 000000000000..1702ff1ce912 --- /dev/null +++ b/packages/datadog-api-client-v2/models/ArbitraryRuleStatusResponseDataAttributes.ts @@ -0,0 +1,53 @@ +/** + * 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 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * Processing status for a custom allocation rule. + */ +export class ArbitraryRuleStatusResponseDataAttributes { + /** + * The processing status of the custom allocation rule. + */ + "processingStatus": string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + processingStatus: { + baseName: "processing_status", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return ArbitraryRuleStatusResponseDataAttributes.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/ArbitraryRuleStatusResponseDataType.ts b/packages/datadog-api-client-v2/models/ArbitraryRuleStatusResponseDataType.ts new file mode 100644 index 000000000000..038dbc607fc2 --- /dev/null +++ b/packages/datadog-api-client-v2/models/ArbitraryRuleStatusResponseDataType.ts @@ -0,0 +1,16 @@ +/** + * 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 2020-Present Datadog, Inc. + */ + +import { UnparsedObject } from "../../datadog-api-client-common/util"; + +/** + * Custom allocation rule status resource type. + */ + +export type ArbitraryRuleStatusResponseDataType = + | typeof ARBITRARY_RULE_STATUS + | UnparsedObject; +export const ARBITRARY_RULE_STATUS = "arbitrary_rule_status"; diff --git a/packages/datadog-api-client-v2/models/ObjectSerializer.ts b/packages/datadog-api-client-v2/models/ObjectSerializer.ts index 0848c910912a..b9cab4c784f7 100644 --- a/packages/datadog-api-client-v2/models/ObjectSerializer.ts +++ b/packages/datadog-api-client-v2/models/ObjectSerializer.ts @@ -199,6 +199,9 @@ import { ArbitraryRuleResponseDataAttributesStrategyAllocatedByItems } from "./A import { ArbitraryRuleResponseDataAttributesStrategyAllocatedByItemsAllocatedTagsItems } from "./ArbitraryRuleResponseDataAttributesStrategyAllocatedByItemsAllocatedTagsItems"; import { ArbitraryRuleResponseDataAttributesStrategyBasedOnCostsItems } from "./ArbitraryRuleResponseDataAttributesStrategyBasedOnCostsItems"; import { ArbitraryRuleResponseDataAttributesStrategyEvaluateGroupedByFiltersItems } from "./ArbitraryRuleResponseDataAttributesStrategyEvaluateGroupedByFiltersItems"; +import { ArbitraryRuleStatusResponseArray } from "./ArbitraryRuleStatusResponseArray"; +import { ArbitraryRuleStatusResponseData } from "./ArbitraryRuleStatusResponseData"; +import { ArbitraryRuleStatusResponseDataAttributes } from "./ArbitraryRuleStatusResponseDataAttributes"; import { Argument } from "./Argument"; import { AsanaAccessToken } from "./AsanaAccessToken"; import { AsanaAccessTokenUpdate } from "./AsanaAccessTokenUpdate"; @@ -2903,6 +2906,9 @@ import { RulesetRespDataAttributesRulesItemsQuery } from "./RulesetRespDataAttri import { RulesetRespDataAttributesRulesItemsQueryAddition } from "./RulesetRespDataAttributesRulesItemsQueryAddition"; import { RulesetRespDataAttributesRulesItemsReferenceTable } from "./RulesetRespDataAttributesRulesItemsReferenceTable"; import { RulesetRespDataAttributesRulesItemsReferenceTableFieldPairsItems } from "./RulesetRespDataAttributesRulesItemsReferenceTableFieldPairsItems"; +import { RulesetStatusRespArray } from "./RulesetStatusRespArray"; +import { RulesetStatusRespData } from "./RulesetStatusRespData"; +import { RulesetStatusRespDataAttributes } from "./RulesetStatusRespDataAttributes"; import { RumCrossProductSampling } from "./RumCrossProductSampling"; import { RumCrossProductSamplingCreate } from "./RumCrossProductSamplingCreate"; import { RumCrossProductSamplingUpdate } from "./RumCrossProductSamplingUpdate"; @@ -4257,6 +4263,7 @@ const enumsMap: { [key: string]: any[] } = { ], ArbitraryCostUpsertRequestDataType: ["upsert_arbitrary_rule"], ArbitraryRuleResponseDataType: ["arbitrary_rule"], + ArbitraryRuleStatusResponseDataType: ["arbitrary_rule_status"], AsanaAccessTokenType: ["AsanaAccessToken"], AsanaIntegrationType: ["Asana"], AssetEntityType: ["assets"], @@ -5609,6 +5616,7 @@ const enumsMap: { [key: string]: any[] } = { RulesValidateQueryRequestDataType: ["validate_query"], RulesValidateQueryResponseDataType: ["validate_response"], RulesetRespDataType: ["ruleset"], + RulesetStatusRespDataType: ["ruleset_status"], RumMetricComputeAggregationType: ["count", "distribution"], RumMetricEventType: [ "session", @@ -6648,6 +6656,10 @@ const typeMap: { [index: string]: any } = { ArbitraryRuleResponseDataAttributesStrategyBasedOnCostsItems, ArbitraryRuleResponseDataAttributesStrategyEvaluateGroupedByFiltersItems: ArbitraryRuleResponseDataAttributesStrategyEvaluateGroupedByFiltersItems, + ArbitraryRuleStatusResponseArray: ArbitraryRuleStatusResponseArray, + ArbitraryRuleStatusResponseData: ArbitraryRuleStatusResponseData, + ArbitraryRuleStatusResponseDataAttributes: + ArbitraryRuleStatusResponseDataAttributes, Argument: Argument, AsanaAccessToken: AsanaAccessToken, AsanaAccessTokenUpdate: AsanaAccessTokenUpdate, @@ -9858,6 +9870,9 @@ const typeMap: { [index: string]: any } = { RulesetRespDataAttributesRulesItemsReferenceTable, RulesetRespDataAttributesRulesItemsReferenceTableFieldPairsItems: RulesetRespDataAttributesRulesItemsReferenceTableFieldPairsItems, + RulesetStatusRespArray: RulesetStatusRespArray, + RulesetStatusRespData: RulesetStatusRespData, + RulesetStatusRespDataAttributes: RulesetStatusRespDataAttributes, RumCrossProductSampling: RumCrossProductSampling, RumCrossProductSamplingCreate: RumCrossProductSamplingCreate, RumCrossProductSamplingUpdate: RumCrossProductSamplingUpdate, diff --git a/packages/datadog-api-client-v2/models/RulesetStatusRespArray.ts b/packages/datadog-api-client-v2/models/RulesetStatusRespArray.ts new file mode 100644 index 000000000000..e0776f747f74 --- /dev/null +++ b/packages/datadog-api-client-v2/models/RulesetStatusRespArray.ts @@ -0,0 +1,54 @@ +/** + * 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 2020-Present Datadog, Inc. + */ +import { RulesetStatusRespData } from "./RulesetStatusRespData"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * Processing statuses for all tag pipeline rulesets in the specified organization. + */ +export class RulesetStatusRespArray { + /** + * Processing status for a tag pipeline ruleset. + */ + "data": Array; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + data: { + baseName: "data", + type: "Array", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return RulesetStatusRespArray.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/RulesetStatusRespData.ts b/packages/datadog-api-client-v2/models/RulesetStatusRespData.ts new file mode 100644 index 000000000000..b65e9add1555 --- /dev/null +++ b/packages/datadog-api-client-v2/models/RulesetStatusRespData.ts @@ -0,0 +1,73 @@ +/** + * 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 2020-Present Datadog, Inc. + */ +import { RulesetStatusRespDataAttributes } from "./RulesetStatusRespDataAttributes"; +import { RulesetStatusRespDataType } from "./RulesetStatusRespDataType"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * Processing status for a tag pipeline ruleset. + */ +export class RulesetStatusRespData { + /** + * Processing status for a tag pipeline ruleset. + */ + "attributes": RulesetStatusRespDataAttributes; + /** + * The unique identifier of the ruleset. + */ + "id": string; + /** + * Ruleset status resource type. + */ + "type": RulesetStatusRespDataType; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + attributes: { + baseName: "attributes", + type: "RulesetStatusRespDataAttributes", + required: true, + }, + id: { + baseName: "id", + type: "string", + required: true, + }, + type: { + baseName: "type", + type: "RulesetStatusRespDataType", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return RulesetStatusRespData.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/RulesetStatusRespDataAttributes.ts b/packages/datadog-api-client-v2/models/RulesetStatusRespDataAttributes.ts new file mode 100644 index 000000000000..9a82f91a27bd --- /dev/null +++ b/packages/datadog-api-client-v2/models/RulesetStatusRespDataAttributes.ts @@ -0,0 +1,53 @@ +/** + * 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 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * Processing status for a tag pipeline ruleset. + */ +export class RulesetStatusRespDataAttributes { + /** + * The processing status of the ruleset. + */ + "processingStatus": string; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + processingStatus: { + baseName: "processing_status", + type: "string", + required: true, + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return RulesetStatusRespDataAttributes.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/RulesetStatusRespDataType.ts b/packages/datadog-api-client-v2/models/RulesetStatusRespDataType.ts new file mode 100644 index 000000000000..343593f45f5d --- /dev/null +++ b/packages/datadog-api-client-v2/models/RulesetStatusRespDataType.ts @@ -0,0 +1,14 @@ +/** + * 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 2020-Present Datadog, Inc. + */ + +import { UnparsedObject } from "../../datadog-api-client-common/util"; + +/** + * Ruleset status resource type. + */ + +export type RulesetStatusRespDataType = typeof RULESET_STATUS | UnparsedObject; +export const RULESET_STATUS = "ruleset_status";