@datadog/datadog-api-client 1.38.0 → 1.40.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 (368) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/dist/packages/datadog-api-client-common/configuration.js +8 -5
  3. package/dist/packages/datadog-api-client-common/configuration.js.map +1 -1
  4. package/dist/packages/datadog-api-client-common/servers.js +14 -0
  5. package/dist/packages/datadog-api-client-common/servers.js.map +1 -1
  6. package/dist/packages/datadog-api-client-v1/apis/HostsApi.d.ts +1 -0
  7. package/dist/packages/datadog-api-client-v1/apis/HostsApi.js +1 -0
  8. package/dist/packages/datadog-api-client-v1/apis/HostsApi.js.map +1 -1
  9. package/dist/packages/datadog-api-client-v1/apis/SyntheticsApi.d.ts +46 -0
  10. package/dist/packages/datadog-api-client-v1/apis/SyntheticsApi.js +90 -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 +6 -1
  13. package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.js.map +1 -1
  14. package/dist/packages/datadog-api-client-v1/index.d.ts +11 -1
  15. package/dist/packages/datadog-api-client-v1/index.js +19 -11
  16. package/dist/packages/datadog-api-client-v1/index.js.map +1 -1
  17. package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariable.d.ts +4 -0
  18. package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariable.js +4 -0
  19. package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariable.js.map +1 -1
  20. package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionBody.d.ts +1 -0
  21. package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionBody.js.map +1 -1
  22. package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.d.ts +10 -2
  23. package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.js +10 -3
  24. package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.js.map +1 -1
  25. package/dist/packages/datadog-api-client-v1/models/LogsArrayProcessor.d.ts +54 -0
  26. package/dist/packages/datadog-api-client-v1/models/LogsArrayProcessor.js +48 -0
  27. package/dist/packages/datadog-api-client-v1/models/LogsArrayProcessor.js.map +1 -0
  28. package/dist/packages/datadog-api-client-v1/models/LogsArrayProcessorOperation.d.ts +13 -0
  29. package/dist/packages/datadog-api-client-v1/models/LogsArrayProcessorOperation.js +3 -0
  30. package/dist/packages/datadog-api-client-v1/models/LogsArrayProcessorOperation.js.map +1 -0
  31. package/dist/packages/datadog-api-client-v1/models/LogsArrayProcessorOperationAppend.d.ts +49 -0
  32. package/dist/packages/datadog-api-client-v1/models/LogsArrayProcessorOperationAppend.js +45 -0
  33. package/dist/packages/datadog-api-client-v1/models/LogsArrayProcessorOperationAppend.js.map +1 -0
  34. package/dist/packages/datadog-api-client-v1/models/LogsArrayProcessorOperationAppendType.d.ts +11 -0
  35. package/dist/packages/datadog-api-client-v1/models/LogsArrayProcessorOperationAppendType.js +10 -0
  36. package/dist/packages/datadog-api-client-v1/models/LogsArrayProcessorOperationAppendType.js.map +1 -0
  37. package/dist/packages/datadog-api-client-v1/models/LogsArrayProcessorOperationLength.d.ts +45 -0
  38. package/dist/packages/datadog-api-client-v1/models/LogsArrayProcessorOperationLength.js +41 -0
  39. package/dist/packages/datadog-api-client-v1/models/LogsArrayProcessorOperationLength.js.map +1 -0
  40. package/dist/packages/datadog-api-client-v1/models/LogsArrayProcessorOperationLengthType.d.ts +11 -0
  41. package/dist/packages/datadog-api-client-v1/models/LogsArrayProcessorOperationLengthType.js +10 -0
  42. package/dist/packages/datadog-api-client-v1/models/LogsArrayProcessorOperationLengthType.js.map +1 -0
  43. package/dist/packages/datadog-api-client-v1/models/LogsArrayProcessorOperationSelect.d.ts +53 -0
  44. package/dist/packages/datadog-api-client-v1/models/LogsArrayProcessorOperationSelect.js +51 -0
  45. package/dist/packages/datadog-api-client-v1/models/LogsArrayProcessorOperationSelect.js.map +1 -0
  46. package/dist/packages/datadog-api-client-v1/models/LogsArrayProcessorOperationSelectType.d.ts +11 -0
  47. package/dist/packages/datadog-api-client-v1/models/LogsArrayProcessorOperationSelectType.js +10 -0
  48. package/dist/packages/datadog-api-client-v1/models/LogsArrayProcessorOperationSelectType.js.map +1 -0
  49. package/dist/packages/datadog-api-client-v1/models/LogsArrayProcessorType.d.ts +11 -0
  50. package/dist/packages/datadog-api-client-v1/models/LogsArrayProcessorType.js +10 -0
  51. package/dist/packages/datadog-api-client-v1/models/LogsArrayProcessorType.js.map +1 -0
  52. package/dist/packages/datadog-api-client-v1/models/LogsProcessor.d.ts +2 -1
  53. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionBody.d.ts +1 -0
  54. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionBody.js.map +1 -1
  55. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.d.ts +15 -1
  56. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.js +17 -2
  57. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.js.map +1 -1
  58. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.d.ts +57 -0
  59. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.js +71 -0
  60. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.js.map +1 -1
  61. package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js +41 -0
  62. package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js.map +1 -1
  63. package/dist/packages/datadog-api-client-v1/models/SelectableTemplateVariableItems.d.ts +4 -0
  64. package/dist/packages/datadog-api-client-v1/models/SelectableTemplateVariableItems.js +4 -0
  65. package/dist/packages/datadog-api-client-v1/models/SelectableTemplateVariableItems.js.map +1 -1
  66. package/dist/packages/datadog-api-client-v1/models/SyntheticsMobileTest.d.ts +1 -1
  67. package/dist/packages/datadog-api-client-v1/models/SyntheticsMobileTest.js +1 -0
  68. package/dist/packages/datadog-api-client-v1/models/SyntheticsMobileTest.js.map +1 -1
  69. package/dist/packages/datadog-api-client-v1/models/SyntheticsStepType.d.ts +2 -1
  70. package/dist/packages/datadog-api-client-v1/models/SyntheticsStepType.js +2 -1
  71. package/dist/packages/datadog-api-client-v1/models/SyntheticsStepType.js.map +1 -1
  72. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestRequest.d.ts +2 -1
  73. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestRequest.js +1 -1
  74. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestRequest.js.map +1 -1
  75. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestRequestDNSServerPort.d.ts +10 -0
  76. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestRequestDNSServerPort.js +8 -0
  77. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestRequestDNSServerPort.js.map +1 -0
  78. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.d.ts +32 -0
  79. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.js +40 -0
  80. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.js.map +1 -1
  81. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.d.ts +32 -0
  82. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.js +40 -0
  83. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.js.map +1 -1
  84. package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.d.ts +32 -0
  85. package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.js +40 -0
  86. package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.js.map +1 -1
  87. package/dist/packages/datadog-api-client-v2/apis/AWSIntegrationApi.d.ts +15 -0
  88. package/dist/packages/datadog-api-client-v2/apis/AWSIntegrationApi.js +68 -0
  89. package/dist/packages/datadog-api-client-v2/apis/AWSIntegrationApi.js.map +1 -1
  90. package/dist/packages/datadog-api-client-v2/apis/ActionConnectionApi.d.ts +96 -4
  91. package/dist/packages/datadog-api-client-v2/apis/ActionConnectionApi.js +304 -4
  92. package/dist/packages/datadog-api-client-v2/apis/ActionConnectionApi.js.map +1 -1
  93. package/dist/packages/datadog-api-client-v2/apis/AppBuilderApi.d.ts +8 -8
  94. package/dist/packages/datadog-api-client-v2/apis/AppBuilderApi.js +8 -8
  95. package/dist/packages/datadog-api-client-v2/apis/CloudCostManagementApi.d.ts +84 -0
  96. package/dist/packages/datadog-api-client-v2/apis/CloudCostManagementApi.js +312 -0
  97. package/dist/packages/datadog-api-client-v2/apis/CloudCostManagementApi.js.map +1 -1
  98. package/dist/packages/datadog-api-client-v2/apis/DatasetsApi.d.ts +93 -0
  99. package/dist/packages/datadog-api-client-v2/apis/DatasetsApi.js +338 -0
  100. package/dist/packages/datadog-api-client-v2/apis/DatasetsApi.js.map +1 -0
  101. package/dist/packages/datadog-api-client-v2/apis/EventsApi.d.ts +10 -4
  102. package/dist/packages/datadog-api-client-v2/apis/EventsApi.js +10 -4
  103. package/dist/packages/datadog-api-client-v2/apis/EventsApi.js.map +1 -1
  104. package/dist/packages/datadog-api-client-v2/apis/MonitorsApi.d.ts +156 -0
  105. package/dist/packages/datadog-api-client-v2/apis/MonitorsApi.js +576 -20
  106. package/dist/packages/datadog-api-client-v2/apis/MonitorsApi.js.map +1 -1
  107. package/dist/packages/datadog-api-client-v2/apis/RestrictionPoliciesApi.d.ts +7 -3
  108. package/dist/packages/datadog-api-client-v2/apis/RestrictionPoliciesApi.js +4 -0
  109. package/dist/packages/datadog-api-client-v2/apis/RestrictionPoliciesApi.js.map +1 -1
  110. package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.d.ts +87 -2
  111. package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.js +137 -4
  112. package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.js.map +1 -1
  113. package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.d.ts +4 -4
  114. package/dist/packages/datadog-api-client-v2/apis/WorkflowAutomationApi.d.ts +8 -8
  115. package/dist/packages/datadog-api-client-v2/apis/WorkflowAutomationApi.js +8 -8
  116. package/dist/packages/datadog-api-client-v2/index.d.ts +64 -4
  117. package/dist/packages/datadog-api-client-v2/index.js +139 -40
  118. package/dist/packages/datadog-api-client-v2/index.js.map +1 -1
  119. package/dist/packages/datadog-api-client-v2/models/AWSIntegrationIamPermissionsResponse.d.ts +37 -0
  120. package/dist/packages/datadog-api-client-v2/models/AWSIntegrationIamPermissionsResponse.js +31 -0
  121. package/dist/packages/datadog-api-client-v2/models/AWSIntegrationIamPermissionsResponse.js.map +1 -0
  122. package/dist/packages/datadog-api-client-v2/models/AWSIntegrationIamPermissionsResponseAttributes.d.ts +36 -0
  123. package/dist/packages/datadog-api-client-v2/models/AWSIntegrationIamPermissionsResponseAttributes.js +36 -0
  124. package/dist/packages/datadog-api-client-v2/models/AWSIntegrationIamPermissionsResponseAttributes.js.map +1 -0
  125. package/dist/packages/datadog-api-client-v2/models/AWSIntegrationIamPermissionsResponseData.d.ts +46 -0
  126. package/dist/packages/datadog-api-client-v2/models/AWSIntegrationIamPermissionsResponseData.js +38 -0
  127. package/dist/packages/datadog-api-client-v2/models/AWSIntegrationIamPermissionsResponseData.js.map +1 -0
  128. package/dist/packages/datadog-api-client-v2/models/AWSIntegrationIamPermissionsResponseDataType.d.ts +11 -0
  129. package/dist/packages/datadog-api-client-v2/models/AWSIntegrationIamPermissionsResponseDataType.js +10 -0
  130. package/dist/packages/datadog-api-client-v2/models/AWSIntegrationIamPermissionsResponseDataType.js.map +1 -0
  131. package/dist/packages/datadog-api-client-v2/models/AlertEventCustomAttributes.d.ts +45 -0
  132. package/dist/packages/datadog-api-client-v2/models/AlertEventCustomAttributes.js +39 -0
  133. package/dist/packages/datadog-api-client-v2/models/AlertEventCustomAttributes.js.map +1 -0
  134. package/dist/packages/datadog-api-client-v2/models/AlertEventCustomAttributesLinksItems.d.ts +37 -0
  135. package/dist/packages/datadog-api-client-v2/models/AlertEventCustomAttributesLinksItems.js +36 -0
  136. package/dist/packages/datadog-api-client-v2/models/AlertEventCustomAttributesLinksItems.js.map +1 -0
  137. package/dist/packages/datadog-api-client-v2/models/AlertEventCustomAttributesLinksItemsCategory.d.ts +13 -0
  138. package/dist/packages/datadog-api-client-v2/models/AlertEventCustomAttributesLinksItemsCategory.js +12 -0
  139. package/dist/packages/datadog-api-client-v2/models/AlertEventCustomAttributesLinksItemsCategory.js.map +1 -0
  140. package/dist/packages/datadog-api-client-v2/models/AlertEventCustomAttributesPriority.d.ts +15 -0
  141. package/dist/packages/datadog-api-client-v2/models/AlertEventCustomAttributesPriority.js +14 -0
  142. package/dist/packages/datadog-api-client-v2/models/AlertEventCustomAttributesPriority.js.map +1 -0
  143. package/dist/packages/datadog-api-client-v2/models/AlertEventCustomAttributesStatus.d.ts +13 -0
  144. package/dist/packages/datadog-api-client-v2/models/AlertEventCustomAttributesStatus.js +12 -0
  145. package/dist/packages/datadog-api-client-v2/models/AlertEventCustomAttributesStatus.js.map +1 -0
  146. package/dist/packages/datadog-api-client-v2/models/AppKeyRegistrationData.d.ts +41 -0
  147. package/dist/packages/datadog-api-client-v2/models/AppKeyRegistrationData.js +36 -0
  148. package/dist/packages/datadog-api-client-v2/models/AppKeyRegistrationData.js.map +1 -0
  149. package/dist/packages/datadog-api-client-v2/models/AppKeyRegistrationDataType.d.ts +11 -0
  150. package/dist/packages/datadog-api-client-v2/models/AppKeyRegistrationDataType.js +10 -0
  151. package/dist/packages/datadog-api-client-v2/models/AppKeyRegistrationDataType.js.map +1 -0
  152. package/dist/packages/datadog-api-client-v2/models/AssetAttributes.d.ts +4 -0
  153. package/dist/packages/datadog-api-client-v2/models/AssetAttributes.js +4 -0
  154. package/dist/packages/datadog-api-client-v2/models/AssetAttributes.js.map +1 -1
  155. package/dist/packages/datadog-api-client-v2/models/ChangeEventCustomAttributes.d.ts +7 -15
  156. package/dist/packages/datadog-api-client-v2/models/ChangeEventCustomAttributes.js +1 -5
  157. package/dist/packages/datadog-api-client-v2/models/ChangeEventCustomAttributes.js.map +1 -1
  158. package/dist/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesAuthor.d.ts +2 -10
  159. package/dist/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesAuthor.js +1 -5
  160. package/dist/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesAuthor.js.map +1 -1
  161. package/dist/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesChangedResource.d.ts +3 -11
  162. package/dist/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesChangedResource.js +1 -5
  163. package/dist/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesChangedResource.js.map +1 -1
  164. package/dist/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesChangedResourceType.d.ts +1 -1
  165. package/dist/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesImpactedResourcesItems.d.ts +3 -11
  166. package/dist/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesImpactedResourcesItems.js +1 -5
  167. package/dist/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesImpactedResourcesItems.js.map +1 -1
  168. package/dist/packages/datadog-api-client-v2/models/ChangeEventCustomAttributesImpactedResourcesItemsType.d.ts +1 -1
  169. package/dist/packages/datadog-api-client-v2/models/Dataset.d.ts +45 -0
  170. package/dist/packages/datadog-api-client-v2/models/Dataset.js +40 -0
  171. package/dist/packages/datadog-api-client-v2/models/Dataset.js.map +1 -0
  172. package/dist/packages/datadog-api-client-v2/models/DatasetAttributes.d.ts +53 -0
  173. package/dist/packages/datadog-api-client-v2/models/DatasetAttributes.js +51 -0
  174. package/dist/packages/datadog-api-client-v2/models/DatasetAttributes.js.map +1 -0
  175. package/dist/packages/datadog-api-client-v2/models/DatasetCreateRequest.d.ts +37 -0
  176. package/dist/packages/datadog-api-client-v2/models/DatasetCreateRequest.js +31 -0
  177. package/dist/packages/datadog-api-client-v2/models/DatasetCreateRequest.js.map +1 -0
  178. package/dist/packages/datadog-api-client-v2/models/DatasetResponseMulti.d.ts +37 -0
  179. package/dist/packages/datadog-api-client-v2/models/DatasetResponseMulti.js +31 -0
  180. package/dist/packages/datadog-api-client-v2/models/DatasetResponseMulti.js.map +1 -0
  181. package/dist/packages/datadog-api-client-v2/models/DatasetResponseSingle.d.ts +37 -0
  182. package/dist/packages/datadog-api-client-v2/models/DatasetResponseSingle.js +31 -0
  183. package/dist/packages/datadog-api-client-v2/models/DatasetResponseSingle.js.map +1 -0
  184. package/dist/packages/datadog-api-client-v2/models/EventCategory.d.ts +3 -2
  185. package/dist/packages/datadog-api-client-v2/models/EventCategory.js +2 -1
  186. package/dist/packages/datadog-api-client-v2/models/EventCategory.js.map +1 -1
  187. package/dist/packages/datadog-api-client-v2/models/EventCreateRequest.d.ts +3 -3
  188. package/dist/packages/datadog-api-client-v2/models/EventCreateRequest.js +3 -1
  189. package/dist/packages/datadog-api-client-v2/models/EventCreateRequest.js.map +1 -1
  190. package/dist/packages/datadog-api-client-v2/models/EventCreateRequestPayload.d.ts +2 -2
  191. package/dist/packages/datadog-api-client-v2/models/EventCreateRequestPayload.js +1 -0
  192. package/dist/packages/datadog-api-client-v2/models/EventCreateRequestPayload.js.map +1 -1
  193. package/dist/packages/datadog-api-client-v2/models/EventCreateResponse.d.ts +3 -3
  194. package/dist/packages/datadog-api-client-v2/models/EventCreateResponse.js +1 -1
  195. package/dist/packages/datadog-api-client-v2/models/EventCreateResponseAttributes.d.ts +2 -2
  196. package/dist/packages/datadog-api-client-v2/models/EventCreateResponseAttributes.js +1 -1
  197. package/dist/packages/datadog-api-client-v2/models/EventCreateResponseAttributesAttributes.d.ts +1 -1
  198. package/dist/packages/datadog-api-client-v2/models/EventCreateResponseAttributesAttributes.js +1 -1
  199. package/dist/packages/datadog-api-client-v2/models/EventCreateResponseAttributesAttributesEvt.d.ts +5 -1
  200. package/dist/packages/datadog-api-client-v2/models/EventCreateResponseAttributesAttributesEvt.js +4 -0
  201. package/dist/packages/datadog-api-client-v2/models/EventCreateResponseAttributesAttributesEvt.js.map +1 -1
  202. package/dist/packages/datadog-api-client-v2/models/EventCreateResponsePayload.d.ts +7 -2
  203. package/dist/packages/datadog-api-client-v2/models/EventCreateResponsePayload.js +5 -1
  204. package/dist/packages/datadog-api-client-v2/models/EventCreateResponsePayload.js.map +1 -1
  205. package/dist/packages/datadog-api-client-v2/models/EventCreateResponsePayloadLinks.d.ts +36 -0
  206. package/dist/packages/datadog-api-client-v2/models/EventCreateResponsePayloadLinks.js +35 -0
  207. package/dist/packages/datadog-api-client-v2/models/EventCreateResponsePayloadLinks.js.map +1 -0
  208. package/dist/packages/datadog-api-client-v2/models/EventPayload.d.ts +11 -14
  209. package/dist/packages/datadog-api-client-v2/models/EventPayload.js +4 -4
  210. package/dist/packages/datadog-api-client-v2/models/EventPayload.js.map +1 -1
  211. package/dist/packages/datadog-api-client-v2/models/EventPayloadAttributes.d.ts +3 -2
  212. package/dist/packages/datadog-api-client-v2/models/EventPayloadIntegrationId.d.ts +11 -0
  213. package/dist/packages/datadog-api-client-v2/models/EventPayloadIntegrationId.js +10 -0
  214. package/dist/packages/datadog-api-client-v2/models/EventPayloadIntegrationId.js.map +1 -0
  215. package/dist/packages/datadog-api-client-v2/models/FiltersPerProduct.d.ts +44 -0
  216. package/dist/packages/datadog-api-client-v2/models/FiltersPerProduct.js +41 -0
  217. package/dist/packages/datadog-api-client-v2/models/FiltersPerProduct.js.map +1 -0
  218. package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfig.d.ts +46 -0
  219. package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfig.js +40 -0
  220. package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfig.js.map +1 -0
  221. package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigAttributes.d.ts +84 -0
  222. package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigAttributes.js +91 -0
  223. package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigAttributes.js.map +1 -0
  224. package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPatchData.d.ts +42 -0
  225. package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPatchData.js +36 -0
  226. package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPatchData.js.map +1 -0
  227. package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPatchRequest.d.ts +37 -0
  228. package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPatchRequest.js +31 -0
  229. package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPatchRequest.js.map +1 -0
  230. package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPatchRequestAttributes.d.ts +36 -0
  231. package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPatchRequestAttributes.js +36 -0
  232. package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPatchRequestAttributes.js.map +1 -0
  233. package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPatchRequestType.d.ts +11 -0
  234. package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPatchRequestType.js +10 -0
  235. package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPatchRequestType.js.map +1 -0
  236. package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPostData.d.ts +42 -0
  237. package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPostData.js +36 -0
  238. package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPostData.js.map +1 -0
  239. package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPostRequest.d.ts +37 -0
  240. package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPostRequest.js +31 -0
  241. package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPostRequest.js.map +1 -0
  242. package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPostRequestAttributes.d.ts +56 -0
  243. package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPostRequestAttributes.js +60 -0
  244. package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPostRequestAttributes.js.map +1 -0
  245. package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPostRequestType.d.ts +11 -0
  246. package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPostRequestType.js +10 -0
  247. package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigPostRequestType.js.map +1 -0
  248. package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigResponse.d.ts +37 -0
  249. package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigResponse.js +30 -0
  250. package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigResponse.js.map +1 -0
  251. package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigType.d.ts +11 -0
  252. package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigType.js +10 -0
  253. package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigType.js.map +1 -0
  254. package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigsResponse.d.ts +37 -0
  255. package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigsResponse.js +30 -0
  256. package/dist/packages/datadog-api-client-v2/models/GCPUsageCostConfigsResponse.js.map +1 -0
  257. package/dist/packages/datadog-api-client-v2/models/GetAppKeyRegistrationResponse.d.ts +37 -0
  258. package/dist/packages/datadog-api-client-v2/models/GetAppKeyRegistrationResponse.js +30 -0
  259. package/dist/packages/datadog-api-client-v2/models/GetAppKeyRegistrationResponse.js.map +1 -0
  260. package/dist/packages/datadog-api-client-v2/models/IncidentCreateAttributes.d.ts +4 -0
  261. package/dist/packages/datadog-api-client-v2/models/IncidentCreateAttributes.js +4 -0
  262. package/dist/packages/datadog-api-client-v2/models/IncidentCreateAttributes.js.map +1 -1
  263. package/dist/packages/datadog-api-client-v2/models/IncidentResponseAttributes.d.ts +4 -0
  264. package/dist/packages/datadog-api-client-v2/models/IncidentResponseAttributes.js +4 -0
  265. package/dist/packages/datadog-api-client-v2/models/IncidentResponseAttributes.js.map +1 -1
  266. package/dist/packages/datadog-api-client-v2/models/JobDefinitionFromRule.d.ts +0 -4
  267. package/dist/packages/datadog-api-client-v2/models/JobDefinitionFromRule.js +0 -6
  268. package/dist/packages/datadog-api-client-v2/models/JobDefinitionFromRule.js.map +1 -1
  269. package/dist/packages/datadog-api-client-v2/models/LayerAttributes.d.ts +1 -1
  270. package/dist/packages/datadog-api-client-v2/models/LayerAttributesInterval.d.ts +1 -1
  271. package/dist/packages/datadog-api-client-v2/models/LayerAttributesInterval.js +1 -1
  272. package/dist/packages/datadog-api-client-v2/models/ListAppKeyRegistrationsResponse.d.ts +42 -0
  273. package/dist/packages/datadog-api-client-v2/models/ListAppKeyRegistrationsResponse.js +34 -0
  274. package/dist/packages/datadog-api-client-v2/models/ListAppKeyRegistrationsResponse.js.map +1 -0
  275. package/dist/packages/datadog-api-client-v2/models/ListAppKeyRegistrationsResponseMeta.d.ts +40 -0
  276. package/dist/packages/datadog-api-client-v2/models/ListAppKeyRegistrationsResponseMeta.js +41 -0
  277. package/dist/packages/datadog-api-client-v2/models/ListAppKeyRegistrationsResponseMeta.js.map +1 -0
  278. package/dist/packages/datadog-api-client-v2/models/ListAssetsSBOMsResponse.d.ts +47 -0
  279. package/dist/packages/datadog-api-client-v2/models/ListAssetsSBOMsResponse.js +39 -0
  280. package/dist/packages/datadog-api-client-v2/models/ListAssetsSBOMsResponse.js.map +1 -0
  281. package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplate.d.ts +72 -0
  282. package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplate.js +65 -0
  283. package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplate.js.map +1 -0
  284. package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateCreateData.d.ts +42 -0
  285. package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateCreateData.js +36 -0
  286. package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateCreateData.js.map +1 -0
  287. package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateCreateRequest.d.ts +37 -0
  288. package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateCreateRequest.js +31 -0
  289. package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateCreateRequest.js.map +1 -0
  290. package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateCreateResponse.d.ts +37 -0
  291. package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateCreateResponse.js +30 -0
  292. package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateCreateResponse.js.map +1 -0
  293. package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateListResponse.d.ts +37 -0
  294. package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateListResponse.js +30 -0
  295. package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateListResponse.js.map +1 -0
  296. package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateRequestAttributes.d.ts +47 -0
  297. package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateRequestAttributes.js +45 -0
  298. package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateRequestAttributes.js.map +1 -0
  299. package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateResourceType.d.ts +11 -0
  300. package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateResourceType.js +10 -0
  301. package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateResourceType.js.map +1 -0
  302. package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateResponse.d.ts +37 -0
  303. package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateResponse.js +30 -0
  304. package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateResponse.js.map +1 -0
  305. package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateResponseAttributes.d.ts +67 -0
  306. package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateResponseAttributes.js +61 -0
  307. package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateResponseAttributes.js.map +1 -0
  308. package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateResponseData.d.ts +46 -0
  309. package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateResponseData.js +38 -0
  310. package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateResponseData.js.map +1 -0
  311. package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateResponseDataWithVersions.d.ts +46 -0
  312. package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateResponseDataWithVersions.js +38 -0
  313. package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateResponseDataWithVersions.js.map +1 -0
  314. package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateTemplateVariablesItems.d.ts +40 -0
  315. package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateTemplateVariablesItems.js +44 -0
  316. package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateTemplateVariablesItems.js.map +1 -0
  317. package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateUpdateData.d.ts +46 -0
  318. package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateUpdateData.js +41 -0
  319. package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateUpdateData.js.map +1 -0
  320. package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateUpdateRequest.d.ts +37 -0
  321. package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateUpdateRequest.js +31 -0
  322. package/dist/packages/datadog-api-client-v2/models/MonitorUserTemplateUpdateRequest.js.map +1 -0
  323. package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js +125 -2
  324. package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js.map +1 -1
  325. package/dist/packages/datadog-api-client-v2/models/RegisterAppKeyResponse.d.ts +37 -0
  326. package/dist/packages/datadog-api-client-v2/models/RegisterAppKeyResponse.js +30 -0
  327. package/dist/packages/datadog-api-client-v2/models/RegisterAppKeyResponse.js.map +1 -0
  328. package/dist/packages/datadog-api-client-v2/models/SBOMAttributes.d.ts +5 -0
  329. package/dist/packages/datadog-api-client-v2/models/SBOMAttributes.js +5 -0
  330. package/dist/packages/datadog-api-client-v2/models/SBOMAttributes.js.map +1 -1
  331. package/dist/packages/datadog-api-client-v2/models/SBOMComponent.d.ts +15 -0
  332. package/dist/packages/datadog-api-client-v2/models/SBOMComponent.js +13 -0
  333. package/dist/packages/datadog-api-client-v2/models/SBOMComponent.js.map +1 -1
  334. package/dist/packages/datadog-api-client-v2/models/SBOMComponentDependency.d.ts +40 -0
  335. package/dist/packages/datadog-api-client-v2/models/SBOMComponentDependency.js +39 -0
  336. package/dist/packages/datadog-api-client-v2/models/SBOMComponentDependency.js.map +1 -0
  337. package/dist/packages/datadog-api-client-v2/models/SBOMComponentLicense.d.ts +37 -0
  338. package/dist/packages/datadog-api-client-v2/models/SBOMComponentLicense.js +31 -0
  339. package/dist/packages/datadog-api-client-v2/models/SBOMComponentLicense.js.map +1 -0
  340. package/dist/packages/datadog-api-client-v2/models/SBOMComponentLicenseLicense.d.ts +36 -0
  341. package/dist/packages/datadog-api-client-v2/models/SBOMComponentLicenseLicense.js +36 -0
  342. package/dist/packages/datadog-api-client-v2/models/SBOMComponentLicenseLicense.js.map +1 -0
  343. package/dist/packages/datadog-api-client-v2/models/SBOMComponentLicenseType.d.ts +18 -0
  344. package/dist/packages/datadog-api-client-v2/models/SBOMComponentLicenseType.js +17 -0
  345. package/dist/packages/datadog-api-client-v2/models/SBOMComponentLicenseType.js.map +1 -0
  346. package/dist/packages/datadog-api-client-v2/models/SBOMComponentProperty.d.ts +40 -0
  347. package/dist/packages/datadog-api-client-v2/models/SBOMComponentProperty.js +41 -0
  348. package/dist/packages/datadog-api-client-v2/models/SBOMComponentProperty.js.map +1 -0
  349. package/dist/packages/datadog-api-client-v2/models/SBOMComponentSupplier.d.ts +36 -0
  350. package/dist/packages/datadog-api-client-v2/models/SBOMComponentSupplier.js +36 -0
  351. package/dist/packages/datadog-api-client-v2/models/SBOMComponentSupplier.js.map +1 -0
  352. package/dist/packages/datadog-api-client-v2/models/SBOMMetadata.d.ts +9 -0
  353. package/dist/packages/datadog-api-client-v2/models/SBOMMetadata.js +8 -0
  354. package/dist/packages/datadog-api-client-v2/models/SBOMMetadata.js.map +1 -1
  355. package/dist/packages/datadog-api-client-v2/models/SBOMMetadataAuthor.d.ts +36 -0
  356. package/dist/packages/datadog-api-client-v2/models/SBOMMetadataAuthor.js +35 -0
  357. package/dist/packages/datadog-api-client-v2/models/SBOMMetadataAuthor.js.map +1 -0
  358. package/dist/packages/datadog-api-client-v2/models/ScheduleCreateRequestDataAttributesLayersItems.d.ts +1 -1
  359. package/dist/packages/datadog-api-client-v2/models/ScheduleUpdateRequestDataAttributesLayersItems.d.ts +1 -1
  360. package/dist/packages/datadog-api-client-v2/models/SimpleMonitorUserTemplate.d.ts +67 -0
  361. package/dist/packages/datadog-api-client-v2/models/SimpleMonitorUserTemplate.js +60 -0
  362. package/dist/packages/datadog-api-client-v2/models/SimpleMonitorUserTemplate.js.map +1 -0
  363. package/dist/packages/datadog-api-client-v2/models/VulnerabilityAttributes.d.ts +4 -0
  364. package/dist/packages/datadog-api-client-v2/models/VulnerabilityAttributes.js +5 -0
  365. package/dist/packages/datadog-api-client-v2/models/VulnerabilityAttributes.js.map +1 -1
  366. package/dist/version.d.ts +1 -1
  367. package/dist/version.js +1 -1
  368. package/package.json +1 -1
@@ -50,10 +50,6 @@ class MonitorsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
50
50
  createMonitorNotificationRule(body, _options) {
51
51
  return __awaiter(this, void 0, void 0, function* () {
52
52
  const _config = _options || this.configuration;
53
- logger_1.logger.warn("Using unstable operation 'createMonitorNotificationRule'");
54
- if (!_config.unstableOperations["v2.createMonitorNotificationRule"]) {
55
- throw new Error("Unstable operation 'createMonitorNotificationRule' is disabled");
56
- }
57
53
  // verify required parameter 'body' is not null or undefined
58
54
  if (body === null || body === undefined) {
59
55
  throw new baseapi_1.RequiredError("body", "createMonitorNotificationRule");
@@ -82,6 +78,41 @@ class MonitorsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
82
78
  return requestContext;
83
79
  });
84
80
  }
81
+ createMonitorUserTemplate(body, _options) {
82
+ return __awaiter(this, void 0, void 0, function* () {
83
+ const _config = _options || this.configuration;
84
+ logger_1.logger.warn("Using unstable operation 'createMonitorUserTemplate'");
85
+ if (!_config.unstableOperations["v2.createMonitorUserTemplate"]) {
86
+ throw new Error("Unstable operation 'createMonitorUserTemplate' is disabled");
87
+ }
88
+ // verify required parameter 'body' is not null or undefined
89
+ if (body === null || body === undefined) {
90
+ throw new baseapi_1.RequiredError("body", "createMonitorUserTemplate");
91
+ }
92
+ // Path Params
93
+ const localVarPath = "/api/v2/monitor/template";
94
+ // Make Request Context
95
+ const requestContext = _config
96
+ .getServer("v2.MonitorsApi.createMonitorUserTemplate")
97
+ .makeRequestContext(localVarPath, http_1.HttpMethod.POST);
98
+ requestContext.setHeaderParam("Accept", "application/json");
99
+ requestContext.setHttpConfig(_config.httpConfig);
100
+ // Body Params
101
+ const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
102
+ "application/json",
103
+ ]);
104
+ requestContext.setHeaderParam("Content-Type", contentType);
105
+ const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "MonitorUserTemplateCreateRequest", ""), contentType);
106
+ requestContext.setBody(serializedBody);
107
+ // Apply auth methods
108
+ (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
109
+ "AuthZ",
110
+ "apiKeyAuth",
111
+ "appKeyAuth",
112
+ ]);
113
+ return requestContext;
114
+ });
115
+ }
85
116
  deleteMonitorConfigPolicy(policyId, _options) {
86
117
  return __awaiter(this, void 0, void 0, function* () {
87
118
  const _config = _options || this.configuration;
@@ -108,10 +139,6 @@ class MonitorsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
108
139
  deleteMonitorNotificationRule(ruleId, _options) {
109
140
  return __awaiter(this, void 0, void 0, function* () {
110
141
  const _config = _options || this.configuration;
111
- logger_1.logger.warn("Using unstable operation 'deleteMonitorNotificationRule'");
112
- if (!_config.unstableOperations["v2.deleteMonitorNotificationRule"]) {
113
- throw new Error("Unstable operation 'deleteMonitorNotificationRule' is disabled");
114
- }
115
142
  // verify required parameter 'ruleId' is not null or undefined
116
143
  if (ruleId === null || ruleId === undefined) {
117
144
  throw new baseapi_1.RequiredError("ruleId", "deleteMonitorNotificationRule");
@@ -133,6 +160,34 @@ class MonitorsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
133
160
  return requestContext;
134
161
  });
135
162
  }
163
+ deleteMonitorUserTemplate(templateId, _options) {
164
+ return __awaiter(this, void 0, void 0, function* () {
165
+ const _config = _options || this.configuration;
166
+ logger_1.logger.warn("Using unstable operation 'deleteMonitorUserTemplate'");
167
+ if (!_config.unstableOperations["v2.deleteMonitorUserTemplate"]) {
168
+ throw new Error("Unstable operation 'deleteMonitorUserTemplate' is disabled");
169
+ }
170
+ // verify required parameter 'templateId' is not null or undefined
171
+ if (templateId === null || templateId === undefined) {
172
+ throw new baseapi_1.RequiredError("templateId", "deleteMonitorUserTemplate");
173
+ }
174
+ // Path Params
175
+ const localVarPath = "/api/v2/monitor/template/{template_id}".replace("{template_id}", encodeURIComponent(String(templateId)));
176
+ // Make Request Context
177
+ const requestContext = _config
178
+ .getServer("v2.MonitorsApi.deleteMonitorUserTemplate")
179
+ .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
180
+ requestContext.setHeaderParam("Accept", "*/*");
181
+ requestContext.setHttpConfig(_config.httpConfig);
182
+ // Apply auth methods
183
+ (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
184
+ "AuthZ",
185
+ "apiKeyAuth",
186
+ "appKeyAuth",
187
+ ]);
188
+ return requestContext;
189
+ });
190
+ }
136
191
  getMonitorConfigPolicy(policyId, _options) {
137
192
  return __awaiter(this, void 0, void 0, function* () {
138
193
  const _config = _options || this.configuration;
@@ -160,10 +215,6 @@ class MonitorsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
160
215
  getMonitorNotificationRule(ruleId, include, _options) {
161
216
  return __awaiter(this, void 0, void 0, function* () {
162
217
  const _config = _options || this.configuration;
163
- logger_1.logger.warn("Using unstable operation 'getMonitorNotificationRule'");
164
- if (!_config.unstableOperations["v2.getMonitorNotificationRule"]) {
165
- throw new Error("Unstable operation 'getMonitorNotificationRule' is disabled");
166
- }
167
218
  // verify required parameter 'ruleId' is not null or undefined
168
219
  if (ruleId === null || ruleId === undefined) {
169
220
  throw new baseapi_1.RequiredError("ruleId", "getMonitorNotificationRule");
@@ -192,10 +243,6 @@ class MonitorsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
192
243
  getMonitorNotificationRules(include, _options) {
193
244
  return __awaiter(this, void 0, void 0, function* () {
194
245
  const _config = _options || this.configuration;
195
- logger_1.logger.warn("Using unstable operation 'getMonitorNotificationRules'");
196
- if (!_config.unstableOperations["v2.getMonitorNotificationRules"]) {
197
- throw new Error("Unstable operation 'getMonitorNotificationRules' is disabled");
198
- }
199
246
  // Path Params
200
247
  const localVarPath = "/api/v2/monitor/notification_rule";
201
248
  // Make Request Context
@@ -217,6 +264,38 @@ class MonitorsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
217
264
  return requestContext;
218
265
  });
219
266
  }
267
+ getMonitorUserTemplate(templateId, withAllVersions, _options) {
268
+ return __awaiter(this, void 0, void 0, function* () {
269
+ const _config = _options || this.configuration;
270
+ logger_1.logger.warn("Using unstable operation 'getMonitorUserTemplate'");
271
+ if (!_config.unstableOperations["v2.getMonitorUserTemplate"]) {
272
+ throw new Error("Unstable operation 'getMonitorUserTemplate' is disabled");
273
+ }
274
+ // verify required parameter 'templateId' is not null or undefined
275
+ if (templateId === null || templateId === undefined) {
276
+ throw new baseapi_1.RequiredError("templateId", "getMonitorUserTemplate");
277
+ }
278
+ // Path Params
279
+ const localVarPath = "/api/v2/monitor/template/{template_id}".replace("{template_id}", encodeURIComponent(String(templateId)));
280
+ // Make Request Context
281
+ const requestContext = _config
282
+ .getServer("v2.MonitorsApi.getMonitorUserTemplate")
283
+ .makeRequestContext(localVarPath, http_1.HttpMethod.GET);
284
+ requestContext.setHeaderParam("Accept", "application/json");
285
+ requestContext.setHttpConfig(_config.httpConfig);
286
+ // Query Params
287
+ if (withAllVersions !== undefined) {
288
+ requestContext.setQueryParam("with_all_versions", ObjectSerializer_1.ObjectSerializer.serialize(withAllVersions, "boolean", ""), "");
289
+ }
290
+ // Apply auth methods
291
+ (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
292
+ "AuthZ",
293
+ "apiKeyAuth",
294
+ "appKeyAuth",
295
+ ]);
296
+ return requestContext;
297
+ });
298
+ }
220
299
  listMonitorConfigPolicies(_options) {
221
300
  return __awaiter(this, void 0, void 0, function* () {
222
301
  const _config = _options || this.configuration;
@@ -237,6 +316,30 @@ class MonitorsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
237
316
  return requestContext;
238
317
  });
239
318
  }
319
+ listMonitorUserTemplates(_options) {
320
+ return __awaiter(this, void 0, void 0, function* () {
321
+ const _config = _options || this.configuration;
322
+ logger_1.logger.warn("Using unstable operation 'listMonitorUserTemplates'");
323
+ if (!_config.unstableOperations["v2.listMonitorUserTemplates"]) {
324
+ throw new Error("Unstable operation 'listMonitorUserTemplates' is disabled");
325
+ }
326
+ // Path Params
327
+ const localVarPath = "/api/v2/monitor/template";
328
+ // Make Request Context
329
+ const requestContext = _config
330
+ .getServer("v2.MonitorsApi.listMonitorUserTemplates")
331
+ .makeRequestContext(localVarPath, http_1.HttpMethod.GET);
332
+ requestContext.setHeaderParam("Accept", "application/json");
333
+ requestContext.setHttpConfig(_config.httpConfig);
334
+ // Apply auth methods
335
+ (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
336
+ "AuthZ",
337
+ "apiKeyAuth",
338
+ "appKeyAuth",
339
+ ]);
340
+ return requestContext;
341
+ });
342
+ }
240
343
  updateMonitorConfigPolicy(policyId, body, _options) {
241
344
  return __awaiter(this, void 0, void 0, function* () {
242
345
  const _config = _options || this.configuration;
@@ -274,10 +377,6 @@ class MonitorsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
274
377
  updateMonitorNotificationRule(ruleId, body, _options) {
275
378
  return __awaiter(this, void 0, void 0, function* () {
276
379
  const _config = _options || this.configuration;
277
- logger_1.logger.warn("Using unstable operation 'updateMonitorNotificationRule'");
278
- if (!_config.unstableOperations["v2.updateMonitorNotificationRule"]) {
279
- throw new Error("Unstable operation 'updateMonitorNotificationRule' is disabled");
280
- }
281
380
  // verify required parameter 'ruleId' is not null or undefined
282
381
  if (ruleId === null || ruleId === undefined) {
283
382
  throw new baseapi_1.RequiredError("ruleId", "updateMonitorNotificationRule");
@@ -310,6 +409,119 @@ class MonitorsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
310
409
  return requestContext;
311
410
  });
312
411
  }
412
+ updateMonitorUserTemplate(templateId, body, _options) {
413
+ return __awaiter(this, void 0, void 0, function* () {
414
+ const _config = _options || this.configuration;
415
+ logger_1.logger.warn("Using unstable operation 'updateMonitorUserTemplate'");
416
+ if (!_config.unstableOperations["v2.updateMonitorUserTemplate"]) {
417
+ throw new Error("Unstable operation 'updateMonitorUserTemplate' is disabled");
418
+ }
419
+ // verify required parameter 'templateId' is not null or undefined
420
+ if (templateId === null || templateId === undefined) {
421
+ throw new baseapi_1.RequiredError("templateId", "updateMonitorUserTemplate");
422
+ }
423
+ // verify required parameter 'body' is not null or undefined
424
+ if (body === null || body === undefined) {
425
+ throw new baseapi_1.RequiredError("body", "updateMonitorUserTemplate");
426
+ }
427
+ // Path Params
428
+ const localVarPath = "/api/v2/monitor/template/{template_id}".replace("{template_id}", encodeURIComponent(String(templateId)));
429
+ // Make Request Context
430
+ const requestContext = _config
431
+ .getServer("v2.MonitorsApi.updateMonitorUserTemplate")
432
+ .makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
433
+ requestContext.setHeaderParam("Accept", "application/json");
434
+ requestContext.setHttpConfig(_config.httpConfig);
435
+ // Body Params
436
+ const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
437
+ "application/json",
438
+ ]);
439
+ requestContext.setHeaderParam("Content-Type", contentType);
440
+ const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "MonitorUserTemplateUpdateRequest", ""), contentType);
441
+ requestContext.setBody(serializedBody);
442
+ // Apply auth methods
443
+ (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
444
+ "AuthZ",
445
+ "apiKeyAuth",
446
+ "appKeyAuth",
447
+ ]);
448
+ return requestContext;
449
+ });
450
+ }
451
+ validateExistingMonitorUserTemplate(templateId, body, _options) {
452
+ return __awaiter(this, void 0, void 0, function* () {
453
+ const _config = _options || this.configuration;
454
+ logger_1.logger.warn("Using unstable operation 'validateExistingMonitorUserTemplate'");
455
+ if (!_config.unstableOperations["v2.validateExistingMonitorUserTemplate"]) {
456
+ throw new Error("Unstable operation 'validateExistingMonitorUserTemplate' is disabled");
457
+ }
458
+ // verify required parameter 'templateId' is not null or undefined
459
+ if (templateId === null || templateId === undefined) {
460
+ throw new baseapi_1.RequiredError("templateId", "validateExistingMonitorUserTemplate");
461
+ }
462
+ // verify required parameter 'body' is not null or undefined
463
+ if (body === null || body === undefined) {
464
+ throw new baseapi_1.RequiredError("body", "validateExistingMonitorUserTemplate");
465
+ }
466
+ // Path Params
467
+ const localVarPath = "/api/v2/monitor/template/{template_id}/validate".replace("{template_id}", encodeURIComponent(String(templateId)));
468
+ // Make Request Context
469
+ const requestContext = _config
470
+ .getServer("v2.MonitorsApi.validateExistingMonitorUserTemplate")
471
+ .makeRequestContext(localVarPath, http_1.HttpMethod.POST);
472
+ requestContext.setHeaderParam("Accept", "*/*");
473
+ requestContext.setHttpConfig(_config.httpConfig);
474
+ // Body Params
475
+ const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
476
+ "application/json",
477
+ ]);
478
+ requestContext.setHeaderParam("Content-Type", contentType);
479
+ const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "MonitorUserTemplateUpdateRequest", ""), contentType);
480
+ requestContext.setBody(serializedBody);
481
+ // Apply auth methods
482
+ (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
483
+ "AuthZ",
484
+ "apiKeyAuth",
485
+ "appKeyAuth",
486
+ ]);
487
+ return requestContext;
488
+ });
489
+ }
490
+ validateMonitorUserTemplate(body, _options) {
491
+ return __awaiter(this, void 0, void 0, function* () {
492
+ const _config = _options || this.configuration;
493
+ logger_1.logger.warn("Using unstable operation 'validateMonitorUserTemplate'");
494
+ if (!_config.unstableOperations["v2.validateMonitorUserTemplate"]) {
495
+ throw new Error("Unstable operation 'validateMonitorUserTemplate' is disabled");
496
+ }
497
+ // verify required parameter 'body' is not null or undefined
498
+ if (body === null || body === undefined) {
499
+ throw new baseapi_1.RequiredError("body", "validateMonitorUserTemplate");
500
+ }
501
+ // Path Params
502
+ const localVarPath = "/api/v2/monitor/template/validate";
503
+ // Make Request Context
504
+ const requestContext = _config
505
+ .getServer("v2.MonitorsApi.validateMonitorUserTemplate")
506
+ .makeRequestContext(localVarPath, http_1.HttpMethod.POST);
507
+ requestContext.setHeaderParam("Accept", "*/*");
508
+ requestContext.setHttpConfig(_config.httpConfig);
509
+ // Body Params
510
+ const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
511
+ "application/json",
512
+ ]);
513
+ requestContext.setHeaderParam("Content-Type", contentType);
514
+ const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "MonitorUserTemplateCreateRequest", ""), contentType);
515
+ requestContext.setBody(serializedBody);
516
+ // Apply auth methods
517
+ (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
518
+ "AuthZ",
519
+ "apiKeyAuth",
520
+ "appKeyAuth",
521
+ ]);
522
+ return requestContext;
523
+ });
524
+ }
313
525
  }
314
526
  exports.MonitorsApiRequestFactory = MonitorsApiRequestFactory;
315
527
  class MonitorsApiResponseProcessor {
@@ -387,6 +599,41 @@ class MonitorsApiResponseProcessor {
387
599
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
388
600
  });
389
601
  }
602
+ /**
603
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
604
+ * to the expected objects
605
+ *
606
+ * @params response Response returned by the server for a request to createMonitorUserTemplate
607
+ * @throws ApiException if the response code was not in [200, 299]
608
+ */
609
+ createMonitorUserTemplate(response) {
610
+ return __awaiter(this, void 0, void 0, function* () {
611
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
612
+ if (response.httpStatusCode === 200) {
613
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MonitorUserTemplateCreateResponse");
614
+ return body;
615
+ }
616
+ if (response.httpStatusCode === 400 || response.httpStatusCode === 429) {
617
+ const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
618
+ let body;
619
+ try {
620
+ body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
621
+ }
622
+ catch (error) {
623
+ logger_1.logger.debug(`Got error deserializing error: ${error}`);
624
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
625
+ }
626
+ throw new exception_1.ApiException(response.httpStatusCode, body);
627
+ }
628
+ // Work around for missing responses in specification, e.g. for petstore.yaml
629
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
630
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MonitorUserTemplateCreateResponse", "");
631
+ return body;
632
+ }
633
+ const body = (yield response.body.text()) || "";
634
+ throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
635
+ });
636
+ }
390
637
  /**
391
638
  * Unwraps the actual response sent by the server from the response context and deserializes the response content
392
639
  * to the expected objects
@@ -460,6 +707,40 @@ class MonitorsApiResponseProcessor {
460
707
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
461
708
  });
462
709
  }
710
+ /**
711
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
712
+ * to the expected objects
713
+ *
714
+ * @params response Response returned by the server for a request to deleteMonitorUserTemplate
715
+ * @throws ApiException if the response code was not in [200, 299]
716
+ */
717
+ deleteMonitorUserTemplate(response) {
718
+ return __awaiter(this, void 0, void 0, function* () {
719
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
720
+ if (response.httpStatusCode === 204) {
721
+ return;
722
+ }
723
+ if (response.httpStatusCode === 404 || response.httpStatusCode === 429) {
724
+ const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
725
+ let body;
726
+ try {
727
+ body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
728
+ }
729
+ catch (error) {
730
+ logger_1.logger.debug(`Got error deserializing error: ${error}`);
731
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
732
+ }
733
+ throw new exception_1.ApiException(response.httpStatusCode, body);
734
+ }
735
+ // Work around for missing responses in specification, e.g. for petstore.yaml
736
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
737
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", "");
738
+ return body;
739
+ }
740
+ const body = (yield response.body.text()) || "";
741
+ throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
742
+ });
743
+ }
463
744
  /**
464
745
  * Unwraps the actual response sent by the server from the response context and deserializes the response content
465
746
  * to the expected objects
@@ -569,6 +850,41 @@ class MonitorsApiResponseProcessor {
569
850
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
570
851
  });
571
852
  }
853
+ /**
854
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
855
+ * to the expected objects
856
+ *
857
+ * @params response Response returned by the server for a request to getMonitorUserTemplate
858
+ * @throws ApiException if the response code was not in [200, 299]
859
+ */
860
+ getMonitorUserTemplate(response) {
861
+ return __awaiter(this, void 0, void 0, function* () {
862
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
863
+ if (response.httpStatusCode === 200) {
864
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MonitorUserTemplateResponse");
865
+ return body;
866
+ }
867
+ if (response.httpStatusCode === 404 || response.httpStatusCode === 429) {
868
+ const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
869
+ let body;
870
+ try {
871
+ body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
872
+ }
873
+ catch (error) {
874
+ logger_1.logger.debug(`Got error deserializing error: ${error}`);
875
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
876
+ }
877
+ throw new exception_1.ApiException(response.httpStatusCode, body);
878
+ }
879
+ // Work around for missing responses in specification, e.g. for petstore.yaml
880
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
881
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MonitorUserTemplateResponse", "");
882
+ return body;
883
+ }
884
+ const body = (yield response.body.text()) || "";
885
+ throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
886
+ });
887
+ }
572
888
  /**
573
889
  * Unwraps the actual response sent by the server from the response context and deserializes the response content
574
890
  * to the expected objects
@@ -604,6 +920,41 @@ class MonitorsApiResponseProcessor {
604
920
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
605
921
  });
606
922
  }
923
+ /**
924
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
925
+ * to the expected objects
926
+ *
927
+ * @params response Response returned by the server for a request to listMonitorUserTemplates
928
+ * @throws ApiException if the response code was not in [200, 299]
929
+ */
930
+ listMonitorUserTemplates(response) {
931
+ return __awaiter(this, void 0, void 0, function* () {
932
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
933
+ if (response.httpStatusCode === 200) {
934
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MonitorUserTemplateListResponse");
935
+ return body;
936
+ }
937
+ if (response.httpStatusCode === 429) {
938
+ const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
939
+ let body;
940
+ try {
941
+ body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
942
+ }
943
+ catch (error) {
944
+ logger_1.logger.debug(`Got error deserializing error: ${error}`);
945
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
946
+ }
947
+ throw new exception_1.ApiException(response.httpStatusCode, body);
948
+ }
949
+ // Work around for missing responses in specification, e.g. for petstore.yaml
950
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
951
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MonitorUserTemplateListResponse", "");
952
+ return body;
953
+ }
954
+ const body = (yield response.body.text()) || "";
955
+ throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
956
+ });
957
+ }
607
958
  /**
608
959
  * Unwraps the actual response sent by the server from the response context and deserializes the response content
609
960
  * to the expected objects
@@ -680,6 +1031,113 @@ class MonitorsApiResponseProcessor {
680
1031
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
681
1032
  });
682
1033
  }
1034
+ /**
1035
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
1036
+ * to the expected objects
1037
+ *
1038
+ * @params response Response returned by the server for a request to updateMonitorUserTemplate
1039
+ * @throws ApiException if the response code was not in [200, 299]
1040
+ */
1041
+ updateMonitorUserTemplate(response) {
1042
+ return __awaiter(this, void 0, void 0, function* () {
1043
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1044
+ if (response.httpStatusCode === 200) {
1045
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MonitorUserTemplateResponse");
1046
+ return body;
1047
+ }
1048
+ if (response.httpStatusCode === 400 ||
1049
+ response.httpStatusCode === 404 ||
1050
+ response.httpStatusCode === 429) {
1051
+ const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
1052
+ let body;
1053
+ try {
1054
+ body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
1055
+ }
1056
+ catch (error) {
1057
+ logger_1.logger.debug(`Got error deserializing error: ${error}`);
1058
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
1059
+ }
1060
+ throw new exception_1.ApiException(response.httpStatusCode, body);
1061
+ }
1062
+ // Work around for missing responses in specification, e.g. for petstore.yaml
1063
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
1064
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "MonitorUserTemplateResponse", "");
1065
+ return body;
1066
+ }
1067
+ const body = (yield response.body.text()) || "";
1068
+ throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
1069
+ });
1070
+ }
1071
+ /**
1072
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
1073
+ * to the expected objects
1074
+ *
1075
+ * @params response Response returned by the server for a request to validateExistingMonitorUserTemplate
1076
+ * @throws ApiException if the response code was not in [200, 299]
1077
+ */
1078
+ validateExistingMonitorUserTemplate(response) {
1079
+ return __awaiter(this, void 0, void 0, function* () {
1080
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1081
+ if (response.httpStatusCode === 204) {
1082
+ return;
1083
+ }
1084
+ if (response.httpStatusCode === 400 ||
1085
+ response.httpStatusCode === 404 ||
1086
+ response.httpStatusCode === 429) {
1087
+ const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
1088
+ let body;
1089
+ try {
1090
+ body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
1091
+ }
1092
+ catch (error) {
1093
+ logger_1.logger.debug(`Got error deserializing error: ${error}`);
1094
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
1095
+ }
1096
+ throw new exception_1.ApiException(response.httpStatusCode, body);
1097
+ }
1098
+ // Work around for missing responses in specification, e.g. for petstore.yaml
1099
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
1100
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", "");
1101
+ return body;
1102
+ }
1103
+ const body = (yield response.body.text()) || "";
1104
+ throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
1105
+ });
1106
+ }
1107
+ /**
1108
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
1109
+ * to the expected objects
1110
+ *
1111
+ * @params response Response returned by the server for a request to validateMonitorUserTemplate
1112
+ * @throws ApiException if the response code was not in [200, 299]
1113
+ */
1114
+ validateMonitorUserTemplate(response) {
1115
+ return __awaiter(this, void 0, void 0, function* () {
1116
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1117
+ if (response.httpStatusCode === 204) {
1118
+ return;
1119
+ }
1120
+ if (response.httpStatusCode === 400 || response.httpStatusCode === 429) {
1121
+ const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
1122
+ let body;
1123
+ try {
1124
+ body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
1125
+ }
1126
+ catch (error) {
1127
+ logger_1.logger.debug(`Got error deserializing error: ${error}`);
1128
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
1129
+ }
1130
+ throw new exception_1.ApiException(response.httpStatusCode, body);
1131
+ }
1132
+ // Work around for missing responses in specification, e.g. for petstore.yaml
1133
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
1134
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", "");
1135
+ return body;
1136
+ }
1137
+ const body = (yield response.body.text()) || "";
1138
+ throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
1139
+ });
1140
+ }
683
1141
  }
684
1142
  exports.MonitorsApiResponseProcessor = MonitorsApiResponseProcessor;
685
1143
  class MonitorsApi {
@@ -718,6 +1176,20 @@ class MonitorsApi {
718
1176
  });
719
1177
  });
720
1178
  }
1179
+ /**
1180
+ * Create a new monitor user template.
1181
+ * @param param The request object
1182
+ */
1183
+ createMonitorUserTemplate(param, options) {
1184
+ const requestContextPromise = this.requestFactory.createMonitorUserTemplate(param.body, options);
1185
+ return requestContextPromise.then((requestContext) => {
1186
+ return this.configuration.httpApi
1187
+ .send(requestContext)
1188
+ .then((responseContext) => {
1189
+ return this.responseProcessor.createMonitorUserTemplate(responseContext);
1190
+ });
1191
+ });
1192
+ }
721
1193
  /**
722
1194
  * Delete a monitor configuration policy.
723
1195
  * @param param The request object
@@ -746,6 +1218,20 @@ class MonitorsApi {
746
1218
  });
747
1219
  });
748
1220
  }
1221
+ /**
1222
+ * Delete an existing monitor user template by its ID.
1223
+ * @param param The request object
1224
+ */
1225
+ deleteMonitorUserTemplate(param, options) {
1226
+ const requestContextPromise = this.requestFactory.deleteMonitorUserTemplate(param.templateId, options);
1227
+ return requestContextPromise.then((requestContext) => {
1228
+ return this.configuration.httpApi
1229
+ .send(requestContext)
1230
+ .then((responseContext) => {
1231
+ return this.responseProcessor.deleteMonitorUserTemplate(responseContext);
1232
+ });
1233
+ });
1234
+ }
749
1235
  /**
750
1236
  * Get a monitor configuration policy by `policy_id`.
751
1237
  * @param param The request object
@@ -788,6 +1274,20 @@ class MonitorsApi {
788
1274
  });
789
1275
  });
790
1276
  }
1277
+ /**
1278
+ * Retrieve a monitor user template by its ID.
1279
+ * @param param The request object
1280
+ */
1281
+ getMonitorUserTemplate(param, options) {
1282
+ const requestContextPromise = this.requestFactory.getMonitorUserTemplate(param.templateId, param.withAllVersions, options);
1283
+ return requestContextPromise.then((requestContext) => {
1284
+ return this.configuration.httpApi
1285
+ .send(requestContext)
1286
+ .then((responseContext) => {
1287
+ return this.responseProcessor.getMonitorUserTemplate(responseContext);
1288
+ });
1289
+ });
1290
+ }
791
1291
  /**
792
1292
  * Get all monitor configuration policies.
793
1293
  * @param param The request object
@@ -802,6 +1302,20 @@ class MonitorsApi {
802
1302
  });
803
1303
  });
804
1304
  }
1305
+ /**
1306
+ * Retrieve all monitor user templates.
1307
+ * @param param The request object
1308
+ */
1309
+ listMonitorUserTemplates(options) {
1310
+ const requestContextPromise = this.requestFactory.listMonitorUserTemplates(options);
1311
+ return requestContextPromise.then((requestContext) => {
1312
+ return this.configuration.httpApi
1313
+ .send(requestContext)
1314
+ .then((responseContext) => {
1315
+ return this.responseProcessor.listMonitorUserTemplates(responseContext);
1316
+ });
1317
+ });
1318
+ }
805
1319
  /**
806
1320
  * Edit a monitor configuration policy.
807
1321
  * @param param The request object
@@ -830,6 +1344,48 @@ class MonitorsApi {
830
1344
  });
831
1345
  });
832
1346
  }
1347
+ /**
1348
+ * Creates a new version of an existing monitor user template.
1349
+ * @param param The request object
1350
+ */
1351
+ updateMonitorUserTemplate(param, options) {
1352
+ const requestContextPromise = this.requestFactory.updateMonitorUserTemplate(param.templateId, param.body, options);
1353
+ return requestContextPromise.then((requestContext) => {
1354
+ return this.configuration.httpApi
1355
+ .send(requestContext)
1356
+ .then((responseContext) => {
1357
+ return this.responseProcessor.updateMonitorUserTemplate(responseContext);
1358
+ });
1359
+ });
1360
+ }
1361
+ /**
1362
+ * Validate the structure and content of an existing monitor user template being updated to a new version.
1363
+ * @param param The request object
1364
+ */
1365
+ validateExistingMonitorUserTemplate(param, options) {
1366
+ const requestContextPromise = this.requestFactory.validateExistingMonitorUserTemplate(param.templateId, param.body, options);
1367
+ return requestContextPromise.then((requestContext) => {
1368
+ return this.configuration.httpApi
1369
+ .send(requestContext)
1370
+ .then((responseContext) => {
1371
+ return this.responseProcessor.validateExistingMonitorUserTemplate(responseContext);
1372
+ });
1373
+ });
1374
+ }
1375
+ /**
1376
+ * Validate the structure and content of a monitor user template.
1377
+ * @param param The request object
1378
+ */
1379
+ validateMonitorUserTemplate(param, options) {
1380
+ const requestContextPromise = this.requestFactory.validateMonitorUserTemplate(param.body, options);
1381
+ return requestContextPromise.then((requestContext) => {
1382
+ return this.configuration.httpApi
1383
+ .send(requestContext)
1384
+ .then((responseContext) => {
1385
+ return this.responseProcessor.validateMonitorUserTemplate(responseContext);
1386
+ });
1387
+ });
1388
+ }
833
1389
  }
834
1390
  exports.MonitorsApi = MonitorsApi;
835
1391
  //# sourceMappingURL=MonitorsApi.js.map