@datadog/datadog-api-client 1.26.0 → 1.27.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.
Files changed (299) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/packages/datadog-api-client-common/configuration.js +1 -0
  3. package/dist/packages/datadog-api-client-common/configuration.js.map +1 -1
  4. package/dist/packages/datadog-api-client-v1/apis/AWSLogsIntegrationApi.js +0 -1
  5. package/dist/packages/datadog-api-client-v1/apis/AWSLogsIntegrationApi.js.map +1 -1
  6. package/dist/packages/datadog-api-client-v1/apis/HostsApi.d.ts +1 -1
  7. package/dist/packages/datadog-api-client-v1/apis/MonitorsApi.d.ts +12 -1
  8. package/dist/packages/datadog-api-client-v1/apis/MonitorsApi.js +12 -1
  9. package/dist/packages/datadog-api-client-v1/apis/MonitorsApi.js.map +1 -1
  10. package/dist/packages/datadog-api-client-v1/apis/SyntheticsApi.js +1 -0
  11. package/dist/packages/datadog-api-client-v1/apis/SyntheticsApi.js.map +1 -1
  12. package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.d.ts +12 -2
  13. package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.js +10 -4
  14. package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.js.map +1 -1
  15. package/dist/packages/datadog-api-client-v1/index.d.ts +1 -0
  16. package/dist/packages/datadog-api-client-v1/index.js +14 -12
  17. package/dist/packages/datadog-api-client-v1/index.js.map +1 -1
  18. package/dist/packages/datadog-api-client-v1/models/AzureAccount.d.ts +8 -0
  19. package/dist/packages/datadog-api-client-v1/models/AzureAccount.js +4 -5
  20. package/dist/packages/datadog-api-client-v1/models/AzureAccount.js.map +1 -1
  21. package/dist/packages/datadog-api-client-v1/models/AzureAccountMetricsConfig.d.ts +39 -0
  22. package/dist/packages/datadog-api-client-v1/models/AzureAccountMetricsConfig.js +38 -0
  23. package/dist/packages/datadog-api-client-v1/models/AzureAccountMetricsConfig.js.map +1 -0
  24. package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventsDataSource.d.ts +2 -1
  25. package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventsDataSource.js +2 -1
  26. package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventsDataSource.js.map +1 -1
  27. package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionSLOQueryType.d.ts +2 -1
  28. package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionSLOQueryType.js +2 -1
  29. package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionSLOQueryType.js.map +1 -1
  30. package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.d.ts +3 -1
  31. package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.js +3 -1
  32. package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.js.map +1 -1
  33. package/dist/packages/datadog-api-client-v1/models/ListStreamSource.d.ts +2 -1
  34. package/dist/packages/datadog-api-client-v1/models/ListStreamSource.js +2 -1
  35. package/dist/packages/datadog-api-client-v1/models/ListStreamSource.js.map +1 -1
  36. package/dist/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionEventsDataSource.d.ts +2 -1
  37. package/dist/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionEventsDataSource.js +2 -1
  38. package/dist/packages/datadog-api-client-v1/models/MonitorFormulaAndFunctionEventsDataSource.js.map +1 -1
  39. package/dist/packages/datadog-api-client-v1/models/MonitorType.d.ts +2 -1
  40. package/dist/packages/datadog-api-client-v1/models/MonitorType.js +2 -1
  41. package/dist/packages/datadog-api-client-v1/models/MonitorType.js.map +1 -1
  42. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.d.ts +5 -1
  43. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.js +5 -1
  44. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.js.map +1 -1
  45. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.d.ts +16 -0
  46. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.js +20 -0
  47. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.js.map +1 -1
  48. package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js +13 -1
  49. package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js.map +1 -1
  50. package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigest.d.ts +1 -1
  51. package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigest.js +1 -0
  52. package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigest.js.map +1 -1
  53. package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthOauthClient.d.ts +1 -1
  54. package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthOauthClient.js +1 -0
  55. package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthOauthClient.js.map +1 -1
  56. package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthOauthROP.d.ts +1 -1
  57. package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthOauthROP.js +1 -0
  58. package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthOauthROP.js.map +1 -1
  59. package/dist/packages/datadog-api-client-v1/models/SyntheticsDeleteTestsPayload.d.ts +5 -0
  60. package/dist/packages/datadog-api-client-v1/models/SyntheticsDeleteTestsPayload.js +4 -0
  61. package/dist/packages/datadog-api-client-v1/models/SyntheticsDeleteTestsPayload.js.map +1 -1
  62. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestOptions.d.ts +8 -0
  63. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestOptions.js +8 -0
  64. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestOptions.js.map +1 -1
  65. package/dist/packages/datadog-api-client-v1/models/UsageBillableSummaryHour.d.ts +8 -0
  66. package/dist/packages/datadog-api-client-v1/models/UsageBillableSummaryHour.js +8 -0
  67. package/dist/packages/datadog-api-client-v1/models/UsageBillableSummaryHour.js.map +1 -1
  68. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.d.ts +24 -0
  69. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.js +30 -0
  70. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.js.map +1 -1
  71. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.d.ts +32 -0
  72. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.js +38 -0
  73. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.js.map +1 -1
  74. package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.d.ts +24 -0
  75. package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.js +30 -0
  76. package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.js.map +1 -1
  77. package/dist/packages/datadog-api-client-v2/apis/APIManagementApi.js +5 -0
  78. package/dist/packages/datadog-api-client-v2/apis/APIManagementApi.js.map +1 -1
  79. package/dist/packages/datadog-api-client-v2/apis/AuthNMappingsApi.d.ts +7 -1
  80. package/dist/packages/datadog-api-client-v2/apis/AuthNMappingsApi.js +5 -2
  81. package/dist/packages/datadog-api-client-v2/apis/AuthNMappingsApi.js.map +1 -1
  82. package/dist/packages/datadog-api-client-v2/apis/CaseManagementApi.js +13 -0
  83. package/dist/packages/datadog-api-client-v2/apis/CaseManagementApi.js.map +1 -1
  84. package/dist/packages/datadog-api-client-v2/apis/CloudCostManagementApi.d.ts +80 -0
  85. package/dist/packages/datadog-api-client-v2/apis/CloudCostManagementApi.js +294 -0
  86. package/dist/packages/datadog-api-client-v2/apis/CloudCostManagementApi.js.map +1 -1
  87. package/dist/packages/datadog-api-client-v2/apis/NetworkDeviceMonitoringApi.d.ts +141 -0
  88. package/dist/packages/datadog-api-client-v2/apis/NetworkDeviceMonitoringApi.js +428 -0
  89. package/dist/packages/datadog-api-client-v2/apis/NetworkDeviceMonitoringApi.js.map +1 -0
  90. package/dist/packages/datadog-api-client-v2/apis/OrganizationsApi.js +0 -1
  91. package/dist/packages/datadog-api-client-v2/apis/OrganizationsApi.js.map +1 -1
  92. package/dist/packages/datadog-api-client-v2/apis/RestrictionPoliciesApi.d.ts +15 -7
  93. package/dist/packages/datadog-api-client-v2/apis/RestrictionPoliciesApi.js +15 -7
  94. package/dist/packages/datadog-api-client-v2/apis/RestrictionPoliciesApi.js.map +1 -1
  95. package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.d.ts +45 -0
  96. package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.js +162 -0
  97. package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.js.map +1 -1
  98. package/dist/packages/datadog-api-client-v2/apis/ServiceScorecardsApi.d.ts +29 -1
  99. package/dist/packages/datadog-api-client-v2/apis/ServiceScorecardsApi.js +90 -0
  100. package/dist/packages/datadog-api-client-v2/apis/ServiceScorecardsApi.js.map +1 -1
  101. package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.d.ts +24 -4
  102. package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.js +20 -8
  103. package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.js.map +1 -1
  104. package/dist/packages/datadog-api-client-v2/apis/WorkflowAutomationApi.d.ts +126 -0
  105. package/dist/packages/datadog-api-client-v2/apis/WorkflowAutomationApi.js +365 -0
  106. package/dist/packages/datadog-api-client-v2/apis/WorkflowAutomationApi.js.map +1 -0
  107. package/dist/packages/datadog-api-client-v2/index.d.ts +54 -3
  108. package/dist/packages/datadog-api-client-v2/index.js +121 -24
  109. package/dist/packages/datadog-api-client-v2/index.js.map +1 -1
  110. package/dist/packages/datadog-api-client-v2/models/APIKeyRelationships.d.ts +2 -1
  111. package/dist/packages/datadog-api-client-v2/models/APIKeyRelationships.js +1 -1
  112. package/dist/packages/datadog-api-client-v2/models/APIKeyRelationships.js.map +1 -1
  113. package/dist/packages/datadog-api-client-v2/models/AuthNMappingResourceType.d.ts +12 -0
  114. package/dist/packages/datadog-api-client-v2/models/AuthNMappingResourceType.js +11 -0
  115. package/dist/packages/datadog-api-client-v2/models/AuthNMappingResourceType.js.map +1 -0
  116. package/dist/packages/datadog-api-client-v2/models/CostByOrgAttributes.d.ts +8 -0
  117. package/dist/packages/datadog-api-client-v2/models/CostByOrgAttributes.js +8 -0
  118. package/dist/packages/datadog-api-client-v2/models/CostByOrgAttributes.js.map +1 -1
  119. package/dist/packages/datadog-api-client-v2/models/CustomCostGetResponseMeta.d.ts +36 -0
  120. package/dist/packages/datadog-api-client-v2/models/CustomCostGetResponseMeta.js +35 -0
  121. package/dist/packages/datadog-api-client-v2/models/CustomCostGetResponseMeta.js.map +1 -0
  122. package/dist/packages/datadog-api-client-v2/models/CustomCostListResponseMeta.d.ts +40 -0
  123. package/dist/packages/datadog-api-client-v2/models/CustomCostListResponseMeta.js +40 -0
  124. package/dist/packages/datadog-api-client-v2/models/CustomCostListResponseMeta.js.map +1 -0
  125. package/dist/packages/datadog-api-client-v2/models/CustomCostUploadResponseMeta.d.ts +36 -0
  126. package/dist/packages/datadog-api-client-v2/models/CustomCostUploadResponseMeta.js +35 -0
  127. package/dist/packages/datadog-api-client-v2/models/CustomCostUploadResponseMeta.js.map +1 -0
  128. package/dist/packages/datadog-api-client-v2/models/CustomCostsFileGetResponse.d.ts +42 -0
  129. package/dist/packages/datadog-api-client-v2/models/CustomCostsFileGetResponse.js +34 -0
  130. package/dist/packages/datadog-api-client-v2/models/CustomCostsFileGetResponse.js.map +1 -0
  131. package/dist/packages/datadog-api-client-v2/models/CustomCostsFileLineItem.d.ts +62 -0
  132. package/dist/packages/datadog-api-client-v2/models/CustomCostsFileLineItem.js +60 -0
  133. package/dist/packages/datadog-api-client-v2/models/CustomCostsFileLineItem.js.map +1 -0
  134. package/dist/packages/datadog-api-client-v2/models/CustomCostsFileListResponse.d.ts +42 -0
  135. package/dist/packages/datadog-api-client-v2/models/CustomCostsFileListResponse.js +34 -0
  136. package/dist/packages/datadog-api-client-v2/models/CustomCostsFileListResponse.js.map +1 -0
  137. package/dist/packages/datadog-api-client-v2/models/CustomCostsFileMetadata.d.ts +66 -0
  138. package/dist/packages/datadog-api-client-v2/models/CustomCostsFileMetadata.js +60 -0
  139. package/dist/packages/datadog-api-client-v2/models/CustomCostsFileMetadata.js.map +1 -0
  140. package/dist/packages/datadog-api-client-v2/models/CustomCostsFileMetadataHighLevel.d.ts +45 -0
  141. package/dist/packages/datadog-api-client-v2/models/CustomCostsFileMetadataHighLevel.js +38 -0
  142. package/dist/packages/datadog-api-client-v2/models/CustomCostsFileMetadataHighLevel.js.map +1 -0
  143. package/dist/packages/datadog-api-client-v2/models/CustomCostsFileMetadataWithContent.d.ts +71 -0
  144. package/dist/packages/datadog-api-client-v2/models/CustomCostsFileMetadataWithContent.js +64 -0
  145. package/dist/packages/datadog-api-client-v2/models/CustomCostsFileMetadataWithContent.js.map +1 -0
  146. package/dist/packages/datadog-api-client-v2/models/CustomCostsFileMetadataWithContentHighLevel.d.ts +45 -0
  147. package/dist/packages/datadog-api-client-v2/models/CustomCostsFileMetadataWithContentHighLevel.js +38 -0
  148. package/dist/packages/datadog-api-client-v2/models/CustomCostsFileMetadataWithContentHighLevel.js.map +1 -0
  149. package/dist/packages/datadog-api-client-v2/models/CustomCostsFileUploadResponse.d.ts +42 -0
  150. package/dist/packages/datadog-api-client-v2/models/CustomCostsFileUploadResponse.js +34 -0
  151. package/dist/packages/datadog-api-client-v2/models/CustomCostsFileUploadResponse.js.map +1 -0
  152. package/dist/packages/datadog-api-client-v2/models/CustomCostsFileUsageChargePeriod.d.ts +40 -0
  153. package/dist/packages/datadog-api-client-v2/models/CustomCostsFileUsageChargePeriod.js +41 -0
  154. package/dist/packages/datadog-api-client-v2/models/CustomCostsFileUsageChargePeriod.js.map +1 -0
  155. package/dist/packages/datadog-api-client-v2/models/CustomCostsUser.d.ts +44 -0
  156. package/dist/packages/datadog-api-client-v2/models/CustomCostsUser.js +43 -0
  157. package/dist/packages/datadog-api-client-v2/models/CustomCostsUser.js.map +1 -0
  158. package/dist/packages/datadog-api-client-v2/models/DORADeploymentRequestAttributes.d.ts +2 -2
  159. package/dist/packages/datadog-api-client-v2/models/DORAIncidentRequestAttributes.d.ts +2 -2
  160. package/dist/packages/datadog-api-client-v2/models/DeviceAttributes.d.ts +113 -0
  161. package/dist/packages/datadog-api-client-v2/models/DeviceAttributes.js +106 -0
  162. package/dist/packages/datadog-api-client-v2/models/DeviceAttributes.js.map +1 -0
  163. package/dist/packages/datadog-api-client-v2/models/DeviceAttributesInterfaceStatuses.d.ts +48 -0
  164. package/dist/packages/datadog-api-client-v2/models/DeviceAttributesInterfaceStatuses.js +51 -0
  165. package/dist/packages/datadog-api-client-v2/models/DeviceAttributesInterfaceStatuses.js.map +1 -0
  166. package/dist/packages/datadog-api-client-v2/models/DevicesListData.d.ts +45 -0
  167. package/dist/packages/datadog-api-client-v2/models/DevicesListData.js +38 -0
  168. package/dist/packages/datadog-api-client-v2/models/DevicesListData.js.map +1 -0
  169. package/dist/packages/datadog-api-client-v2/models/FullApplicationKeyAttributes.d.ts +1 -1
  170. package/dist/packages/datadog-api-client-v2/models/FullApplicationKeyAttributes.js +2 -1
  171. package/dist/packages/datadog-api-client-v2/models/FullApplicationKeyAttributes.js.map +1 -1
  172. package/dist/packages/datadog-api-client-v2/models/GetDeviceAttributes.d.ts +108 -0
  173. package/dist/packages/datadog-api-client-v2/models/GetDeviceAttributes.js +107 -0
  174. package/dist/packages/datadog-api-client-v2/models/GetDeviceAttributes.js.map +1 -0
  175. package/dist/packages/datadog-api-client-v2/models/GetDeviceData.d.ts +45 -0
  176. package/dist/packages/datadog-api-client-v2/models/GetDeviceData.js +38 -0
  177. package/dist/packages/datadog-api-client-v2/models/GetDeviceData.js.map +1 -0
  178. package/dist/packages/datadog-api-client-v2/models/GetDeviceResponse.d.ts +37 -0
  179. package/dist/packages/datadog-api-client-v2/models/GetDeviceResponse.js +30 -0
  180. package/dist/packages/datadog-api-client-v2/models/GetDeviceResponse.js.map +1 -0
  181. package/dist/packages/datadog-api-client-v2/models/GetInterfacesData.d.ts +45 -0
  182. package/dist/packages/datadog-api-client-v2/models/GetInterfacesData.js +38 -0
  183. package/dist/packages/datadog-api-client-v2/models/GetInterfacesData.js.map +1 -0
  184. package/dist/packages/datadog-api-client-v2/models/GetInterfacesResponse.d.ts +37 -0
  185. package/dist/packages/datadog-api-client-v2/models/GetInterfacesResponse.js +30 -0
  186. package/dist/packages/datadog-api-client-v2/models/GetInterfacesResponse.js.map +1 -0
  187. package/dist/packages/datadog-api-client-v2/models/HourlyUsageAttributes.d.ts +8 -0
  188. package/dist/packages/datadog-api-client-v2/models/HourlyUsageAttributes.js +8 -0
  189. package/dist/packages/datadog-api-client-v2/models/HourlyUsageAttributes.js.map +1 -1
  190. package/dist/packages/datadog-api-client-v2/models/InterfaceAttributes.d.ts +57 -0
  191. package/dist/packages/datadog-api-client-v2/models/InterfaceAttributes.js +51 -0
  192. package/dist/packages/datadog-api-client-v2/models/InterfaceAttributes.js.map +1 -0
  193. package/dist/packages/datadog-api-client-v2/models/InterfaceAttributesStatus.d.ts +14 -0
  194. package/dist/packages/datadog-api-client-v2/models/InterfaceAttributesStatus.js +13 -0
  195. package/dist/packages/datadog-api-client-v2/models/InterfaceAttributesStatus.js.map +1 -0
  196. package/dist/packages/datadog-api-client-v2/models/ListDevicesResponse.d.ts +42 -0
  197. package/dist/packages/datadog-api-client-v2/models/ListDevicesResponse.js +34 -0
  198. package/dist/packages/datadog-api-client-v2/models/ListDevicesResponse.js.map +1 -0
  199. package/dist/packages/datadog-api-client-v2/models/ListDevicesResponseMetadata.d.ts +37 -0
  200. package/dist/packages/datadog-api-client-v2/models/ListDevicesResponseMetadata.js +30 -0
  201. package/dist/packages/datadog-api-client-v2/models/ListDevicesResponseMetadata.js.map +1 -0
  202. package/dist/packages/datadog-api-client-v2/models/ListDevicesResponseMetadataPage.d.ts +36 -0
  203. package/dist/packages/datadog-api-client-v2/models/ListDevicesResponseMetadataPage.js +36 -0
  204. package/dist/packages/datadog-api-client-v2/models/ListDevicesResponseMetadataPage.js.map +1 -0
  205. package/dist/packages/datadog-api-client-v2/models/ListTagsResponse.d.ts +37 -0
  206. package/dist/packages/datadog-api-client-v2/models/ListTagsResponse.js +30 -0
  207. package/dist/packages/datadog-api-client-v2/models/ListTagsResponse.js.map +1 -0
  208. package/dist/packages/datadog-api-client-v2/models/ListTagsResponseData.d.ts +45 -0
  209. package/dist/packages/datadog-api-client-v2/models/ListTagsResponseData.js +38 -0
  210. package/dist/packages/datadog-api-client-v2/models/ListTagsResponseData.js.map +1 -0
  211. package/dist/packages/datadog-api-client-v2/models/ListTagsResponseDataAttributes.d.ts +36 -0
  212. package/dist/packages/datadog-api-client-v2/models/ListTagsResponseDataAttributes.js +35 -0
  213. package/dist/packages/datadog-api-client-v2/models/ListTagsResponseDataAttributes.js.map +1 -0
  214. package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js +99 -0
  215. package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js.map +1 -1
  216. package/dist/packages/datadog-api-client-v2/models/ProjectedCostAttributes.d.ts +8 -0
  217. package/dist/packages/datadog-api-client-v2/models/ProjectedCostAttributes.js +8 -0
  218. package/dist/packages/datadog-api-client-v2/models/ProjectedCostAttributes.js.map +1 -1
  219. package/dist/packages/datadog-api-client-v2/models/RUMApplicationAttributes.d.ts +1 -1
  220. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateAttributes.d.ts +1 -1
  221. package/dist/packages/datadog-api-client-v2/models/RUMApplicationListAttributes.d.ts +1 -1
  222. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateAttributes.d.ts +1 -1
  223. package/dist/packages/datadog-api-client-v2/models/RoleRelationships.d.ts +0 -5
  224. package/dist/packages/datadog-api-client-v2/models/RoleRelationships.js +0 -4
  225. package/dist/packages/datadog-api-client-v2/models/RoleRelationships.js.map +1 -1
  226. package/dist/packages/datadog-api-client-v2/models/RoleUpdateAttributes.d.ts +4 -0
  227. package/dist/packages/datadog-api-client-v2/models/RoleUpdateAttributes.js +5 -0
  228. package/dist/packages/datadog-api-client-v2/models/RoleUpdateAttributes.js.map +1 -1
  229. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleConvertPayload.d.ts +12 -0
  230. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleConvertPayload.js +3 -0
  231. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleConvertPayload.js.map +1 -0
  232. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleConvertResponse.d.ts +36 -0
  233. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleConvertResponse.js +35 -0
  234. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleConvertResponse.js.map +1 -0
  235. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleDetectionMethod.d.ts +2 -1
  236. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleDetectionMethod.js +2 -1
  237. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleDetectionMethod.js.map +1 -1
  238. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleEvaluationWindow.d.ts +1 -1
  239. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleKeepAlive.d.ts +1 -1
  240. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleOptions.d.ts +2 -2
  241. package/dist/packages/datadog-api-client-v2/models/TeamLinkAttributes.js +1 -0
  242. package/dist/packages/datadog-api-client-v2/models/TeamLinkAttributes.js.map +1 -1
  243. package/dist/packages/datadog-api-client-v2/models/UpdateRuleRequest.d.ts +37 -0
  244. package/dist/packages/datadog-api-client-v2/models/UpdateRuleRequest.js +30 -0
  245. package/dist/packages/datadog-api-client-v2/models/UpdateRuleRequest.js.map +1 -0
  246. package/dist/packages/datadog-api-client-v2/models/UpdateRuleRequestData.d.ts +42 -0
  247. package/dist/packages/datadog-api-client-v2/models/UpdateRuleRequestData.js +34 -0
  248. package/dist/packages/datadog-api-client-v2/models/UpdateRuleRequestData.js.map +1 -0
  249. package/dist/packages/datadog-api-client-v2/models/UpdateRuleResponse.d.ts +37 -0
  250. package/dist/packages/datadog-api-client-v2/models/UpdateRuleResponse.js +30 -0
  251. package/dist/packages/datadog-api-client-v2/models/UpdateRuleResponse.js.map +1 -0
  252. package/dist/packages/datadog-api-client-v2/models/UpdateRuleResponseData.d.ts +51 -0
  253. package/dist/packages/datadog-api-client-v2/models/UpdateRuleResponseData.js +42 -0
  254. package/dist/packages/datadog-api-client-v2/models/UpdateRuleResponseData.js.map +1 -0
  255. package/dist/packages/datadog-api-client-v2/models/UserAttributes.d.ts +4 -0
  256. package/dist/packages/datadog-api-client-v2/models/UserAttributes.js +4 -0
  257. package/dist/packages/datadog-api-client-v2/models/UserAttributes.js.map +1 -1
  258. package/dist/packages/datadog-api-client-v2/models/WorkflowInstanceCreateMeta.d.ts +38 -0
  259. package/dist/packages/datadog-api-client-v2/models/WorkflowInstanceCreateMeta.js +35 -0
  260. package/dist/packages/datadog-api-client-v2/models/WorkflowInstanceCreateMeta.js.map +1 -0
  261. package/dist/packages/datadog-api-client-v2/models/WorkflowInstanceCreateRequest.d.ts +37 -0
  262. package/dist/packages/datadog-api-client-v2/models/WorkflowInstanceCreateRequest.js +30 -0
  263. package/dist/packages/datadog-api-client-v2/models/WorkflowInstanceCreateRequest.js.map +1 -0
  264. package/dist/packages/datadog-api-client-v2/models/WorkflowInstanceCreateResponse.d.ts +37 -0
  265. package/dist/packages/datadog-api-client-v2/models/WorkflowInstanceCreateResponse.js +30 -0
  266. package/dist/packages/datadog-api-client-v2/models/WorkflowInstanceCreateResponse.js.map +1 -0
  267. package/dist/packages/datadog-api-client-v2/models/WorkflowInstanceCreateResponseData.d.ts +36 -0
  268. package/dist/packages/datadog-api-client-v2/models/WorkflowInstanceCreateResponseData.js +35 -0
  269. package/dist/packages/datadog-api-client-v2/models/WorkflowInstanceCreateResponseData.js.map +1 -0
  270. package/dist/packages/datadog-api-client-v2/models/WorkflowInstanceListItem.d.ts +36 -0
  271. package/dist/packages/datadog-api-client-v2/models/WorkflowInstanceListItem.js +35 -0
  272. package/dist/packages/datadog-api-client-v2/models/WorkflowInstanceListItem.js.map +1 -0
  273. package/dist/packages/datadog-api-client-v2/models/WorkflowListInstancesResponse.d.ts +42 -0
  274. package/dist/packages/datadog-api-client-v2/models/WorkflowListInstancesResponse.js +34 -0
  275. package/dist/packages/datadog-api-client-v2/models/WorkflowListInstancesResponse.js.map +1 -0
  276. package/dist/packages/datadog-api-client-v2/models/WorkflowListInstancesResponseMeta.d.ts +37 -0
  277. package/dist/packages/datadog-api-client-v2/models/WorkflowListInstancesResponseMeta.js +30 -0
  278. package/dist/packages/datadog-api-client-v2/models/WorkflowListInstancesResponseMeta.js.map +1 -0
  279. package/dist/packages/datadog-api-client-v2/models/WorkflowListInstancesResponseMetaPage.d.ts +36 -0
  280. package/dist/packages/datadog-api-client-v2/models/WorkflowListInstancesResponseMetaPage.js +36 -0
  281. package/dist/packages/datadog-api-client-v2/models/WorkflowListInstancesResponseMetaPage.js.map +1 -0
  282. package/dist/packages/datadog-api-client-v2/models/WorklflowCancelInstanceResponse.d.ts +37 -0
  283. package/dist/packages/datadog-api-client-v2/models/WorklflowCancelInstanceResponse.js +30 -0
  284. package/dist/packages/datadog-api-client-v2/models/WorklflowCancelInstanceResponse.js.map +1 -0
  285. package/dist/packages/datadog-api-client-v2/models/WorklflowCancelInstanceResponseData.d.ts +36 -0
  286. package/dist/packages/datadog-api-client-v2/models/WorklflowCancelInstanceResponseData.js +35 -0
  287. package/dist/packages/datadog-api-client-v2/models/WorklflowCancelInstanceResponseData.js.map +1 -0
  288. package/dist/packages/datadog-api-client-v2/models/WorklflowGetInstanceResponse.d.ts +37 -0
  289. package/dist/packages/datadog-api-client-v2/models/WorklflowGetInstanceResponse.js +30 -0
  290. package/dist/packages/datadog-api-client-v2/models/WorklflowGetInstanceResponse.js.map +1 -0
  291. package/dist/packages/datadog-api-client-v2/models/WorklflowGetInstanceResponseData.d.ts +37 -0
  292. package/dist/packages/datadog-api-client-v2/models/WorklflowGetInstanceResponseData.js +30 -0
  293. package/dist/packages/datadog-api-client-v2/models/WorklflowGetInstanceResponseData.js.map +1 -0
  294. package/dist/packages/datadog-api-client-v2/models/WorklflowGetInstanceResponseDataAttributes.d.ts +36 -0
  295. package/dist/packages/datadog-api-client-v2/models/WorklflowGetInstanceResponseDataAttributes.js +35 -0
  296. package/dist/packages/datadog-api-client-v2/models/WorklflowGetInstanceResponseDataAttributes.js.map +1 -0
  297. package/dist/version.d.ts +1 -1
  298. package/dist/version.js +1 -1
  299. package/package.json +1 -1
@@ -11,17 +11,25 @@ import { AzureUCConfigPatchRequest } from "../models/AzureUCConfigPatchRequest";
11
11
  import { AzureUCConfigPostRequest } from "../models/AzureUCConfigPostRequest";
12
12
  import { AzureUCConfigsResponse } from "../models/AzureUCConfigsResponse";
13
13
  import { CloudCostActivityResponse } from "../models/CloudCostActivityResponse";
14
+ import { CustomCostsFileGetResponse } from "../models/CustomCostsFileGetResponse";
15
+ import { CustomCostsFileLineItem } from "../models/CustomCostsFileLineItem";
16
+ import { CustomCostsFileListResponse } from "../models/CustomCostsFileListResponse";
17
+ import { CustomCostsFileUploadResponse } from "../models/CustomCostsFileUploadResponse";
14
18
  export declare class CloudCostManagementApiRequestFactory extends BaseAPIRequestFactory {
15
19
  createCostAWSCURConfig(body: AwsCURConfigPostRequest, _options?: Configuration): Promise<RequestContext>;
16
20
  createCostAzureUCConfigs(body: AzureUCConfigPostRequest, _options?: Configuration): Promise<RequestContext>;
17
21
  deleteCostAWSCURConfig(cloudAccountId: string, _options?: Configuration): Promise<RequestContext>;
18
22
  deleteCostAzureUCConfig(cloudAccountId: string, _options?: Configuration): Promise<RequestContext>;
23
+ deleteCustomCostsFile(fileId: string, _options?: Configuration): Promise<RequestContext>;
19
24
  getCloudCostActivity(_options?: Configuration): Promise<RequestContext>;
25
+ getCustomCostsFile(fileId: string, _options?: Configuration): Promise<RequestContext>;
20
26
  listAWSRelatedAccounts(filterManagementAccountId: string, _options?: Configuration): Promise<RequestContext>;
21
27
  listCostAWSCURConfigs(_options?: Configuration): Promise<RequestContext>;
22
28
  listCostAzureUCConfigs(_options?: Configuration): Promise<RequestContext>;
29
+ listCustomCostsFiles(_options?: Configuration): Promise<RequestContext>;
23
30
  updateCostAWSCURConfig(cloudAccountId: string, body: AwsCURConfigPatchRequest, _options?: Configuration): Promise<RequestContext>;
24
31
  updateCostAzureUCConfigs(cloudAccountId: string, body: AzureUCConfigPatchRequest, _options?: Configuration): Promise<RequestContext>;
32
+ uploadCustomCostsFile(body: Array<CustomCostsFileLineItem>, _options?: Configuration): Promise<RequestContext>;
25
33
  }
26
34
  export declare class CloudCostManagementApiResponseProcessor {
27
35
  /**
@@ -56,6 +64,14 @@ export declare class CloudCostManagementApiResponseProcessor {
56
64
  * @throws ApiException if the response code was not in [200, 299]
57
65
  */
58
66
  deleteCostAzureUCConfig(response: ResponseContext): Promise<void>;
67
+ /**
68
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
69
+ * to the expected objects
70
+ *
71
+ * @params response Response returned by the server for a request to deleteCustomCostsFile
72
+ * @throws ApiException if the response code was not in [200, 299]
73
+ */
74
+ deleteCustomCostsFile(response: ResponseContext): Promise<void>;
59
75
  /**
60
76
  * Unwraps the actual response sent by the server from the response context and deserializes the response content
61
77
  * to the expected objects
@@ -64,6 +80,14 @@ export declare class CloudCostManagementApiResponseProcessor {
64
80
  * @throws ApiException if the response code was not in [200, 299]
65
81
  */
66
82
  getCloudCostActivity(response: ResponseContext): Promise<CloudCostActivityResponse>;
83
+ /**
84
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
85
+ * to the expected objects
86
+ *
87
+ * @params response Response returned by the server for a request to getCustomCostsFile
88
+ * @throws ApiException if the response code was not in [200, 299]
89
+ */
90
+ getCustomCostsFile(response: ResponseContext): Promise<CustomCostsFileGetResponse>;
67
91
  /**
68
92
  * Unwraps the actual response sent by the server from the response context and deserializes the response content
69
93
  * to the expected objects
@@ -88,6 +112,14 @@ export declare class CloudCostManagementApiResponseProcessor {
88
112
  * @throws ApiException if the response code was not in [200, 299]
89
113
  */
90
114
  listCostAzureUCConfigs(response: ResponseContext): Promise<AzureUCConfigsResponse>;
115
+ /**
116
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
117
+ * to the expected objects
118
+ *
119
+ * @params response Response returned by the server for a request to listCustomCostsFiles
120
+ * @throws ApiException if the response code was not in [200, 299]
121
+ */
122
+ listCustomCostsFiles(response: ResponseContext): Promise<CustomCostsFileListResponse>;
91
123
  /**
92
124
  * Unwraps the actual response sent by the server from the response context and deserializes the response content
93
125
  * to the expected objects
@@ -104,6 +136,14 @@ export declare class CloudCostManagementApiResponseProcessor {
104
136
  * @throws ApiException if the response code was not in [200, 299]
105
137
  */
106
138
  updateCostAzureUCConfigs(response: ResponseContext): Promise<AzureUCConfigPairsResponse>;
139
+ /**
140
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
141
+ * to the expected objects
142
+ *
143
+ * @params response Response returned by the server for a request to uploadCustomCostsFile
144
+ * @throws ApiException if the response code was not in [200, 299]
145
+ */
146
+ uploadCustomCostsFile(response: ResponseContext): Promise<CustomCostsFileUploadResponse>;
107
147
  }
108
148
  export interface CloudCostManagementApiCreateCostAWSCURConfigRequest {
109
149
  /**
@@ -131,6 +171,20 @@ export interface CloudCostManagementApiDeleteCostAzureUCConfigRequest {
131
171
  */
132
172
  cloudAccountId: string;
133
173
  }
174
+ export interface CloudCostManagementApiDeleteCustomCostsFileRequest {
175
+ /**
176
+ * File ID.
177
+ * @type string
178
+ */
179
+ fileId: string;
180
+ }
181
+ export interface CloudCostManagementApiGetCustomCostsFileRequest {
182
+ /**
183
+ * File ID.
184
+ * @type string
185
+ */
186
+ fileId: string;
187
+ }
134
188
  export interface CloudCostManagementApiListAWSRelatedAccountsRequest {
135
189
  /**
136
190
  * The ID of the management account to filter by.
@@ -160,6 +214,12 @@ export interface CloudCostManagementApiUpdateCostAzureUCConfigsRequest {
160
214
  */
161
215
  body: AzureUCConfigPatchRequest;
162
216
  }
217
+ export interface CloudCostManagementApiUploadCustomCostsFileRequest {
218
+ /**
219
+ * @type Array<CustomCostsFileLineItem>
220
+ */
221
+ body: Array<CustomCostsFileLineItem>;
222
+ }
163
223
  export declare class CloudCostManagementApi {
164
224
  private requestFactory;
165
225
  private responseProcessor;
@@ -185,11 +245,21 @@ export declare class CloudCostManagementApi {
185
245
  * @param param The request object
186
246
  */
187
247
  deleteCostAzureUCConfig(param: CloudCostManagementApiDeleteCostAzureUCConfigRequest, options?: Configuration): Promise<void>;
248
+ /**
249
+ * Delete the specified Custom Costs file.
250
+ * @param param The request object
251
+ */
252
+ deleteCustomCostsFile(param: CloudCostManagementApiDeleteCustomCostsFileRequest, options?: Configuration): Promise<void>;
188
253
  /**
189
254
  * Get the Cloud Cost Management activity.
190
255
  * @param param The request object
191
256
  */
192
257
  getCloudCostActivity(options?: Configuration): Promise<CloudCostActivityResponse>;
258
+ /**
259
+ * Fetch the specified Custom Costs file.
260
+ * @param param The request object
261
+ */
262
+ getCustomCostsFile(param: CloudCostManagementApiGetCustomCostsFileRequest, options?: Configuration): Promise<CustomCostsFileGetResponse>;
193
263
  /**
194
264
  * List the AWS accounts in an organization by calling 'organizations:ListAccounts' from the specified management account.
195
265
  * @param param The request object
@@ -205,6 +275,11 @@ export declare class CloudCostManagementApi {
205
275
  * @param param The request object
206
276
  */
207
277
  listCostAzureUCConfigs(options?: Configuration): Promise<AzureUCConfigsResponse>;
278
+ /**
279
+ * List the Custom Costs files.
280
+ * @param param The request object
281
+ */
282
+ listCustomCostsFiles(options?: Configuration): Promise<CustomCostsFileListResponse>;
208
283
  /**
209
284
  * Update the status of an AWS CUR config (active/archived).
210
285
  * @param param The request object
@@ -215,4 +290,9 @@ export declare class CloudCostManagementApi {
215
290
  * @param param The request object
216
291
  */
217
292
  updateCostAzureUCConfigs(param: CloudCostManagementApiUpdateCostAzureUCConfigsRequest, options?: Configuration): Promise<AzureUCConfigPairsResponse>;
293
+ /**
294
+ * Upload a Custom Costs file.
295
+ * @param param The request object
296
+ */
297
+ uploadCustomCostsFile(param: CloudCostManagementApiUploadCustomCostsFileRequest, options?: Configuration): Promise<CustomCostsFileUploadResponse>;
218
298
  }
@@ -127,6 +127,30 @@ class CloudCostManagementApiRequestFactory extends baseapi_1.BaseAPIRequestFacto
127
127
  return requestContext;
128
128
  });
129
129
  }
130
+ deleteCustomCostsFile(fileId, _options) {
131
+ return __awaiter(this, void 0, void 0, function* () {
132
+ const _config = _options || this.configuration;
133
+ // verify required parameter 'fileId' is not null or undefined
134
+ if (fileId === null || fileId === undefined) {
135
+ throw new baseapi_1.RequiredError("fileId", "deleteCustomCostsFile");
136
+ }
137
+ // Path Params
138
+ const localVarPath = "/api/v2/cost/custom_costs/{file_id}".replace("{file_id}", encodeURIComponent(String(fileId)));
139
+ // Make Request Context
140
+ const requestContext = _config
141
+ .getServer("v2.CloudCostManagementApi.deleteCustomCostsFile")
142
+ .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
143
+ requestContext.setHeaderParam("Accept", "*/*");
144
+ requestContext.setHttpConfig(_config.httpConfig);
145
+ // Apply auth methods
146
+ (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
147
+ "AuthZ",
148
+ "apiKeyAuth",
149
+ "appKeyAuth",
150
+ ]);
151
+ return requestContext;
152
+ });
153
+ }
130
154
  getCloudCostActivity(_options) {
131
155
  return __awaiter(this, void 0, void 0, function* () {
132
156
  const _config = _options || this.configuration;
@@ -147,6 +171,30 @@ class CloudCostManagementApiRequestFactory extends baseapi_1.BaseAPIRequestFacto
147
171
  return requestContext;
148
172
  });
149
173
  }
174
+ getCustomCostsFile(fileId, _options) {
175
+ return __awaiter(this, void 0, void 0, function* () {
176
+ const _config = _options || this.configuration;
177
+ // verify required parameter 'fileId' is not null or undefined
178
+ if (fileId === null || fileId === undefined) {
179
+ throw new baseapi_1.RequiredError("fileId", "getCustomCostsFile");
180
+ }
181
+ // Path Params
182
+ const localVarPath = "/api/v2/cost/custom_costs/{file_id}".replace("{file_id}", encodeURIComponent(String(fileId)));
183
+ // Make Request Context
184
+ const requestContext = _config
185
+ .getServer("v2.CloudCostManagementApi.getCustomCostsFile")
186
+ .makeRequestContext(localVarPath, http_1.HttpMethod.GET);
187
+ requestContext.setHeaderParam("Accept", "application/json");
188
+ requestContext.setHttpConfig(_config.httpConfig);
189
+ // Apply auth methods
190
+ (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
191
+ "AuthZ",
192
+ "apiKeyAuth",
193
+ "appKeyAuth",
194
+ ]);
195
+ return requestContext;
196
+ });
197
+ }
150
198
  listAWSRelatedAccounts(filterManagementAccountId, _options) {
151
199
  return __awaiter(this, void 0, void 0, function* () {
152
200
  const _config = _options || this.configuration;
@@ -216,6 +264,26 @@ class CloudCostManagementApiRequestFactory extends baseapi_1.BaseAPIRequestFacto
216
264
  return requestContext;
217
265
  });
218
266
  }
267
+ listCustomCostsFiles(_options) {
268
+ return __awaiter(this, void 0, void 0, function* () {
269
+ const _config = _options || this.configuration;
270
+ // Path Params
271
+ const localVarPath = "/api/v2/cost/custom_costs";
272
+ // Make Request Context
273
+ const requestContext = _config
274
+ .getServer("v2.CloudCostManagementApi.listCustomCostsFiles")
275
+ .makeRequestContext(localVarPath, http_1.HttpMethod.GET);
276
+ requestContext.setHeaderParam("Accept", "application/json");
277
+ requestContext.setHttpConfig(_config.httpConfig);
278
+ // Apply auth methods
279
+ (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
280
+ "AuthZ",
281
+ "apiKeyAuth",
282
+ "appKeyAuth",
283
+ ]);
284
+ return requestContext;
285
+ });
286
+ }
219
287
  updateCostAWSCURConfig(cloudAccountId, body, _options) {
220
288
  return __awaiter(this, void 0, void 0, function* () {
221
289
  const _config = _options || this.configuration;
@@ -286,6 +354,37 @@ class CloudCostManagementApiRequestFactory extends baseapi_1.BaseAPIRequestFacto
286
354
  return requestContext;
287
355
  });
288
356
  }
357
+ uploadCustomCostsFile(body, _options) {
358
+ return __awaiter(this, void 0, void 0, function* () {
359
+ const _config = _options || this.configuration;
360
+ // verify required parameter 'body' is not null or undefined
361
+ if (body === null || body === undefined) {
362
+ throw new baseapi_1.RequiredError("body", "uploadCustomCostsFile");
363
+ }
364
+ // Path Params
365
+ const localVarPath = "/api/v2/cost/custom_costs";
366
+ // Make Request Context
367
+ const requestContext = _config
368
+ .getServer("v2.CloudCostManagementApi.uploadCustomCostsFile")
369
+ .makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
370
+ requestContext.setHeaderParam("Accept", "application/json");
371
+ requestContext.setHttpConfig(_config.httpConfig);
372
+ // Body Params
373
+ const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
374
+ "application/json",
375
+ ]);
376
+ requestContext.setHeaderParam("Content-Type", contentType);
377
+ const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "Array<CustomCostsFileLineItem>", ""), contentType);
378
+ requestContext.setBody(serializedBody);
379
+ // Apply auth methods
380
+ (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
381
+ "AuthZ",
382
+ "apiKeyAuth",
383
+ "appKeyAuth",
384
+ ]);
385
+ return requestContext;
386
+ });
387
+ }
289
388
  }
290
389
  exports.CloudCostManagementApiRequestFactory = CloudCostManagementApiRequestFactory;
291
390
  class CloudCostManagementApiResponseProcessor {
@@ -435,6 +534,40 @@ class CloudCostManagementApiResponseProcessor {
435
534
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
436
535
  });
437
536
  }
537
+ /**
538
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
539
+ * to the expected objects
540
+ *
541
+ * @params response Response returned by the server for a request to deleteCustomCostsFile
542
+ * @throws ApiException if the response code was not in [200, 299]
543
+ */
544
+ deleteCustomCostsFile(response) {
545
+ return __awaiter(this, void 0, void 0, function* () {
546
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
547
+ if (response.httpStatusCode === 204) {
548
+ return;
549
+ }
550
+ if (response.httpStatusCode === 403 || response.httpStatusCode === 429) {
551
+ const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
552
+ let body;
553
+ try {
554
+ body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
555
+ }
556
+ catch (error) {
557
+ logger_1.logger.debug(`Got error deserializing error: ${error}`);
558
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
559
+ }
560
+ throw new exception_1.ApiException(response.httpStatusCode, body);
561
+ }
562
+ // Work around for missing responses in specification, e.g. for petstore.yaml
563
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
564
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", "");
565
+ return body;
566
+ }
567
+ const body = (yield response.body.text()) || "";
568
+ throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
569
+ });
570
+ }
438
571
  /**
439
572
  * Unwraps the actual response sent by the server from the response context and deserializes the response content
440
573
  * to the expected objects
@@ -470,6 +603,41 @@ class CloudCostManagementApiResponseProcessor {
470
603
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
471
604
  });
472
605
  }
606
+ /**
607
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
608
+ * to the expected objects
609
+ *
610
+ * @params response Response returned by the server for a request to getCustomCostsFile
611
+ * @throws ApiException if the response code was not in [200, 299]
612
+ */
613
+ getCustomCostsFile(response) {
614
+ return __awaiter(this, void 0, void 0, function* () {
615
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
616
+ if (response.httpStatusCode === 200) {
617
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CustomCostsFileGetResponse");
618
+ return body;
619
+ }
620
+ if (response.httpStatusCode === 403 || response.httpStatusCode === 429) {
621
+ const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
622
+ let body;
623
+ try {
624
+ body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
625
+ }
626
+ catch (error) {
627
+ logger_1.logger.debug(`Got error deserializing error: ${error}`);
628
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
629
+ }
630
+ throw new exception_1.ApiException(response.httpStatusCode, body);
631
+ }
632
+ // Work around for missing responses in specification, e.g. for petstore.yaml
633
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
634
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CustomCostsFileGetResponse", "");
635
+ return body;
636
+ }
637
+ const body = (yield response.body.text()) || "";
638
+ throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
639
+ });
640
+ }
473
641
  /**
474
642
  * Unwraps the actual response sent by the server from the response context and deserializes the response content
475
643
  * to the expected objects
@@ -577,6 +745,41 @@ class CloudCostManagementApiResponseProcessor {
577
745
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
578
746
  });
579
747
  }
748
+ /**
749
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
750
+ * to the expected objects
751
+ *
752
+ * @params response Response returned by the server for a request to listCustomCostsFiles
753
+ * @throws ApiException if the response code was not in [200, 299]
754
+ */
755
+ listCustomCostsFiles(response) {
756
+ return __awaiter(this, void 0, void 0, function* () {
757
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
758
+ if (response.httpStatusCode === 200) {
759
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CustomCostsFileListResponse");
760
+ return body;
761
+ }
762
+ if (response.httpStatusCode === 403 || response.httpStatusCode === 429) {
763
+ const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
764
+ let body;
765
+ try {
766
+ body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
767
+ }
768
+ catch (error) {
769
+ logger_1.logger.debug(`Got error deserializing error: ${error}`);
770
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
771
+ }
772
+ throw new exception_1.ApiException(response.httpStatusCode, body);
773
+ }
774
+ // Work around for missing responses in specification, e.g. for petstore.yaml
775
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
776
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CustomCostsFileListResponse", "");
777
+ return body;
778
+ }
779
+ const body = (yield response.body.text()) || "";
780
+ throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
781
+ });
782
+ }
580
783
  /**
581
784
  * Unwraps the actual response sent by the server from the response context and deserializes the response content
582
785
  * to the expected objects
@@ -649,6 +852,41 @@ class CloudCostManagementApiResponseProcessor {
649
852
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
650
853
  });
651
854
  }
855
+ /**
856
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
857
+ * to the expected objects
858
+ *
859
+ * @params response Response returned by the server for a request to uploadCustomCostsFile
860
+ * @throws ApiException if the response code was not in [200, 299]
861
+ */
862
+ uploadCustomCostsFile(response) {
863
+ return __awaiter(this, void 0, void 0, function* () {
864
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
865
+ if (response.httpStatusCode === 202) {
866
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CustomCostsFileUploadResponse");
867
+ return body;
868
+ }
869
+ if (response.httpStatusCode === 403 || response.httpStatusCode === 429) {
870
+ const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
871
+ let body;
872
+ try {
873
+ body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
874
+ }
875
+ catch (error) {
876
+ logger_1.logger.debug(`Got error deserializing error: ${error}`);
877
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
878
+ }
879
+ throw new exception_1.ApiException(response.httpStatusCode, body);
880
+ }
881
+ // Work around for missing responses in specification, e.g. for petstore.yaml
882
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
883
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "CustomCostsFileUploadResponse", "");
884
+ return body;
885
+ }
886
+ const body = (yield response.body.text()) || "";
887
+ throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
888
+ });
889
+ }
652
890
  }
653
891
  exports.CloudCostManagementApiResponseProcessor = CloudCostManagementApiResponseProcessor;
654
892
  class CloudCostManagementApi {
@@ -715,6 +953,20 @@ class CloudCostManagementApi {
715
953
  });
716
954
  });
717
955
  }
956
+ /**
957
+ * Delete the specified Custom Costs file.
958
+ * @param param The request object
959
+ */
960
+ deleteCustomCostsFile(param, options) {
961
+ const requestContextPromise = this.requestFactory.deleteCustomCostsFile(param.fileId, options);
962
+ return requestContextPromise.then((requestContext) => {
963
+ return this.configuration.httpApi
964
+ .send(requestContext)
965
+ .then((responseContext) => {
966
+ return this.responseProcessor.deleteCustomCostsFile(responseContext);
967
+ });
968
+ });
969
+ }
718
970
  /**
719
971
  * Get the Cloud Cost Management activity.
720
972
  * @param param The request object
@@ -729,6 +981,20 @@ class CloudCostManagementApi {
729
981
  });
730
982
  });
731
983
  }
984
+ /**
985
+ * Fetch the specified Custom Costs file.
986
+ * @param param The request object
987
+ */
988
+ getCustomCostsFile(param, options) {
989
+ const requestContextPromise = this.requestFactory.getCustomCostsFile(param.fileId, options);
990
+ return requestContextPromise.then((requestContext) => {
991
+ return this.configuration.httpApi
992
+ .send(requestContext)
993
+ .then((responseContext) => {
994
+ return this.responseProcessor.getCustomCostsFile(responseContext);
995
+ });
996
+ });
997
+ }
732
998
  /**
733
999
  * List the AWS accounts in an organization by calling 'organizations:ListAccounts' from the specified management account.
734
1000
  * @param param The request object
@@ -771,6 +1037,20 @@ class CloudCostManagementApi {
771
1037
  });
772
1038
  });
773
1039
  }
1040
+ /**
1041
+ * List the Custom Costs files.
1042
+ * @param param The request object
1043
+ */
1044
+ listCustomCostsFiles(options) {
1045
+ const requestContextPromise = this.requestFactory.listCustomCostsFiles(options);
1046
+ return requestContextPromise.then((requestContext) => {
1047
+ return this.configuration.httpApi
1048
+ .send(requestContext)
1049
+ .then((responseContext) => {
1050
+ return this.responseProcessor.listCustomCostsFiles(responseContext);
1051
+ });
1052
+ });
1053
+ }
774
1054
  /**
775
1055
  * Update the status of an AWS CUR config (active/archived).
776
1056
  * @param param The request object
@@ -799,6 +1079,20 @@ class CloudCostManagementApi {
799
1079
  });
800
1080
  });
801
1081
  }
1082
+ /**
1083
+ * Upload a Custom Costs file.
1084
+ * @param param The request object
1085
+ */
1086
+ uploadCustomCostsFile(param, options) {
1087
+ const requestContextPromise = this.requestFactory.uploadCustomCostsFile(param.body, options);
1088
+ return requestContextPromise.then((requestContext) => {
1089
+ return this.configuration.httpApi
1090
+ .send(requestContext)
1091
+ .then((responseContext) => {
1092
+ return this.responseProcessor.uploadCustomCostsFile(responseContext);
1093
+ });
1094
+ });
1095
+ }
802
1096
  }
803
1097
  exports.CloudCostManagementApi = CloudCostManagementApi;
804
1098
  //# sourceMappingURL=CloudCostManagementApi.js.map