@datadog/datadog-api-client 1.42.0 → 1.43.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 (243) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/packages/datadog-api-client-common/configuration.js +5 -8
  3. package/dist/packages/datadog-api-client-common/configuration.js.map +1 -1
  4. package/dist/packages/datadog-api-client-v1/index.d.ts +2 -0
  5. package/dist/packages/datadog-api-client-v1/index.js +14 -12
  6. package/dist/packages/datadog-api-client-v1/index.js.map +1 -1
  7. package/dist/packages/datadog-api-client-v1/models/GCPAccount.d.ts +10 -3
  8. package/dist/packages/datadog-api-client-v1/models/GCPAccount.js +4 -5
  9. package/dist/packages/datadog-api-client-v1/models/GCPAccount.js.map +1 -1
  10. package/dist/packages/datadog-api-client-v1/models/GCPMonitoredResourceConfig.d.ts +42 -0
  11. package/dist/packages/datadog-api-client-v1/models/GCPMonitoredResourceConfig.js +34 -0
  12. package/dist/packages/datadog-api-client-v1/models/GCPMonitoredResourceConfig.js.map +1 -0
  13. package/dist/packages/datadog-api-client-v1/models/GCPMonitoredResourceConfigType.d.ts +13 -0
  14. package/dist/packages/datadog-api-client-v1/models/GCPMonitoredResourceConfigType.js +12 -0
  15. package/dist/packages/datadog-api-client-v1/models/GCPMonitoredResourceConfigType.js.map +1 -0
  16. package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js +7 -0
  17. package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js.map +1 -1
  18. package/dist/packages/datadog-api-client-v2/apis/AWSIntegrationApi.js +0 -28
  19. package/dist/packages/datadog-api-client-v2/apis/AWSIntegrationApi.js.map +1 -1
  20. package/dist/packages/datadog-api-client-v2/apis/AWSLogsIntegrationApi.js +0 -4
  21. package/dist/packages/datadog-api-client-v2/apis/AWSLogsIntegrationApi.js.map +1 -1
  22. package/dist/packages/datadog-api-client-v2/apis/ActionsDatastoresApi.d.ts +247 -0
  23. package/dist/packages/datadog-api-client-v2/apis/ActionsDatastoresApi.js +840 -0
  24. package/dist/packages/datadog-api-client-v2/apis/ActionsDatastoresApi.js.map +1 -0
  25. package/dist/packages/datadog-api-client-v2/apis/CIVisibilityPipelinesApi.d.ts +2 -0
  26. package/dist/packages/datadog-api-client-v2/apis/CIVisibilityPipelinesApi.js +2 -0
  27. package/dist/packages/datadog-api-client-v2/apis/CIVisibilityPipelinesApi.js.map +1 -1
  28. package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.d.ts +127 -0
  29. package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.js +433 -0
  30. package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.js.map +1 -1
  31. package/dist/packages/datadog-api-client-v2/apis/OrgConnectionsApi.d.ts +24 -2
  32. package/dist/packages/datadog-api-client-v2/apis/OrgConnectionsApi.js +16 -3
  33. package/dist/packages/datadog-api-client-v2/apis/OrgConnectionsApi.js.map +1 -1
  34. package/dist/packages/datadog-api-client-v2/index.d.ts +67 -2
  35. package/dist/packages/datadog-api-client-v2/index.js +153 -46
  36. package/dist/packages/datadog-api-client-v2/index.js.map +1 -1
  37. package/dist/packages/datadog-api-client-v2/models/BulkPutAppsDatastoreItemsRequest.d.ts +37 -0
  38. package/dist/packages/datadog-api-client-v2/models/BulkPutAppsDatastoreItemsRequest.js +30 -0
  39. package/dist/packages/datadog-api-client-v2/models/BulkPutAppsDatastoreItemsRequest.js.map +1 -0
  40. package/dist/packages/datadog-api-client-v2/models/BulkPutAppsDatastoreItemsRequestData.d.ts +42 -0
  41. package/dist/packages/datadog-api-client-v2/models/BulkPutAppsDatastoreItemsRequestData.js +35 -0
  42. package/dist/packages/datadog-api-client-v2/models/BulkPutAppsDatastoreItemsRequestData.js.map +1 -0
  43. package/dist/packages/datadog-api-client-v2/models/BulkPutAppsDatastoreItemsRequestDataAttributes.d.ts +43 -0
  44. package/dist/packages/datadog-api-client-v2/models/BulkPutAppsDatastoreItemsRequestDataAttributes.js +35 -0
  45. package/dist/packages/datadog-api-client-v2/models/BulkPutAppsDatastoreItemsRequestDataAttributes.js.map +1 -0
  46. package/dist/packages/datadog-api-client-v2/models/CIAppCreatePipelineEventRequest.d.ts +3 -3
  47. package/dist/packages/datadog-api-client-v2/models/CIAppCreatePipelineEventRequest.js +1 -1
  48. package/dist/packages/datadog-api-client-v2/models/CIAppCreatePipelineEventRequest.js.map +1 -1
  49. package/dist/packages/datadog-api-client-v2/models/CIAppCreatePipelineEventRequestDataSingleOrArray.d.ts +11 -0
  50. package/dist/packages/datadog-api-client-v2/models/CIAppCreatePipelineEventRequestDataSingleOrArray.js +3 -0
  51. package/dist/packages/datadog-api-client-v2/models/CIAppCreatePipelineEventRequestDataSingleOrArray.js.map +1 -0
  52. package/dist/packages/datadog-api-client-v2/models/CreateAppsDatastoreRequest.d.ts +37 -0
  53. package/dist/packages/datadog-api-client-v2/models/CreateAppsDatastoreRequest.js +30 -0
  54. package/dist/packages/datadog-api-client-v2/models/CreateAppsDatastoreRequest.js.map +1 -0
  55. package/dist/packages/datadog-api-client-v2/models/CreateAppsDatastoreRequestData.d.ts +46 -0
  56. package/dist/packages/datadog-api-client-v2/models/CreateAppsDatastoreRequestData.js +39 -0
  57. package/dist/packages/datadog-api-client-v2/models/CreateAppsDatastoreRequestData.js.map +1 -0
  58. package/dist/packages/datadog-api-client-v2/models/CreateAppsDatastoreRequestDataAttributes.d.ts +56 -0
  59. package/dist/packages/datadog-api-client-v2/models/CreateAppsDatastoreRequestDataAttributes.js +48 -0
  60. package/dist/packages/datadog-api-client-v2/models/CreateAppsDatastoreRequestDataAttributes.js.map +1 -0
  61. package/dist/packages/datadog-api-client-v2/models/CreateAppsDatastoreRequestDataAttributesOrgAccess.d.ts +13 -0
  62. package/dist/packages/datadog-api-client-v2/models/CreateAppsDatastoreRequestDataAttributesOrgAccess.js +12 -0
  63. package/dist/packages/datadog-api-client-v2/models/CreateAppsDatastoreRequestDataAttributesOrgAccess.js.map +1 -0
  64. package/dist/packages/datadog-api-client-v2/models/CreateAppsDatastoreResponse.d.ts +37 -0
  65. package/dist/packages/datadog-api-client-v2/models/CreateAppsDatastoreResponse.js +30 -0
  66. package/dist/packages/datadog-api-client-v2/models/CreateAppsDatastoreResponse.js.map +1 -0
  67. package/dist/packages/datadog-api-client-v2/models/CreateAppsDatastoreResponseData.d.ts +41 -0
  68. package/dist/packages/datadog-api-client-v2/models/CreateAppsDatastoreResponseData.js +35 -0
  69. package/dist/packages/datadog-api-client-v2/models/CreateAppsDatastoreResponseData.js.map +1 -0
  70. package/dist/packages/datadog-api-client-v2/models/CreateIncidentNotificationRuleRequest.d.ts +37 -0
  71. package/dist/packages/datadog-api-client-v2/models/CreateIncidentNotificationRuleRequest.js +31 -0
  72. package/dist/packages/datadog-api-client-v2/models/CreateIncidentNotificationRuleRequest.js.map +1 -0
  73. package/dist/packages/datadog-api-client-v2/models/DORAFailureRequestAttributes.d.ts +1 -1
  74. package/dist/packages/datadog-api-client-v2/models/Datastore.d.ts +37 -0
  75. package/dist/packages/datadog-api-client-v2/models/Datastore.js +30 -0
  76. package/dist/packages/datadog-api-client-v2/models/Datastore.js.map +1 -0
  77. package/dist/packages/datadog-api-client-v2/models/DatastoreArray.d.ts +37 -0
  78. package/dist/packages/datadog-api-client-v2/models/DatastoreArray.js +31 -0
  79. package/dist/packages/datadog-api-client-v2/models/DatastoreArray.js.map +1 -0
  80. package/dist/packages/datadog-api-client-v2/models/DatastoreData.d.ts +46 -0
  81. package/dist/packages/datadog-api-client-v2/models/DatastoreData.js +39 -0
  82. package/dist/packages/datadog-api-client-v2/models/DatastoreData.js.map +1 -0
  83. package/dist/packages/datadog-api-client-v2/models/DatastoreDataAttributes.d.ts +71 -0
  84. package/dist/packages/datadog-api-client-v2/models/DatastoreDataAttributes.js +66 -0
  85. package/dist/packages/datadog-api-client-v2/models/DatastoreDataAttributes.js.map +1 -0
  86. package/dist/packages/datadog-api-client-v2/models/DatastoreDataType.d.ts +11 -0
  87. package/dist/packages/datadog-api-client-v2/models/DatastoreDataType.js +10 -0
  88. package/dist/packages/datadog-api-client-v2/models/DatastoreDataType.js.map +1 -0
  89. package/dist/packages/datadog-api-client-v2/models/DatastoreItemConflictMode.d.ts +12 -0
  90. package/dist/packages/datadog-api-client-v2/models/DatastoreItemConflictMode.js +11 -0
  91. package/dist/packages/datadog-api-client-v2/models/DatastoreItemConflictMode.js.map +1 -0
  92. package/dist/packages/datadog-api-client-v2/models/DatastoreItemsDataType.d.ts +11 -0
  93. package/dist/packages/datadog-api-client-v2/models/DatastoreItemsDataType.js +10 -0
  94. package/dist/packages/datadog-api-client-v2/models/DatastoreItemsDataType.js.map +1 -0
  95. package/dist/packages/datadog-api-client-v2/models/DatastorePrimaryKeyGenerationStrategy.d.ts +12 -0
  96. package/dist/packages/datadog-api-client-v2/models/DatastorePrimaryKeyGenerationStrategy.js +11 -0
  97. package/dist/packages/datadog-api-client-v2/models/DatastorePrimaryKeyGenerationStrategy.js.map +1 -0
  98. package/dist/packages/datadog-api-client-v2/models/DeleteAppsDatastoreItemRequest.d.ts +37 -0
  99. package/dist/packages/datadog-api-client-v2/models/DeleteAppsDatastoreItemRequest.js +30 -0
  100. package/dist/packages/datadog-api-client-v2/models/DeleteAppsDatastoreItemRequest.js.map +1 -0
  101. package/dist/packages/datadog-api-client-v2/models/DeleteAppsDatastoreItemRequestData.d.ts +42 -0
  102. package/dist/packages/datadog-api-client-v2/models/DeleteAppsDatastoreItemRequestData.js +35 -0
  103. package/dist/packages/datadog-api-client-v2/models/DeleteAppsDatastoreItemRequestData.js.map +1 -0
  104. package/dist/packages/datadog-api-client-v2/models/DeleteAppsDatastoreItemRequestDataAttributes.d.ts +40 -0
  105. package/dist/packages/datadog-api-client-v2/models/DeleteAppsDatastoreItemRequestDataAttributes.js +40 -0
  106. package/dist/packages/datadog-api-client-v2/models/DeleteAppsDatastoreItemRequestDataAttributes.js.map +1 -0
  107. package/dist/packages/datadog-api-client-v2/models/DeleteAppsDatastoreItemResponse.d.ts +37 -0
  108. package/dist/packages/datadog-api-client-v2/models/DeleteAppsDatastoreItemResponse.js +30 -0
  109. package/dist/packages/datadog-api-client-v2/models/DeleteAppsDatastoreItemResponse.js.map +1 -0
  110. package/dist/packages/datadog-api-client-v2/models/DeleteAppsDatastoreItemResponseData.d.ts +41 -0
  111. package/dist/packages/datadog-api-client-v2/models/DeleteAppsDatastoreItemResponseData.js +35 -0
  112. package/dist/packages/datadog-api-client-v2/models/DeleteAppsDatastoreItemResponseData.js.map +1 -0
  113. package/dist/packages/datadog-api-client-v2/models/GCPMonitoredResourceConfig.d.ts +42 -0
  114. package/dist/packages/datadog-api-client-v2/models/GCPMonitoredResourceConfig.js +34 -0
  115. package/dist/packages/datadog-api-client-v2/models/GCPMonitoredResourceConfig.js.map +1 -0
  116. package/dist/packages/datadog-api-client-v2/models/GCPMonitoredResourceConfigType.d.ts +13 -0
  117. package/dist/packages/datadog-api-client-v2/models/GCPMonitoredResourceConfigType.js +12 -0
  118. package/dist/packages/datadog-api-client-v2/models/GCPMonitoredResourceConfigType.js.map +1 -0
  119. package/dist/packages/datadog-api-client-v2/models/GCPSTSServiceAccountAttributes.d.ts +9 -1
  120. package/dist/packages/datadog-api-client-v2/models/GCPSTSServiceAccountAttributes.js +4 -0
  121. package/dist/packages/datadog-api-client-v2/models/GCPSTSServiceAccountAttributes.js.map +1 -1
  122. package/dist/packages/datadog-api-client-v2/models/IncidentNotificationRule.d.ts +42 -0
  123. package/dist/packages/datadog-api-client-v2/models/IncidentNotificationRule.js +35 -0
  124. package/dist/packages/datadog-api-client-v2/models/IncidentNotificationRule.js.map +1 -0
  125. package/dist/packages/datadog-api-client-v2/models/IncidentNotificationRuleArray.d.ts +47 -0
  126. package/dist/packages/datadog-api-client-v2/models/IncidentNotificationRuleArray.js +39 -0
  127. package/dist/packages/datadog-api-client-v2/models/IncidentNotificationRuleArray.js.map +1 -0
  128. package/dist/packages/datadog-api-client-v2/models/IncidentNotificationRuleArrayMeta.d.ts +37 -0
  129. package/dist/packages/datadog-api-client-v2/models/IncidentNotificationRuleArrayMeta.js +30 -0
  130. package/dist/packages/datadog-api-client-v2/models/IncidentNotificationRuleArrayMeta.js.map +1 -0
  131. package/dist/packages/datadog-api-client-v2/models/IncidentNotificationRuleArrayMetaPage.d.ts +44 -0
  132. package/dist/packages/datadog-api-client-v2/models/IncidentNotificationRuleArrayMetaPage.js +46 -0
  133. package/dist/packages/datadog-api-client-v2/models/IncidentNotificationRuleArrayMetaPage.js.map +1 -0
  134. package/dist/packages/datadog-api-client-v2/models/IncidentNotificationRuleAttributes.d.ts +66 -0
  135. package/dist/packages/datadog-api-client-v2/models/IncidentNotificationRuleAttributes.js +67 -0
  136. package/dist/packages/datadog-api-client-v2/models/IncidentNotificationRuleAttributes.js.map +1 -0
  137. package/dist/packages/datadog-api-client-v2/models/IncidentNotificationRuleAttributesVisibility.d.ts +13 -0
  138. package/dist/packages/datadog-api-client-v2/models/IncidentNotificationRuleAttributesVisibility.js +12 -0
  139. package/dist/packages/datadog-api-client-v2/models/IncidentNotificationRuleAttributesVisibility.js.map +1 -0
  140. package/dist/packages/datadog-api-client-v2/models/IncidentNotificationRuleConditionsItems.d.ts +40 -0
  141. package/dist/packages/datadog-api-client-v2/models/IncidentNotificationRuleConditionsItems.js +41 -0
  142. package/dist/packages/datadog-api-client-v2/models/IncidentNotificationRuleConditionsItems.js.map +1 -0
  143. package/dist/packages/datadog-api-client-v2/models/IncidentNotificationRuleCreateAttributes.d.ts +58 -0
  144. package/dist/packages/datadog-api-client-v2/models/IncidentNotificationRuleCreateAttributes.js +53 -0
  145. package/dist/packages/datadog-api-client-v2/models/IncidentNotificationRuleCreateAttributes.js.map +1 -0
  146. package/dist/packages/datadog-api-client-v2/models/IncidentNotificationRuleCreateAttributesVisibility.d.ts +13 -0
  147. package/dist/packages/datadog-api-client-v2/models/IncidentNotificationRuleCreateAttributesVisibility.js +12 -0
  148. package/dist/packages/datadog-api-client-v2/models/IncidentNotificationRuleCreateAttributesVisibility.js.map +1 -0
  149. package/dist/packages/datadog-api-client-v2/models/IncidentNotificationRuleCreateData.d.ts +47 -0
  150. package/dist/packages/datadog-api-client-v2/models/IncidentNotificationRuleCreateData.js +40 -0
  151. package/dist/packages/datadog-api-client-v2/models/IncidentNotificationRuleCreateData.js.map +1 -0
  152. package/dist/packages/datadog-api-client-v2/models/IncidentNotificationRuleCreateDataRelationships.d.ts +42 -0
  153. package/dist/packages/datadog-api-client-v2/models/IncidentNotificationRuleCreateDataRelationships.js +34 -0
  154. package/dist/packages/datadog-api-client-v2/models/IncidentNotificationRuleCreateDataRelationships.js.map +1 -0
  155. package/dist/packages/datadog-api-client-v2/models/IncidentNotificationRuleIncludedItems.d.ts +13 -0
  156. package/dist/packages/datadog-api-client-v2/models/IncidentNotificationRuleIncludedItems.js +3 -0
  157. package/dist/packages/datadog-api-client-v2/models/IncidentNotificationRuleIncludedItems.js.map +1 -0
  158. package/dist/packages/datadog-api-client-v2/models/IncidentNotificationRuleRelationships.d.ts +51 -0
  159. package/dist/packages/datadog-api-client-v2/models/IncidentNotificationRuleRelationships.js +42 -0
  160. package/dist/packages/datadog-api-client-v2/models/IncidentNotificationRuleRelationships.js.map +1 -0
  161. package/dist/packages/datadog-api-client-v2/models/IncidentNotificationRuleResponseData.d.ts +51 -0
  162. package/dist/packages/datadog-api-client-v2/models/IncidentNotificationRuleResponseData.js +45 -0
  163. package/dist/packages/datadog-api-client-v2/models/IncidentNotificationRuleResponseData.js.map +1 -0
  164. package/dist/packages/datadog-api-client-v2/models/IncidentNotificationRuleType.d.ts +11 -0
  165. package/dist/packages/datadog-api-client-v2/models/IncidentNotificationRuleType.js +10 -0
  166. package/dist/packages/datadog-api-client-v2/models/IncidentNotificationRuleType.js.map +1 -0
  167. package/dist/packages/datadog-api-client-v2/models/IncidentNotificationRuleUpdateData.d.ts +51 -0
  168. package/dist/packages/datadog-api-client-v2/models/IncidentNotificationRuleUpdateData.js +46 -0
  169. package/dist/packages/datadog-api-client-v2/models/IncidentNotificationRuleUpdateData.js.map +1 -0
  170. package/dist/packages/datadog-api-client-v2/models/IncidentNotificationTemplateObject.d.ts +51 -0
  171. package/dist/packages/datadog-api-client-v2/models/IncidentNotificationTemplateObject.js +45 -0
  172. package/dist/packages/datadog-api-client-v2/models/IncidentNotificationTemplateObject.js.map +1 -0
  173. package/dist/packages/datadog-api-client-v2/models/ItemApiPayload.d.ts +37 -0
  174. package/dist/packages/datadog-api-client-v2/models/ItemApiPayload.js +30 -0
  175. package/dist/packages/datadog-api-client-v2/models/ItemApiPayload.js.map +1 -0
  176. package/dist/packages/datadog-api-client-v2/models/ItemApiPayloadArray.d.ts +42 -0
  177. package/dist/packages/datadog-api-client-v2/models/ItemApiPayloadArray.js +35 -0
  178. package/dist/packages/datadog-api-client-v2/models/ItemApiPayloadArray.js.map +1 -0
  179. package/dist/packages/datadog-api-client-v2/models/ItemApiPayloadData.d.ts +46 -0
  180. package/dist/packages/datadog-api-client-v2/models/ItemApiPayloadData.js +39 -0
  181. package/dist/packages/datadog-api-client-v2/models/ItemApiPayloadData.js.map +1 -0
  182. package/dist/packages/datadog-api-client-v2/models/ItemApiPayloadDataAttributes.d.ts +64 -0
  183. package/dist/packages/datadog-api-client-v2/models/ItemApiPayloadDataAttributes.js +62 -0
  184. package/dist/packages/datadog-api-client-v2/models/ItemApiPayloadDataAttributes.js.map +1 -0
  185. package/dist/packages/datadog-api-client-v2/models/ItemApiPayloadMeta.d.ts +42 -0
  186. package/dist/packages/datadog-api-client-v2/models/ItemApiPayloadMeta.js +34 -0
  187. package/dist/packages/datadog-api-client-v2/models/ItemApiPayloadMeta.js.map +1 -0
  188. package/dist/packages/datadog-api-client-v2/models/ItemApiPayloadMetaPage.d.ts +44 -0
  189. package/dist/packages/datadog-api-client-v2/models/ItemApiPayloadMetaPage.js +45 -0
  190. package/dist/packages/datadog-api-client-v2/models/ItemApiPayloadMetaPage.js.map +1 -0
  191. package/dist/packages/datadog-api-client-v2/models/ItemApiPayloadMetaSchema.d.ts +41 -0
  192. package/dist/packages/datadog-api-client-v2/models/ItemApiPayloadMetaSchema.js +34 -0
  193. package/dist/packages/datadog-api-client-v2/models/ItemApiPayloadMetaSchema.js.map +1 -0
  194. package/dist/packages/datadog-api-client-v2/models/ItemApiPayloadMetaSchemaField.d.ts +40 -0
  195. package/dist/packages/datadog-api-client-v2/models/ItemApiPayloadMetaSchemaField.js +41 -0
  196. package/dist/packages/datadog-api-client-v2/models/ItemApiPayloadMetaSchemaField.js.map +1 -0
  197. package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js +139 -0
  198. package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js.map +1 -1
  199. package/dist/packages/datadog-api-client-v2/models/PutAppsDatastoreItemResponseArray.d.ts +37 -0
  200. package/dist/packages/datadog-api-client-v2/models/PutAppsDatastoreItemResponseArray.js +31 -0
  201. package/dist/packages/datadog-api-client-v2/models/PutAppsDatastoreItemResponseArray.js.map +1 -0
  202. package/dist/packages/datadog-api-client-v2/models/PutAppsDatastoreItemResponseData.d.ts +41 -0
  203. package/dist/packages/datadog-api-client-v2/models/PutAppsDatastoreItemResponseData.js +35 -0
  204. package/dist/packages/datadog-api-client-v2/models/PutAppsDatastoreItemResponseData.js.map +1 -0
  205. package/dist/packages/datadog-api-client-v2/models/PutIncidentNotificationRuleRequest.d.ts +37 -0
  206. package/dist/packages/datadog-api-client-v2/models/PutIncidentNotificationRuleRequest.js +31 -0
  207. package/dist/packages/datadog-api-client-v2/models/PutIncidentNotificationRuleRequest.js.map +1 -0
  208. package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentNotificationTemplate.d.ts +37 -0
  209. package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentNotificationTemplate.js +31 -0
  210. package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentNotificationTemplate.js.map +1 -0
  211. package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentNotificationTemplateData.d.ts +41 -0
  212. package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentNotificationTemplateData.js +37 -0
  213. package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentNotificationTemplateData.js.map +1 -0
  214. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleConvertResponse.d.ts +4 -0
  215. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleConvertResponse.js +4 -0
  216. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleConvertResponse.js.map +1 -1
  217. package/dist/packages/datadog-api-client-v2/models/UpdateAppsDatastoreItemRequest.d.ts +37 -0
  218. package/dist/packages/datadog-api-client-v2/models/UpdateAppsDatastoreItemRequest.js +30 -0
  219. package/dist/packages/datadog-api-client-v2/models/UpdateAppsDatastoreItemRequest.js.map +1 -0
  220. package/dist/packages/datadog-api-client-v2/models/UpdateAppsDatastoreItemRequestData.d.ts +46 -0
  221. package/dist/packages/datadog-api-client-v2/models/UpdateAppsDatastoreItemRequestData.js +39 -0
  222. package/dist/packages/datadog-api-client-v2/models/UpdateAppsDatastoreItemRequestData.js.map +1 -0
  223. package/dist/packages/datadog-api-client-v2/models/UpdateAppsDatastoreItemRequestDataAttributes.d.ts +45 -0
  224. package/dist/packages/datadog-api-client-v2/models/UpdateAppsDatastoreItemRequestDataAttributes.js +40 -0
  225. package/dist/packages/datadog-api-client-v2/models/UpdateAppsDatastoreItemRequestDataAttributes.js.map +1 -0
  226. package/dist/packages/datadog-api-client-v2/models/UpdateAppsDatastoreItemRequestDataAttributesItemChanges.d.ts +38 -0
  227. package/dist/packages/datadog-api-client-v2/models/UpdateAppsDatastoreItemRequestDataAttributesItemChanges.js +35 -0
  228. package/dist/packages/datadog-api-client-v2/models/UpdateAppsDatastoreItemRequestDataAttributesItemChanges.js.map +1 -0
  229. package/dist/packages/datadog-api-client-v2/models/UpdateAppsDatastoreItemRequestDataType.d.ts +11 -0
  230. package/dist/packages/datadog-api-client-v2/models/UpdateAppsDatastoreItemRequestDataType.js +10 -0
  231. package/dist/packages/datadog-api-client-v2/models/UpdateAppsDatastoreItemRequestDataType.js.map +1 -0
  232. package/dist/packages/datadog-api-client-v2/models/UpdateAppsDatastoreRequest.d.ts +37 -0
  233. package/dist/packages/datadog-api-client-v2/models/UpdateAppsDatastoreRequest.js +30 -0
  234. package/dist/packages/datadog-api-client-v2/models/UpdateAppsDatastoreRequest.js.map +1 -0
  235. package/dist/packages/datadog-api-client-v2/models/UpdateAppsDatastoreRequestData.d.ts +46 -0
  236. package/dist/packages/datadog-api-client-v2/models/UpdateAppsDatastoreRequestData.js +39 -0
  237. package/dist/packages/datadog-api-client-v2/models/UpdateAppsDatastoreRequestData.js.map +1 -0
  238. package/dist/packages/datadog-api-client-v2/models/UpdateAppsDatastoreRequestDataAttributes.d.ts +40 -0
  239. package/dist/packages/datadog-api-client-v2/models/UpdateAppsDatastoreRequestDataAttributes.js +39 -0
  240. package/dist/packages/datadog-api-client-v2/models/UpdateAppsDatastoreRequestDataAttributes.js.map +1 -0
  241. package/dist/version.d.ts +1 -1
  242. package/dist/version.js +1 -1
  243. package/package.json +1 -1
@@ -103,6 +103,41 @@ class IncidentsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
103
103
  return requestContext;
104
104
  });
105
105
  }
106
+ createIncidentNotificationRule(body, _options) {
107
+ return __awaiter(this, void 0, void 0, function* () {
108
+ const _config = _options || this.configuration;
109
+ logger_1.logger.warn("Using unstable operation 'createIncidentNotificationRule'");
110
+ if (!_config.unstableOperations["v2.createIncidentNotificationRule"]) {
111
+ throw new Error("Unstable operation 'createIncidentNotificationRule' is disabled");
112
+ }
113
+ // verify required parameter 'body' is not null or undefined
114
+ if (body === null || body === undefined) {
115
+ throw new baseapi_1.RequiredError("body", "createIncidentNotificationRule");
116
+ }
117
+ // Path Params
118
+ const localVarPath = "/api/v2/incidents/config/notification-rules";
119
+ // Make Request Context
120
+ const requestContext = _config
121
+ .getServer("v2.IncidentsApi.createIncidentNotificationRule")
122
+ .makeRequestContext(localVarPath, http_1.HttpMethod.POST);
123
+ requestContext.setHeaderParam("Accept", "application/json");
124
+ requestContext.setHttpConfig(_config.httpConfig);
125
+ // Body Params
126
+ const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
127
+ "application/json",
128
+ ]);
129
+ requestContext.setHeaderParam("Content-Type", contentType);
130
+ const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "CreateIncidentNotificationRuleRequest", ""), contentType);
131
+ requestContext.setBody(serializedBody);
132
+ // Apply auth methods
133
+ (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
134
+ "apiKeyAuth",
135
+ "appKeyAuth",
136
+ "AuthZ",
137
+ ]);
138
+ return requestContext;
139
+ });
140
+ }
106
141
  createIncidentNotificationTemplate(body, _options) {
107
142
  return __awaiter(this, void 0, void 0, function* () {
108
143
  const _config = _options || this.configuration;
@@ -274,6 +309,38 @@ class IncidentsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
274
309
  return requestContext;
275
310
  });
276
311
  }
312
+ deleteIncidentNotificationRule(id, include, _options) {
313
+ return __awaiter(this, void 0, void 0, function* () {
314
+ const _config = _options || this.configuration;
315
+ logger_1.logger.warn("Using unstable operation 'deleteIncidentNotificationRule'");
316
+ if (!_config.unstableOperations["v2.deleteIncidentNotificationRule"]) {
317
+ throw new Error("Unstable operation 'deleteIncidentNotificationRule' is disabled");
318
+ }
319
+ // verify required parameter 'id' is not null or undefined
320
+ if (id === null || id === undefined) {
321
+ throw new baseapi_1.RequiredError("id", "deleteIncidentNotificationRule");
322
+ }
323
+ // Path Params
324
+ const localVarPath = "/api/v2/incidents/config/notification-rules/{id}".replace("{id}", encodeURIComponent(String(id)));
325
+ // Make Request Context
326
+ const requestContext = _config
327
+ .getServer("v2.IncidentsApi.deleteIncidentNotificationRule")
328
+ .makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
329
+ requestContext.setHeaderParam("Accept", "*/*");
330
+ requestContext.setHttpConfig(_config.httpConfig);
331
+ // Query Params
332
+ if (include !== undefined) {
333
+ requestContext.setQueryParam("include", ObjectSerializer_1.ObjectSerializer.serialize(include, "string", ""), "");
334
+ }
335
+ // Apply auth methods
336
+ (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
337
+ "apiKeyAuth",
338
+ "appKeyAuth",
339
+ "AuthZ",
340
+ ]);
341
+ return requestContext;
342
+ });
343
+ }
277
344
  deleteIncidentNotificationTemplate(id, include, _options) {
278
345
  return __awaiter(this, void 0, void 0, function* () {
279
346
  const _config = _options || this.configuration;
@@ -434,6 +501,38 @@ class IncidentsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
434
501
  return requestContext;
435
502
  });
436
503
  }
504
+ getIncidentNotificationRule(id, include, _options) {
505
+ return __awaiter(this, void 0, void 0, function* () {
506
+ const _config = _options || this.configuration;
507
+ logger_1.logger.warn("Using unstable operation 'getIncidentNotificationRule'");
508
+ if (!_config.unstableOperations["v2.getIncidentNotificationRule"]) {
509
+ throw new Error("Unstable operation 'getIncidentNotificationRule' is disabled");
510
+ }
511
+ // verify required parameter 'id' is not null or undefined
512
+ if (id === null || id === undefined) {
513
+ throw new baseapi_1.RequiredError("id", "getIncidentNotificationRule");
514
+ }
515
+ // Path Params
516
+ const localVarPath = "/api/v2/incidents/config/notification-rules/{id}".replace("{id}", encodeURIComponent(String(id)));
517
+ // Make Request Context
518
+ const requestContext = _config
519
+ .getServer("v2.IncidentsApi.getIncidentNotificationRule")
520
+ .makeRequestContext(localVarPath, http_1.HttpMethod.GET);
521
+ requestContext.setHeaderParam("Accept", "application/json");
522
+ requestContext.setHttpConfig(_config.httpConfig);
523
+ // Query Params
524
+ if (include !== undefined) {
525
+ requestContext.setQueryParam("include", ObjectSerializer_1.ObjectSerializer.serialize(include, "string", ""), "");
526
+ }
527
+ // Apply auth methods
528
+ (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
529
+ "apiKeyAuth",
530
+ "appKeyAuth",
531
+ "AuthZ",
532
+ ]);
533
+ return requestContext;
534
+ });
535
+ }
437
536
  getIncidentNotificationTemplate(id, include, _options) {
438
537
  return __awaiter(this, void 0, void 0, function* () {
439
538
  const _config = _options || this.configuration;
@@ -590,6 +689,34 @@ class IncidentsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
590
689
  return requestContext;
591
690
  });
592
691
  }
692
+ listIncidentNotificationRules(include, _options) {
693
+ return __awaiter(this, void 0, void 0, function* () {
694
+ const _config = _options || this.configuration;
695
+ logger_1.logger.warn("Using unstable operation 'listIncidentNotificationRules'");
696
+ if (!_config.unstableOperations["v2.listIncidentNotificationRules"]) {
697
+ throw new Error("Unstable operation 'listIncidentNotificationRules' is disabled");
698
+ }
699
+ // Path Params
700
+ const localVarPath = "/api/v2/incidents/config/notification-rules";
701
+ // Make Request Context
702
+ const requestContext = _config
703
+ .getServer("v2.IncidentsApi.listIncidentNotificationRules")
704
+ .makeRequestContext(localVarPath, http_1.HttpMethod.GET);
705
+ requestContext.setHeaderParam("Accept", "application/json");
706
+ requestContext.setHttpConfig(_config.httpConfig);
707
+ // Query Params
708
+ if (include !== undefined) {
709
+ requestContext.setQueryParam("include", ObjectSerializer_1.ObjectSerializer.serialize(include, "string", ""), "");
710
+ }
711
+ // Apply auth methods
712
+ (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
713
+ "apiKeyAuth",
714
+ "appKeyAuth",
715
+ "AuthZ",
716
+ ]);
717
+ return requestContext;
718
+ });
719
+ }
593
720
  listIncidentNotificationTemplates(filterIncidentType, include, _options) {
594
721
  return __awaiter(this, void 0, void 0, function* () {
595
722
  const _config = _options || this.configuration;
@@ -885,6 +1012,49 @@ class IncidentsApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
885
1012
  return requestContext;
886
1013
  });
887
1014
  }
1015
+ updateIncidentNotificationRule(id, body, include, _options) {
1016
+ return __awaiter(this, void 0, void 0, function* () {
1017
+ const _config = _options || this.configuration;
1018
+ logger_1.logger.warn("Using unstable operation 'updateIncidentNotificationRule'");
1019
+ if (!_config.unstableOperations["v2.updateIncidentNotificationRule"]) {
1020
+ throw new Error("Unstable operation 'updateIncidentNotificationRule' is disabled");
1021
+ }
1022
+ // verify required parameter 'id' is not null or undefined
1023
+ if (id === null || id === undefined) {
1024
+ throw new baseapi_1.RequiredError("id", "updateIncidentNotificationRule");
1025
+ }
1026
+ // verify required parameter 'body' is not null or undefined
1027
+ if (body === null || body === undefined) {
1028
+ throw new baseapi_1.RequiredError("body", "updateIncidentNotificationRule");
1029
+ }
1030
+ // Path Params
1031
+ const localVarPath = "/api/v2/incidents/config/notification-rules/{id}".replace("{id}", encodeURIComponent(String(id)));
1032
+ // Make Request Context
1033
+ const requestContext = _config
1034
+ .getServer("v2.IncidentsApi.updateIncidentNotificationRule")
1035
+ .makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
1036
+ requestContext.setHeaderParam("Accept", "application/json");
1037
+ requestContext.setHttpConfig(_config.httpConfig);
1038
+ // Query Params
1039
+ if (include !== undefined) {
1040
+ requestContext.setQueryParam("include", ObjectSerializer_1.ObjectSerializer.serialize(include, "string", ""), "");
1041
+ }
1042
+ // Body Params
1043
+ const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1044
+ "application/json",
1045
+ ]);
1046
+ requestContext.setHeaderParam("Content-Type", contentType);
1047
+ const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "PutIncidentNotificationRuleRequest", ""), contentType);
1048
+ requestContext.setBody(serializedBody);
1049
+ // Apply auth methods
1050
+ (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
1051
+ "apiKeyAuth",
1052
+ "appKeyAuth",
1053
+ "AuthZ",
1054
+ ]);
1055
+ return requestContext;
1056
+ });
1057
+ }
888
1058
  updateIncidentNotificationTemplate(id, body, include, _options) {
889
1059
  return __awaiter(this, void 0, void 0, function* () {
890
1060
  const _config = _options || this.configuration;
@@ -1093,6 +1263,45 @@ class IncidentsApiResponseProcessor {
1093
1263
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
1094
1264
  });
1095
1265
  }
1266
+ /**
1267
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
1268
+ * to the expected objects
1269
+ *
1270
+ * @params response Response returned by the server for a request to createIncidentNotificationRule
1271
+ * @throws ApiException if the response code was not in [200, 299]
1272
+ */
1273
+ createIncidentNotificationRule(response) {
1274
+ return __awaiter(this, void 0, void 0, function* () {
1275
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1276
+ if (response.httpStatusCode === 201) {
1277
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentNotificationRule");
1278
+ return body;
1279
+ }
1280
+ if (response.httpStatusCode === 400 ||
1281
+ response.httpStatusCode === 401 ||
1282
+ response.httpStatusCode === 403 ||
1283
+ response.httpStatusCode === 404 ||
1284
+ response.httpStatusCode === 429) {
1285
+ const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
1286
+ let body;
1287
+ try {
1288
+ body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
1289
+ }
1290
+ catch (error) {
1291
+ logger_1.logger.debug(`Got error deserializing error: ${error}`);
1292
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
1293
+ }
1294
+ throw new exception_1.ApiException(response.httpStatusCode, body);
1295
+ }
1296
+ // Work around for missing responses in specification, e.g. for petstore.yaml
1297
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
1298
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentNotificationRule", "");
1299
+ return body;
1300
+ }
1301
+ const body = (yield response.body.text()) || "";
1302
+ throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
1303
+ });
1304
+ }
1096
1305
  /**
1097
1306
  * Unwraps the actual response sent by the server from the response context and deserializes the response content
1098
1307
  * to the expected objects
@@ -1284,6 +1493,43 @@ class IncidentsApiResponseProcessor {
1284
1493
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
1285
1494
  });
1286
1495
  }
1496
+ /**
1497
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
1498
+ * to the expected objects
1499
+ *
1500
+ * @params response Response returned by the server for a request to deleteIncidentNotificationRule
1501
+ * @throws ApiException if the response code was not in [200, 299]
1502
+ */
1503
+ deleteIncidentNotificationRule(response) {
1504
+ return __awaiter(this, void 0, void 0, function* () {
1505
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1506
+ if (response.httpStatusCode === 204) {
1507
+ return;
1508
+ }
1509
+ if (response.httpStatusCode === 400 ||
1510
+ response.httpStatusCode === 401 ||
1511
+ response.httpStatusCode === 403 ||
1512
+ response.httpStatusCode === 404 ||
1513
+ response.httpStatusCode === 429) {
1514
+ const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
1515
+ let body;
1516
+ try {
1517
+ body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
1518
+ }
1519
+ catch (error) {
1520
+ logger_1.logger.debug(`Got error deserializing error: ${error}`);
1521
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
1522
+ }
1523
+ throw new exception_1.ApiException(response.httpStatusCode, body);
1524
+ }
1525
+ // Work around for missing responses in specification, e.g. for petstore.yaml
1526
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
1527
+ return;
1528
+ }
1529
+ const body = (yield response.body.text()) || "";
1530
+ throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
1531
+ });
1532
+ }
1287
1533
  /**
1288
1534
  * Unwraps the actual response sent by the server from the response context and deserializes the response content
1289
1535
  * to the expected objects
@@ -1473,6 +1719,45 @@ class IncidentsApiResponseProcessor {
1473
1719
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
1474
1720
  });
1475
1721
  }
1722
+ /**
1723
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
1724
+ * to the expected objects
1725
+ *
1726
+ * @params response Response returned by the server for a request to getIncidentNotificationRule
1727
+ * @throws ApiException if the response code was not in [200, 299]
1728
+ */
1729
+ getIncidentNotificationRule(response) {
1730
+ return __awaiter(this, void 0, void 0, function* () {
1731
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1732
+ if (response.httpStatusCode === 200) {
1733
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentNotificationRule");
1734
+ return body;
1735
+ }
1736
+ if (response.httpStatusCode === 400 ||
1737
+ response.httpStatusCode === 401 ||
1738
+ response.httpStatusCode === 403 ||
1739
+ response.httpStatusCode === 404 ||
1740
+ response.httpStatusCode === 429) {
1741
+ const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
1742
+ let body;
1743
+ try {
1744
+ body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
1745
+ }
1746
+ catch (error) {
1747
+ logger_1.logger.debug(`Got error deserializing error: ${error}`);
1748
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
1749
+ }
1750
+ throw new exception_1.ApiException(response.httpStatusCode, body);
1751
+ }
1752
+ // Work around for missing responses in specification, e.g. for petstore.yaml
1753
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
1754
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentNotificationRule", "");
1755
+ return body;
1756
+ }
1757
+ const body = (yield response.body.text()) || "";
1758
+ throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
1759
+ });
1760
+ }
1476
1761
  /**
1477
1762
  * Unwraps the actual response sent by the server from the response context and deserializes the response content
1478
1763
  * to the expected objects
@@ -1668,6 +1953,45 @@ class IncidentsApiResponseProcessor {
1668
1953
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
1669
1954
  });
1670
1955
  }
1956
+ /**
1957
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
1958
+ * to the expected objects
1959
+ *
1960
+ * @params response Response returned by the server for a request to listIncidentNotificationRules
1961
+ * @throws ApiException if the response code was not in [200, 299]
1962
+ */
1963
+ listIncidentNotificationRules(response) {
1964
+ return __awaiter(this, void 0, void 0, function* () {
1965
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1966
+ if (response.httpStatusCode === 200) {
1967
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentNotificationRuleArray");
1968
+ return body;
1969
+ }
1970
+ if (response.httpStatusCode === 400 ||
1971
+ response.httpStatusCode === 401 ||
1972
+ response.httpStatusCode === 403 ||
1973
+ response.httpStatusCode === 404 ||
1974
+ response.httpStatusCode === 429) {
1975
+ const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
1976
+ let body;
1977
+ try {
1978
+ body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
1979
+ }
1980
+ catch (error) {
1981
+ logger_1.logger.debug(`Got error deserializing error: ${error}`);
1982
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
1983
+ }
1984
+ throw new exception_1.ApiException(response.httpStatusCode, body);
1985
+ }
1986
+ // Work around for missing responses in specification, e.g. for petstore.yaml
1987
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
1988
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentNotificationRuleArray", "");
1989
+ return body;
1990
+ }
1991
+ const body = (yield response.body.text()) || "";
1992
+ throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
1993
+ });
1994
+ }
1671
1995
  /**
1672
1996
  * Unwraps the actual response sent by the server from the response context and deserializes the response content
1673
1997
  * to the expected objects
@@ -1979,6 +2303,45 @@ class IncidentsApiResponseProcessor {
1979
2303
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
1980
2304
  });
1981
2305
  }
2306
+ /**
2307
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
2308
+ * to the expected objects
2309
+ *
2310
+ * @params response Response returned by the server for a request to updateIncidentNotificationRule
2311
+ * @throws ApiException if the response code was not in [200, 299]
2312
+ */
2313
+ updateIncidentNotificationRule(response) {
2314
+ return __awaiter(this, void 0, void 0, function* () {
2315
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2316
+ if (response.httpStatusCode === 200) {
2317
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentNotificationRule");
2318
+ return body;
2319
+ }
2320
+ if (response.httpStatusCode === 400 ||
2321
+ response.httpStatusCode === 401 ||
2322
+ response.httpStatusCode === 403 ||
2323
+ response.httpStatusCode === 404 ||
2324
+ response.httpStatusCode === 429) {
2325
+ const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
2326
+ let body;
2327
+ try {
2328
+ body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
2329
+ }
2330
+ catch (error) {
2331
+ logger_1.logger.debug(`Got error deserializing error: ${error}`);
2332
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
2333
+ }
2334
+ throw new exception_1.ApiException(response.httpStatusCode, body);
2335
+ }
2336
+ // Work around for missing responses in specification, e.g. for petstore.yaml
2337
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
2338
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "IncidentNotificationRule", "");
2339
+ return body;
2340
+ }
2341
+ const body = (yield response.body.text()) || "";
2342
+ throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
2343
+ });
2344
+ }
1982
2345
  /**
1983
2346
  * Unwraps the actual response sent by the server from the response context and deserializes the response content
1984
2347
  * to the expected objects
@@ -2134,6 +2497,20 @@ class IncidentsApi {
2134
2497
  });
2135
2498
  });
2136
2499
  }
2500
+ /**
2501
+ * Creates a new notification rule.
2502
+ * @param param The request object
2503
+ */
2504
+ createIncidentNotificationRule(param, options) {
2505
+ const requestContextPromise = this.requestFactory.createIncidentNotificationRule(param.body, options);
2506
+ return requestContextPromise.then((requestContext) => {
2507
+ return this.configuration.httpApi
2508
+ .send(requestContext)
2509
+ .then((responseContext) => {
2510
+ return this.responseProcessor.createIncidentNotificationRule(responseContext);
2511
+ });
2512
+ });
2513
+ }
2137
2514
  /**
2138
2515
  * Creates a new notification template.
2139
2516
  * @param param The request object
@@ -2204,6 +2581,20 @@ class IncidentsApi {
2204
2581
  });
2205
2582
  });
2206
2583
  }
2584
+ /**
2585
+ * Deletes a notification rule by its ID.
2586
+ * @param param The request object
2587
+ */
2588
+ deleteIncidentNotificationRule(param, options) {
2589
+ const requestContextPromise = this.requestFactory.deleteIncidentNotificationRule(param.id, param.include, options);
2590
+ return requestContextPromise.then((requestContext) => {
2591
+ return this.configuration.httpApi
2592
+ .send(requestContext)
2593
+ .then((responseContext) => {
2594
+ return this.responseProcessor.deleteIncidentNotificationRule(responseContext);
2595
+ });
2596
+ });
2597
+ }
2207
2598
  /**
2208
2599
  * Deletes a notification template by its ID.
2209
2600
  * @param param The request object
@@ -2274,6 +2665,20 @@ class IncidentsApi {
2274
2665
  });
2275
2666
  });
2276
2667
  }
2668
+ /**
2669
+ * Retrieves a specific notification rule by its ID.
2670
+ * @param param The request object
2671
+ */
2672
+ getIncidentNotificationRule(param, options) {
2673
+ const requestContextPromise = this.requestFactory.getIncidentNotificationRule(param.id, param.include, options);
2674
+ return requestContextPromise.then((requestContext) => {
2675
+ return this.configuration.httpApi
2676
+ .send(requestContext)
2677
+ .then((responseContext) => {
2678
+ return this.responseProcessor.getIncidentNotificationRule(responseContext);
2679
+ });
2680
+ });
2681
+ }
2277
2682
  /**
2278
2683
  * Retrieves a specific notification template by its ID.
2279
2684
  * @param param The request object
@@ -2344,6 +2749,20 @@ class IncidentsApi {
2344
2749
  });
2345
2750
  });
2346
2751
  }
2752
+ /**
2753
+ * Lists all notification rules for the organization. Optionally filter by incident type.
2754
+ * @param param The request object
2755
+ */
2756
+ listIncidentNotificationRules(param = {}, options) {
2757
+ const requestContextPromise = this.requestFactory.listIncidentNotificationRules(param.include, options);
2758
+ return requestContextPromise.then((requestContext) => {
2759
+ return this.configuration.httpApi
2760
+ .send(requestContext)
2761
+ .then((responseContext) => {
2762
+ return this.responseProcessor.listIncidentNotificationRules(responseContext);
2763
+ });
2764
+ });
2765
+ }
2347
2766
  /**
2348
2767
  * Lists all notification templates. Optionally filter by incident type.
2349
2768
  * @param param The request object
@@ -2532,6 +2951,20 @@ class IncidentsApi {
2532
2951
  });
2533
2952
  });
2534
2953
  }
2954
+ /**
2955
+ * Updates an existing notification rule with a complete replacement.
2956
+ * @param param The request object
2957
+ */
2958
+ updateIncidentNotificationRule(param, options) {
2959
+ const requestContextPromise = this.requestFactory.updateIncidentNotificationRule(param.id, param.body, param.include, options);
2960
+ return requestContextPromise.then((requestContext) => {
2961
+ return this.configuration.httpApi
2962
+ .send(requestContext)
2963
+ .then((responseContext) => {
2964
+ return this.responseProcessor.updateIncidentNotificationRule(responseContext);
2965
+ });
2966
+ });
2967
+ }
2535
2968
  /**
2536
2969
  * Updates an existing notification template's attributes.
2537
2970
  * @param param The request object