@datadog/datadog-api-client 1.43.0 → 1.44.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/dist/packages/datadog-api-client-common/configuration.js +3 -0
- package/dist/packages/datadog-api-client-common/configuration.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/SyntheticsApi.d.ts +2 -7
- package/dist/packages/datadog-api-client-v1/apis/SyntheticsApi.js +3 -6
- package/dist/packages/datadog-api-client-v1/apis/SyntheticsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventsDataSource.d.ts +2 -1
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventsDataSource.js +2 -1
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventsDataSource.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js +1 -0
- package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/AWSIntegrationApi.d.ts +28 -0
- package/dist/packages/datadog-api-client-v2/apis/AWSIntegrationApi.js +136 -0
- package/dist/packages/datadog-api-client-v2/apis/AWSIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/CloudCostManagementApi.d.ts +375 -6
- package/dist/packages/datadog-api-client-v2/apis/CloudCostManagementApi.js +1366 -126
- package/dist/packages/datadog-api-client-v2/apis/CloudCostManagementApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/DORAMetricsApi.d.ts +42 -0
- package/dist/packages/datadog-api-client-v2/apis/DORAMetricsApi.js +164 -0
- package/dist/packages/datadog-api-client-v2/apis/DORAMetricsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.d.ts +87 -0
- package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.js +265 -0
- package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.d.ts +9 -2
- package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.js +7 -3
- package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/index.d.ts +108 -5
- package/dist/packages/datadog-api-client-v2/index.js +222 -46
- package/dist/packages/datadog-api-client-v2/index.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/ArbitraryCostUpsertRequest.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryCostUpsertRequest.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryCostUpsertRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryCostUpsertRequestData.d.ts +46 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryCostUpsertRequestData.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryCostUpsertRequestData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryCostUpsertRequestDataAttributes.d.ts +66 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryCostUpsertRequestDataAttributes.js +64 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryCostUpsertRequestDataAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryCostUpsertRequestDataAttributesCostsToAllocateItems.d.ts +48 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryCostUpsertRequestDataAttributesCostsToAllocateItems.js +49 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryCostUpsertRequestDataAttributesCostsToAllocateItems.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryCostUpsertRequestDataAttributesStrategy.d.ts +74 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryCostUpsertRequestDataAttributesStrategy.js +63 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryCostUpsertRequestDataAttributesStrategy.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryCostUpsertRequestDataAttributesStrategyAllocatedByFiltersItems.d.ts +48 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryCostUpsertRequestDataAttributesStrategyAllocatedByFiltersItems.js +49 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryCostUpsertRequestDataAttributesStrategyAllocatedByFiltersItems.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryCostUpsertRequestDataAttributesStrategyAllocatedByItems.d.ts +41 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryCostUpsertRequestDataAttributesStrategyAllocatedByItems.js +37 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryCostUpsertRequestDataAttributesStrategyAllocatedByItems.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryCostUpsertRequestDataAttributesStrategyAllocatedByItemsAllocatedTagsItems.d.ts +40 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryCostUpsertRequestDataAttributesStrategyAllocatedByItemsAllocatedTagsItems.js +41 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryCostUpsertRequestDataAttributesStrategyAllocatedByItemsAllocatedTagsItems.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryCostUpsertRequestDataAttributesStrategyBasedOnCostsItems.d.ts +48 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryCostUpsertRequestDataAttributesStrategyBasedOnCostsItems.js +49 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryCostUpsertRequestDataAttributesStrategyBasedOnCostsItems.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryCostUpsertRequestDataAttributesStrategyEvaluateGroupedByFiltersItems.d.ts +48 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryCostUpsertRequestDataAttributesStrategyEvaluateGroupedByFiltersItems.js +49 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryCostUpsertRequestDataAttributesStrategyEvaluateGroupedByFiltersItems.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryCostUpsertRequestDataType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryCostUpsertRequestDataType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryCostUpsertRequestDataType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryRuleResponse.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryRuleResponse.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryRuleResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryRuleResponseArray.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryRuleResponseArray.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryRuleResponseArray.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryRuleResponseData.d.ts +46 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryRuleResponseData.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryRuleResponseData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryRuleResponseDataAttributes.d.ts +82 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryRuleResponseDataAttributes.js +89 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryRuleResponseDataAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryRuleResponseDataAttributesCostsToAllocateItems.d.ts +48 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryRuleResponseDataAttributesCostsToAllocateItems.js +49 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryRuleResponseDataAttributesCostsToAllocateItems.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryRuleResponseDataAttributesStrategy.d.ts +74 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryRuleResponseDataAttributesStrategy.js +63 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryRuleResponseDataAttributesStrategy.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryRuleResponseDataAttributesStrategyAllocatedByFiltersItems.d.ts +48 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryRuleResponseDataAttributesStrategyAllocatedByFiltersItems.js +49 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryRuleResponseDataAttributesStrategyAllocatedByFiltersItems.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryRuleResponseDataAttributesStrategyAllocatedByItems.d.ts +41 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryRuleResponseDataAttributesStrategyAllocatedByItems.js +37 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryRuleResponseDataAttributesStrategyAllocatedByItems.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryRuleResponseDataAttributesStrategyAllocatedByItemsAllocatedTagsItems.d.ts +40 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryRuleResponseDataAttributesStrategyAllocatedByItemsAllocatedTagsItems.js +41 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryRuleResponseDataAttributesStrategyAllocatedByItemsAllocatedTagsItems.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryRuleResponseDataAttributesStrategyBasedOnCostsItems.d.ts +48 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryRuleResponseDataAttributesStrategyBasedOnCostsItems.js +49 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryRuleResponseDataAttributesStrategyBasedOnCostsItems.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryRuleResponseDataAttributesStrategyEvaluateGroupedByFiltersItems.d.ts +48 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryRuleResponseDataAttributesStrategyEvaluateGroupedByFiltersItems.js +49 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryRuleResponseDataAttributesStrategyEvaluateGroupedByFiltersItems.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryRuleResponseDataType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryRuleResponseDataType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/ArbitraryRuleResponseDataType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AwsCURConfigPostData.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/AwsCURConfigPostData.js +0 -1
- package/dist/packages/datadog-api-client-v2/models/AwsCURConfigPostData.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/AwsCURConfigsResponse.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/AwsCURConfigsResponse.js +1 -0
- package/dist/packages/datadog-api-client-v2/models/AwsCURConfigsResponse.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/AwsCurConfigResponse.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/AwsCurConfigResponse.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/{AwsCURConfigResponse.js.map → AwsCurConfigResponse.js.map} +1 -1
- package/dist/packages/datadog-api-client-v2/models/AwsCurConfigResponseData.d.ts +46 -0
- package/dist/packages/datadog-api-client-v2/models/AwsCurConfigResponseData.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/AwsCurConfigResponseData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AwsCurConfigResponseDataAttributes.d.ts +81 -0
- package/dist/packages/datadog-api-client-v2/models/AwsCurConfigResponseDataAttributes.js +75 -0
- package/dist/packages/datadog-api-client-v2/models/AwsCurConfigResponseDataAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AwsCurConfigResponseDataAttributesAccountFilters.d.ts +44 -0
- package/dist/packages/datadog-api-client-v2/models/AwsCurConfigResponseDataAttributesAccountFilters.js +43 -0
- package/dist/packages/datadog-api-client-v2/models/AwsCurConfigResponseDataAttributesAccountFilters.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AwsCurConfigResponseDataType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/AwsCurConfigResponseDataType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/AwsCurConfigResponseDataType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/AzureUCConfig.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/AzureUCConfigPatchData.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/AzureUCConfigPatchData.js +0 -1
- package/dist/packages/datadog-api-client-v2/models/AzureUCConfigPatchData.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/AzureUCConfigPostData.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/AzureUCConfigPostData.js +0 -1
- package/dist/packages/datadog-api-client-v2/models/AzureUCConfigPostData.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/AzureUCConfigPostRequestAttributes.d.ts +2 -6
- package/dist/packages/datadog-api-client-v2/models/AzureUCConfigPostRequestAttributes.js +0 -4
- package/dist/packages/datadog-api-client-v2/models/AzureUCConfigPostRequestAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/AzureUCConfigsResponse.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/AzureUCConfigsResponse.js +1 -0
- package/dist/packages/datadog-api-client-v2/models/AzureUCConfigsResponse.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/CreateRulesetRequest.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/CreateRulesetRequest.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/CreateRulesetRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CreateRulesetRequestData.d.ts +46 -0
- package/dist/packages/datadog-api-client-v2/models/CreateRulesetRequestData.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/CreateRulesetRequestData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CreateRulesetRequestDataAttributes.d.ts +41 -0
- package/dist/packages/datadog-api-client-v2/models/CreateRulesetRequestDataAttributes.js +35 -0
- package/dist/packages/datadog-api-client-v2/models/CreateRulesetRequestDataAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CreateRulesetRequestDataAttributesRulesItems.d.ts +61 -0
- package/dist/packages/datadog-api-client-v2/models/CreateRulesetRequestDataAttributesRulesItems.js +52 -0
- package/dist/packages/datadog-api-client-v2/models/CreateRulesetRequestDataAttributesRulesItems.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CreateRulesetRequestDataAttributesRulesItemsMapping.d.ts +44 -0
- package/dist/packages/datadog-api-client-v2/models/CreateRulesetRequestDataAttributesRulesItemsMapping.js +46 -0
- package/dist/packages/datadog-api-client-v2/models/CreateRulesetRequestDataAttributesRulesItemsMapping.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CreateRulesetRequestDataAttributesRulesItemsQuery.d.ts +49 -0
- package/dist/packages/datadog-api-client-v2/models/CreateRulesetRequestDataAttributesRulesItemsQuery.js +45 -0
- package/dist/packages/datadog-api-client-v2/models/CreateRulesetRequestDataAttributesRulesItemsQuery.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CreateRulesetRequestDataAttributesRulesItemsQueryAddition.d.ts +40 -0
- package/dist/packages/datadog-api-client-v2/models/CreateRulesetRequestDataAttributesRulesItemsQueryAddition.js +41 -0
- package/dist/packages/datadog-api-client-v2/models/CreateRulesetRequestDataAttributesRulesItemsQueryAddition.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CreateRulesetRequestDataAttributesRulesItemsReferenceTable.d.ts +53 -0
- package/dist/packages/datadog-api-client-v2/models/CreateRulesetRequestDataAttributesRulesItemsReferenceTable.js +49 -0
- package/dist/packages/datadog-api-client-v2/models/CreateRulesetRequestDataAttributesRulesItemsReferenceTable.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CreateRulesetRequestDataAttributesRulesItemsReferenceTableFieldPairsItems.d.ts +40 -0
- package/dist/packages/datadog-api-client-v2/models/CreateRulesetRequestDataAttributesRulesItemsReferenceTableFieldPairsItems.js +41 -0
- package/dist/packages/datadog-api-client-v2/models/CreateRulesetRequestDataAttributesRulesItemsReferenceTableFieldPairsItems.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/CreateRulesetRequestDataType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/CreateRulesetRequestDataType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/CreateRulesetRequestDataType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DatastoreTrigger.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/DatastoreTrigger.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/DatastoreTrigger.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/DatastoreTriggerWrapper.d.ts +41 -0
- package/dist/packages/datadog-api-client-v2/models/DatastoreTriggerWrapper.js +35 -0
- package/dist/packages/datadog-api-client-v2/models/DatastoreTriggerWrapper.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/FullAPIKeyAttributes.d.ts +4 -0
- package/dist/packages/datadog-api-client-v2/models/FullAPIKeyAttributes.js +5 -0
- package/dist/packages/datadog-api-client-v2/models/FullAPIKeyAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/FullApplicationKeyAttributes.d.ts +4 -0
- package/dist/packages/datadog-api-client-v2/models/FullApplicationKeyAttributes.js +5 -0
- package/dist/packages/datadog-api-client-v2/models/FullApplicationKeyAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfig.d.ts +4 -4
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfig.js +1 -1
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigAttributes.d.ts +13 -13
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigAttributes.js +1 -1
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPatchData.d.ts +3 -3
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPatchData.js +1 -1
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPatchRequest.d.ts +2 -2
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPatchRequest.js +1 -1
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPatchRequestAttributes.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPatchRequestAttributes.js +1 -1
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPatchRequestType.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPostData.d.ts +4 -4
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPostData.js +1 -2
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPostData.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPostRequest.d.ts +2 -2
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPostRequest.js +1 -1
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPostRequestAttributes.d.ts +7 -7
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPostRequestAttributes.js +1 -1
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPostRequestType.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigResponse.d.ts +2 -2
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigResponse.js +1 -1
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigType.d.ts +1 -1
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigsResponse.d.ts +3 -3
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigsResponse.js +2 -1
- package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigsResponse.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/GcpUcConfigResponse.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/GcpUcConfigResponse.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/GcpUcConfigResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/GcpUcConfigResponseData.d.ts +46 -0
- package/dist/packages/datadog-api-client-v2/models/GcpUcConfigResponseData.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/GcpUcConfigResponseData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/GcpUcConfigResponseDataAttributes.d.ts +84 -0
- package/dist/packages/datadog-api-client-v2/models/GcpUcConfigResponseDataAttributes.js +84 -0
- package/dist/packages/datadog-api-client-v2/models/GcpUcConfigResponseDataAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/GcpUcConfigResponseDataType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/GcpUcConfigResponseDataType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/GcpUcConfigResponseDataType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/HistoricalJobOptions.d.ts +5 -0
- package/dist/packages/datadog-api-client-v2/models/HistoricalJobOptions.js +4 -0
- package/dist/packages/datadog-api-client-v2/models/HistoricalJobOptions.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentImpactAttributes.d.ts +62 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentImpactAttributes.js +65 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentImpactAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentImpactCreateAttributes.d.ts +50 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentImpactCreateAttributes.js +51 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentImpactCreateAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentImpactCreateData.d.ts +42 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentImpactCreateData.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentImpactCreateData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentImpactCreateRequest.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentImpactCreateRequest.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentImpactCreateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentImpactRelatedObject.d.ts +13 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentImpactRelatedObject.js +12 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentImpactRelatedObject.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentImpactRelationships.d.ts +46 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentImpactRelationships.js +38 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentImpactRelationships.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentImpactResponse.d.ts +42 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentImpactResponse.js +35 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentImpactResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentImpactResponseData.d.ts +51 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentImpactResponseData.js +44 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentImpactResponseData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentImpactType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentImpactType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentImpactType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentImpactsResponse.d.ts +42 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentImpactsResponse.js +35 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentImpactsResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseAttributes.d.ts +12 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseAttributes.js +13 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseRelationships.d.ts +4 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseRelationships.js +4 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseRelationships.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js +199 -2
- package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/ObservabilityPipelineConfigDestinationItem.d.ts +2 -1
- package/dist/packages/datadog-api-client-v2/models/ObservabilityPipelineGooglePubSubDestination.d.ts +68 -0
- package/dist/packages/datadog-api-client-v2/models/ObservabilityPipelineGooglePubSubDestination.js +64 -0
- package/dist/packages/datadog-api-client-v2/models/ObservabilityPipelineGooglePubSubDestination.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ObservabilityPipelineGooglePubSubDestinationEncoding.d.ts +12 -0
- package/dist/packages/datadog-api-client-v2/models/ObservabilityPipelineGooglePubSubDestinationEncoding.js +11 -0
- package/dist/packages/datadog-api-client-v2/models/ObservabilityPipelineGooglePubSubDestinationEncoding.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ObservabilityPipelineGooglePubSubDestinationType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/ObservabilityPipelineGooglePubSubDestinationType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/ObservabilityPipelineGooglePubSubDestinationType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/PartialAPIKeyAttributes.d.ts +4 -0
- package/dist/packages/datadog-api-client-v2/models/PartialAPIKeyAttributes.js +5 -0
- package/dist/packages/datadog-api-client-v2/models/PartialAPIKeyAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/PartialApplicationKeyAttributes.d.ts +4 -0
- package/dist/packages/datadog-api-client-v2/models/PartialApplicationKeyAttributes.js +4 -0
- package/dist/packages/datadog-api-client-v2/models/PartialApplicationKeyAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationAttributes.d.ts +4 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationAttributes.js +5 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncident.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncident.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncident.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentData.d.ts +41 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentData.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ReorderRuleResourceArray.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/ReorderRuleResourceArray.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/ReorderRuleResourceArray.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ReorderRuleResourceData.d.ts +41 -0
- package/dist/packages/datadog-api-client-v2/models/ReorderRuleResourceData.js +35 -0
- package/dist/packages/datadog-api-client-v2/models/ReorderRuleResourceData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ReorderRuleResourceDataType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/ReorderRuleResourceDataType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/ReorderRuleResourceDataType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ReorderRulesetResourceArray.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/ReorderRulesetResourceArray.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/ReorderRulesetResourceArray.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ReorderRulesetResourceData.d.ts +41 -0
- package/dist/packages/datadog-api-client-v2/models/ReorderRulesetResourceData.js +35 -0
- package/dist/packages/datadog-api-client-v2/models/ReorderRulesetResourceData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ReorderRulesetResourceDataType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/ReorderRulesetResourceDataType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/ReorderRulesetResourceDataType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RulesValidateQueryRequest.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/RulesValidateQueryRequest.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/RulesValidateQueryRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RulesValidateQueryRequestData.d.ts +46 -0
- package/dist/packages/datadog-api-client-v2/models/RulesValidateQueryRequestData.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/RulesValidateQueryRequestData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/{AwsCURConfigResponse.d.ts → RulesValidateQueryRequestDataAttributes.d.ts} +4 -5
- package/dist/packages/datadog-api-client-v2/models/RulesValidateQueryRequestDataAttributes.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/RulesValidateQueryRequestDataAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RulesValidateQueryRequestDataType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/RulesValidateQueryRequestDataType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/RulesValidateQueryRequestDataType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RulesValidateQueryResponse.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/RulesValidateQueryResponse.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/RulesValidateQueryResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RulesValidateQueryResponseData.d.ts +46 -0
- package/dist/packages/datadog-api-client-v2/models/RulesValidateQueryResponseData.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/RulesValidateQueryResponseData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RulesValidateQueryResponseDataAttributes.d.ts +36 -0
- package/dist/packages/datadog-api-client-v2/models/RulesValidateQueryResponseDataAttributes.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/RulesValidateQueryResponseDataAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RulesValidateQueryResponseDataType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/RulesValidateQueryResponseDataType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/RulesValidateQueryResponseDataType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RulesetResp.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/{AwsCURConfigResponse.js → RulesetResp.js} +8 -8
- package/dist/packages/datadog-api-client-v2/models/RulesetResp.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RulesetRespArray.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/RulesetRespArray.js +31 -0
- package/dist/packages/datadog-api-client-v2/models/RulesetRespArray.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RulesetRespData.d.ts +46 -0
- package/dist/packages/datadog-api-client-v2/models/RulesetRespData.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/RulesetRespData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RulesetRespDataAttributes.d.ts +67 -0
- package/dist/packages/datadog-api-client-v2/models/RulesetRespDataAttributes.js +68 -0
- package/dist/packages/datadog-api-client-v2/models/RulesetRespDataAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RulesetRespDataAttributesCreated.d.ts +40 -0
- package/dist/packages/datadog-api-client-v2/models/RulesetRespDataAttributesCreated.js +41 -0
- package/dist/packages/datadog-api-client-v2/models/RulesetRespDataAttributesCreated.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RulesetRespDataAttributesModified.d.ts +40 -0
- package/dist/packages/datadog-api-client-v2/models/RulesetRespDataAttributesModified.js +41 -0
- package/dist/packages/datadog-api-client-v2/models/RulesetRespDataAttributesModified.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RulesetRespDataAttributesRulesItems.d.ts +61 -0
- package/dist/packages/datadog-api-client-v2/models/RulesetRespDataAttributesRulesItems.js +52 -0
- package/dist/packages/datadog-api-client-v2/models/RulesetRespDataAttributesRulesItems.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RulesetRespDataAttributesRulesItemsMapping.d.ts +44 -0
- package/dist/packages/datadog-api-client-v2/models/RulesetRespDataAttributesRulesItemsMapping.js +46 -0
- package/dist/packages/datadog-api-client-v2/models/RulesetRespDataAttributesRulesItemsMapping.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RulesetRespDataAttributesRulesItemsQuery.d.ts +49 -0
- package/dist/packages/datadog-api-client-v2/models/RulesetRespDataAttributesRulesItemsQuery.js +45 -0
- package/dist/packages/datadog-api-client-v2/models/RulesetRespDataAttributesRulesItemsQuery.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RulesetRespDataAttributesRulesItemsQueryAddition.d.ts +40 -0
- package/dist/packages/datadog-api-client-v2/models/RulesetRespDataAttributesRulesItemsQueryAddition.js +41 -0
- package/dist/packages/datadog-api-client-v2/models/RulesetRespDataAttributesRulesItemsQueryAddition.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RulesetRespDataAttributesRulesItemsReferenceTable.d.ts +53 -0
- package/dist/packages/datadog-api-client-v2/models/RulesetRespDataAttributesRulesItemsReferenceTable.js +49 -0
- package/dist/packages/datadog-api-client-v2/models/RulesetRespDataAttributesRulesItemsReferenceTable.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RulesetRespDataAttributesRulesItemsReferenceTableFieldPairsItems.d.ts +40 -0
- package/dist/packages/datadog-api-client-v2/models/RulesetRespDataAttributesRulesItemsReferenceTableFieldPairsItems.js +41 -0
- package/dist/packages/datadog-api-client-v2/models/RulesetRespDataAttributesRulesItemsReferenceTableFieldPairsItems.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RulesetRespDataType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/RulesetRespDataType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/RulesetRespDataType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleDetectionMethod.d.ts +2 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleDetectionMethod.js +2 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleDetectionMethod.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleOptions.d.ts +5 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleOptions.js +4 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleOptions.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleSequenceDetectionOptions.d.ts +42 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleSequenceDetectionOptions.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleSequenceDetectionOptions.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleSequenceDetectionStep.d.ts +46 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleSequenceDetectionStep.js +38 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleSequenceDetectionStep.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleSequenceDetectionStepTransition.d.ts +46 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleSequenceDetectionStepTransition.js +38 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleSequenceDetectionStepTransition.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/Trigger.d.ts +2 -1
- package/dist/packages/datadog-api-client-v2/models/UCConfigPair.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/UCConfigPair.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/UCConfigPair.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/UCConfigPairData.d.ts +46 -0
- package/dist/packages/datadog-api-client-v2/models/UCConfigPairData.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/UCConfigPairData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/UCConfigPairDataAttributes.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/UCConfigPairDataAttributes.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/UCConfigPairDataAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/UCConfigPairDataAttributesConfigsItems.d.ts +92 -0
- package/dist/packages/datadog-api-client-v2/models/UCConfigPairDataAttributesConfigsItems.js +92 -0
- package/dist/packages/datadog-api-client-v2/models/UCConfigPairDataAttributesConfigsItems.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/UCConfigPairDataType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/UCConfigPairDataType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/UCConfigPairDataType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateRulesetRequest.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateRulesetRequest.js +30 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateRulesetRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateRulesetRequestData.d.ts +46 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateRulesetRequestData.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateRulesetRequestData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateRulesetRequestDataAttributes.d.ts +45 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateRulesetRequestDataAttributes.js +41 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateRulesetRequestDataAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateRulesetRequestDataAttributesRulesItems.d.ts +61 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateRulesetRequestDataAttributesRulesItems.js +52 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateRulesetRequestDataAttributesRulesItems.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateRulesetRequestDataAttributesRulesItemsMapping.d.ts +44 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateRulesetRequestDataAttributesRulesItemsMapping.js +46 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateRulesetRequestDataAttributesRulesItemsMapping.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateRulesetRequestDataAttributesRulesItemsQuery.d.ts +49 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateRulesetRequestDataAttributesRulesItemsQuery.js +45 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateRulesetRequestDataAttributesRulesItemsQuery.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateRulesetRequestDataAttributesRulesItemsQueryAddition.d.ts +40 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateRulesetRequestDataAttributesRulesItemsQueryAddition.js +41 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateRulesetRequestDataAttributesRulesItemsQueryAddition.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateRulesetRequestDataAttributesRulesItemsReferenceTable.d.ts +53 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateRulesetRequestDataAttributesRulesItemsReferenceTable.js +49 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateRulesetRequestDataAttributesRulesItemsReferenceTable.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateRulesetRequestDataAttributesRulesItemsReferenceTableFieldPairsItems.d.ts +40 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateRulesetRequestDataAttributesRulesItemsReferenceTableFieldPairsItems.js +41 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateRulesetRequestDataAttributesRulesItemsReferenceTableFieldPairsItems.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateRulesetRequestDataType.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateRulesetRequestDataType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/UpdateRulesetRequestDataType.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -17,6 +17,37 @@ const logger_1 = require("../../../logger");
|
|
|
17
17
|
const ObjectSerializer_1 = require("../models/ObjectSerializer");
|
|
18
18
|
const exception_1 = require("../../datadog-api-client-common/exception");
|
|
19
19
|
class CloudCostManagementApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
|
|
20
|
+
createArbitraryCostRule(body, _options) {
|
|
21
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
+
const _config = _options || this.configuration;
|
|
23
|
+
// verify required parameter 'body' is not null or undefined
|
|
24
|
+
if (body === null || body === undefined) {
|
|
25
|
+
throw new baseapi_1.RequiredError("body", "createArbitraryCostRule");
|
|
26
|
+
}
|
|
27
|
+
// Path Params
|
|
28
|
+
const localVarPath = "/api/v2/cost/arbitrary_rule";
|
|
29
|
+
// Make Request Context
|
|
30
|
+
const requestContext = _config
|
|
31
|
+
.getServer("v2.CloudCostManagementApi.createArbitraryCostRule")
|
|
32
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
33
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
34
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
35
|
+
// Body Params
|
|
36
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
37
|
+
"application/json",
|
|
38
|
+
]);
|
|
39
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
40
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "ArbitraryCostUpsertRequest", ""), contentType);
|
|
41
|
+
requestContext.setBody(serializedBody);
|
|
42
|
+
// Apply auth methods
|
|
43
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
44
|
+
"apiKeyAuth",
|
|
45
|
+
"appKeyAuth",
|
|
46
|
+
"AuthZ",
|
|
47
|
+
]);
|
|
48
|
+
return requestContext;
|
|
49
|
+
});
|
|
50
|
+
}
|
|
20
51
|
createCostAWSCURConfig(body, _options) {
|
|
21
52
|
return __awaiter(this, void 0, void 0, function* () {
|
|
22
53
|
const _config = _options || this.configuration;
|
|
@@ -110,6 +141,61 @@ class CloudCostManagementApiRequestFactory extends baseapi_1.BaseAPIRequestFacto
|
|
|
110
141
|
return requestContext;
|
|
111
142
|
});
|
|
112
143
|
}
|
|
144
|
+
createRuleset(body, _options) {
|
|
145
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
146
|
+
const _config = _options || this.configuration;
|
|
147
|
+
// verify required parameter 'body' is not null or undefined
|
|
148
|
+
if (body === null || body === undefined) {
|
|
149
|
+
throw new baseapi_1.RequiredError("body", "createRuleset");
|
|
150
|
+
}
|
|
151
|
+
// Path Params
|
|
152
|
+
const localVarPath = "/api/v2/tags/enrichment";
|
|
153
|
+
// Make Request Context
|
|
154
|
+
const requestContext = _config
|
|
155
|
+
.getServer("v2.CloudCostManagementApi.createRuleset")
|
|
156
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
157
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
158
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
159
|
+
// Body Params
|
|
160
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
161
|
+
"application/json",
|
|
162
|
+
]);
|
|
163
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
164
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "CreateRulesetRequest", ""), contentType);
|
|
165
|
+
requestContext.setBody(serializedBody);
|
|
166
|
+
// Apply auth methods
|
|
167
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
168
|
+
"apiKeyAuth",
|
|
169
|
+
"appKeyAuth",
|
|
170
|
+
"AuthZ",
|
|
171
|
+
]);
|
|
172
|
+
return requestContext;
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
deleteArbitraryCostRule(ruleId, _options) {
|
|
176
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
177
|
+
const _config = _options || this.configuration;
|
|
178
|
+
// verify required parameter 'ruleId' is not null or undefined
|
|
179
|
+
if (ruleId === null || ruleId === undefined) {
|
|
180
|
+
throw new baseapi_1.RequiredError("ruleId", "deleteArbitraryCostRule");
|
|
181
|
+
}
|
|
182
|
+
// Path Params
|
|
183
|
+
const localVarPath = "/api/v2/cost/arbitrary_rule/{rule_id}".replace("{rule_id}", encodeURIComponent(String(ruleId)));
|
|
184
|
+
// Make Request Context
|
|
185
|
+
const requestContext = _config
|
|
186
|
+
.getServer("v2.CloudCostManagementApi.deleteArbitraryCostRule")
|
|
187
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
|
|
188
|
+
requestContext.setHeaderParam("Accept", "*/*");
|
|
189
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
190
|
+
// Apply auth methods
|
|
191
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
192
|
+
"apiKeyAuth",
|
|
193
|
+
"appKeyAuth",
|
|
194
|
+
"AuthZ",
|
|
195
|
+
]);
|
|
196
|
+
return requestContext;
|
|
197
|
+
});
|
|
198
|
+
}
|
|
113
199
|
deleteBudget(budgetId, _options) {
|
|
114
200
|
return __awaiter(this, void 0, void 0, function* () {
|
|
115
201
|
const _config = _options || this.configuration;
|
|
@@ -230,6 +316,54 @@ class CloudCostManagementApiRequestFactory extends baseapi_1.BaseAPIRequestFacto
|
|
|
230
316
|
return requestContext;
|
|
231
317
|
});
|
|
232
318
|
}
|
|
319
|
+
deleteRuleset(rulesetId, _options) {
|
|
320
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
321
|
+
const _config = _options || this.configuration;
|
|
322
|
+
// verify required parameter 'rulesetId' is not null or undefined
|
|
323
|
+
if (rulesetId === null || rulesetId === undefined) {
|
|
324
|
+
throw new baseapi_1.RequiredError("rulesetId", "deleteRuleset");
|
|
325
|
+
}
|
|
326
|
+
// Path Params
|
|
327
|
+
const localVarPath = "/api/v2/tags/enrichment/{ruleset_id}".replace("{ruleset_id}", encodeURIComponent(String(rulesetId)));
|
|
328
|
+
// Make Request Context
|
|
329
|
+
const requestContext = _config
|
|
330
|
+
.getServer("v2.CloudCostManagementApi.deleteRuleset")
|
|
331
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
|
|
332
|
+
requestContext.setHeaderParam("Accept", "*/*");
|
|
333
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
334
|
+
// Apply auth methods
|
|
335
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
336
|
+
"apiKeyAuth",
|
|
337
|
+
"appKeyAuth",
|
|
338
|
+
"AuthZ",
|
|
339
|
+
]);
|
|
340
|
+
return requestContext;
|
|
341
|
+
});
|
|
342
|
+
}
|
|
343
|
+
getArbitraryCostRule(ruleId, _options) {
|
|
344
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
345
|
+
const _config = _options || this.configuration;
|
|
346
|
+
// verify required parameter 'ruleId' is not null or undefined
|
|
347
|
+
if (ruleId === null || ruleId === undefined) {
|
|
348
|
+
throw new baseapi_1.RequiredError("ruleId", "getArbitraryCostRule");
|
|
349
|
+
}
|
|
350
|
+
// Path Params
|
|
351
|
+
const localVarPath = "/api/v2/cost/arbitrary_rule/{rule_id}".replace("{rule_id}", encodeURIComponent(String(ruleId)));
|
|
352
|
+
// Make Request Context
|
|
353
|
+
const requestContext = _config
|
|
354
|
+
.getServer("v2.CloudCostManagementApi.getArbitraryCostRule")
|
|
355
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
356
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
357
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
358
|
+
// Apply auth methods
|
|
359
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
360
|
+
"apiKeyAuth",
|
|
361
|
+
"appKeyAuth",
|
|
362
|
+
"AuthZ",
|
|
363
|
+
]);
|
|
364
|
+
return requestContext;
|
|
365
|
+
});
|
|
366
|
+
}
|
|
233
367
|
getBudget(budgetId, _options) {
|
|
234
368
|
return __awaiter(this, void 0, void 0, function* () {
|
|
235
369
|
const _config = _options || this.configuration;
|
|
@@ -254,6 +388,78 @@ class CloudCostManagementApiRequestFactory extends baseapi_1.BaseAPIRequestFacto
|
|
|
254
388
|
return requestContext;
|
|
255
389
|
});
|
|
256
390
|
}
|
|
391
|
+
getCostAWSCURConfig(cloudAccountId, _options) {
|
|
392
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
393
|
+
const _config = _options || this.configuration;
|
|
394
|
+
// verify required parameter 'cloudAccountId' is not null or undefined
|
|
395
|
+
if (cloudAccountId === null || cloudAccountId === undefined) {
|
|
396
|
+
throw new baseapi_1.RequiredError("cloudAccountId", "getCostAWSCURConfig");
|
|
397
|
+
}
|
|
398
|
+
// Path Params
|
|
399
|
+
const localVarPath = "/api/v2/cost/aws_cur_config/{cloud_account_id}".replace("{cloud_account_id}", encodeURIComponent(String(cloudAccountId)));
|
|
400
|
+
// Make Request Context
|
|
401
|
+
const requestContext = _config
|
|
402
|
+
.getServer("v2.CloudCostManagementApi.getCostAWSCURConfig")
|
|
403
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
404
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
405
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
406
|
+
// Apply auth methods
|
|
407
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
408
|
+
"apiKeyAuth",
|
|
409
|
+
"appKeyAuth",
|
|
410
|
+
"AuthZ",
|
|
411
|
+
]);
|
|
412
|
+
return requestContext;
|
|
413
|
+
});
|
|
414
|
+
}
|
|
415
|
+
getCostAzureUCConfig(cloudAccountId, _options) {
|
|
416
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
417
|
+
const _config = _options || this.configuration;
|
|
418
|
+
// verify required parameter 'cloudAccountId' is not null or undefined
|
|
419
|
+
if (cloudAccountId === null || cloudAccountId === undefined) {
|
|
420
|
+
throw new baseapi_1.RequiredError("cloudAccountId", "getCostAzureUCConfig");
|
|
421
|
+
}
|
|
422
|
+
// Path Params
|
|
423
|
+
const localVarPath = "/api/v2/cost/azure_uc_config/{cloud_account_id}".replace("{cloud_account_id}", encodeURIComponent(String(cloudAccountId)));
|
|
424
|
+
// Make Request Context
|
|
425
|
+
const requestContext = _config
|
|
426
|
+
.getServer("v2.CloudCostManagementApi.getCostAzureUCConfig")
|
|
427
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
428
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
429
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
430
|
+
// Apply auth methods
|
|
431
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
432
|
+
"apiKeyAuth",
|
|
433
|
+
"appKeyAuth",
|
|
434
|
+
"AuthZ",
|
|
435
|
+
]);
|
|
436
|
+
return requestContext;
|
|
437
|
+
});
|
|
438
|
+
}
|
|
439
|
+
getCostGCPUsageCostConfig(cloudAccountId, _options) {
|
|
440
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
441
|
+
const _config = _options || this.configuration;
|
|
442
|
+
// verify required parameter 'cloudAccountId' is not null or undefined
|
|
443
|
+
if (cloudAccountId === null || cloudAccountId === undefined) {
|
|
444
|
+
throw new baseapi_1.RequiredError("cloudAccountId", "getCostGCPUsageCostConfig");
|
|
445
|
+
}
|
|
446
|
+
// Path Params
|
|
447
|
+
const localVarPath = "/api/v2/cost/gcp_uc_config/{cloud_account_id}".replace("{cloud_account_id}", encodeURIComponent(String(cloudAccountId)));
|
|
448
|
+
// Make Request Context
|
|
449
|
+
const requestContext = _config
|
|
450
|
+
.getServer("v2.CloudCostManagementApi.getCostGCPUsageCostConfig")
|
|
451
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
452
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
453
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
454
|
+
// Apply auth methods
|
|
455
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
456
|
+
"apiKeyAuth",
|
|
457
|
+
"appKeyAuth",
|
|
458
|
+
"AuthZ",
|
|
459
|
+
]);
|
|
460
|
+
return requestContext;
|
|
461
|
+
});
|
|
462
|
+
}
|
|
257
463
|
getCustomCostsFile(fileId, _options) {
|
|
258
464
|
return __awaiter(this, void 0, void 0, function* () {
|
|
259
465
|
const _config = _options || this.configuration;
|
|
@@ -278,6 +484,50 @@ class CloudCostManagementApiRequestFactory extends baseapi_1.BaseAPIRequestFacto
|
|
|
278
484
|
return requestContext;
|
|
279
485
|
});
|
|
280
486
|
}
|
|
487
|
+
getRuleset(rulesetId, _options) {
|
|
488
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
489
|
+
const _config = _options || this.configuration;
|
|
490
|
+
// verify required parameter 'rulesetId' is not null or undefined
|
|
491
|
+
if (rulesetId === null || rulesetId === undefined) {
|
|
492
|
+
throw new baseapi_1.RequiredError("rulesetId", "getRuleset");
|
|
493
|
+
}
|
|
494
|
+
// Path Params
|
|
495
|
+
const localVarPath = "/api/v2/tags/enrichment/{ruleset_id}".replace("{ruleset_id}", encodeURIComponent(String(rulesetId)));
|
|
496
|
+
// Make Request Context
|
|
497
|
+
const requestContext = _config
|
|
498
|
+
.getServer("v2.CloudCostManagementApi.getRuleset")
|
|
499
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
500
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
501
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
502
|
+
// Apply auth methods
|
|
503
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
504
|
+
"apiKeyAuth",
|
|
505
|
+
"appKeyAuth",
|
|
506
|
+
"AuthZ",
|
|
507
|
+
]);
|
|
508
|
+
return requestContext;
|
|
509
|
+
});
|
|
510
|
+
}
|
|
511
|
+
listArbitraryCostRules(_options) {
|
|
512
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
513
|
+
const _config = _options || this.configuration;
|
|
514
|
+
// Path Params
|
|
515
|
+
const localVarPath = "/api/v2/cost/arbitrary_rule";
|
|
516
|
+
// Make Request Context
|
|
517
|
+
const requestContext = _config
|
|
518
|
+
.getServer("v2.CloudCostManagementApi.listArbitraryCostRules")
|
|
519
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
520
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
521
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
522
|
+
// Apply auth methods
|
|
523
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
524
|
+
"apiKeyAuth",
|
|
525
|
+
"appKeyAuth",
|
|
526
|
+
"AuthZ",
|
|
527
|
+
]);
|
|
528
|
+
return requestContext;
|
|
529
|
+
});
|
|
530
|
+
}
|
|
281
531
|
listBudgets(_options) {
|
|
282
532
|
return __awaiter(this, void 0, void 0, function* () {
|
|
283
533
|
const _config = _options || this.configuration;
|
|
@@ -391,31 +641,47 @@ class CloudCostManagementApiRequestFactory extends baseapi_1.BaseAPIRequestFacto
|
|
|
391
641
|
return requestContext;
|
|
392
642
|
});
|
|
393
643
|
}
|
|
394
|
-
|
|
644
|
+
listRulesets(_options) {
|
|
645
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
646
|
+
const _config = _options || this.configuration;
|
|
647
|
+
// Path Params
|
|
648
|
+
const localVarPath = "/api/v2/tags/enrichment";
|
|
649
|
+
// Make Request Context
|
|
650
|
+
const requestContext = _config
|
|
651
|
+
.getServer("v2.CloudCostManagementApi.listRulesets")
|
|
652
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
653
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
654
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
655
|
+
// Apply auth methods
|
|
656
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
657
|
+
"apiKeyAuth",
|
|
658
|
+
"appKeyAuth",
|
|
659
|
+
"AuthZ",
|
|
660
|
+
]);
|
|
661
|
+
return requestContext;
|
|
662
|
+
});
|
|
663
|
+
}
|
|
664
|
+
reorderArbitraryCostRules(body, _options) {
|
|
395
665
|
return __awaiter(this, void 0, void 0, function* () {
|
|
396
666
|
const _config = _options || this.configuration;
|
|
397
|
-
// verify required parameter 'cloudAccountId' is not null or undefined
|
|
398
|
-
if (cloudAccountId === null || cloudAccountId === undefined) {
|
|
399
|
-
throw new baseapi_1.RequiredError("cloudAccountId", "updateCostAWSCURConfig");
|
|
400
|
-
}
|
|
401
667
|
// verify required parameter 'body' is not null or undefined
|
|
402
668
|
if (body === null || body === undefined) {
|
|
403
|
-
throw new baseapi_1.RequiredError("body", "
|
|
669
|
+
throw new baseapi_1.RequiredError("body", "reorderArbitraryCostRules");
|
|
404
670
|
}
|
|
405
671
|
// Path Params
|
|
406
|
-
const localVarPath = "/api/v2/cost/
|
|
672
|
+
const localVarPath = "/api/v2/cost/arbitrary_rule/reorder";
|
|
407
673
|
// Make Request Context
|
|
408
674
|
const requestContext = _config
|
|
409
|
-
.getServer("v2.CloudCostManagementApi.
|
|
410
|
-
.makeRequestContext(localVarPath, http_1.HttpMethod.
|
|
411
|
-
requestContext.setHeaderParam("Accept", "
|
|
675
|
+
.getServer("v2.CloudCostManagementApi.reorderArbitraryCostRules")
|
|
676
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
677
|
+
requestContext.setHeaderParam("Accept", "*/*");
|
|
412
678
|
requestContext.setHttpConfig(_config.httpConfig);
|
|
413
679
|
// Body Params
|
|
414
680
|
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
415
681
|
"application/json",
|
|
416
682
|
]);
|
|
417
683
|
requestContext.setHeaderParam("Content-Type", contentType);
|
|
418
|
-
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "
|
|
684
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "ReorderRuleResourceArray", ""), contentType);
|
|
419
685
|
requestContext.setBody(serializedBody);
|
|
420
686
|
// Apply auth methods
|
|
421
687
|
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
@@ -426,31 +692,27 @@ class CloudCostManagementApiRequestFactory extends baseapi_1.BaseAPIRequestFacto
|
|
|
426
692
|
return requestContext;
|
|
427
693
|
});
|
|
428
694
|
}
|
|
429
|
-
|
|
695
|
+
reorderRulesets(body, _options) {
|
|
430
696
|
return __awaiter(this, void 0, void 0, function* () {
|
|
431
697
|
const _config = _options || this.configuration;
|
|
432
|
-
// verify required parameter 'cloudAccountId' is not null or undefined
|
|
433
|
-
if (cloudAccountId === null || cloudAccountId === undefined) {
|
|
434
|
-
throw new baseapi_1.RequiredError("cloudAccountId", "updateCostAzureUCConfigs");
|
|
435
|
-
}
|
|
436
698
|
// verify required parameter 'body' is not null or undefined
|
|
437
699
|
if (body === null || body === undefined) {
|
|
438
|
-
throw new baseapi_1.RequiredError("body", "
|
|
700
|
+
throw new baseapi_1.RequiredError("body", "reorderRulesets");
|
|
439
701
|
}
|
|
440
702
|
// Path Params
|
|
441
|
-
const localVarPath = "/api/v2/
|
|
703
|
+
const localVarPath = "/api/v2/tags/enrichment/reorder";
|
|
442
704
|
// Make Request Context
|
|
443
705
|
const requestContext = _config
|
|
444
|
-
.getServer("v2.CloudCostManagementApi.
|
|
445
|
-
.makeRequestContext(localVarPath, http_1.HttpMethod.
|
|
446
|
-
requestContext.setHeaderParam("Accept", "
|
|
706
|
+
.getServer("v2.CloudCostManagementApi.reorderRulesets")
|
|
707
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
708
|
+
requestContext.setHeaderParam("Accept", "*/*");
|
|
447
709
|
requestContext.setHttpConfig(_config.httpConfig);
|
|
448
710
|
// Body Params
|
|
449
711
|
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
450
712
|
"application/json",
|
|
451
713
|
]);
|
|
452
714
|
requestContext.setHeaderParam("Content-Type", contentType);
|
|
453
|
-
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "
|
|
715
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "ReorderRulesetResourceArray", ""), contentType);
|
|
454
716
|
requestContext.setBody(serializedBody);
|
|
455
717
|
// Apply auth methods
|
|
456
718
|
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
@@ -461,22 +723,22 @@ class CloudCostManagementApiRequestFactory extends baseapi_1.BaseAPIRequestFacto
|
|
|
461
723
|
return requestContext;
|
|
462
724
|
});
|
|
463
725
|
}
|
|
464
|
-
|
|
726
|
+
updateArbitraryCostRule(ruleId, body, _options) {
|
|
465
727
|
return __awaiter(this, void 0, void 0, function* () {
|
|
466
728
|
const _config = _options || this.configuration;
|
|
467
|
-
// verify required parameter '
|
|
468
|
-
if (
|
|
469
|
-
throw new baseapi_1.RequiredError("
|
|
729
|
+
// verify required parameter 'ruleId' is not null or undefined
|
|
730
|
+
if (ruleId === null || ruleId === undefined) {
|
|
731
|
+
throw new baseapi_1.RequiredError("ruleId", "updateArbitraryCostRule");
|
|
470
732
|
}
|
|
471
733
|
// verify required parameter 'body' is not null or undefined
|
|
472
734
|
if (body === null || body === undefined) {
|
|
473
|
-
throw new baseapi_1.RequiredError("body", "
|
|
735
|
+
throw new baseapi_1.RequiredError("body", "updateArbitraryCostRule");
|
|
474
736
|
}
|
|
475
737
|
// Path Params
|
|
476
|
-
const localVarPath = "/api/v2/cost/
|
|
738
|
+
const localVarPath = "/api/v2/cost/arbitrary_rule/{rule_id}".replace("{rule_id}", encodeURIComponent(String(ruleId)));
|
|
477
739
|
// Make Request Context
|
|
478
740
|
const requestContext = _config
|
|
479
|
-
.getServer("v2.CloudCostManagementApi.
|
|
741
|
+
.getServer("v2.CloudCostManagementApi.updateArbitraryCostRule")
|
|
480
742
|
.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
|
|
481
743
|
requestContext.setHeaderParam("Accept", "application/json");
|
|
482
744
|
requestContext.setHttpConfig(_config.httpConfig);
|
|
@@ -485,7 +747,7 @@ class CloudCostManagementApiRequestFactory extends baseapi_1.BaseAPIRequestFacto
|
|
|
485
747
|
"application/json",
|
|
486
748
|
]);
|
|
487
749
|
requestContext.setHeaderParam("Content-Type", contentType);
|
|
488
|
-
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "
|
|
750
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "ArbitraryCostUpsertRequest", ""), contentType);
|
|
489
751
|
requestContext.setBody(serializedBody);
|
|
490
752
|
// Apply auth methods
|
|
491
753
|
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
@@ -496,7 +758,147 @@ class CloudCostManagementApiRequestFactory extends baseapi_1.BaseAPIRequestFacto
|
|
|
496
758
|
return requestContext;
|
|
497
759
|
});
|
|
498
760
|
}
|
|
499
|
-
|
|
761
|
+
updateCostAWSCURConfig(cloudAccountId, body, _options) {
|
|
762
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
763
|
+
const _config = _options || this.configuration;
|
|
764
|
+
// verify required parameter 'cloudAccountId' is not null or undefined
|
|
765
|
+
if (cloudAccountId === null || cloudAccountId === undefined) {
|
|
766
|
+
throw new baseapi_1.RequiredError("cloudAccountId", "updateCostAWSCURConfig");
|
|
767
|
+
}
|
|
768
|
+
// verify required parameter 'body' is not null or undefined
|
|
769
|
+
if (body === null || body === undefined) {
|
|
770
|
+
throw new baseapi_1.RequiredError("body", "updateCostAWSCURConfig");
|
|
771
|
+
}
|
|
772
|
+
// Path Params
|
|
773
|
+
const localVarPath = "/api/v2/cost/aws_cur_config/{cloud_account_id}".replace("{cloud_account_id}", encodeURIComponent(String(cloudAccountId)));
|
|
774
|
+
// Make Request Context
|
|
775
|
+
const requestContext = _config
|
|
776
|
+
.getServer("v2.CloudCostManagementApi.updateCostAWSCURConfig")
|
|
777
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
|
|
778
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
779
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
780
|
+
// Body Params
|
|
781
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
782
|
+
"application/json",
|
|
783
|
+
]);
|
|
784
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
785
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "AwsCURConfigPatchRequest", ""), contentType);
|
|
786
|
+
requestContext.setBody(serializedBody);
|
|
787
|
+
// Apply auth methods
|
|
788
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
789
|
+
"apiKeyAuth",
|
|
790
|
+
"appKeyAuth",
|
|
791
|
+
"AuthZ",
|
|
792
|
+
]);
|
|
793
|
+
return requestContext;
|
|
794
|
+
});
|
|
795
|
+
}
|
|
796
|
+
updateCostAzureUCConfigs(cloudAccountId, body, _options) {
|
|
797
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
798
|
+
const _config = _options || this.configuration;
|
|
799
|
+
// verify required parameter 'cloudAccountId' is not null or undefined
|
|
800
|
+
if (cloudAccountId === null || cloudAccountId === undefined) {
|
|
801
|
+
throw new baseapi_1.RequiredError("cloudAccountId", "updateCostAzureUCConfigs");
|
|
802
|
+
}
|
|
803
|
+
// verify required parameter 'body' is not null or undefined
|
|
804
|
+
if (body === null || body === undefined) {
|
|
805
|
+
throw new baseapi_1.RequiredError("body", "updateCostAzureUCConfigs");
|
|
806
|
+
}
|
|
807
|
+
// Path Params
|
|
808
|
+
const localVarPath = "/api/v2/cost/azure_uc_config/{cloud_account_id}".replace("{cloud_account_id}", encodeURIComponent(String(cloudAccountId)));
|
|
809
|
+
// Make Request Context
|
|
810
|
+
const requestContext = _config
|
|
811
|
+
.getServer("v2.CloudCostManagementApi.updateCostAzureUCConfigs")
|
|
812
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
|
|
813
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
814
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
815
|
+
// Body Params
|
|
816
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
817
|
+
"application/json",
|
|
818
|
+
]);
|
|
819
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
820
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "AzureUCConfigPatchRequest", ""), contentType);
|
|
821
|
+
requestContext.setBody(serializedBody);
|
|
822
|
+
// Apply auth methods
|
|
823
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
824
|
+
"apiKeyAuth",
|
|
825
|
+
"appKeyAuth",
|
|
826
|
+
"AuthZ",
|
|
827
|
+
]);
|
|
828
|
+
return requestContext;
|
|
829
|
+
});
|
|
830
|
+
}
|
|
831
|
+
updateCostGCPUsageCostConfig(cloudAccountId, body, _options) {
|
|
832
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
833
|
+
const _config = _options || this.configuration;
|
|
834
|
+
// verify required parameter 'cloudAccountId' is not null or undefined
|
|
835
|
+
if (cloudAccountId === null || cloudAccountId === undefined) {
|
|
836
|
+
throw new baseapi_1.RequiredError("cloudAccountId", "updateCostGCPUsageCostConfig");
|
|
837
|
+
}
|
|
838
|
+
// verify required parameter 'body' is not null or undefined
|
|
839
|
+
if (body === null || body === undefined) {
|
|
840
|
+
throw new baseapi_1.RequiredError("body", "updateCostGCPUsageCostConfig");
|
|
841
|
+
}
|
|
842
|
+
// Path Params
|
|
843
|
+
const localVarPath = "/api/v2/cost/gcp_uc_config/{cloud_account_id}".replace("{cloud_account_id}", encodeURIComponent(String(cloudAccountId)));
|
|
844
|
+
// Make Request Context
|
|
845
|
+
const requestContext = _config
|
|
846
|
+
.getServer("v2.CloudCostManagementApi.updateCostGCPUsageCostConfig")
|
|
847
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
|
|
848
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
849
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
850
|
+
// Body Params
|
|
851
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
852
|
+
"application/json",
|
|
853
|
+
]);
|
|
854
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
855
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "GCPUsageCostConfigPatchRequest", ""), contentType);
|
|
856
|
+
requestContext.setBody(serializedBody);
|
|
857
|
+
// Apply auth methods
|
|
858
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
859
|
+
"apiKeyAuth",
|
|
860
|
+
"appKeyAuth",
|
|
861
|
+
"AuthZ",
|
|
862
|
+
]);
|
|
863
|
+
return requestContext;
|
|
864
|
+
});
|
|
865
|
+
}
|
|
866
|
+
updateRuleset(rulesetId, body, _options) {
|
|
867
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
868
|
+
const _config = _options || this.configuration;
|
|
869
|
+
// verify required parameter 'rulesetId' is not null or undefined
|
|
870
|
+
if (rulesetId === null || rulesetId === undefined) {
|
|
871
|
+
throw new baseapi_1.RequiredError("rulesetId", "updateRuleset");
|
|
872
|
+
}
|
|
873
|
+
// verify required parameter 'body' is not null or undefined
|
|
874
|
+
if (body === null || body === undefined) {
|
|
875
|
+
throw new baseapi_1.RequiredError("body", "updateRuleset");
|
|
876
|
+
}
|
|
877
|
+
// Path Params
|
|
878
|
+
const localVarPath = "/api/v2/tags/enrichment/{ruleset_id}".replace("{ruleset_id}", encodeURIComponent(String(rulesetId)));
|
|
879
|
+
// Make Request Context
|
|
880
|
+
const requestContext = _config
|
|
881
|
+
.getServer("v2.CloudCostManagementApi.updateRuleset")
|
|
882
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
|
|
883
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
884
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
885
|
+
// Body Params
|
|
886
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
887
|
+
"application/json",
|
|
888
|
+
]);
|
|
889
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
890
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "UpdateRulesetRequest", ""), contentType);
|
|
891
|
+
requestContext.setBody(serializedBody);
|
|
892
|
+
// Apply auth methods
|
|
893
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
894
|
+
"apiKeyAuth",
|
|
895
|
+
"appKeyAuth",
|
|
896
|
+
"AuthZ",
|
|
897
|
+
]);
|
|
898
|
+
return requestContext;
|
|
899
|
+
});
|
|
900
|
+
}
|
|
901
|
+
uploadCustomCostsFile(body, _options) {
|
|
500
902
|
return __awaiter(this, void 0, void 0, function* () {
|
|
501
903
|
const _config = _options || this.configuration;
|
|
502
904
|
// verify required parameter 'body' is not null or undefined
|
|
@@ -558,9 +960,75 @@ class CloudCostManagementApiRequestFactory extends baseapi_1.BaseAPIRequestFacto
|
|
|
558
960
|
return requestContext;
|
|
559
961
|
});
|
|
560
962
|
}
|
|
963
|
+
validateQuery(body, _options) {
|
|
964
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
965
|
+
const _config = _options || this.configuration;
|
|
966
|
+
// verify required parameter 'body' is not null or undefined
|
|
967
|
+
if (body === null || body === undefined) {
|
|
968
|
+
throw new baseapi_1.RequiredError("body", "validateQuery");
|
|
969
|
+
}
|
|
970
|
+
// Path Params
|
|
971
|
+
const localVarPath = "/api/v2/tags/enrichment/validate-query";
|
|
972
|
+
// Make Request Context
|
|
973
|
+
const requestContext = _config
|
|
974
|
+
.getServer("v2.CloudCostManagementApi.validateQuery")
|
|
975
|
+
.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
976
|
+
requestContext.setHeaderParam("Accept", "application/json");
|
|
977
|
+
requestContext.setHttpConfig(_config.httpConfig);
|
|
978
|
+
// Body Params
|
|
979
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
980
|
+
"application/json",
|
|
981
|
+
]);
|
|
982
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
983
|
+
const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "RulesValidateQueryRequest", ""), contentType);
|
|
984
|
+
requestContext.setBody(serializedBody);
|
|
985
|
+
// Apply auth methods
|
|
986
|
+
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
987
|
+
"apiKeyAuth",
|
|
988
|
+
"appKeyAuth",
|
|
989
|
+
"AuthZ",
|
|
990
|
+
]);
|
|
991
|
+
return requestContext;
|
|
992
|
+
});
|
|
993
|
+
}
|
|
561
994
|
}
|
|
562
995
|
exports.CloudCostManagementApiRequestFactory = CloudCostManagementApiRequestFactory;
|
|
563
996
|
class CloudCostManagementApiResponseProcessor {
|
|
997
|
+
/**
|
|
998
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
999
|
+
* to the expected objects
|
|
1000
|
+
*
|
|
1001
|
+
* @params response Response returned by the server for a request to createArbitraryCostRule
|
|
1002
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
1003
|
+
*/
|
|
1004
|
+
createArbitraryCostRule(response) {
|
|
1005
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1006
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1007
|
+
if (response.httpStatusCode === 200) {
|
|
1008
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ArbitraryRuleResponse");
|
|
1009
|
+
return body;
|
|
1010
|
+
}
|
|
1011
|
+
if (response.httpStatusCode === 429) {
|
|
1012
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1013
|
+
let body;
|
|
1014
|
+
try {
|
|
1015
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1016
|
+
}
|
|
1017
|
+
catch (error) {
|
|
1018
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
1019
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1020
|
+
}
|
|
1021
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
1022
|
+
}
|
|
1023
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1024
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1025
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ArbitraryRuleResponse", "");
|
|
1026
|
+
return body;
|
|
1027
|
+
}
|
|
1028
|
+
const body = (yield response.body.text()) || "";
|
|
1029
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1030
|
+
});
|
|
1031
|
+
}
|
|
564
1032
|
/**
|
|
565
1033
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
566
1034
|
* to the expected objects
|
|
@@ -572,7 +1040,7 @@ class CloudCostManagementApiResponseProcessor {
|
|
|
572
1040
|
return __awaiter(this, void 0, void 0, function* () {
|
|
573
1041
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
574
1042
|
if (response.httpStatusCode === 200) {
|
|
575
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
1043
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AwsCurConfigResponse");
|
|
576
1044
|
return body;
|
|
577
1045
|
}
|
|
578
1046
|
if (response.httpStatusCode === 400 ||
|
|
@@ -591,7 +1059,7 @@ class CloudCostManagementApiResponseProcessor {
|
|
|
591
1059
|
}
|
|
592
1060
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
593
1061
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
594
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
1062
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AwsCurConfigResponse", "");
|
|
595
1063
|
return body;
|
|
596
1064
|
}
|
|
597
1065
|
const body = (yield response.body.text()) || "";
|
|
@@ -676,16 +1144,17 @@ class CloudCostManagementApiResponseProcessor {
|
|
|
676
1144
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
677
1145
|
* to the expected objects
|
|
678
1146
|
*
|
|
679
|
-
* @params response Response returned by the server for a request to
|
|
1147
|
+
* @params response Response returned by the server for a request to createRuleset
|
|
680
1148
|
* @throws ApiException if the response code was not in [200, 299]
|
|
681
1149
|
*/
|
|
682
|
-
|
|
1150
|
+
createRuleset(response) {
|
|
683
1151
|
return __awaiter(this, void 0, void 0, function* () {
|
|
684
1152
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
685
|
-
if (response.httpStatusCode ===
|
|
686
|
-
|
|
1153
|
+
if (response.httpStatusCode === 200) {
|
|
1154
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RulesetResp");
|
|
1155
|
+
return body;
|
|
687
1156
|
}
|
|
688
|
-
if (response.httpStatusCode ===
|
|
1157
|
+
if (response.httpStatusCode === 429) {
|
|
689
1158
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
690
1159
|
let body;
|
|
691
1160
|
try {
|
|
@@ -699,7 +1168,8 @@ class CloudCostManagementApiResponseProcessor {
|
|
|
699
1168
|
}
|
|
700
1169
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
701
1170
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
702
|
-
|
|
1171
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RulesetResp", "");
|
|
1172
|
+
return body;
|
|
703
1173
|
}
|
|
704
1174
|
const body = (yield response.body.text()) || "";
|
|
705
1175
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
@@ -709,18 +1179,16 @@ class CloudCostManagementApiResponseProcessor {
|
|
|
709
1179
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
710
1180
|
* to the expected objects
|
|
711
1181
|
*
|
|
712
|
-
* @params response Response returned by the server for a request to
|
|
1182
|
+
* @params response Response returned by the server for a request to deleteArbitraryCostRule
|
|
713
1183
|
* @throws ApiException if the response code was not in [200, 299]
|
|
714
1184
|
*/
|
|
715
|
-
|
|
1185
|
+
deleteArbitraryCostRule(response) {
|
|
716
1186
|
return __awaiter(this, void 0, void 0, function* () {
|
|
717
1187
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
718
1188
|
if (response.httpStatusCode === 204) {
|
|
719
1189
|
return;
|
|
720
1190
|
}
|
|
721
|
-
if (response.httpStatusCode ===
|
|
722
|
-
response.httpStatusCode === 404 ||
|
|
723
|
-
response.httpStatusCode === 429) {
|
|
1191
|
+
if (response.httpStatusCode === 429) {
|
|
724
1192
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
725
1193
|
let body;
|
|
726
1194
|
try {
|
|
@@ -744,18 +1212,16 @@ class CloudCostManagementApiResponseProcessor {
|
|
|
744
1212
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
745
1213
|
* to the expected objects
|
|
746
1214
|
*
|
|
747
|
-
* @params response Response returned by the server for a request to
|
|
1215
|
+
* @params response Response returned by the server for a request to deleteBudget
|
|
748
1216
|
* @throws ApiException if the response code was not in [200, 299]
|
|
749
1217
|
*/
|
|
750
|
-
|
|
1218
|
+
deleteBudget(response) {
|
|
751
1219
|
return __awaiter(this, void 0, void 0, function* () {
|
|
752
1220
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
753
1221
|
if (response.httpStatusCode === 204) {
|
|
754
1222
|
return;
|
|
755
1223
|
}
|
|
756
|
-
if (response.httpStatusCode === 400 ||
|
|
757
|
-
response.httpStatusCode === 404 ||
|
|
758
|
-
response.httpStatusCode === 429) {
|
|
1224
|
+
if (response.httpStatusCode === 400 || response.httpStatusCode === 429) {
|
|
759
1225
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
760
1226
|
let body;
|
|
761
1227
|
try {
|
|
@@ -779,10 +1245,10 @@ class CloudCostManagementApiResponseProcessor {
|
|
|
779
1245
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
780
1246
|
* to the expected objects
|
|
781
1247
|
*
|
|
782
|
-
* @params response Response returned by the server for a request to
|
|
1248
|
+
* @params response Response returned by the server for a request to deleteCostAWSCURConfig
|
|
783
1249
|
* @throws ApiException if the response code was not in [200, 299]
|
|
784
1250
|
*/
|
|
785
|
-
|
|
1251
|
+
deleteCostAWSCURConfig(response) {
|
|
786
1252
|
return __awaiter(this, void 0, void 0, function* () {
|
|
787
1253
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
788
1254
|
if (response.httpStatusCode === 204) {
|
|
@@ -814,16 +1280,16 @@ class CloudCostManagementApiResponseProcessor {
|
|
|
814
1280
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
815
1281
|
* to the expected objects
|
|
816
1282
|
*
|
|
817
|
-
* @params response Response returned by the server for a request to
|
|
1283
|
+
* @params response Response returned by the server for a request to deleteCostAzureUCConfig
|
|
818
1284
|
* @throws ApiException if the response code was not in [200, 299]
|
|
819
1285
|
*/
|
|
820
|
-
|
|
1286
|
+
deleteCostAzureUCConfig(response) {
|
|
821
1287
|
return __awaiter(this, void 0, void 0, function* () {
|
|
822
1288
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
823
1289
|
if (response.httpStatusCode === 204) {
|
|
824
1290
|
return;
|
|
825
1291
|
}
|
|
826
|
-
if (response.httpStatusCode ===
|
|
1292
|
+
if (response.httpStatusCode === 400 ||
|
|
827
1293
|
response.httpStatusCode === 404 ||
|
|
828
1294
|
response.httpStatusCode === 429) {
|
|
829
1295
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
@@ -849,15 +1315,14 @@ class CloudCostManagementApiResponseProcessor {
|
|
|
849
1315
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
850
1316
|
* to the expected objects
|
|
851
1317
|
*
|
|
852
|
-
* @params response Response returned by the server for a request to
|
|
1318
|
+
* @params response Response returned by the server for a request to deleteCostGCPUsageCostConfig
|
|
853
1319
|
* @throws ApiException if the response code was not in [200, 299]
|
|
854
1320
|
*/
|
|
855
|
-
|
|
1321
|
+
deleteCostGCPUsageCostConfig(response) {
|
|
856
1322
|
return __awaiter(this, void 0, void 0, function* () {
|
|
857
1323
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
858
|
-
if (response.httpStatusCode ===
|
|
859
|
-
|
|
860
|
-
return body;
|
|
1324
|
+
if (response.httpStatusCode === 204) {
|
|
1325
|
+
return;
|
|
861
1326
|
}
|
|
862
1327
|
if (response.httpStatusCode === 400 ||
|
|
863
1328
|
response.httpStatusCode === 404 ||
|
|
@@ -875,8 +1340,7 @@ class CloudCostManagementApiResponseProcessor {
|
|
|
875
1340
|
}
|
|
876
1341
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
877
1342
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
878
|
-
|
|
879
|
-
return body;
|
|
1343
|
+
return;
|
|
880
1344
|
}
|
|
881
1345
|
const body = (yield response.body.text()) || "";
|
|
882
1346
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
@@ -886,15 +1350,14 @@ class CloudCostManagementApiResponseProcessor {
|
|
|
886
1350
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
887
1351
|
* to the expected objects
|
|
888
1352
|
*
|
|
889
|
-
* @params response Response returned by the server for a request to
|
|
1353
|
+
* @params response Response returned by the server for a request to deleteCustomCostsFile
|
|
890
1354
|
* @throws ApiException if the response code was not in [200, 299]
|
|
891
1355
|
*/
|
|
892
|
-
|
|
1356
|
+
deleteCustomCostsFile(response) {
|
|
893
1357
|
return __awaiter(this, void 0, void 0, function* () {
|
|
894
1358
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
895
|
-
if (response.httpStatusCode ===
|
|
896
|
-
|
|
897
|
-
return body;
|
|
1359
|
+
if (response.httpStatusCode === 204) {
|
|
1360
|
+
return;
|
|
898
1361
|
}
|
|
899
1362
|
if (response.httpStatusCode === 403 ||
|
|
900
1363
|
response.httpStatusCode === 404 ||
|
|
@@ -912,8 +1375,7 @@ class CloudCostManagementApiResponseProcessor {
|
|
|
912
1375
|
}
|
|
913
1376
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
914
1377
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
915
|
-
|
|
916
|
-
return body;
|
|
1378
|
+
return;
|
|
917
1379
|
}
|
|
918
1380
|
const body = (yield response.body.text()) || "";
|
|
919
1381
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
@@ -923,15 +1385,14 @@ class CloudCostManagementApiResponseProcessor {
|
|
|
923
1385
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
924
1386
|
* to the expected objects
|
|
925
1387
|
*
|
|
926
|
-
* @params response Response returned by the server for a request to
|
|
1388
|
+
* @params response Response returned by the server for a request to deleteRuleset
|
|
927
1389
|
* @throws ApiException if the response code was not in [200, 299]
|
|
928
1390
|
*/
|
|
929
|
-
|
|
1391
|
+
deleteRuleset(response) {
|
|
930
1392
|
return __awaiter(this, void 0, void 0, function* () {
|
|
931
1393
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
932
|
-
if (response.httpStatusCode ===
|
|
933
|
-
|
|
934
|
-
return body;
|
|
1394
|
+
if (response.httpStatusCode === 204) {
|
|
1395
|
+
return;
|
|
935
1396
|
}
|
|
936
1397
|
if (response.httpStatusCode === 429) {
|
|
937
1398
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
@@ -947,7 +1408,325 @@ class CloudCostManagementApiResponseProcessor {
|
|
|
947
1408
|
}
|
|
948
1409
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
949
1410
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
950
|
-
|
|
1411
|
+
return;
|
|
1412
|
+
}
|
|
1413
|
+
const body = (yield response.body.text()) || "";
|
|
1414
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1415
|
+
});
|
|
1416
|
+
}
|
|
1417
|
+
/**
|
|
1418
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1419
|
+
* to the expected objects
|
|
1420
|
+
*
|
|
1421
|
+
* @params response Response returned by the server for a request to getArbitraryCostRule
|
|
1422
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
1423
|
+
*/
|
|
1424
|
+
getArbitraryCostRule(response) {
|
|
1425
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1426
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1427
|
+
if (response.httpStatusCode === 200) {
|
|
1428
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ArbitraryRuleResponse");
|
|
1429
|
+
return body;
|
|
1430
|
+
}
|
|
1431
|
+
if (response.httpStatusCode === 429) {
|
|
1432
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1433
|
+
let body;
|
|
1434
|
+
try {
|
|
1435
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1436
|
+
}
|
|
1437
|
+
catch (error) {
|
|
1438
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
1439
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1440
|
+
}
|
|
1441
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
1442
|
+
}
|
|
1443
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1444
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1445
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ArbitraryRuleResponse", "");
|
|
1446
|
+
return body;
|
|
1447
|
+
}
|
|
1448
|
+
const body = (yield response.body.text()) || "";
|
|
1449
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1450
|
+
});
|
|
1451
|
+
}
|
|
1452
|
+
/**
|
|
1453
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1454
|
+
* to the expected objects
|
|
1455
|
+
*
|
|
1456
|
+
* @params response Response returned by the server for a request to getBudget
|
|
1457
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
1458
|
+
*/
|
|
1459
|
+
getBudget(response) {
|
|
1460
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1461
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1462
|
+
if (response.httpStatusCode === 200) {
|
|
1463
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "BudgetWithEntries");
|
|
1464
|
+
return body;
|
|
1465
|
+
}
|
|
1466
|
+
if (response.httpStatusCode === 400 ||
|
|
1467
|
+
response.httpStatusCode === 404 ||
|
|
1468
|
+
response.httpStatusCode === 429) {
|
|
1469
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1470
|
+
let body;
|
|
1471
|
+
try {
|
|
1472
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1473
|
+
}
|
|
1474
|
+
catch (error) {
|
|
1475
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
1476
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1477
|
+
}
|
|
1478
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
1479
|
+
}
|
|
1480
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1481
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1482
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "BudgetWithEntries", "");
|
|
1483
|
+
return body;
|
|
1484
|
+
}
|
|
1485
|
+
const body = (yield response.body.text()) || "";
|
|
1486
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1487
|
+
});
|
|
1488
|
+
}
|
|
1489
|
+
/**
|
|
1490
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1491
|
+
* to the expected objects
|
|
1492
|
+
*
|
|
1493
|
+
* @params response Response returned by the server for a request to getCostAWSCURConfig
|
|
1494
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
1495
|
+
*/
|
|
1496
|
+
getCostAWSCURConfig(response) {
|
|
1497
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1498
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1499
|
+
if (response.httpStatusCode === 200) {
|
|
1500
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AwsCurConfigResponse");
|
|
1501
|
+
return body;
|
|
1502
|
+
}
|
|
1503
|
+
if (response.httpStatusCode === 429) {
|
|
1504
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1505
|
+
let body;
|
|
1506
|
+
try {
|
|
1507
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1508
|
+
}
|
|
1509
|
+
catch (error) {
|
|
1510
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
1511
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1512
|
+
}
|
|
1513
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
1514
|
+
}
|
|
1515
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1516
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1517
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AwsCurConfigResponse", "");
|
|
1518
|
+
return body;
|
|
1519
|
+
}
|
|
1520
|
+
const body = (yield response.body.text()) || "";
|
|
1521
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1522
|
+
});
|
|
1523
|
+
}
|
|
1524
|
+
/**
|
|
1525
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1526
|
+
* to the expected objects
|
|
1527
|
+
*
|
|
1528
|
+
* @params response Response returned by the server for a request to getCostAzureUCConfig
|
|
1529
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
1530
|
+
*/
|
|
1531
|
+
getCostAzureUCConfig(response) {
|
|
1532
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1533
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1534
|
+
if (response.httpStatusCode === 200) {
|
|
1535
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UCConfigPair");
|
|
1536
|
+
return body;
|
|
1537
|
+
}
|
|
1538
|
+
if (response.httpStatusCode === 429) {
|
|
1539
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1540
|
+
let body;
|
|
1541
|
+
try {
|
|
1542
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1543
|
+
}
|
|
1544
|
+
catch (error) {
|
|
1545
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
1546
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1547
|
+
}
|
|
1548
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
1549
|
+
}
|
|
1550
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1551
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1552
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "UCConfigPair", "");
|
|
1553
|
+
return body;
|
|
1554
|
+
}
|
|
1555
|
+
const body = (yield response.body.text()) || "";
|
|
1556
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1557
|
+
});
|
|
1558
|
+
}
|
|
1559
|
+
/**
|
|
1560
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1561
|
+
* to the expected objects
|
|
1562
|
+
*
|
|
1563
|
+
* @params response Response returned by the server for a request to getCostGCPUsageCostConfig
|
|
1564
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
1565
|
+
*/
|
|
1566
|
+
getCostGCPUsageCostConfig(response) {
|
|
1567
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1568
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1569
|
+
if (response.httpStatusCode === 200) {
|
|
1570
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "GcpUcConfigResponse");
|
|
1571
|
+
return body;
|
|
1572
|
+
}
|
|
1573
|
+
if (response.httpStatusCode === 429) {
|
|
1574
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1575
|
+
let body;
|
|
1576
|
+
try {
|
|
1577
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1578
|
+
}
|
|
1579
|
+
catch (error) {
|
|
1580
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
1581
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1582
|
+
}
|
|
1583
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
1584
|
+
}
|
|
1585
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1586
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1587
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "GcpUcConfigResponse", "");
|
|
1588
|
+
return body;
|
|
1589
|
+
}
|
|
1590
|
+
const body = (yield response.body.text()) || "";
|
|
1591
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1592
|
+
});
|
|
1593
|
+
}
|
|
1594
|
+
/**
|
|
1595
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1596
|
+
* to the expected objects
|
|
1597
|
+
*
|
|
1598
|
+
* @params response Response returned by the server for a request to getCustomCostsFile
|
|
1599
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
1600
|
+
*/
|
|
1601
|
+
getCustomCostsFile(response) {
|
|
1602
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1603
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1604
|
+
if (response.httpStatusCode === 200) {
|
|
1605
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CustomCostsFileGetResponse");
|
|
1606
|
+
return body;
|
|
1607
|
+
}
|
|
1608
|
+
if (response.httpStatusCode === 403 ||
|
|
1609
|
+
response.httpStatusCode === 404 ||
|
|
1610
|
+
response.httpStatusCode === 429) {
|
|
1611
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1612
|
+
let body;
|
|
1613
|
+
try {
|
|
1614
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1615
|
+
}
|
|
1616
|
+
catch (error) {
|
|
1617
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
1618
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1619
|
+
}
|
|
1620
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
1621
|
+
}
|
|
1622
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1623
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1624
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CustomCostsFileGetResponse", "");
|
|
1625
|
+
return body;
|
|
1626
|
+
}
|
|
1627
|
+
const body = (yield response.body.text()) || "";
|
|
1628
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1629
|
+
});
|
|
1630
|
+
}
|
|
1631
|
+
/**
|
|
1632
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1633
|
+
* to the expected objects
|
|
1634
|
+
*
|
|
1635
|
+
* @params response Response returned by the server for a request to getRuleset
|
|
1636
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
1637
|
+
*/
|
|
1638
|
+
getRuleset(response) {
|
|
1639
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1640
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1641
|
+
if (response.httpStatusCode === 200) {
|
|
1642
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RulesetResp");
|
|
1643
|
+
return body;
|
|
1644
|
+
}
|
|
1645
|
+
if (response.httpStatusCode === 429) {
|
|
1646
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1647
|
+
let body;
|
|
1648
|
+
try {
|
|
1649
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1650
|
+
}
|
|
1651
|
+
catch (error) {
|
|
1652
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
1653
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1654
|
+
}
|
|
1655
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
1656
|
+
}
|
|
1657
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1658
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1659
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RulesetResp", "");
|
|
1660
|
+
return body;
|
|
1661
|
+
}
|
|
1662
|
+
const body = (yield response.body.text()) || "";
|
|
1663
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1664
|
+
});
|
|
1665
|
+
}
|
|
1666
|
+
/**
|
|
1667
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1668
|
+
* to the expected objects
|
|
1669
|
+
*
|
|
1670
|
+
* @params response Response returned by the server for a request to listArbitraryCostRules
|
|
1671
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
1672
|
+
*/
|
|
1673
|
+
listArbitraryCostRules(response) {
|
|
1674
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1675
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1676
|
+
if (response.httpStatusCode === 200) {
|
|
1677
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ArbitraryRuleResponseArray");
|
|
1678
|
+
return body;
|
|
1679
|
+
}
|
|
1680
|
+
if (response.httpStatusCode === 429) {
|
|
1681
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1682
|
+
let body;
|
|
1683
|
+
try {
|
|
1684
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1685
|
+
}
|
|
1686
|
+
catch (error) {
|
|
1687
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
1688
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1689
|
+
}
|
|
1690
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
1691
|
+
}
|
|
1692
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1693
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1694
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ArbitraryRuleResponseArray", "");
|
|
1695
|
+
return body;
|
|
1696
|
+
}
|
|
1697
|
+
const body = (yield response.body.text()) || "";
|
|
1698
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1699
|
+
});
|
|
1700
|
+
}
|
|
1701
|
+
/**
|
|
1702
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1703
|
+
* to the expected objects
|
|
1704
|
+
*
|
|
1705
|
+
* @params response Response returned by the server for a request to listBudgets
|
|
1706
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
1707
|
+
*/
|
|
1708
|
+
listBudgets(response) {
|
|
1709
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1710
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1711
|
+
if (response.httpStatusCode === 200) {
|
|
1712
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "BudgetArray");
|
|
1713
|
+
return body;
|
|
1714
|
+
}
|
|
1715
|
+
if (response.httpStatusCode === 429) {
|
|
1716
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1717
|
+
let body;
|
|
1718
|
+
try {
|
|
1719
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1720
|
+
}
|
|
1721
|
+
catch (error) {
|
|
1722
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
1723
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1724
|
+
}
|
|
1725
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
1726
|
+
}
|
|
1727
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1728
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1729
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "BudgetArray", "");
|
|
951
1730
|
return body;
|
|
952
1731
|
}
|
|
953
1732
|
const body = (yield response.body.text()) || "";
|
|
@@ -968,7 +1747,216 @@ class CloudCostManagementApiResponseProcessor {
|
|
|
968
1747
|
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AwsCURConfigsResponse");
|
|
969
1748
|
return body;
|
|
970
1749
|
}
|
|
971
|
-
if (response.httpStatusCode === 403 || response.httpStatusCode === 429) {
|
|
1750
|
+
if (response.httpStatusCode === 403 || response.httpStatusCode === 429) {
|
|
1751
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1752
|
+
let body;
|
|
1753
|
+
try {
|
|
1754
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1755
|
+
}
|
|
1756
|
+
catch (error) {
|
|
1757
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
1758
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1759
|
+
}
|
|
1760
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
1761
|
+
}
|
|
1762
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1763
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1764
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AwsCURConfigsResponse", "");
|
|
1765
|
+
return body;
|
|
1766
|
+
}
|
|
1767
|
+
const body = (yield response.body.text()) || "";
|
|
1768
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1769
|
+
});
|
|
1770
|
+
}
|
|
1771
|
+
/**
|
|
1772
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1773
|
+
* to the expected objects
|
|
1774
|
+
*
|
|
1775
|
+
* @params response Response returned by the server for a request to listCostAzureUCConfigs
|
|
1776
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
1777
|
+
*/
|
|
1778
|
+
listCostAzureUCConfigs(response) {
|
|
1779
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1780
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1781
|
+
if (response.httpStatusCode === 200) {
|
|
1782
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AzureUCConfigsResponse");
|
|
1783
|
+
return body;
|
|
1784
|
+
}
|
|
1785
|
+
if (response.httpStatusCode === 403 || response.httpStatusCode === 429) {
|
|
1786
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1787
|
+
let body;
|
|
1788
|
+
try {
|
|
1789
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1790
|
+
}
|
|
1791
|
+
catch (error) {
|
|
1792
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
1793
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1794
|
+
}
|
|
1795
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
1796
|
+
}
|
|
1797
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1798
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1799
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AzureUCConfigsResponse", "");
|
|
1800
|
+
return body;
|
|
1801
|
+
}
|
|
1802
|
+
const body = (yield response.body.text()) || "";
|
|
1803
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1804
|
+
});
|
|
1805
|
+
}
|
|
1806
|
+
/**
|
|
1807
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1808
|
+
* to the expected objects
|
|
1809
|
+
*
|
|
1810
|
+
* @params response Response returned by the server for a request to listCostGCPUsageCostConfigs
|
|
1811
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
1812
|
+
*/
|
|
1813
|
+
listCostGCPUsageCostConfigs(response) {
|
|
1814
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1815
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1816
|
+
if (response.httpStatusCode === 200) {
|
|
1817
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "GCPUsageCostConfigsResponse");
|
|
1818
|
+
return body;
|
|
1819
|
+
}
|
|
1820
|
+
if (response.httpStatusCode === 403 || response.httpStatusCode === 429) {
|
|
1821
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1822
|
+
let body;
|
|
1823
|
+
try {
|
|
1824
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1825
|
+
}
|
|
1826
|
+
catch (error) {
|
|
1827
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
1828
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1829
|
+
}
|
|
1830
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
1831
|
+
}
|
|
1832
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1833
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1834
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "GCPUsageCostConfigsResponse", "");
|
|
1835
|
+
return body;
|
|
1836
|
+
}
|
|
1837
|
+
const body = (yield response.body.text()) || "";
|
|
1838
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1839
|
+
});
|
|
1840
|
+
}
|
|
1841
|
+
/**
|
|
1842
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1843
|
+
* to the expected objects
|
|
1844
|
+
*
|
|
1845
|
+
* @params response Response returned by the server for a request to listCustomCostsFiles
|
|
1846
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
1847
|
+
*/
|
|
1848
|
+
listCustomCostsFiles(response) {
|
|
1849
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1850
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1851
|
+
if (response.httpStatusCode === 200) {
|
|
1852
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CustomCostsFileListResponse");
|
|
1853
|
+
return body;
|
|
1854
|
+
}
|
|
1855
|
+
if (response.httpStatusCode === 400 ||
|
|
1856
|
+
response.httpStatusCode === 403 ||
|
|
1857
|
+
response.httpStatusCode === 429) {
|
|
1858
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1859
|
+
let body;
|
|
1860
|
+
try {
|
|
1861
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1862
|
+
}
|
|
1863
|
+
catch (error) {
|
|
1864
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
1865
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1866
|
+
}
|
|
1867
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
1868
|
+
}
|
|
1869
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1870
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1871
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CustomCostsFileListResponse", "");
|
|
1872
|
+
return body;
|
|
1873
|
+
}
|
|
1874
|
+
const body = (yield response.body.text()) || "";
|
|
1875
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1876
|
+
});
|
|
1877
|
+
}
|
|
1878
|
+
/**
|
|
1879
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1880
|
+
* to the expected objects
|
|
1881
|
+
*
|
|
1882
|
+
* @params response Response returned by the server for a request to listRulesets
|
|
1883
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
1884
|
+
*/
|
|
1885
|
+
listRulesets(response) {
|
|
1886
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1887
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1888
|
+
if (response.httpStatusCode === 200) {
|
|
1889
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RulesetRespArray");
|
|
1890
|
+
return body;
|
|
1891
|
+
}
|
|
1892
|
+
if (response.httpStatusCode === 429) {
|
|
1893
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1894
|
+
let body;
|
|
1895
|
+
try {
|
|
1896
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1897
|
+
}
|
|
1898
|
+
catch (error) {
|
|
1899
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
1900
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1901
|
+
}
|
|
1902
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
1903
|
+
}
|
|
1904
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1905
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1906
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RulesetRespArray", "");
|
|
1907
|
+
return body;
|
|
1908
|
+
}
|
|
1909
|
+
const body = (yield response.body.text()) || "";
|
|
1910
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1911
|
+
});
|
|
1912
|
+
}
|
|
1913
|
+
/**
|
|
1914
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1915
|
+
* to the expected objects
|
|
1916
|
+
*
|
|
1917
|
+
* @params response Response returned by the server for a request to reorderArbitraryCostRules
|
|
1918
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
1919
|
+
*/
|
|
1920
|
+
reorderArbitraryCostRules(response) {
|
|
1921
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1922
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1923
|
+
if (response.httpStatusCode === 204) {
|
|
1924
|
+
return;
|
|
1925
|
+
}
|
|
1926
|
+
if (response.httpStatusCode === 429) {
|
|
1927
|
+
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1928
|
+
let body;
|
|
1929
|
+
try {
|
|
1930
|
+
body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1931
|
+
}
|
|
1932
|
+
catch (error) {
|
|
1933
|
+
logger_1.logger.debug(`Got error deserializing error: ${error}`);
|
|
1934
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1935
|
+
}
|
|
1936
|
+
throw new exception_1.ApiException(response.httpStatusCode, body);
|
|
1937
|
+
}
|
|
1938
|
+
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1939
|
+
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1940
|
+
return;
|
|
1941
|
+
}
|
|
1942
|
+
const body = (yield response.body.text()) || "";
|
|
1943
|
+
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1944
|
+
});
|
|
1945
|
+
}
|
|
1946
|
+
/**
|
|
1947
|
+
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1948
|
+
* to the expected objects
|
|
1949
|
+
*
|
|
1950
|
+
* @params response Response returned by the server for a request to reorderRulesets
|
|
1951
|
+
* @throws ApiException if the response code was not in [200, 299]
|
|
1952
|
+
*/
|
|
1953
|
+
reorderRulesets(response) {
|
|
1954
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1955
|
+
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1956
|
+
if (response.httpStatusCode === 204) {
|
|
1957
|
+
return;
|
|
1958
|
+
}
|
|
1959
|
+
if (response.httpStatusCode === 429) {
|
|
972
1960
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
973
1961
|
let body;
|
|
974
1962
|
try {
|
|
@@ -982,8 +1970,7 @@ class CloudCostManagementApiResponseProcessor {
|
|
|
982
1970
|
}
|
|
983
1971
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
984
1972
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
985
|
-
|
|
986
|
-
return body;
|
|
1973
|
+
return;
|
|
987
1974
|
}
|
|
988
1975
|
const body = (yield response.body.text()) || "";
|
|
989
1976
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
@@ -993,17 +1980,17 @@ class CloudCostManagementApiResponseProcessor {
|
|
|
993
1980
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
994
1981
|
* to the expected objects
|
|
995
1982
|
*
|
|
996
|
-
* @params response Response returned by the server for a request to
|
|
1983
|
+
* @params response Response returned by the server for a request to updateArbitraryCostRule
|
|
997
1984
|
* @throws ApiException if the response code was not in [200, 299]
|
|
998
1985
|
*/
|
|
999
|
-
|
|
1986
|
+
updateArbitraryCostRule(response) {
|
|
1000
1987
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1001
1988
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1002
1989
|
if (response.httpStatusCode === 200) {
|
|
1003
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
1990
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ArbitraryRuleResponse");
|
|
1004
1991
|
return body;
|
|
1005
1992
|
}
|
|
1006
|
-
if (response.httpStatusCode ===
|
|
1993
|
+
if (response.httpStatusCode === 429) {
|
|
1007
1994
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1008
1995
|
let body;
|
|
1009
1996
|
try {
|
|
@@ -1017,7 +2004,7 @@ class CloudCostManagementApiResponseProcessor {
|
|
|
1017
2004
|
}
|
|
1018
2005
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1019
2006
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1020
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2007
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "ArbitraryRuleResponse", "");
|
|
1021
2008
|
return body;
|
|
1022
2009
|
}
|
|
1023
2010
|
const body = (yield response.body.text()) || "";
|
|
@@ -1028,17 +2015,19 @@ class CloudCostManagementApiResponseProcessor {
|
|
|
1028
2015
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1029
2016
|
* to the expected objects
|
|
1030
2017
|
*
|
|
1031
|
-
* @params response Response returned by the server for a request to
|
|
2018
|
+
* @params response Response returned by the server for a request to updateCostAWSCURConfig
|
|
1032
2019
|
* @throws ApiException if the response code was not in [200, 299]
|
|
1033
2020
|
*/
|
|
1034
|
-
|
|
2021
|
+
updateCostAWSCURConfig(response) {
|
|
1035
2022
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1036
2023
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1037
2024
|
if (response.httpStatusCode === 200) {
|
|
1038
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2025
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AwsCURConfigsResponse");
|
|
1039
2026
|
return body;
|
|
1040
2027
|
}
|
|
1041
|
-
if (response.httpStatusCode === 403 ||
|
|
2028
|
+
if (response.httpStatusCode === 403 ||
|
|
2029
|
+
response.httpStatusCode === 404 ||
|
|
2030
|
+
response.httpStatusCode === 429) {
|
|
1042
2031
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1043
2032
|
let body;
|
|
1044
2033
|
try {
|
|
@@ -1052,7 +2041,7 @@ class CloudCostManagementApiResponseProcessor {
|
|
|
1052
2041
|
}
|
|
1053
2042
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1054
2043
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1055
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2044
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AwsCURConfigsResponse", "");
|
|
1056
2045
|
return body;
|
|
1057
2046
|
}
|
|
1058
2047
|
const body = (yield response.body.text()) || "";
|
|
@@ -1063,18 +2052,19 @@ class CloudCostManagementApiResponseProcessor {
|
|
|
1063
2052
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1064
2053
|
* to the expected objects
|
|
1065
2054
|
*
|
|
1066
|
-
* @params response Response returned by the server for a request to
|
|
2055
|
+
* @params response Response returned by the server for a request to updateCostAzureUCConfigs
|
|
1067
2056
|
* @throws ApiException if the response code was not in [200, 299]
|
|
1068
2057
|
*/
|
|
1069
|
-
|
|
2058
|
+
updateCostAzureUCConfigs(response) {
|
|
1070
2059
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1071
2060
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1072
2061
|
if (response.httpStatusCode === 200) {
|
|
1073
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2062
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AzureUCConfigPairsResponse");
|
|
1074
2063
|
return body;
|
|
1075
2064
|
}
|
|
1076
2065
|
if (response.httpStatusCode === 400 ||
|
|
1077
2066
|
response.httpStatusCode === 403 ||
|
|
2067
|
+
response.httpStatusCode === 404 ||
|
|
1078
2068
|
response.httpStatusCode === 429) {
|
|
1079
2069
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1080
2070
|
let body;
|
|
@@ -1089,7 +2079,7 @@ class CloudCostManagementApiResponseProcessor {
|
|
|
1089
2079
|
}
|
|
1090
2080
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1091
2081
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1092
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2082
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "AzureUCConfigPairsResponse", "");
|
|
1093
2083
|
return body;
|
|
1094
2084
|
}
|
|
1095
2085
|
const body = (yield response.body.text()) || "";
|
|
@@ -1100,17 +2090,18 @@ class CloudCostManagementApiResponseProcessor {
|
|
|
1100
2090
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1101
2091
|
* to the expected objects
|
|
1102
2092
|
*
|
|
1103
|
-
* @params response Response returned by the server for a request to
|
|
2093
|
+
* @params response Response returned by the server for a request to updateCostGCPUsageCostConfig
|
|
1104
2094
|
* @throws ApiException if the response code was not in [200, 299]
|
|
1105
2095
|
*/
|
|
1106
|
-
|
|
2096
|
+
updateCostGCPUsageCostConfig(response) {
|
|
1107
2097
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1108
2098
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1109
2099
|
if (response.httpStatusCode === 200) {
|
|
1110
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2100
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "GCPUsageCostConfigResponse");
|
|
1111
2101
|
return body;
|
|
1112
2102
|
}
|
|
1113
|
-
if (response.httpStatusCode ===
|
|
2103
|
+
if (response.httpStatusCode === 400 ||
|
|
2104
|
+
response.httpStatusCode === 403 ||
|
|
1114
2105
|
response.httpStatusCode === 404 ||
|
|
1115
2106
|
response.httpStatusCode === 429) {
|
|
1116
2107
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
@@ -1126,7 +2117,7 @@ class CloudCostManagementApiResponseProcessor {
|
|
|
1126
2117
|
}
|
|
1127
2118
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1128
2119
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1129
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2120
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "GCPUsageCostConfigResponse", "");
|
|
1130
2121
|
return body;
|
|
1131
2122
|
}
|
|
1132
2123
|
const body = (yield response.body.text()) || "";
|
|
@@ -1137,20 +2128,17 @@ class CloudCostManagementApiResponseProcessor {
|
|
|
1137
2128
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1138
2129
|
* to the expected objects
|
|
1139
2130
|
*
|
|
1140
|
-
* @params response Response returned by the server for a request to
|
|
2131
|
+
* @params response Response returned by the server for a request to updateRuleset
|
|
1141
2132
|
* @throws ApiException if the response code was not in [200, 299]
|
|
1142
2133
|
*/
|
|
1143
|
-
|
|
2134
|
+
updateRuleset(response) {
|
|
1144
2135
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1145
2136
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1146
2137
|
if (response.httpStatusCode === 200) {
|
|
1147
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2138
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RulesetResp");
|
|
1148
2139
|
return body;
|
|
1149
2140
|
}
|
|
1150
|
-
if (response.httpStatusCode ===
|
|
1151
|
-
response.httpStatusCode === 403 ||
|
|
1152
|
-
response.httpStatusCode === 404 ||
|
|
1153
|
-
response.httpStatusCode === 429) {
|
|
2141
|
+
if (response.httpStatusCode === 429) {
|
|
1154
2142
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1155
2143
|
let body;
|
|
1156
2144
|
try {
|
|
@@ -1164,7 +2152,7 @@ class CloudCostManagementApiResponseProcessor {
|
|
|
1164
2152
|
}
|
|
1165
2153
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1166
2154
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1167
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2155
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RulesetResp", "");
|
|
1168
2156
|
return body;
|
|
1169
2157
|
}
|
|
1170
2158
|
const body = (yield response.body.text()) || "";
|
|
@@ -1175,19 +2163,18 @@ class CloudCostManagementApiResponseProcessor {
|
|
|
1175
2163
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1176
2164
|
* to the expected objects
|
|
1177
2165
|
*
|
|
1178
|
-
* @params response Response returned by the server for a request to
|
|
2166
|
+
* @params response Response returned by the server for a request to uploadCustomCostsFile
|
|
1179
2167
|
* @throws ApiException if the response code was not in [200, 299]
|
|
1180
2168
|
*/
|
|
1181
|
-
|
|
2169
|
+
uploadCustomCostsFile(response) {
|
|
1182
2170
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1183
2171
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1184
|
-
if (response.httpStatusCode ===
|
|
1185
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2172
|
+
if (response.httpStatusCode === 202) {
|
|
2173
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CustomCostsFileUploadResponse");
|
|
1186
2174
|
return body;
|
|
1187
2175
|
}
|
|
1188
2176
|
if (response.httpStatusCode === 400 ||
|
|
1189
2177
|
response.httpStatusCode === 403 ||
|
|
1190
|
-
response.httpStatusCode === 404 ||
|
|
1191
2178
|
response.httpStatusCode === 429) {
|
|
1192
2179
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1193
2180
|
let body;
|
|
@@ -1202,7 +2189,7 @@ class CloudCostManagementApiResponseProcessor {
|
|
|
1202
2189
|
}
|
|
1203
2190
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1204
2191
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1205
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2192
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CustomCostsFileUploadResponse", "");
|
|
1206
2193
|
return body;
|
|
1207
2194
|
}
|
|
1208
2195
|
const body = (yield response.body.text()) || "";
|
|
@@ -1213,18 +2200,18 @@ class CloudCostManagementApiResponseProcessor {
|
|
|
1213
2200
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1214
2201
|
* to the expected objects
|
|
1215
2202
|
*
|
|
1216
|
-
* @params response Response returned by the server for a request to
|
|
2203
|
+
* @params response Response returned by the server for a request to upsertBudget
|
|
1217
2204
|
* @throws ApiException if the response code was not in [200, 299]
|
|
1218
2205
|
*/
|
|
1219
|
-
|
|
2206
|
+
upsertBudget(response) {
|
|
1220
2207
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1221
2208
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1222
|
-
if (response.httpStatusCode ===
|
|
1223
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2209
|
+
if (response.httpStatusCode === 200) {
|
|
2210
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "BudgetWithEntries");
|
|
1224
2211
|
return body;
|
|
1225
2212
|
}
|
|
1226
2213
|
if (response.httpStatusCode === 400 ||
|
|
1227
|
-
response.httpStatusCode ===
|
|
2214
|
+
response.httpStatusCode === 404 ||
|
|
1228
2215
|
response.httpStatusCode === 429) {
|
|
1229
2216
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1230
2217
|
let body;
|
|
@@ -1239,7 +2226,7 @@ class CloudCostManagementApiResponseProcessor {
|
|
|
1239
2226
|
}
|
|
1240
2227
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1241
2228
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1242
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2229
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "BudgetWithEntries", "");
|
|
1243
2230
|
return body;
|
|
1244
2231
|
}
|
|
1245
2232
|
const body = (yield response.body.text()) || "";
|
|
@@ -1250,19 +2237,17 @@ class CloudCostManagementApiResponseProcessor {
|
|
|
1250
2237
|
* Unwraps the actual response sent by the server from the response context and deserializes the response content
|
|
1251
2238
|
* to the expected objects
|
|
1252
2239
|
*
|
|
1253
|
-
* @params response Response returned by the server for a request to
|
|
2240
|
+
* @params response Response returned by the server for a request to validateQuery
|
|
1254
2241
|
* @throws ApiException if the response code was not in [200, 299]
|
|
1255
2242
|
*/
|
|
1256
|
-
|
|
2243
|
+
validateQuery(response) {
|
|
1257
2244
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1258
2245
|
const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1259
2246
|
if (response.httpStatusCode === 200) {
|
|
1260
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2247
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RulesValidateQueryResponse");
|
|
1261
2248
|
return body;
|
|
1262
2249
|
}
|
|
1263
|
-
if (response.httpStatusCode ===
|
|
1264
|
-
response.httpStatusCode === 404 ||
|
|
1265
|
-
response.httpStatusCode === 429) {
|
|
2250
|
+
if (response.httpStatusCode === 429) {
|
|
1266
2251
|
const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
|
|
1267
2252
|
let body;
|
|
1268
2253
|
try {
|
|
@@ -1276,7 +2261,7 @@ class CloudCostManagementApiResponseProcessor {
|
|
|
1276
2261
|
}
|
|
1277
2262
|
// Work around for missing responses in specification, e.g. for petstore.yaml
|
|
1278
2263
|
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
|
|
1279
|
-
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "
|
|
2264
|
+
const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "RulesValidateQueryResponse", "");
|
|
1280
2265
|
return body;
|
|
1281
2266
|
}
|
|
1282
2267
|
const body = (yield response.body.text()) || "";
|
|
@@ -1293,6 +2278,32 @@ class CloudCostManagementApi {
|
|
|
1293
2278
|
this.responseProcessor =
|
|
1294
2279
|
responseProcessor || new CloudCostManagementApiResponseProcessor();
|
|
1295
2280
|
}
|
|
2281
|
+
/**
|
|
2282
|
+
* Create a new arbitrary cost rule with the specified filters and allocation strategy.
|
|
2283
|
+
*
|
|
2284
|
+
* **Strategy Methods:**
|
|
2285
|
+
* - **PROPORTIONAL/EVEN**: Allocates costs proportionally/evenly based on existing costs. Requires: granularity, allocated_by_tag_keys. Optional: based_on_costs, allocated_by_filters, evaluate_grouped_by_tag_keys, evaluate_grouped_by_filters.
|
|
2286
|
+
* - **PROPORTIONAL_TIMESERIES/EVEN_TIMESERIES**: Allocates based on timeseries data. Requires: granularity, based_on_timeseries. Optional: evaluate_grouped_by_tag_keys.
|
|
2287
|
+
* - **PERCENT**: Allocates fixed percentages to specific tags. Requires: allocated_by (array of percentage allocations).
|
|
2288
|
+
*
|
|
2289
|
+
* **Filter Conditions:**
|
|
2290
|
+
* - Use **value** for single-value conditions: "is", "is not", "contains", "does not contain", "=", "!=", "like", "not like", "is all values", "is untagged"
|
|
2291
|
+
* - Use **values** for multi-value conditions: "in", "not in"
|
|
2292
|
+
* - Cannot use both value and values simultaneously.
|
|
2293
|
+
*
|
|
2294
|
+
* **Supported operators**: is, is not, is all values, is untagged, contains, does not contain, in, not in, =, !=, like, not like
|
|
2295
|
+
* @param param The request object
|
|
2296
|
+
*/
|
|
2297
|
+
createArbitraryCostRule(param, options) {
|
|
2298
|
+
const requestContextPromise = this.requestFactory.createArbitraryCostRule(param.body, options);
|
|
2299
|
+
return requestContextPromise.then((requestContext) => {
|
|
2300
|
+
return this.configuration.httpApi
|
|
2301
|
+
.send(requestContext)
|
|
2302
|
+
.then((responseContext) => {
|
|
2303
|
+
return this.responseProcessor.createArbitraryCostRule(responseContext);
|
|
2304
|
+
});
|
|
2305
|
+
});
|
|
2306
|
+
}
|
|
1296
2307
|
/**
|
|
1297
2308
|
* Create a Cloud Cost Management account for an AWS CUR config.
|
|
1298
2309
|
* @param param The request object
|
|
@@ -1322,7 +2333,7 @@ class CloudCostManagementApi {
|
|
|
1322
2333
|
});
|
|
1323
2334
|
}
|
|
1324
2335
|
/**
|
|
1325
|
-
* Create a Cloud Cost Management account for an
|
|
2336
|
+
* Create a Cloud Cost Management account for an Google Cloud Usage Cost config.
|
|
1326
2337
|
* @param param The request object
|
|
1327
2338
|
*/
|
|
1328
2339
|
createCostGCPUsageCostConfig(param, options) {
|
|
@@ -1335,6 +2346,34 @@ class CloudCostManagementApi {
|
|
|
1335
2346
|
});
|
|
1336
2347
|
});
|
|
1337
2348
|
}
|
|
2349
|
+
/**
|
|
2350
|
+
* Create a new tag pipeline ruleset with the specified rules and configuration
|
|
2351
|
+
* @param param The request object
|
|
2352
|
+
*/
|
|
2353
|
+
createRuleset(param, options) {
|
|
2354
|
+
const requestContextPromise = this.requestFactory.createRuleset(param.body, options);
|
|
2355
|
+
return requestContextPromise.then((requestContext) => {
|
|
2356
|
+
return this.configuration.httpApi
|
|
2357
|
+
.send(requestContext)
|
|
2358
|
+
.then((responseContext) => {
|
|
2359
|
+
return this.responseProcessor.createRuleset(responseContext);
|
|
2360
|
+
});
|
|
2361
|
+
});
|
|
2362
|
+
}
|
|
2363
|
+
/**
|
|
2364
|
+
* Delete an arbitrary cost rule - Delete an existing arbitrary cost rule by its ID
|
|
2365
|
+
* @param param The request object
|
|
2366
|
+
*/
|
|
2367
|
+
deleteArbitraryCostRule(param, options) {
|
|
2368
|
+
const requestContextPromise = this.requestFactory.deleteArbitraryCostRule(param.ruleId, options);
|
|
2369
|
+
return requestContextPromise.then((requestContext) => {
|
|
2370
|
+
return this.configuration.httpApi
|
|
2371
|
+
.send(requestContext)
|
|
2372
|
+
.then((responseContext) => {
|
|
2373
|
+
return this.responseProcessor.deleteArbitraryCostRule(responseContext);
|
|
2374
|
+
});
|
|
2375
|
+
});
|
|
2376
|
+
}
|
|
1338
2377
|
/**
|
|
1339
2378
|
* Delete a budget.
|
|
1340
2379
|
* @param param The request object
|
|
@@ -1405,6 +2444,34 @@ class CloudCostManagementApi {
|
|
|
1405
2444
|
});
|
|
1406
2445
|
});
|
|
1407
2446
|
}
|
|
2447
|
+
/**
|
|
2448
|
+
* Delete a tag pipeline ruleset - Delete an existing tag pipeline ruleset by its ID
|
|
2449
|
+
* @param param The request object
|
|
2450
|
+
*/
|
|
2451
|
+
deleteRuleset(param, options) {
|
|
2452
|
+
const requestContextPromise = this.requestFactory.deleteRuleset(param.rulesetId, options);
|
|
2453
|
+
return requestContextPromise.then((requestContext) => {
|
|
2454
|
+
return this.configuration.httpApi
|
|
2455
|
+
.send(requestContext)
|
|
2456
|
+
.then((responseContext) => {
|
|
2457
|
+
return this.responseProcessor.deleteRuleset(responseContext);
|
|
2458
|
+
});
|
|
2459
|
+
});
|
|
2460
|
+
}
|
|
2461
|
+
/**
|
|
2462
|
+
* Get a specific arbitrary cost rule - Retrieve a specific arbitrary cost rule by its ID
|
|
2463
|
+
* @param param The request object
|
|
2464
|
+
*/
|
|
2465
|
+
getArbitraryCostRule(param, options) {
|
|
2466
|
+
const requestContextPromise = this.requestFactory.getArbitraryCostRule(param.ruleId, options);
|
|
2467
|
+
return requestContextPromise.then((requestContext) => {
|
|
2468
|
+
return this.configuration.httpApi
|
|
2469
|
+
.send(requestContext)
|
|
2470
|
+
.then((responseContext) => {
|
|
2471
|
+
return this.responseProcessor.getArbitraryCostRule(responseContext);
|
|
2472
|
+
});
|
|
2473
|
+
});
|
|
2474
|
+
}
|
|
1408
2475
|
/**
|
|
1409
2476
|
* Get a budget.
|
|
1410
2477
|
* @param param The request object
|
|
@@ -1419,6 +2486,48 @@ class CloudCostManagementApi {
|
|
|
1419
2486
|
});
|
|
1420
2487
|
});
|
|
1421
2488
|
}
|
|
2489
|
+
/**
|
|
2490
|
+
* Get a specific AWS CUR config.
|
|
2491
|
+
* @param param The request object
|
|
2492
|
+
*/
|
|
2493
|
+
getCostAWSCURConfig(param, options) {
|
|
2494
|
+
const requestContextPromise = this.requestFactory.getCostAWSCURConfig(param.cloudAccountId, options);
|
|
2495
|
+
return requestContextPromise.then((requestContext) => {
|
|
2496
|
+
return this.configuration.httpApi
|
|
2497
|
+
.send(requestContext)
|
|
2498
|
+
.then((responseContext) => {
|
|
2499
|
+
return this.responseProcessor.getCostAWSCURConfig(responseContext);
|
|
2500
|
+
});
|
|
2501
|
+
});
|
|
2502
|
+
}
|
|
2503
|
+
/**
|
|
2504
|
+
* Get a specific Azure config.
|
|
2505
|
+
* @param param The request object
|
|
2506
|
+
*/
|
|
2507
|
+
getCostAzureUCConfig(param, options) {
|
|
2508
|
+
const requestContextPromise = this.requestFactory.getCostAzureUCConfig(param.cloudAccountId, options);
|
|
2509
|
+
return requestContextPromise.then((requestContext) => {
|
|
2510
|
+
return this.configuration.httpApi
|
|
2511
|
+
.send(requestContext)
|
|
2512
|
+
.then((responseContext) => {
|
|
2513
|
+
return this.responseProcessor.getCostAzureUCConfig(responseContext);
|
|
2514
|
+
});
|
|
2515
|
+
});
|
|
2516
|
+
}
|
|
2517
|
+
/**
|
|
2518
|
+
* Get a specific Google Cloud Usage Cost config.
|
|
2519
|
+
* @param param The request object
|
|
2520
|
+
*/
|
|
2521
|
+
getCostGCPUsageCostConfig(param, options) {
|
|
2522
|
+
const requestContextPromise = this.requestFactory.getCostGCPUsageCostConfig(param.cloudAccountId, options);
|
|
2523
|
+
return requestContextPromise.then((requestContext) => {
|
|
2524
|
+
return this.configuration.httpApi
|
|
2525
|
+
.send(requestContext)
|
|
2526
|
+
.then((responseContext) => {
|
|
2527
|
+
return this.responseProcessor.getCostGCPUsageCostConfig(responseContext);
|
|
2528
|
+
});
|
|
2529
|
+
});
|
|
2530
|
+
}
|
|
1422
2531
|
/**
|
|
1423
2532
|
* Fetch the specified Custom Costs file.
|
|
1424
2533
|
* @param param The request object
|
|
@@ -1433,6 +2542,34 @@ class CloudCostManagementApi {
|
|
|
1433
2542
|
});
|
|
1434
2543
|
});
|
|
1435
2544
|
}
|
|
2545
|
+
/**
|
|
2546
|
+
* Get a specific tag pipeline ruleset - Retrieve a specific tag pipeline ruleset by its ID
|
|
2547
|
+
* @param param The request object
|
|
2548
|
+
*/
|
|
2549
|
+
getRuleset(param, options) {
|
|
2550
|
+
const requestContextPromise = this.requestFactory.getRuleset(param.rulesetId, options);
|
|
2551
|
+
return requestContextPromise.then((requestContext) => {
|
|
2552
|
+
return this.configuration.httpApi
|
|
2553
|
+
.send(requestContext)
|
|
2554
|
+
.then((responseContext) => {
|
|
2555
|
+
return this.responseProcessor.getRuleset(responseContext);
|
|
2556
|
+
});
|
|
2557
|
+
});
|
|
2558
|
+
}
|
|
2559
|
+
/**
|
|
2560
|
+
* List all arbitrary cost rules - Retrieve a list of all arbitrary cost rules for the organization
|
|
2561
|
+
* @param param The request object
|
|
2562
|
+
*/
|
|
2563
|
+
listArbitraryCostRules(options) {
|
|
2564
|
+
const requestContextPromise = this.requestFactory.listArbitraryCostRules(options);
|
|
2565
|
+
return requestContextPromise.then((requestContext) => {
|
|
2566
|
+
return this.configuration.httpApi
|
|
2567
|
+
.send(requestContext)
|
|
2568
|
+
.then((responseContext) => {
|
|
2569
|
+
return this.responseProcessor.listArbitraryCostRules(responseContext);
|
|
2570
|
+
});
|
|
2571
|
+
});
|
|
2572
|
+
}
|
|
1436
2573
|
/**
|
|
1437
2574
|
* List budgets.
|
|
1438
2575
|
* @param param The request object
|
|
@@ -1476,7 +2613,7 @@ class CloudCostManagementApi {
|
|
|
1476
2613
|
});
|
|
1477
2614
|
}
|
|
1478
2615
|
/**
|
|
1479
|
-
* List the
|
|
2616
|
+
* List the Google Cloud Usage Cost configs.
|
|
1480
2617
|
* @param param The request object
|
|
1481
2618
|
*/
|
|
1482
2619
|
listCostGCPUsageCostConfigs(options) {
|
|
@@ -1503,6 +2640,81 @@ class CloudCostManagementApi {
|
|
|
1503
2640
|
});
|
|
1504
2641
|
});
|
|
1505
2642
|
}
|
|
2643
|
+
/**
|
|
2644
|
+
* List all tag pipeline rulesets - Retrieve a list of all tag pipeline rulesets for the organization
|
|
2645
|
+
* @param param The request object
|
|
2646
|
+
*/
|
|
2647
|
+
listRulesets(options) {
|
|
2648
|
+
const requestContextPromise = this.requestFactory.listRulesets(options);
|
|
2649
|
+
return requestContextPromise.then((requestContext) => {
|
|
2650
|
+
return this.configuration.httpApi
|
|
2651
|
+
.send(requestContext)
|
|
2652
|
+
.then((responseContext) => {
|
|
2653
|
+
return this.responseProcessor.listRulesets(responseContext);
|
|
2654
|
+
});
|
|
2655
|
+
});
|
|
2656
|
+
}
|
|
2657
|
+
/**
|
|
2658
|
+
* Reorder arbitrary cost rules - Change the execution order of arbitrary cost rules.
|
|
2659
|
+
*
|
|
2660
|
+
* **Important**: You must provide the **complete list** of all rule IDs in the desired execution order. The API will reorder ALL rules according to the provided sequence.
|
|
2661
|
+
*
|
|
2662
|
+
* Rules are executed in the order specified, with lower indices (earlier in the array) having higher priority.
|
|
2663
|
+
*
|
|
2664
|
+
* **Example**: If you have rules with IDs [123, 456, 789] and want to change order from 123→456→789 to 456→123→789, send: [{"id": "456"}, {"id": "123"}, {"id": "789"}]
|
|
2665
|
+
* @param param The request object
|
|
2666
|
+
*/
|
|
2667
|
+
reorderArbitraryCostRules(param, options) {
|
|
2668
|
+
const requestContextPromise = this.requestFactory.reorderArbitraryCostRules(param.body, options);
|
|
2669
|
+
return requestContextPromise.then((requestContext) => {
|
|
2670
|
+
return this.configuration.httpApi
|
|
2671
|
+
.send(requestContext)
|
|
2672
|
+
.then((responseContext) => {
|
|
2673
|
+
return this.responseProcessor.reorderArbitraryCostRules(responseContext);
|
|
2674
|
+
});
|
|
2675
|
+
});
|
|
2676
|
+
}
|
|
2677
|
+
/**
|
|
2678
|
+
* Reorder tag pipeline rulesets - Change the execution order of tag pipeline rulesets
|
|
2679
|
+
* @param param The request object
|
|
2680
|
+
*/
|
|
2681
|
+
reorderRulesets(param, options) {
|
|
2682
|
+
const requestContextPromise = this.requestFactory.reorderRulesets(param.body, options);
|
|
2683
|
+
return requestContextPromise.then((requestContext) => {
|
|
2684
|
+
return this.configuration.httpApi
|
|
2685
|
+
.send(requestContext)
|
|
2686
|
+
.then((responseContext) => {
|
|
2687
|
+
return this.responseProcessor.reorderRulesets(responseContext);
|
|
2688
|
+
});
|
|
2689
|
+
});
|
|
2690
|
+
}
|
|
2691
|
+
/**
|
|
2692
|
+
* Update an existing arbitrary cost rule with new filters and allocation strategy.
|
|
2693
|
+
*
|
|
2694
|
+
* **Strategy Methods:**
|
|
2695
|
+
* - **PROPORTIONAL/EVEN**: Allocates costs proportionally/evenly based on existing costs. Requires: granularity, allocated_by_tag_keys. Optional: based_on_costs, allocated_by_filters, evaluate_grouped_by_tag_keys, evaluate_grouped_by_filters.
|
|
2696
|
+
* - **PROPORTIONAL_TIMESERIES/EVEN_TIMESERIES**: Allocates based on timeseries data. Requires: granularity, based_on_timeseries. Optional: evaluate_grouped_by_tag_keys.
|
|
2697
|
+
* - **PERCENT**: Allocates fixed percentages to specific tags. Requires: allocated_by (array of percentage allocations).
|
|
2698
|
+
* - **USAGE_METRIC**: Allocates based on usage metrics (implementation varies).
|
|
2699
|
+
*
|
|
2700
|
+
* **Filter Conditions:**
|
|
2701
|
+
* - Use **value** for single-value conditions: "is", "is not", "contains", "does not contain", "=", "!=", "like", "not like", "is all values", "is untagged"
|
|
2702
|
+
* - Use **values** for multi-value conditions: "in", "not in"
|
|
2703
|
+
* - Cannot use both value and values simultaneously.
|
|
2704
|
+
*
|
|
2705
|
+
* **Supported operators**: is, is not, is all values, is untagged, contains, does not contain, in, not in, =, !=, like, not like
|
|
2706
|
+
* @param param The request object
|
|
2707
|
+
*/
|
|
2708
|
+
updateArbitraryCostRule(param, options) {
|
|
2709
|
+
const requestContextPromise = this.requestFactory.updateArbitraryCostRule(param.ruleId, param.body, options);
|
|
2710
|
+
return requestContextPromise.then((requestContext) => {
|
|
2711
|
+
return this.configuration.httpApi
|
|
2712
|
+
.send(requestContext)
|
|
2713
|
+
.then((responseContext) => {
|
|
2714
|
+
return this.responseProcessor.updateArbitraryCostRule(responseContext);
|
|
2715
|
+
});
|
|
2716
|
+
});
|
|
2717
|
+
}
|
|
1506
2718
|
/**
|
|
1507
2719
|
* Update the status (active/archived) and/or account filtering configuration of an AWS CUR config.
|
|
1508
2720
|
* @param param The request object
|
|
@@ -1532,7 +2744,7 @@ class CloudCostManagementApi {
|
|
|
1532
2744
|
});
|
|
1533
2745
|
}
|
|
1534
2746
|
/**
|
|
1535
|
-
* Update the status of an
|
|
2747
|
+
* Update the status of an Google Cloud Usage Cost config (active/archived).
|
|
1536
2748
|
* @param param The request object
|
|
1537
2749
|
*/
|
|
1538
2750
|
updateCostGCPUsageCostConfig(param, options) {
|
|
@@ -1545,6 +2757,20 @@ class CloudCostManagementApi {
|
|
|
1545
2757
|
});
|
|
1546
2758
|
});
|
|
1547
2759
|
}
|
|
2760
|
+
/**
|
|
2761
|
+
* Update a tag pipeline ruleset - Update an existing tag pipeline ruleset with new rules and configuration
|
|
2762
|
+
* @param param The request object
|
|
2763
|
+
*/
|
|
2764
|
+
updateRuleset(param, options) {
|
|
2765
|
+
const requestContextPromise = this.requestFactory.updateRuleset(param.rulesetId, param.body, options);
|
|
2766
|
+
return requestContextPromise.then((requestContext) => {
|
|
2767
|
+
return this.configuration.httpApi
|
|
2768
|
+
.send(requestContext)
|
|
2769
|
+
.then((responseContext) => {
|
|
2770
|
+
return this.responseProcessor.updateRuleset(responseContext);
|
|
2771
|
+
});
|
|
2772
|
+
});
|
|
2773
|
+
}
|
|
1548
2774
|
/**
|
|
1549
2775
|
* Upload a Custom Costs file.
|
|
1550
2776
|
* @param param The request object
|
|
@@ -1573,6 +2799,20 @@ class CloudCostManagementApi {
|
|
|
1573
2799
|
});
|
|
1574
2800
|
});
|
|
1575
2801
|
}
|
|
2802
|
+
/**
|
|
2803
|
+
* Validate a tag pipeline query - Validate the syntax and structure of a tag pipeline query
|
|
2804
|
+
* @param param The request object
|
|
2805
|
+
*/
|
|
2806
|
+
validateQuery(param, options) {
|
|
2807
|
+
const requestContextPromise = this.requestFactory.validateQuery(param.body, options);
|
|
2808
|
+
return requestContextPromise.then((requestContext) => {
|
|
2809
|
+
return this.configuration.httpApi
|
|
2810
|
+
.send(requestContext)
|
|
2811
|
+
.then((responseContext) => {
|
|
2812
|
+
return this.responseProcessor.validateQuery(responseContext);
|
|
2813
|
+
});
|
|
2814
|
+
});
|
|
2815
|
+
}
|
|
1576
2816
|
}
|
|
1577
2817
|
exports.CloudCostManagementApi = CloudCostManagementApi;
|
|
1578
2818
|
//# sourceMappingURL=CloudCostManagementApi.js.map
|