@datadog/datadog-api-client 1.2.0 → 1.4.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 (462) hide show
  1. package/CHANGELOG.md +54 -0
  2. package/LICENSE-3rdparty.csv +1 -0
  3. package/README.md +120 -3
  4. package/dist/packages/datadog-api-client-common/configuration.d.ts +5 -1
  5. package/dist/packages/datadog-api-client-common/configuration.js +3 -6
  6. package/dist/packages/datadog-api-client-common/configuration.js.map +1 -1
  7. package/dist/packages/datadog-api-client-common/http/http.d.ts +2 -0
  8. package/dist/packages/datadog-api-client-common/http/isomorphic-fetch.d.ts +2 -1
  9. package/dist/packages/datadog-api-client-common/http/isomorphic-fetch.js +11 -5
  10. package/dist/packages/datadog-api-client-common/http/isomorphic-fetch.js.map +1 -1
  11. package/dist/packages/datadog-api-client-common/servers.js.map +1 -1
  12. package/dist/packages/datadog-api-client-common/util.d.ts +0 -9
  13. package/dist/packages/datadog-api-client-common/util.js +1 -32
  14. package/dist/packages/datadog-api-client-common/util.js.map +1 -1
  15. package/dist/packages/datadog-api-client-v1/apis/AWSIntegrationApi.js +262 -407
  16. package/dist/packages/datadog-api-client-v1/apis/AWSIntegrationApi.js.map +1 -1
  17. package/dist/packages/datadog-api-client-v1/apis/AWSLogsIntegrationApi.js +201 -291
  18. package/dist/packages/datadog-api-client-v1/apis/AWSLogsIntegrationApi.js.map +1 -1
  19. package/dist/packages/datadog-api-client-v1/apis/AuthenticationApi.js +27 -33
  20. package/dist/packages/datadog-api-client-v1/apis/AuthenticationApi.js.map +1 -1
  21. package/dist/packages/datadog-api-client-v1/apis/AzureIntegrationApi.js +145 -215
  22. package/dist/packages/datadog-api-client-v1/apis/AzureIntegrationApi.js.map +1 -1
  23. package/dist/packages/datadog-api-client-v1/apis/DashboardListsApi.js +144 -215
  24. package/dist/packages/datadog-api-client-v1/apis/DashboardListsApi.js.map +1 -1
  25. package/dist/packages/datadog-api-client-v1/apis/DashboardsApi.js +198 -313
  26. package/dist/packages/datadog-api-client-v1/apis/DashboardsApi.js.map +1 -1
  27. package/dist/packages/datadog-api-client-v1/apis/DowntimesApi.js +201 -308
  28. package/dist/packages/datadog-api-client-v1/apis/DowntimesApi.js.map +1 -1
  29. package/dist/packages/datadog-api-client-v1/apis/EventsApi.js +85 -119
  30. package/dist/packages/datadog-api-client-v1/apis/EventsApi.js.map +1 -1
  31. package/dist/packages/datadog-api-client-v1/apis/GCPIntegrationApi.js +116 -172
  32. package/dist/packages/datadog-api-client-v1/apis/GCPIntegrationApi.js.map +1 -1
  33. package/dist/packages/datadog-api-client-v1/apis/HostsApi.js +116 -172
  34. package/dist/packages/datadog-api-client-v1/apis/HostsApi.js.map +1 -1
  35. package/dist/packages/datadog-api-client-v1/apis/IPRangesApi.js +23 -19
  36. package/dist/packages/datadog-api-client-v1/apis/IPRangesApi.js.map +1 -1
  37. package/dist/packages/datadog-api-client-v1/apis/KeyManagementApi.js +291 -460
  38. package/dist/packages/datadog-api-client-v1/apis/KeyManagementApi.js.map +1 -1
  39. package/dist/packages/datadog-api-client-v1/apis/LogsApi.js +75 -67
  40. package/dist/packages/datadog-api-client-v1/apis/LogsApi.js.map +1 -1
  41. package/dist/packages/datadog-api-client-v1/apis/LogsIndexesApi.js +210 -226
  42. package/dist/packages/datadog-api-client-v1/apis/LogsIndexesApi.js.map +1 -1
  43. package/dist/packages/datadog-api-client-v1/apis/LogsPipelinesApi.js +246 -272
  44. package/dist/packages/datadog-api-client-v1/apis/LogsPipelinesApi.js.map +1 -1
  45. package/dist/packages/datadog-api-client-v1/apis/MetricsApi.js +208 -351
  46. package/dist/packages/datadog-api-client-v1/apis/MetricsApi.js.map +1 -1
  47. package/dist/packages/datadog-api-client-v1/apis/MonitorsApi.js +295 -490
  48. package/dist/packages/datadog-api-client-v1/apis/MonitorsApi.js.map +1 -1
  49. package/dist/packages/datadog-api-client-v1/apis/NotebooksApi.js +146 -251
  50. package/dist/packages/datadog-api-client-v1/apis/NotebooksApi.js.map +1 -1
  51. package/dist/packages/datadog-api-client-v1/apis/OrganizationsApi.js +173 -258
  52. package/dist/packages/datadog-api-client-v1/apis/OrganizationsApi.js.map +1 -1
  53. package/dist/packages/datadog-api-client-v1/apis/PagerDutyIntegrationApi.js +111 -174
  54. package/dist/packages/datadog-api-client-v1/apis/PagerDutyIntegrationApi.js.map +1 -1
  55. package/dist/packages/datadog-api-client-v1/apis/SecurityMonitoringApi.js +90 -159
  56. package/dist/packages/datadog-api-client-v1/apis/SecurityMonitoringApi.js.map +1 -1
  57. package/dist/packages/datadog-api-client-v1/apis/ServiceChecksApi.js +31 -63
  58. package/dist/packages/datadog-api-client-v1/apis/ServiceChecksApi.js.map +1 -1
  59. package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectiveCorrectionsApi.js +142 -221
  60. package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectiveCorrectionsApi.js.map +1 -1
  61. package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.d.ts +8 -1
  62. package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.js +298 -492
  63. package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.js.map +1 -1
  64. package/dist/packages/datadog-api-client-v1/apis/SlackIntegrationApi.js +147 -261
  65. package/dist/packages/datadog-api-client-v1/apis/SlackIntegrationApi.js.map +1 -1
  66. package/dist/packages/datadog-api-client-v1/apis/SnapshotsApi.js +29 -43
  67. package/dist/packages/datadog-api-client-v1/apis/SnapshotsApi.js.map +1 -1
  68. package/dist/packages/datadog-api-client-v1/apis/SyntheticsApi.js +765 -1130
  69. package/dist/packages/datadog-api-client-v1/apis/SyntheticsApi.js.map +1 -1
  70. package/dist/packages/datadog-api-client-v1/apis/TagsApi.js +142 -211
  71. package/dist/packages/datadog-api-client-v1/apis/TagsApi.js.map +1 -1
  72. package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.d.ts +37 -27
  73. package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.js +1129 -1641
  74. package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.js.map +1 -1
  75. package/dist/packages/datadog-api-client-v1/apis/UsersApi.js +146 -235
  76. package/dist/packages/datadog-api-client-v1/apis/UsersApi.js.map +1 -1
  77. package/dist/packages/datadog-api-client-v1/apis/WebhooksIntegrationApi.js +230 -376
  78. package/dist/packages/datadog-api-client-v1/apis/WebhooksIntegrationApi.js.map +1 -1
  79. package/dist/packages/datadog-api-client-v1/index.d.ts +23 -0
  80. package/dist/packages/datadog-api-client-v1/index.js +37 -7
  81. package/dist/packages/datadog-api-client-v1/index.js.map +1 -1
  82. package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariable.d.ts +5 -1
  83. package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariable.js +4 -0
  84. package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariable.js.map +1 -1
  85. package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariablePresetValue.d.ts +5 -1
  86. package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariablePresetValue.js +4 -0
  87. package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariablePresetValue.js.map +1 -1
  88. package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryDefinition.d.ts +4 -0
  89. package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryDefinition.js +4 -0
  90. package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryDefinition.js.map +1 -1
  91. package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventsDataSource.d.ts +2 -1
  92. package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventsDataSource.js +2 -1
  93. package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventsDataSource.js.map +1 -1
  94. package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.d.ts +3 -1
  95. package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.js +3 -1
  96. package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.js.map +1 -1
  97. package/dist/packages/datadog-api-client-v1/models/ListStreamQuery.d.ts +4 -0
  98. package/dist/packages/datadog-api-client-v1/models/ListStreamQuery.js +4 -0
  99. package/dist/packages/datadog-api-client-v1/models/ListStreamQuery.js.map +1 -1
  100. package/dist/packages/datadog-api-client-v1/models/ListStreamSource.d.ts +2 -1
  101. package/dist/packages/datadog-api-client-v1/models/ListStreamSource.js +2 -1
  102. package/dist/packages/datadog-api-client-v1/models/ListStreamSource.js.map +1 -1
  103. package/dist/packages/datadog-api-client-v1/models/MetricContentEncoding.d.ts +2 -1
  104. package/dist/packages/datadog-api-client-v1/models/MetricContentEncoding.js +2 -1
  105. package/dist/packages/datadog-api-client-v1/models/MetricContentEncoding.js.map +1 -1
  106. package/dist/packages/datadog-api-client-v1/models/MonitorOptions.d.ts +16 -0
  107. package/dist/packages/datadog-api-client-v1/models/MonitorOptions.js +8 -0
  108. package/dist/packages/datadog-api-client-v1/models/MonitorOptions.js.map +1 -1
  109. package/dist/packages/datadog-api-client-v1/models/MonitorSummaryWidgetDefinition.d.ts +4 -0
  110. package/dist/packages/datadog-api-client-v1/models/MonitorSummaryWidgetDefinition.js +4 -0
  111. package/dist/packages/datadog-api-client-v1/models/MonitorSummaryWidgetDefinition.js.map +1 -1
  112. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.d.ts +5 -1
  113. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.js +6 -1
  114. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.js.map +1 -1
  115. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.d.ts +16 -0
  116. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.js +20 -0
  117. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.js.map +1 -1
  118. package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js +71 -3
  119. package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js.map +1 -1
  120. package/dist/packages/datadog-api-client-v1/models/OnMissingDataOption.d.ts +10 -0
  121. package/dist/packages/datadog-api-client-v1/models/OnMissingDataOption.js +13 -0
  122. package/dist/packages/datadog-api-client-v1/models/OnMissingDataOption.js.map +1 -0
  123. package/dist/packages/datadog-api-client-v1/models/SLOCreator.d.ts +36 -0
  124. package/dist/packages/datadog-api-client-v1/models/SLOCreator.js +42 -0
  125. package/dist/packages/datadog-api-client-v1/models/SLOCreator.js.map +1 -0
  126. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinition.d.ts +47 -0
  127. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinition.js +46 -0
  128. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinition.js.map +1 -0
  129. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinitionType.d.ts +7 -0
  130. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinitionType.js +10 -0
  131. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinitionType.js.map +1 -0
  132. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetQuery.d.ts +32 -0
  133. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetQuery.js +39 -0
  134. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetQuery.js.map +1 -0
  135. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequest.d.ts +34 -0
  136. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequest.js +34 -0
  137. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequest.js.map +1 -0
  138. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequestType.d.ts +7 -0
  139. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequestType.js +10 -0
  140. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequestType.js.map +1 -0
  141. package/dist/packages/datadog-api-client-v1/models/SLOOverallStatuses.d.ts +55 -0
  142. package/dist/packages/datadog-api-client-v1/models/SLOOverallStatuses.js +56 -0
  143. package/dist/packages/datadog-api-client-v1/models/SLOOverallStatuses.js.map +1 -0
  144. package/dist/packages/datadog-api-client-v1/models/SLORawErrorBudgetRemaining.d.ts +32 -0
  145. package/dist/packages/datadog-api-client-v1/models/SLORawErrorBudgetRemaining.js +38 -0
  146. package/dist/packages/datadog-api-client-v1/models/SLORawErrorBudgetRemaining.js.map +1 -0
  147. package/dist/packages/datadog-api-client-v1/models/SearchSLOQuery.d.ts +39 -0
  148. package/dist/packages/datadog-api-client-v1/models/SearchSLOQuery.js +43 -0
  149. package/dist/packages/datadog-api-client-v1/models/SearchSLOQuery.js.map +1 -0
  150. package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributes.d.ts +2 -2
  151. package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributes.js +3 -3
  152. package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributes.js.map +1 -1
  153. package/dist/packages/datadog-api-client-v1/models/SearchSLOThreshold.d.ts +54 -0
  154. package/dist/packages/datadog-api-client-v1/models/SearchSLOThreshold.js +48 -0
  155. package/dist/packages/datadog-api-client-v1/models/SearchSLOThreshold.js.map +1 -0
  156. package/dist/packages/datadog-api-client-v1/models/SearchSLOTimeframe.d.ts +9 -0
  157. package/dist/packages/datadog-api-client-v1/models/SearchSLOTimeframe.js +12 -0
  158. package/dist/packages/datadog-api-client-v1/models/SearchSLOTimeframe.js.map +1 -0
  159. package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjective.d.ts +29 -0
  160. package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjective.js +28 -0
  161. package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjective.js.map +1 -0
  162. package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveAttributes.d.ts +103 -0
  163. package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveAttributes.js +88 -0
  164. package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveAttributes.js.map +1 -0
  165. package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveData.d.ts +40 -0
  166. package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveData.js +36 -0
  167. package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveData.js.map +1 -0
  168. package/dist/packages/datadog-api-client-v1/models/SyntheticsAssertionOperator.d.ts +2 -1
  169. package/dist/packages/datadog-api-client-v1/models/SyntheticsAssertionOperator.js +2 -1
  170. package/dist/packages/datadog-api-client-v1/models/SyntheticsAssertionOperator.js.map +1 -1
  171. package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuth.d.ts +2 -1
  172. package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigest.d.ts +37 -0
  173. package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigest.js +38 -0
  174. package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigest.js.map +1 -0
  175. package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigestType.d.ts +7 -0
  176. package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigestType.js +10 -0
  177. package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigestType.js.map +1 -0
  178. package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptions.d.ts +5 -1
  179. package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptions.js +4 -1
  180. package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptions.js.map +1 -1
  181. package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptionsType.d.ts +2 -1
  182. package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptionsType.js +2 -1
  183. package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptionsType.js.map +1 -1
  184. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestOptions.d.ts +12 -0
  185. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestOptions.js +13 -0
  186. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestOptions.js.map +1 -1
  187. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestProcessStatus.d.ts +1 -2
  188. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestProcessStatus.js +1 -2
  189. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestProcessStatus.js.map +1 -1
  190. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestRequest.d.ts +4 -0
  191. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestRequest.js +4 -0
  192. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestRequest.js.map +1 -1
  193. package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinition.d.ts +52 -0
  194. package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinition.js +50 -0
  195. package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinition.js.map +1 -0
  196. package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinitionType.d.ts +7 -0
  197. package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinitionType.js +10 -0
  198. package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinitionType.js.map +1 -0
  199. package/dist/packages/datadog-api-client-v1/models/TopologyQuery.d.ts +37 -0
  200. package/dist/packages/datadog-api-client-v1/models/TopologyQuery.js +36 -0
  201. package/dist/packages/datadog-api-client-v1/models/TopologyQuery.js.map +1 -0
  202. package/dist/packages/datadog-api-client-v1/models/TopologyQueryDataSource.d.ts +8 -0
  203. package/dist/packages/datadog-api-client-v1/models/TopologyQueryDataSource.js +11 -0
  204. package/dist/packages/datadog-api-client-v1/models/TopologyQueryDataSource.js.map +1 -0
  205. package/dist/packages/datadog-api-client-v1/models/TopologyRequest.d.ts +34 -0
  206. package/dist/packages/datadog-api-client-v1/models/TopologyRequest.js +32 -0
  207. package/dist/packages/datadog-api-client-v1/models/TopologyRequest.js.map +1 -0
  208. package/dist/packages/datadog-api-client-v1/models/TopologyRequestType.d.ts +7 -0
  209. package/dist/packages/datadog-api-client-v1/models/TopologyRequestType.js +10 -0
  210. package/dist/packages/datadog-api-client-v1/models/TopologyRequestType.js.map +1 -0
  211. package/dist/packages/datadog-api-client-v1/models/UsageAttributionSort.d.ts +5 -1
  212. package/dist/packages/datadog-api-client-v1/models/UsageAttributionSort.js +5 -1
  213. package/dist/packages/datadog-api-client-v1/models/UsageAttributionSort.js.map +1 -1
  214. package/dist/packages/datadog-api-client-v1/models/UsageAttributionSupportedMetrics.d.ts +5 -1
  215. package/dist/packages/datadog-api-client-v1/models/UsageAttributionSupportedMetrics.js +5 -1
  216. package/dist/packages/datadog-api-client-v1/models/UsageAttributionSupportedMetrics.js.map +1 -1
  217. package/dist/packages/datadog-api-client-v1/models/UsageAttributionValues.d.ts +16 -0
  218. package/dist/packages/datadog-api-client-v1/models/UsageAttributionValues.js +20 -0
  219. package/dist/packages/datadog-api-client-v1/models/UsageAttributionValues.js.map +1 -1
  220. package/dist/packages/datadog-api-client-v1/models/UsageBillableSummaryHour.d.ts +4 -0
  221. package/dist/packages/datadog-api-client-v1/models/UsageBillableSummaryHour.js +4 -0
  222. package/dist/packages/datadog-api-client-v1/models/UsageBillableSummaryHour.js.map +1 -1
  223. package/dist/packages/datadog-api-client-v1/models/UsageCloudSecurityPostureManagementHour.d.ts +4 -0
  224. package/dist/packages/datadog-api-client-v1/models/UsageCloudSecurityPostureManagementHour.js +5 -0
  225. package/dist/packages/datadog-api-client-v1/models/UsageCloudSecurityPostureManagementHour.js.map +1 -1
  226. package/dist/packages/datadog-api-client-v1/models/UsageFargateHour.d.ts +4 -0
  227. package/dist/packages/datadog-api-client-v1/models/UsageFargateHour.js +5 -0
  228. package/dist/packages/datadog-api-client-v1/models/UsageFargateHour.js.map +1 -1
  229. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.d.ts +8 -0
  230. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.js +10 -0
  231. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.js.map +1 -1
  232. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.d.ts +12 -0
  233. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.js +14 -0
  234. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.js.map +1 -1
  235. package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.d.ts +8 -0
  236. package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.js +10 -0
  237. package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.js.map +1 -1
  238. package/dist/packages/datadog-api-client-v1/models/WidgetDefinition.d.ts +3 -1
  239. package/dist/packages/datadog-api-client-v1/models/WidgetMonitorSummarySort.d.ts +3 -1
  240. package/dist/packages/datadog-api-client-v1/models/WidgetMonitorSummarySort.js +3 -1
  241. package/dist/packages/datadog-api-client-v1/models/WidgetMonitorSummarySort.js.map +1 -1
  242. package/dist/packages/datadog-api-client-v2/apis/AuditApi.js +58 -86
  243. package/dist/packages/datadog-api-client-v2/apis/AuditApi.js.map +1 -1
  244. package/dist/packages/datadog-api-client-v2/apis/AuthNMappingsApi.js +144 -241
  245. package/dist/packages/datadog-api-client-v2/apis/AuthNMappingsApi.js.map +1 -1
  246. package/dist/packages/datadog-api-client-v2/apis/CloudWorkloadSecurityApi.js +167 -260
  247. package/dist/packages/datadog-api-client-v2/apis/CloudWorkloadSecurityApi.js.map +1 -1
  248. package/dist/packages/datadog-api-client-v2/apis/DashboardListsApi.js +119 -202
  249. package/dist/packages/datadog-api-client-v2/apis/DashboardListsApi.js.map +1 -1
  250. package/dist/packages/datadog-api-client-v2/apis/EventsApi.js +58 -86
  251. package/dist/packages/datadog-api-client-v2/apis/EventsApi.js.map +1 -1
  252. package/dist/packages/datadog-api-client-v2/apis/IncidentServicesApi.js +151 -311
  253. package/dist/packages/datadog-api-client-v2/apis/IncidentServicesApi.js.map +1 -1
  254. package/dist/packages/datadog-api-client-v2/apis/IncidentTeamsApi.js +151 -311
  255. package/dist/packages/datadog-api-client-v2/apis/IncidentTeamsApi.js.map +1 -1
  256. package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.d.ts +67 -0
  257. package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.js +365 -303
  258. package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.js.map +1 -1
  259. package/dist/packages/datadog-api-client-v2/apis/KeyManagementApi.js +403 -650
  260. package/dist/packages/datadog-api-client-v2/apis/KeyManagementApi.js.map +1 -1
  261. package/dist/packages/datadog-api-client-v2/apis/LogsApi.js +121 -222
  262. package/dist/packages/datadog-api-client-v2/apis/LogsApi.js.map +1 -1
  263. package/dist/packages/datadog-api-client-v2/apis/LogsArchivesApi.js +285 -469
  264. package/dist/packages/datadog-api-client-v2/apis/LogsArchivesApi.js.map +1 -1
  265. package/dist/packages/datadog-api-client-v2/apis/LogsMetricsApi.js +142 -221
  266. package/dist/packages/datadog-api-client-v2/apis/LogsMetricsApi.js.map +1 -1
  267. package/dist/packages/datadog-api-client-v2/apis/MetricsApi.d.ts +41 -8
  268. package/dist/packages/datadog-api-client-v2/apis/MetricsApi.js +428 -560
  269. package/dist/packages/datadog-api-client-v2/apis/MetricsApi.js.map +1 -1
  270. package/dist/packages/datadog-api-client-v2/apis/OpsgenieIntegrationApi.js +146 -261
  271. package/dist/packages/datadog-api-client-v2/apis/OpsgenieIntegrationApi.js.map +1 -1
  272. package/dist/packages/datadog-api-client-v2/apis/OrganizationsApi.js +27 -40
  273. package/dist/packages/datadog-api-client-v2/apis/OrganizationsApi.js.map +1 -1
  274. package/dist/packages/datadog-api-client-v2/apis/ProcessesApi.js +29 -43
  275. package/dist/packages/datadog-api-client-v2/apis/ProcessesApi.js.map +1 -1
  276. package/dist/packages/datadog-api-client-v2/apis/RUMApi.d.ts +105 -0
  277. package/dist/packages/datadog-api-client-v2/apis/RUMApi.js +549 -122
  278. package/dist/packages/datadog-api-client-v2/apis/RUMApi.js.map +1 -1
  279. package/dist/packages/datadog-api-client-v2/apis/RolesApi.js +380 -625
  280. package/dist/packages/datadog-api-client-v2/apis/RolesApi.js.map +1 -1
  281. package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.d.ts +21 -0
  282. package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.js +522 -688
  283. package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.js.map +1 -1
  284. package/dist/packages/datadog-api-client-v2/apis/ServiceAccountsApi.js +144 -231
  285. package/dist/packages/datadog-api-client-v2/apis/ServiceAccountsApi.js.map +1 -1
  286. package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.d.ts +43 -6
  287. package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.js +284 -265
  288. package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.js.map +1 -1
  289. package/dist/packages/datadog-api-client-v2/apis/UsersApi.js +289 -446
  290. package/dist/packages/datadog-api-client-v2/apis/UsersApi.js.map +1 -1
  291. package/dist/packages/datadog-api-client-v2/index.d.ts +49 -6
  292. package/dist/packages/datadog-api-client-v2/index.js +69 -15
  293. package/dist/packages/datadog-api-client-v2/index.js.map +1 -1
  294. package/dist/packages/datadog-api-client-v2/models/ContentEncoding.d.ts +2 -1
  295. package/dist/packages/datadog-api-client-v2/models/ContentEncoding.js +2 -1
  296. package/dist/packages/datadog-api-client-v2/models/ContentEncoding.js.map +1 -1
  297. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttachmentType.d.ts +8 -0
  298. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttachmentType.js +11 -0
  299. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttachmentType.js.map +1 -0
  300. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttributes.d.ts +12 -0
  301. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttributes.js +3 -0
  302. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttributes.js.map +1 -0
  303. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentData.d.ts +43 -0
  304. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentData.js +44 -0
  305. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentData.js.map +1 -0
  306. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttachmentType.d.ts +7 -0
  307. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttachmentType.js +10 -0
  308. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttachmentType.js.map +1 -0
  309. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributes.d.ts +34 -0
  310. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributes.js +34 -0
  311. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributes.js.map +1 -0
  312. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributesAttachmentObject.d.ts +32 -0
  313. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributesAttachmentObject.js +39 -0
  314. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributesAttachmentObject.js.map +1 -0
  315. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttachmentType.d.ts +7 -0
  316. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttachmentType.js +10 -0
  317. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttachmentType.js.map +1 -0
  318. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttributes.d.ts +34 -0
  319. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttributes.js +34 -0
  320. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttributes.js.map +1 -0
  321. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelatedObject.d.ts +7 -0
  322. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelatedObject.js +10 -0
  323. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelatedObject.js.map +1 -0
  324. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelationships.d.ts +29 -0
  325. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelationships.js +28 -0
  326. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelationships.js.map +1 -0
  327. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentType.d.ts +7 -0
  328. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentType.js +10 -0
  329. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentType.js.map +1 -0
  330. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateAttributes.d.ts +12 -0
  331. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateAttributes.js +3 -0
  332. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateAttributes.js.map +1 -0
  333. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateData.d.ts +38 -0
  334. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateData.js +37 -0
  335. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateData.js.map +1 -0
  336. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateRequest.d.ts +32 -0
  337. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateRequest.js +29 -0
  338. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateRequest.js.map +1 -0
  339. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateResponse.d.ts +35 -0
  340. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateResponse.js +33 -0
  341. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateResponse.js.map +1 -0
  342. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsPostmortemAttributesAttachmentObject.d.ts +32 -0
  343. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsPostmortemAttributesAttachmentObject.js +39 -0
  344. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsPostmortemAttributesAttachmentObject.js.map +1 -0
  345. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponse.d.ts +34 -0
  346. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponse.js +33 -0
  347. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponse.js.map +1 -0
  348. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponseIncludedItem.d.ts +11 -0
  349. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponseIncludedItem.js +3 -0
  350. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponseIncludedItem.js.map +1 -0
  351. package/dist/packages/datadog-api-client-v2/models/IncidentRelatedObject.d.ts +2 -1
  352. package/dist/packages/datadog-api-client-v2/models/IncidentRelatedObject.js +2 -1
  353. package/dist/packages/datadog-api-client-v2/models/IncidentRelatedObject.js.map +1 -1
  354. package/dist/packages/datadog-api-client-v2/models/IncidentResponseAttributes.d.ts +0 -4
  355. package/dist/packages/datadog-api-client-v2/models/IncidentResponseAttributes.js +0 -4
  356. package/dist/packages/datadog-api-client-v2/models/IncidentResponseAttributes.js.map +1 -1
  357. package/dist/packages/datadog-api-client-v2/models/IncidentResponseIncludedItem.d.ts +2 -1
  358. package/dist/packages/datadog-api-client-v2/models/IncidentResponseRelationships.d.ts +5 -5
  359. package/dist/packages/datadog-api-client-v2/models/IncidentResponseRelationships.js +4 -4
  360. package/dist/packages/datadog-api-client-v2/models/IncidentResponseRelationships.js.map +1 -1
  361. package/dist/packages/datadog-api-client-v2/models/MetricActiveConfigurationType.d.ts +7 -0
  362. package/dist/packages/datadog-api-client-v2/models/MetricActiveConfigurationType.js +10 -0
  363. package/dist/packages/datadog-api-client-v2/models/MetricActiveConfigurationType.js.map +1 -0
  364. package/dist/packages/datadog-api-client-v2/models/MetricContentEncoding.d.ts +3 -1
  365. package/dist/packages/datadog-api-client-v2/models/MetricContentEncoding.js +3 -1
  366. package/dist/packages/datadog-api-client-v2/models/MetricContentEncoding.js.map +1 -1
  367. package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregations.d.ts +38 -0
  368. package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregations.js +36 -0
  369. package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregations.js.map +1 -0
  370. package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregationsResponse.d.ts +29 -0
  371. package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregationsResponse.js +28 -0
  372. package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregationsResponse.js.map +1 -0
  373. package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAttributes.d.ts +33 -0
  374. package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAttributes.js +32 -0
  375. package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAttributes.js.map +1 -0
  376. package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js +98 -12
  377. package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js.map +1 -1
  378. package/dist/packages/datadog-api-client-v2/models/RUMApplication.d.ts +38 -0
  379. package/dist/packages/datadog-api-client-v2/models/RUMApplication.js +39 -0
  380. package/dist/packages/datadog-api-client-v2/models/RUMApplication.js.map +1 -0
  381. package/dist/packages/datadog-api-client-v2/models/RUMApplicationAttributes.d.ts +60 -0
  382. package/dist/packages/datadog-api-client-v2/models/RUMApplicationAttributes.js +76 -0
  383. package/dist/packages/datadog-api-client-v2/models/RUMApplicationAttributes.js.map +1 -0
  384. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreate.d.ts +34 -0
  385. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreate.js +34 -0
  386. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreate.js.map +1 -0
  387. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateAttributes.d.ts +32 -0
  388. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateAttributes.js +38 -0
  389. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateAttributes.js.map +1 -0
  390. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateRequest.d.ts +29 -0
  391. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateRequest.js +29 -0
  392. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateRequest.js.map +1 -0
  393. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateType.d.ts +7 -0
  394. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateType.js +10 -0
  395. package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateType.js.map +1 -0
  396. package/dist/packages/datadog-api-client-v2/models/RUMApplicationResponse.d.ts +29 -0
  397. package/dist/packages/datadog-api-client-v2/models/RUMApplicationResponse.js +28 -0
  398. package/dist/packages/datadog-api-client-v2/models/RUMApplicationResponse.js.map +1 -0
  399. package/dist/packages/datadog-api-client-v2/models/RUMApplicationType.d.ts +7 -0
  400. package/dist/packages/datadog-api-client-v2/models/RUMApplicationType.js +10 -0
  401. package/dist/packages/datadog-api-client-v2/models/RUMApplicationType.js.map +1 -0
  402. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdate.d.ts +38 -0
  403. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdate.js +38 -0
  404. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdate.js.map +1 -0
  405. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateAttributes.d.ts +32 -0
  406. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateAttributes.js +37 -0
  407. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateAttributes.js.map +1 -0
  408. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateRequest.d.ts +29 -0
  409. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateRequest.js +29 -0
  410. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateRequest.js.map +1 -0
  411. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateType.d.ts +7 -0
  412. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateType.js +10 -0
  413. package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateType.js.map +1 -0
  414. package/dist/packages/datadog-api-client-v2/models/RUMApplicationsResponse.d.ts +29 -0
  415. package/dist/packages/datadog-api-client-v2/models/RUMApplicationsResponse.js +28 -0
  416. package/dist/packages/datadog-api-client-v2/models/RUMApplicationsResponse.js.map +1 -0
  417. package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachment.d.ts +29 -0
  418. package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachment.js +29 -0
  419. package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachment.js.map +1 -0
  420. package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachmentData.d.ts +33 -0
  421. package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachmentData.js +34 -0
  422. package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachmentData.js.map +1 -0
  423. package/dist/packages/datadog-api-client-v2/models/RoleUpdateData.d.ts +5 -0
  424. package/dist/packages/datadog-api-client-v2/models/RoleUpdateData.js +4 -0
  425. package/dist/packages/datadog-api-client-v2/models/RoleUpdateData.js.map +1 -1
  426. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCreatePayload.d.ts +4 -61
  427. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCreatePayload.js +0 -67
  428. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCreatePayload.js.map +1 -1
  429. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQuery.d.ts +4 -46
  430. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQuery.js +0 -49
  431. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQuery.js.map +1 -1
  432. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryAggregation.d.ts +2 -1
  433. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryAggregation.js +2 -1
  434. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryAggregation.js.map +1 -1
  435. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleResponse.d.ts +5 -90
  436. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleResponse.js +0 -93
  437. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleResponse.js.map +1 -1
  438. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleCreatePayload.d.ts +69 -0
  439. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleCreatePayload.js +70 -0
  440. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleCreatePayload.js.map +1 -0
  441. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleQuery.d.ts +49 -0
  442. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleQuery.js +50 -0
  443. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleQuery.js.map +1 -0
  444. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponse.d.ts +97 -0
  445. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponse.js +96 -0
  446. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponse.js.map +1 -0
  447. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleType.d.ts +7 -0
  448. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleType.js +10 -0
  449. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleType.js.map +1 -0
  450. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleCreatePayload.d.ts +69 -0
  451. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleCreatePayload.js +70 -0
  452. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleCreatePayload.js.map +1 -0
  453. package/dist/packages/datadog-api-client-v2/models/{SecurityMonitoringRuleQueryCreate.d.ts → SecurityMonitoringStandardRuleQuery.d.ts} +1 -1
  454. package/dist/packages/datadog-api-client-v2/models/{SecurityMonitoringRuleQueryCreate.js → SecurityMonitoringStandardRuleQuery.js} +9 -9
  455. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleQuery.js.map +1 -0
  456. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleResponse.d.ts +97 -0
  457. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleResponse.js +96 -0
  458. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleResponse.js.map +1 -0
  459. package/dist/version.d.ts +1 -1
  460. package/dist/version.js +1 -1
  461. package/package.json +3 -2
  462. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryCreate.js.map +0 -1
@@ -67,9 +67,9 @@ exports.SecurityMonitoringApi = exports.SecurityMonitoringApiResponseProcessor =
67
67
  var baseapi_1 = require("../../datadog-api-client-common/baseapi");
68
68
  var configuration_1 = require("../../datadog-api-client-common/configuration");
69
69
  var http_1 = require("../../datadog-api-client-common/http/http");
70
+ var logger_1 = require("../../../logger");
70
71
  var ObjectSerializer_1 = require("../models/ObjectSerializer");
71
72
  var exception_1 = require("../../datadog-api-client-common/exception");
72
- var util_1 = require("../../datadog-api-client-common/util");
73
73
  var SecurityMonitoringSignalListRequest_1 = require("../models/SecurityMonitoringSignalListRequest");
74
74
  var SecurityMonitoringSignalListRequestPage_1 = require("../models/SecurityMonitoringSignalListRequestPage");
75
75
  var SecurityMonitoringApiRequestFactory = /** @class */ (function (_super) {
@@ -206,7 +206,6 @@ var SecurityMonitoringApiRequestFactory = /** @class */ (function (_super) {
206
206
  requestContext.setBody(serializedBody);
207
207
  // Apply auth methods
208
208
  (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
209
- "AuthZ",
210
209
  "apiKeyAuth",
211
210
  "appKeyAuth",
212
211
  ]);
@@ -239,7 +238,6 @@ var SecurityMonitoringApiRequestFactory = /** @class */ (function (_super) {
239
238
  requestContext.setBody(serializedBody);
240
239
  // Apply auth methods
241
240
  (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
242
- "AuthZ",
243
241
  "apiKeyAuth",
244
242
  "appKeyAuth",
245
243
  ]);
@@ -272,7 +270,6 @@ var SecurityMonitoringApiRequestFactory = /** @class */ (function (_super) {
272
270
  requestContext.setBody(serializedBody);
273
271
  // Apply auth methods
274
272
  (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
275
- "AuthZ",
276
273
  "apiKeyAuth",
277
274
  "appKeyAuth",
278
275
  ]);
@@ -326,6 +323,29 @@ var SecurityMonitoringApiRequestFactory = /** @class */ (function (_super) {
326
323
  });
327
324
  });
328
325
  };
326
+ SecurityMonitoringApiRequestFactory.prototype.getSecurityMonitoringSignal = function (signalId, _options) {
327
+ return __awaiter(this, void 0, void 0, function () {
328
+ var _config, localVarPath, requestContext;
329
+ return __generator(this, function (_a) {
330
+ _config = _options || this.configuration;
331
+ // verify required parameter 'signalId' is not null or undefined
332
+ if (signalId === null || signalId === undefined) {
333
+ throw new baseapi_1.RequiredError("Required parameter signalId was null or undefined when calling getSecurityMonitoringSignal.");
334
+ }
335
+ localVarPath = "/api/v2/security_monitoring/signals/{signal_id}".replace("{" + "signal_id" + "}", encodeURIComponent(String(signalId)));
336
+ requestContext = (0, configuration_1.getServer)(_config, "v2.SecurityMonitoringApi.getSecurityMonitoringSignal").makeRequestContext(localVarPath, http_1.HttpMethod.GET);
337
+ requestContext.setHeaderParam("Accept", "application/json");
338
+ requestContext.setHttpConfig(_config.httpConfig);
339
+ // Apply auth methods
340
+ (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
341
+ "AuthZ",
342
+ "apiKeyAuth",
343
+ "appKeyAuth",
344
+ ]);
345
+ return [2 /*return*/, requestContext];
346
+ });
347
+ });
348
+ };
329
349
  SecurityMonitoringApiRequestFactory.prototype.listSecurityFilters = function (_options) {
330
350
  return __awaiter(this, void 0, void 0, function () {
331
351
  var _config, localVarPath, requestContext;
@@ -515,73 +535,50 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
515
535
  */
516
536
  SecurityMonitoringApiResponseProcessor.prototype.createSecurityFilter = function (response) {
517
537
  return __awaiter(this, void 0, void 0, function () {
518
- var contentType, body_1, _a, _b, _c, _d, body_2, _e, _f, _g, _h, body_3, _j, _k, _l, _m, body_4, _o, _p, _q, _r, body_5, _s, _t, _u, _v, body_6, _w, _x, _y, _z, body;
519
- return __generator(this, function (_0) {
520
- switch (_0.label) {
538
+ var contentType, body_1, _a, _b, _c, _d, bodyText, _e, _f, body_2, body_3, _g, _h, _j, _k, body;
539
+ return __generator(this, function (_l) {
540
+ switch (_l.label) {
521
541
  case 0:
522
542
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
523
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
543
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
524
544
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
525
545
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
526
546
  return [4 /*yield*/, response.body.text()];
527
547
  case 1:
528
- body_1 = _b.apply(_a, [_d.apply(_c, [_0.sent(), contentType]),
529
- "SecurityFilterResponse",
530
- ""]);
548
+ body_1 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
549
+ "SecurityFilterResponse"]);
531
550
  return [2 /*return*/, body_1];
532
551
  case 2:
533
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
534
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
535
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
552
+ if (!(response.httpStatusCode == 400 ||
553
+ response.httpStatusCode == 403 ||
554
+ response.httpStatusCode == 409 ||
555
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
556
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
536
557
  return [4 /*yield*/, response.body.text()];
537
558
  case 3:
538
- body_2 = _f.apply(_e, [_h.apply(_g, [_0.sent(), contentType]),
539
- "APIErrorResponse",
540
- ""]);
541
- throw new exception_1.ApiException(400, body_2);
559
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
560
+ try {
561
+ body_2 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
562
+ throw new exception_1.ApiException(response.httpStatusCode, body_2);
563
+ }
564
+ catch (error) {
565
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
566
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
567
+ }
568
+ _l.label = 4;
542
569
  case 4:
543
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
544
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
545
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
570
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
571
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
572
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
546
573
  return [4 /*yield*/, response.body.text()];
547
574
  case 5:
548
- body_3 = _k.apply(_j, [_m.apply(_l, [_0.sent(), contentType]),
549
- "APIErrorResponse",
550
- ""]);
551
- throw new exception_1.ApiException(403, body_3);
552
- case 6:
553
- if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3 /*break*/, 8];
554
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
555
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
556
- return [4 /*yield*/, response.body.text()];
557
- case 7:
558
- body_4 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
559
- "APIErrorResponse",
560
- ""]);
561
- throw new exception_1.ApiException(409, body_4);
562
- case 8:
563
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
564
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
565
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
566
- return [4 /*yield*/, response.body.text()];
567
- case 9:
568
- body_5 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
569
- "APIErrorResponse",
570
- ""]);
571
- throw new exception_1.ApiException(429, body_5);
572
- case 10:
573
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
574
- _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
575
- _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
576
- return [4 /*yield*/, response.body.text()];
577
- case 11:
578
- body_6 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
575
+ body_3 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
579
576
  "SecurityFilterResponse",
580
577
  ""]);
581
- return [2 /*return*/, body_6];
582
- case 12: return [4 /*yield*/, response.body.text()];
583
- case 13:
584
- body = (_0.sent()) || "";
578
+ return [2 /*return*/, body_3];
579
+ case 6: return [4 /*yield*/, response.body.text()];
580
+ case 7:
581
+ body = (_l.sent()) || "";
585
582
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
586
583
  }
587
584
  });
@@ -596,63 +593,49 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
596
593
  */
597
594
  SecurityMonitoringApiResponseProcessor.prototype.createSecurityMonitoringRule = function (response) {
598
595
  return __awaiter(this, void 0, void 0, function () {
599
- var contentType, body_7, _a, _b, _c, _d, body_8, _e, _f, _g, _h, body_9, _j, _k, _l, _m, body_10, _o, _p, _q, _r, body_11, _s, _t, _u, _v, body;
600
- return __generator(this, function (_w) {
601
- switch (_w.label) {
596
+ var contentType, body_4, _a, _b, _c, _d, bodyText, _e, _f, body_5, body_6, _g, _h, _j, _k, body;
597
+ return __generator(this, function (_l) {
598
+ switch (_l.label) {
602
599
  case 0:
603
600
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
604
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
601
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
605
602
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
606
603
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
607
604
  return [4 /*yield*/, response.body.text()];
608
605
  case 1:
609
- body_7 = _b.apply(_a, [_d.apply(_c, [_w.sent(), contentType]),
610
- "SecurityMonitoringRuleResponse",
611
- ""]);
612
- return [2 /*return*/, body_7];
606
+ body_4 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
607
+ "SecurityMonitoringRuleResponse"]);
608
+ return [2 /*return*/, body_4];
613
609
  case 2:
614
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
615
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
616
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
610
+ if (!(response.httpStatusCode == 400 ||
611
+ response.httpStatusCode == 403 ||
612
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
613
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
617
614
  return [4 /*yield*/, response.body.text()];
618
615
  case 3:
619
- body_8 = _f.apply(_e, [_h.apply(_g, [_w.sent(), contentType]),
620
- "APIErrorResponse",
621
- ""]);
622
- throw new exception_1.ApiException(400, body_8);
616
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
617
+ try {
618
+ body_5 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
619
+ throw new exception_1.ApiException(response.httpStatusCode, body_5);
620
+ }
621
+ catch (error) {
622
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
623
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
624
+ }
625
+ _l.label = 4;
623
626
  case 4:
624
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
625
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
626
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
627
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
628
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
629
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
627
630
  return [4 /*yield*/, response.body.text()];
628
631
  case 5:
629
- body_9 = _k.apply(_j, [_m.apply(_l, [_w.sent(), contentType]),
630
- "APIErrorResponse",
631
- ""]);
632
- throw new exception_1.ApiException(403, body_9);
633
- case 6:
634
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
635
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
636
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
637
- return [4 /*yield*/, response.body.text()];
638
- case 7:
639
- body_10 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
640
- "APIErrorResponse",
641
- ""]);
642
- throw new exception_1.ApiException(429, body_10);
643
- case 8:
644
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
645
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
646
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
647
- return [4 /*yield*/, response.body.text()];
648
- case 9:
649
- body_11 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
632
+ body_6 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
650
633
  "SecurityMonitoringRuleResponse",
651
634
  ""]);
652
- return [2 /*return*/, body_11];
653
- case 10: return [4 /*yield*/, response.body.text()];
654
- case 11:
655
- body = (_w.sent()) || "";
635
+ return [2 /*return*/, body_6];
636
+ case 6: return [4 /*yield*/, response.body.text()];
637
+ case 7:
638
+ body = (_l.sent()) || "";
656
639
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
657
640
  }
658
641
  });
@@ -667,56 +650,43 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
667
650
  */
668
651
  SecurityMonitoringApiResponseProcessor.prototype.deleteSecurityFilter = function (response) {
669
652
  return __awaiter(this, void 0, void 0, function () {
670
- var contentType, body_12, _a, _b, _c, _d, body_13, _e, _f, _g, _h, body_14, _j, _k, _l, _m, body_15, _o, _p, _q, _r, body;
671
- return __generator(this, function (_s) {
672
- switch (_s.label) {
653
+ var contentType, bodyText, _a, _b, body_7, body_8, _c, _d, _e, _f, body;
654
+ return __generator(this, function (_g) {
655
+ switch (_g.label) {
673
656
  case 0:
674
657
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
675
- if ((0, util_1.isCodeInRange)("204", response.httpStatusCode)) {
658
+ if (response.httpStatusCode == 204) {
676
659
  return [2 /*return*/];
677
660
  }
678
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 2];
679
- _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
680
- _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
661
+ if (!(response.httpStatusCode == 403 ||
662
+ response.httpStatusCode == 404 ||
663
+ response.httpStatusCode == 429)) return [3 /*break*/, 2];
664
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).parse;
681
665
  return [4 /*yield*/, response.body.text()];
682
666
  case 1:
683
- body_12 = _b.apply(_a, [_d.apply(_c, [_s.sent(), contentType]),
684
- "APIErrorResponse",
685
- ""]);
686
- throw new exception_1.ApiException(403, body_12);
667
+ bodyText = _b.apply(_a, [_g.sent(), contentType]);
668
+ try {
669
+ body_7 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
670
+ throw new exception_1.ApiException(response.httpStatusCode, body_7);
671
+ }
672
+ catch (error) {
673
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
674
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
675
+ }
676
+ _g.label = 2;
687
677
  case 2:
688
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 4];
689
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
690
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
678
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 4];
679
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).deserialize;
680
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
691
681
  return [4 /*yield*/, response.body.text()];
692
682
  case 3:
693
- body_13 = _f.apply(_e, [_h.apply(_g, [_s.sent(), contentType]),
694
- "APIErrorResponse",
695
- ""]);
696
- throw new exception_1.ApiException(404, body_13);
697
- case 4:
698
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 6];
699
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
700
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
701
- return [4 /*yield*/, response.body.text()];
702
- case 5:
703
- body_14 = _k.apply(_j, [_m.apply(_l, [_s.sent(), contentType]),
704
- "APIErrorResponse",
705
- ""]);
706
- throw new exception_1.ApiException(429, body_14);
707
- case 6:
708
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 8];
709
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
710
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
711
- return [4 /*yield*/, response.body.text()];
712
- case 7:
713
- body_15 = _p.apply(_o, [_r.apply(_q, [_s.sent(), contentType]),
683
+ body_8 = _d.apply(_c, [_f.apply(_e, [_g.sent(), contentType]),
714
684
  "void",
715
685
  ""]);
716
- return [2 /*return*/, body_15];
717
- case 8: return [4 /*yield*/, response.body.text()];
718
- case 9:
719
- body = (_s.sent()) || "";
686
+ return [2 /*return*/, body_8];
687
+ case 4: return [4 /*yield*/, response.body.text()];
688
+ case 5:
689
+ body = (_g.sent()) || "";
720
690
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
721
691
  }
722
692
  });
@@ -731,56 +701,43 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
731
701
  */
732
702
  SecurityMonitoringApiResponseProcessor.prototype.deleteSecurityMonitoringRule = function (response) {
733
703
  return __awaiter(this, void 0, void 0, function () {
734
- var contentType, body_16, _a, _b, _c, _d, body_17, _e, _f, _g, _h, body_18, _j, _k, _l, _m, body_19, _o, _p, _q, _r, body;
735
- return __generator(this, function (_s) {
736
- switch (_s.label) {
704
+ var contentType, bodyText, _a, _b, body_9, body_10, _c, _d, _e, _f, body;
705
+ return __generator(this, function (_g) {
706
+ switch (_g.label) {
737
707
  case 0:
738
708
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
739
- if ((0, util_1.isCodeInRange)("204", response.httpStatusCode)) {
709
+ if (response.httpStatusCode == 204) {
740
710
  return [2 /*return*/];
741
711
  }
742
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 2];
743
- _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
744
- _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
712
+ if (!(response.httpStatusCode == 403 ||
713
+ response.httpStatusCode == 404 ||
714
+ response.httpStatusCode == 429)) return [3 /*break*/, 2];
715
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).parse;
745
716
  return [4 /*yield*/, response.body.text()];
746
717
  case 1:
747
- body_16 = _b.apply(_a, [_d.apply(_c, [_s.sent(), contentType]),
748
- "APIErrorResponse",
749
- ""]);
750
- throw new exception_1.ApiException(403, body_16);
718
+ bodyText = _b.apply(_a, [_g.sent(), contentType]);
719
+ try {
720
+ body_9 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
721
+ throw new exception_1.ApiException(response.httpStatusCode, body_9);
722
+ }
723
+ catch (error) {
724
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
725
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
726
+ }
727
+ _g.label = 2;
751
728
  case 2:
752
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 4];
753
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
754
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
729
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 4];
730
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).deserialize;
731
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
755
732
  return [4 /*yield*/, response.body.text()];
756
733
  case 3:
757
- body_17 = _f.apply(_e, [_h.apply(_g, [_s.sent(), contentType]),
758
- "APIErrorResponse",
759
- ""]);
760
- throw new exception_1.ApiException(404, body_17);
761
- case 4:
762
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 6];
763
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
764
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
765
- return [4 /*yield*/, response.body.text()];
766
- case 5:
767
- body_18 = _k.apply(_j, [_m.apply(_l, [_s.sent(), contentType]),
768
- "APIErrorResponse",
769
- ""]);
770
- throw new exception_1.ApiException(429, body_18);
771
- case 6:
772
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 8];
773
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
774
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
775
- return [4 /*yield*/, response.body.text()];
776
- case 7:
777
- body_19 = _p.apply(_o, [_r.apply(_q, [_s.sent(), contentType]),
734
+ body_10 = _d.apply(_c, [_f.apply(_e, [_g.sent(), contentType]),
778
735
  "void",
779
736
  ""]);
780
- return [2 /*return*/, body_19];
781
- case 8: return [4 /*yield*/, response.body.text()];
782
- case 9:
783
- body = (_s.sent()) || "";
737
+ return [2 /*return*/, body_10];
738
+ case 4: return [4 /*yield*/, response.body.text()];
739
+ case 5:
740
+ body = (_g.sent()) || "";
784
741
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
785
742
  }
786
743
  });
@@ -795,73 +752,50 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
795
752
  */
796
753
  SecurityMonitoringApiResponseProcessor.prototype.editSecurityMonitoringSignalAssignee = function (response) {
797
754
  return __awaiter(this, void 0, void 0, function () {
798
- var contentType, body_20, _a, _b, _c, _d, body_21, _e, _f, _g, _h, body_22, _j, _k, _l, _m, body_23, _o, _p, _q, _r, body_24, _s, _t, _u, _v, body_25, _w, _x, _y, _z, body;
799
- return __generator(this, function (_0) {
800
- switch (_0.label) {
755
+ var contentType, body_11, _a, _b, _c, _d, bodyText, _e, _f, body_12, body_13, _g, _h, _j, _k, body;
756
+ return __generator(this, function (_l) {
757
+ switch (_l.label) {
801
758
  case 0:
802
759
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
803
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
760
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
804
761
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
805
762
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
806
763
  return [4 /*yield*/, response.body.text()];
807
764
  case 1:
808
- body_20 = _b.apply(_a, [_d.apply(_c, [_0.sent(), contentType]),
809
- "SecurityMonitoringSignalTriageUpdateResponse",
810
- ""]);
811
- return [2 /*return*/, body_20];
765
+ body_11 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
766
+ "SecurityMonitoringSignalTriageUpdateResponse"]);
767
+ return [2 /*return*/, body_11];
812
768
  case 2:
813
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
814
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
815
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
769
+ if (!(response.httpStatusCode == 400 ||
770
+ response.httpStatusCode == 403 ||
771
+ response.httpStatusCode == 404 ||
772
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
773
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
816
774
  return [4 /*yield*/, response.body.text()];
817
775
  case 3:
818
- body_21 = _f.apply(_e, [_h.apply(_g, [_0.sent(), contentType]),
819
- "APIErrorResponse",
820
- ""]);
821
- throw new exception_1.ApiException(400, body_21);
776
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
777
+ try {
778
+ body_12 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
779
+ throw new exception_1.ApiException(response.httpStatusCode, body_12);
780
+ }
781
+ catch (error) {
782
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
783
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
784
+ }
785
+ _l.label = 4;
822
786
  case 4:
823
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
824
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
825
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
787
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
788
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
789
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
826
790
  return [4 /*yield*/, response.body.text()];
827
791
  case 5:
828
- body_22 = _k.apply(_j, [_m.apply(_l, [_0.sent(), contentType]),
829
- "APIErrorResponse",
830
- ""]);
831
- throw new exception_1.ApiException(403, body_22);
832
- case 6:
833
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
834
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
835
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
836
- return [4 /*yield*/, response.body.text()];
837
- case 7:
838
- body_23 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
839
- "APIErrorResponse",
840
- ""]);
841
- throw new exception_1.ApiException(404, body_23);
842
- case 8:
843
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
844
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
845
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
846
- return [4 /*yield*/, response.body.text()];
847
- case 9:
848
- body_24 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
849
- "APIErrorResponse",
850
- ""]);
851
- throw new exception_1.ApiException(429, body_24);
852
- case 10:
853
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
854
- _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
855
- _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
856
- return [4 /*yield*/, response.body.text()];
857
- case 11:
858
- body_25 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
792
+ body_13 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
859
793
  "SecurityMonitoringSignalTriageUpdateResponse",
860
794
  ""]);
861
- return [2 /*return*/, body_25];
862
- case 12: return [4 /*yield*/, response.body.text()];
863
- case 13:
864
- body = (_0.sent()) || "";
795
+ return [2 /*return*/, body_13];
796
+ case 6: return [4 /*yield*/, response.body.text()];
797
+ case 7:
798
+ body = (_l.sent()) || "";
865
799
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
866
800
  }
867
801
  });
@@ -876,73 +810,50 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
876
810
  */
877
811
  SecurityMonitoringApiResponseProcessor.prototype.editSecurityMonitoringSignalIncidents = function (response) {
878
812
  return __awaiter(this, void 0, void 0, function () {
879
- var contentType, body_26, _a, _b, _c, _d, body_27, _e, _f, _g, _h, body_28, _j, _k, _l, _m, body_29, _o, _p, _q, _r, body_30, _s, _t, _u, _v, body_31, _w, _x, _y, _z, body;
880
- return __generator(this, function (_0) {
881
- switch (_0.label) {
813
+ var contentType, body_14, _a, _b, _c, _d, bodyText, _e, _f, body_15, body_16, _g, _h, _j, _k, body;
814
+ return __generator(this, function (_l) {
815
+ switch (_l.label) {
882
816
  case 0:
883
817
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
884
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
818
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
885
819
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
886
820
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
887
821
  return [4 /*yield*/, response.body.text()];
888
822
  case 1:
889
- body_26 = _b.apply(_a, [_d.apply(_c, [_0.sent(), contentType]),
890
- "SecurityMonitoringSignalTriageUpdateResponse",
891
- ""]);
892
- return [2 /*return*/, body_26];
823
+ body_14 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
824
+ "SecurityMonitoringSignalTriageUpdateResponse"]);
825
+ return [2 /*return*/, body_14];
893
826
  case 2:
894
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
895
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
896
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
827
+ if (!(response.httpStatusCode == 400 ||
828
+ response.httpStatusCode == 403 ||
829
+ response.httpStatusCode == 404 ||
830
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
831
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
897
832
  return [4 /*yield*/, response.body.text()];
898
833
  case 3:
899
- body_27 = _f.apply(_e, [_h.apply(_g, [_0.sent(), contentType]),
900
- "APIErrorResponse",
901
- ""]);
902
- throw new exception_1.ApiException(400, body_27);
834
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
835
+ try {
836
+ body_15 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
837
+ throw new exception_1.ApiException(response.httpStatusCode, body_15);
838
+ }
839
+ catch (error) {
840
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
841
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
842
+ }
843
+ _l.label = 4;
903
844
  case 4:
904
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
905
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
906
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
845
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
846
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
847
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
907
848
  return [4 /*yield*/, response.body.text()];
908
849
  case 5:
909
- body_28 = _k.apply(_j, [_m.apply(_l, [_0.sent(), contentType]),
910
- "APIErrorResponse",
911
- ""]);
912
- throw new exception_1.ApiException(403, body_28);
913
- case 6:
914
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
915
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
916
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
917
- return [4 /*yield*/, response.body.text()];
918
- case 7:
919
- body_29 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
920
- "APIErrorResponse",
921
- ""]);
922
- throw new exception_1.ApiException(404, body_29);
923
- case 8:
924
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
925
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
926
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
927
- return [4 /*yield*/, response.body.text()];
928
- case 9:
929
- body_30 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
930
- "APIErrorResponse",
931
- ""]);
932
- throw new exception_1.ApiException(429, body_30);
933
- case 10:
934
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
935
- _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
936
- _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
937
- return [4 /*yield*/, response.body.text()];
938
- case 11:
939
- body_31 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
850
+ body_16 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
940
851
  "SecurityMonitoringSignalTriageUpdateResponse",
941
852
  ""]);
942
- return [2 /*return*/, body_31];
943
- case 12: return [4 /*yield*/, response.body.text()];
944
- case 13:
945
- body = (_0.sent()) || "";
853
+ return [2 /*return*/, body_16];
854
+ case 6: return [4 /*yield*/, response.body.text()];
855
+ case 7:
856
+ body = (_l.sent()) || "";
946
857
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
947
858
  }
948
859
  });
@@ -957,73 +868,50 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
957
868
  */
958
869
  SecurityMonitoringApiResponseProcessor.prototype.editSecurityMonitoringSignalState = function (response) {
959
870
  return __awaiter(this, void 0, void 0, function () {
960
- var contentType, body_32, _a, _b, _c, _d, body_33, _e, _f, _g, _h, body_34, _j, _k, _l, _m, body_35, _o, _p, _q, _r, body_36, _s, _t, _u, _v, body_37, _w, _x, _y, _z, body;
961
- return __generator(this, function (_0) {
962
- switch (_0.label) {
871
+ var contentType, body_17, _a, _b, _c, _d, bodyText, _e, _f, body_18, body_19, _g, _h, _j, _k, body;
872
+ return __generator(this, function (_l) {
873
+ switch (_l.label) {
963
874
  case 0:
964
875
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
965
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
876
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
966
877
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
967
878
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
968
879
  return [4 /*yield*/, response.body.text()];
969
880
  case 1:
970
- body_32 = _b.apply(_a, [_d.apply(_c, [_0.sent(), contentType]),
971
- "SecurityMonitoringSignalTriageUpdateResponse",
972
- ""]);
973
- return [2 /*return*/, body_32];
881
+ body_17 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
882
+ "SecurityMonitoringSignalTriageUpdateResponse"]);
883
+ return [2 /*return*/, body_17];
974
884
  case 2:
975
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
976
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
977
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
885
+ if (!(response.httpStatusCode == 400 ||
886
+ response.httpStatusCode == 403 ||
887
+ response.httpStatusCode == 404 ||
888
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
889
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
978
890
  return [4 /*yield*/, response.body.text()];
979
891
  case 3:
980
- body_33 = _f.apply(_e, [_h.apply(_g, [_0.sent(), contentType]),
981
- "APIErrorResponse",
982
- ""]);
983
- throw new exception_1.ApiException(400, body_33);
892
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
893
+ try {
894
+ body_18 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
895
+ throw new exception_1.ApiException(response.httpStatusCode, body_18);
896
+ }
897
+ catch (error) {
898
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
899
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
900
+ }
901
+ _l.label = 4;
984
902
  case 4:
985
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
986
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
987
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
903
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
904
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
905
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
988
906
  return [4 /*yield*/, response.body.text()];
989
907
  case 5:
990
- body_34 = _k.apply(_j, [_m.apply(_l, [_0.sent(), contentType]),
991
- "APIErrorResponse",
992
- ""]);
993
- throw new exception_1.ApiException(403, body_34);
994
- case 6:
995
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
996
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
997
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
998
- return [4 /*yield*/, response.body.text()];
999
- case 7:
1000
- body_35 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
1001
- "APIErrorResponse",
1002
- ""]);
1003
- throw new exception_1.ApiException(404, body_35);
1004
- case 8:
1005
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
1006
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1007
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1008
- return [4 /*yield*/, response.body.text()];
1009
- case 9:
1010
- body_36 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
1011
- "APIErrorResponse",
1012
- ""]);
1013
- throw new exception_1.ApiException(429, body_36);
1014
- case 10:
1015
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
1016
- _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
1017
- _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
1018
- return [4 /*yield*/, response.body.text()];
1019
- case 11:
1020
- body_37 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
908
+ body_19 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
1021
909
  "SecurityMonitoringSignalTriageUpdateResponse",
1022
910
  ""]);
1023
- return [2 /*return*/, body_37];
1024
- case 12: return [4 /*yield*/, response.body.text()];
1025
- case 13:
1026
- body = (_0.sent()) || "";
911
+ return [2 /*return*/, body_19];
912
+ case 6: return [4 /*yield*/, response.body.text()];
913
+ case 7:
914
+ body = (_l.sent()) || "";
1027
915
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
1028
916
  }
1029
917
  });
@@ -1038,63 +926,49 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
1038
926
  */
1039
927
  SecurityMonitoringApiResponseProcessor.prototype.getSecurityFilter = function (response) {
1040
928
  return __awaiter(this, void 0, void 0, function () {
1041
- var contentType, body_38, _a, _b, _c, _d, body_39, _e, _f, _g, _h, body_40, _j, _k, _l, _m, body_41, _o, _p, _q, _r, body_42, _s, _t, _u, _v, body;
1042
- return __generator(this, function (_w) {
1043
- switch (_w.label) {
929
+ var contentType, body_20, _a, _b, _c, _d, bodyText, _e, _f, body_21, body_22, _g, _h, _j, _k, body;
930
+ return __generator(this, function (_l) {
931
+ switch (_l.label) {
1044
932
  case 0:
1045
933
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1046
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
934
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
1047
935
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1048
936
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1049
937
  return [4 /*yield*/, response.body.text()];
1050
938
  case 1:
1051
- body_38 = _b.apply(_a, [_d.apply(_c, [_w.sent(), contentType]),
1052
- "SecurityFilterResponse",
1053
- ""]);
1054
- return [2 /*return*/, body_38];
939
+ body_20 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
940
+ "SecurityFilterResponse"]);
941
+ return [2 /*return*/, body_20];
1055
942
  case 2:
1056
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 4];
1057
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1058
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
943
+ if (!(response.httpStatusCode == 403 ||
944
+ response.httpStatusCode == 404 ||
945
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
946
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
1059
947
  return [4 /*yield*/, response.body.text()];
1060
948
  case 3:
1061
- body_39 = _f.apply(_e, [_h.apply(_g, [_w.sent(), contentType]),
1062
- "APIErrorResponse",
1063
- ""]);
1064
- throw new exception_1.ApiException(403, body_39);
949
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
950
+ try {
951
+ body_21 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
952
+ throw new exception_1.ApiException(response.httpStatusCode, body_21);
953
+ }
954
+ catch (error) {
955
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
956
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
957
+ }
958
+ _l.label = 4;
1065
959
  case 4:
1066
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 6];
1067
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1068
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
960
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
961
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
962
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
1069
963
  return [4 /*yield*/, response.body.text()];
1070
964
  case 5:
1071
- body_40 = _k.apply(_j, [_m.apply(_l, [_w.sent(), contentType]),
1072
- "APIErrorResponse",
1073
- ""]);
1074
- throw new exception_1.ApiException(404, body_40);
1075
- case 6:
1076
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
1077
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1078
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1079
- return [4 /*yield*/, response.body.text()];
1080
- case 7:
1081
- body_41 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
1082
- "APIErrorResponse",
1083
- ""]);
1084
- throw new exception_1.ApiException(429, body_41);
1085
- case 8:
1086
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
1087
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1088
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1089
- return [4 /*yield*/, response.body.text()];
1090
- case 9:
1091
- body_42 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
965
+ body_22 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
1092
966
  "SecurityFilterResponse",
1093
967
  ""]);
1094
- return [2 /*return*/, body_42];
1095
- case 10: return [4 /*yield*/, response.body.text()];
1096
- case 11:
1097
- body = (_w.sent()) || "";
968
+ return [2 /*return*/, body_22];
969
+ case 6: return [4 /*yield*/, response.body.text()];
970
+ case 7:
971
+ body = (_l.sent()) || "";
1098
972
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
1099
973
  }
1100
974
  });
@@ -1109,53 +983,102 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
1109
983
  */
1110
984
  SecurityMonitoringApiResponseProcessor.prototype.getSecurityMonitoringRule = function (response) {
1111
985
  return __awaiter(this, void 0, void 0, function () {
1112
- var contentType, body_43, _a, _b, _c, _d, body_44, _e, _f, _g, _h, body_45, _j, _k, _l, _m, body_46, _o, _p, _q, _r, body;
1113
- return __generator(this, function (_s) {
1114
- switch (_s.label) {
986
+ var contentType, body_23, _a, _b, _c, _d, bodyText, _e, _f, body_24, body_25, _g, _h, _j, _k, body;
987
+ return __generator(this, function (_l) {
988
+ switch (_l.label) {
1115
989
  case 0:
1116
990
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1117
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
991
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
1118
992
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1119
993
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1120
994
  return [4 /*yield*/, response.body.text()];
1121
995
  case 1:
1122
- body_43 = _b.apply(_a, [_d.apply(_c, [_s.sent(), contentType]),
996
+ body_23 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
997
+ "SecurityMonitoringRuleResponse"]);
998
+ return [2 /*return*/, body_23];
999
+ case 2:
1000
+ if (!(response.httpStatusCode == 404 || response.httpStatusCode == 429)) return [3 /*break*/, 4];
1001
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
1002
+ return [4 /*yield*/, response.body.text()];
1003
+ case 3:
1004
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
1005
+ try {
1006
+ body_24 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
1007
+ throw new exception_1.ApiException(response.httpStatusCode, body_24);
1008
+ }
1009
+ catch (error) {
1010
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
1011
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
1012
+ }
1013
+ _l.label = 4;
1014
+ case 4:
1015
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
1016
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
1017
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
1018
+ return [4 /*yield*/, response.body.text()];
1019
+ case 5:
1020
+ body_25 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
1123
1021
  "SecurityMonitoringRuleResponse",
1124
1022
  ""]);
1125
- return [2 /*return*/, body_43];
1023
+ return [2 /*return*/, body_25];
1024
+ case 6: return [4 /*yield*/, response.body.text()];
1025
+ case 7:
1026
+ body = (_l.sent()) || "";
1027
+ throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
1028
+ }
1029
+ });
1030
+ });
1031
+ };
1032
+ /**
1033
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
1034
+ * to the expected objects
1035
+ *
1036
+ * @params response Response returned by the server for a request to getSecurityMonitoringSignal
1037
+ * @throws ApiException if the response code was not in [200, 299]
1038
+ */
1039
+ SecurityMonitoringApiResponseProcessor.prototype.getSecurityMonitoringSignal = function (response) {
1040
+ return __awaiter(this, void 0, void 0, function () {
1041
+ var contentType, body_26, _a, _b, _c, _d, bodyText, _e, _f, body_27, body_28, _g, _h, _j, _k, body;
1042
+ return __generator(this, function (_l) {
1043
+ switch (_l.label) {
1044
+ case 0:
1045
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1046
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
1047
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1048
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1049
+ return [4 /*yield*/, response.body.text()];
1050
+ case 1:
1051
+ body_26 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
1052
+ "SecurityMonitoringSignal"]);
1053
+ return [2 /*return*/, body_26];
1126
1054
  case 2:
1127
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 4];
1128
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1129
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1055
+ if (!(response.httpStatusCode == 404 || response.httpStatusCode == 429)) return [3 /*break*/, 4];
1056
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
1130
1057
  return [4 /*yield*/, response.body.text()];
1131
1058
  case 3:
1132
- body_44 = _f.apply(_e, [_h.apply(_g, [_s.sent(), contentType]),
1133
- "APIErrorResponse",
1134
- ""]);
1135
- throw new exception_1.ApiException(404, body_44);
1059
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
1060
+ try {
1061
+ body_27 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
1062
+ throw new exception_1.ApiException(response.httpStatusCode, body_27);
1063
+ }
1064
+ catch (error) {
1065
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
1066
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
1067
+ }
1068
+ _l.label = 4;
1136
1069
  case 4:
1137
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 6];
1138
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1139
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1070
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
1071
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
1072
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
1140
1073
  return [4 /*yield*/, response.body.text()];
1141
1074
  case 5:
1142
- body_45 = _k.apply(_j, [_m.apply(_l, [_s.sent(), contentType]),
1143
- "APIErrorResponse",
1075
+ body_28 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
1076
+ "SecurityMonitoringSignal",
1144
1077
  ""]);
1145
- throw new exception_1.ApiException(429, body_45);
1146
- case 6:
1147
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 8];
1148
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1149
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1150
- return [4 /*yield*/, response.body.text()];
1078
+ return [2 /*return*/, body_28];
1079
+ case 6: return [4 /*yield*/, response.body.text()];
1151
1080
  case 7:
1152
- body_46 = _p.apply(_o, [_r.apply(_q, [_s.sent(), contentType]),
1153
- "SecurityMonitoringRuleResponse",
1154
- ""]);
1155
- return [2 /*return*/, body_46];
1156
- case 8: return [4 /*yield*/, response.body.text()];
1157
- case 9:
1158
- body = (_s.sent()) || "";
1081
+ body = (_l.sent()) || "";
1159
1082
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
1160
1083
  }
1161
1084
  });
@@ -1170,53 +1093,47 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
1170
1093
  */
1171
1094
  SecurityMonitoringApiResponseProcessor.prototype.listSecurityFilters = function (response) {
1172
1095
  return __awaiter(this, void 0, void 0, function () {
1173
- var contentType, body_47, _a, _b, _c, _d, body_48, _e, _f, _g, _h, body_49, _j, _k, _l, _m, body_50, _o, _p, _q, _r, body;
1174
- return __generator(this, function (_s) {
1175
- switch (_s.label) {
1096
+ var contentType, body_29, _a, _b, _c, _d, bodyText, _e, _f, body_30, body_31, _g, _h, _j, _k, body;
1097
+ return __generator(this, function (_l) {
1098
+ switch (_l.label) {
1176
1099
  case 0:
1177
1100
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1178
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
1101
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
1179
1102
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1180
1103
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1181
1104
  return [4 /*yield*/, response.body.text()];
1182
1105
  case 1:
1183
- body_47 = _b.apply(_a, [_d.apply(_c, [_s.sent(), contentType]),
1184
- "SecurityFiltersResponse",
1185
- ""]);
1186
- return [2 /*return*/, body_47];
1106
+ body_29 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
1107
+ "SecurityFiltersResponse"]);
1108
+ return [2 /*return*/, body_29];
1187
1109
  case 2:
1188
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 4];
1189
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1190
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1110
+ if (!(response.httpStatusCode == 403 || response.httpStatusCode == 429)) return [3 /*break*/, 4];
1111
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
1191
1112
  return [4 /*yield*/, response.body.text()];
1192
1113
  case 3:
1193
- body_48 = _f.apply(_e, [_h.apply(_g, [_s.sent(), contentType]),
1194
- "APIErrorResponse",
1195
- ""]);
1196
- throw new exception_1.ApiException(403, body_48);
1114
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
1115
+ try {
1116
+ body_30 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
1117
+ throw new exception_1.ApiException(response.httpStatusCode, body_30);
1118
+ }
1119
+ catch (error) {
1120
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
1121
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
1122
+ }
1123
+ _l.label = 4;
1197
1124
  case 4:
1198
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 6];
1199
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1200
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1125
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
1126
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
1127
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
1201
1128
  return [4 /*yield*/, response.body.text()];
1202
1129
  case 5:
1203
- body_49 = _k.apply(_j, [_m.apply(_l, [_s.sent(), contentType]),
1204
- "APIErrorResponse",
1205
- ""]);
1206
- throw new exception_1.ApiException(429, body_49);
1207
- case 6:
1208
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 8];
1209
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1210
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1211
- return [4 /*yield*/, response.body.text()];
1212
- case 7:
1213
- body_50 = _p.apply(_o, [_r.apply(_q, [_s.sent(), contentType]),
1130
+ body_31 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
1214
1131
  "SecurityFiltersResponse",
1215
1132
  ""]);
1216
- return [2 /*return*/, body_50];
1217
- case 8: return [4 /*yield*/, response.body.text()];
1218
- case 9:
1219
- body = (_s.sent()) || "";
1133
+ return [2 /*return*/, body_31];
1134
+ case 6: return [4 /*yield*/, response.body.text()];
1135
+ case 7:
1136
+ body = (_l.sent()) || "";
1220
1137
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
1221
1138
  }
1222
1139
  });
@@ -1231,53 +1148,47 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
1231
1148
  */
1232
1149
  SecurityMonitoringApiResponseProcessor.prototype.listSecurityMonitoringRules = function (response) {
1233
1150
  return __awaiter(this, void 0, void 0, function () {
1234
- var contentType, body_51, _a, _b, _c, _d, body_52, _e, _f, _g, _h, body_53, _j, _k, _l, _m, body_54, _o, _p, _q, _r, body;
1235
- return __generator(this, function (_s) {
1236
- switch (_s.label) {
1151
+ var contentType, body_32, _a, _b, _c, _d, bodyText, _e, _f, body_33, body_34, _g, _h, _j, _k, body;
1152
+ return __generator(this, function (_l) {
1153
+ switch (_l.label) {
1237
1154
  case 0:
1238
1155
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1239
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
1156
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
1240
1157
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1241
1158
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1242
1159
  return [4 /*yield*/, response.body.text()];
1243
1160
  case 1:
1244
- body_51 = _b.apply(_a, [_d.apply(_c, [_s.sent(), contentType]),
1245
- "SecurityMonitoringListRulesResponse",
1246
- ""]);
1247
- return [2 /*return*/, body_51];
1161
+ body_32 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
1162
+ "SecurityMonitoringListRulesResponse"]);
1163
+ return [2 /*return*/, body_32];
1248
1164
  case 2:
1249
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
1250
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1251
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1165
+ if (!(response.httpStatusCode == 400 || response.httpStatusCode == 429)) return [3 /*break*/, 4];
1166
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
1252
1167
  return [4 /*yield*/, response.body.text()];
1253
1168
  case 3:
1254
- body_52 = _f.apply(_e, [_h.apply(_g, [_s.sent(), contentType]),
1255
- "APIErrorResponse",
1256
- ""]);
1257
- throw new exception_1.ApiException(400, body_52);
1169
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
1170
+ try {
1171
+ body_33 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
1172
+ throw new exception_1.ApiException(response.httpStatusCode, body_33);
1173
+ }
1174
+ catch (error) {
1175
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
1176
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
1177
+ }
1178
+ _l.label = 4;
1258
1179
  case 4:
1259
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 6];
1260
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1261
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1180
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
1181
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
1182
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
1262
1183
  return [4 /*yield*/, response.body.text()];
1263
1184
  case 5:
1264
- body_53 = _k.apply(_j, [_m.apply(_l, [_s.sent(), contentType]),
1265
- "APIErrorResponse",
1266
- ""]);
1267
- throw new exception_1.ApiException(429, body_53);
1268
- case 6:
1269
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 8];
1270
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1271
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1272
- return [4 /*yield*/, response.body.text()];
1273
- case 7:
1274
- body_54 = _p.apply(_o, [_r.apply(_q, [_s.sent(), contentType]),
1185
+ body_34 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
1275
1186
  "SecurityMonitoringListRulesResponse",
1276
1187
  ""]);
1277
- return [2 /*return*/, body_54];
1278
- case 8: return [4 /*yield*/, response.body.text()];
1279
- case 9:
1280
- body = (_s.sent()) || "";
1188
+ return [2 /*return*/, body_34];
1189
+ case 6: return [4 /*yield*/, response.body.text()];
1190
+ case 7:
1191
+ body = (_l.sent()) || "";
1281
1192
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
1282
1193
  }
1283
1194
  });
@@ -1292,63 +1203,49 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
1292
1203
  */
1293
1204
  SecurityMonitoringApiResponseProcessor.prototype.listSecurityMonitoringSignals = function (response) {
1294
1205
  return __awaiter(this, void 0, void 0, function () {
1295
- var contentType, body_55, _a, _b, _c, _d, body_56, _e, _f, _g, _h, body_57, _j, _k, _l, _m, body_58, _o, _p, _q, _r, body_59, _s, _t, _u, _v, body;
1296
- return __generator(this, function (_w) {
1297
- switch (_w.label) {
1206
+ var contentType, body_35, _a, _b, _c, _d, bodyText, _e, _f, body_36, body_37, _g, _h, _j, _k, body;
1207
+ return __generator(this, function (_l) {
1208
+ switch (_l.label) {
1298
1209
  case 0:
1299
1210
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1300
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
1211
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
1301
1212
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1302
1213
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1303
1214
  return [4 /*yield*/, response.body.text()];
1304
1215
  case 1:
1305
- body_55 = _b.apply(_a, [_d.apply(_c, [_w.sent(), contentType]),
1306
- "SecurityMonitoringSignalsListResponse",
1307
- ""]);
1308
- return [2 /*return*/, body_55];
1216
+ body_35 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
1217
+ "SecurityMonitoringSignalsListResponse"]);
1218
+ return [2 /*return*/, body_35];
1309
1219
  case 2:
1310
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
1311
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1312
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1220
+ if (!(response.httpStatusCode == 400 ||
1221
+ response.httpStatusCode == 403 ||
1222
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
1223
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
1313
1224
  return [4 /*yield*/, response.body.text()];
1314
1225
  case 3:
1315
- body_56 = _f.apply(_e, [_h.apply(_g, [_w.sent(), contentType]),
1316
- "APIErrorResponse",
1317
- ""]);
1318
- throw new exception_1.ApiException(400, body_56);
1226
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
1227
+ try {
1228
+ body_36 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
1229
+ throw new exception_1.ApiException(response.httpStatusCode, body_36);
1230
+ }
1231
+ catch (error) {
1232
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
1233
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
1234
+ }
1235
+ _l.label = 4;
1319
1236
  case 4:
1320
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
1321
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1322
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1237
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
1238
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
1239
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
1323
1240
  return [4 /*yield*/, response.body.text()];
1324
1241
  case 5:
1325
- body_57 = _k.apply(_j, [_m.apply(_l, [_w.sent(), contentType]),
1326
- "APIErrorResponse",
1327
- ""]);
1328
- throw new exception_1.ApiException(403, body_57);
1329
- case 6:
1330
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
1331
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1332
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1333
- return [4 /*yield*/, response.body.text()];
1334
- case 7:
1335
- body_58 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
1336
- "APIErrorResponse",
1337
- ""]);
1338
- throw new exception_1.ApiException(429, body_58);
1339
- case 8:
1340
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
1341
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1342
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1343
- return [4 /*yield*/, response.body.text()];
1344
- case 9:
1345
- body_59 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
1242
+ body_37 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
1346
1243
  "SecurityMonitoringSignalsListResponse",
1347
1244
  ""]);
1348
- return [2 /*return*/, body_59];
1349
- case 10: return [4 /*yield*/, response.body.text()];
1350
- case 11:
1351
- body = (_w.sent()) || "";
1245
+ return [2 /*return*/, body_37];
1246
+ case 6: return [4 /*yield*/, response.body.text()];
1247
+ case 7:
1248
+ body = (_l.sent()) || "";
1352
1249
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
1353
1250
  }
1354
1251
  });
@@ -1363,63 +1260,49 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
1363
1260
  */
1364
1261
  SecurityMonitoringApiResponseProcessor.prototype.searchSecurityMonitoringSignals = function (response) {
1365
1262
  return __awaiter(this, void 0, void 0, function () {
1366
- var contentType, body_60, _a, _b, _c, _d, body_61, _e, _f, _g, _h, body_62, _j, _k, _l, _m, body_63, _o, _p, _q, _r, body_64, _s, _t, _u, _v, body;
1367
- return __generator(this, function (_w) {
1368
- switch (_w.label) {
1263
+ var contentType, body_38, _a, _b, _c, _d, bodyText, _e, _f, body_39, body_40, _g, _h, _j, _k, body;
1264
+ return __generator(this, function (_l) {
1265
+ switch (_l.label) {
1369
1266
  case 0:
1370
1267
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1371
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
1268
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
1372
1269
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1373
1270
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1374
1271
  return [4 /*yield*/, response.body.text()];
1375
1272
  case 1:
1376
- body_60 = _b.apply(_a, [_d.apply(_c, [_w.sent(), contentType]),
1377
- "SecurityMonitoringSignalsListResponse",
1378
- ""]);
1379
- return [2 /*return*/, body_60];
1273
+ body_38 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
1274
+ "SecurityMonitoringSignalsListResponse"]);
1275
+ return [2 /*return*/, body_38];
1380
1276
  case 2:
1381
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
1382
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1383
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1277
+ if (!(response.httpStatusCode == 400 ||
1278
+ response.httpStatusCode == 403 ||
1279
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
1280
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
1384
1281
  return [4 /*yield*/, response.body.text()];
1385
1282
  case 3:
1386
- body_61 = _f.apply(_e, [_h.apply(_g, [_w.sent(), contentType]),
1387
- "APIErrorResponse",
1388
- ""]);
1389
- throw new exception_1.ApiException(400, body_61);
1283
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
1284
+ try {
1285
+ body_39 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
1286
+ throw new exception_1.ApiException(response.httpStatusCode, body_39);
1287
+ }
1288
+ catch (error) {
1289
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
1290
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
1291
+ }
1292
+ _l.label = 4;
1390
1293
  case 4:
1391
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
1392
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1393
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1294
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
1295
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
1296
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
1394
1297
  return [4 /*yield*/, response.body.text()];
1395
1298
  case 5:
1396
- body_62 = _k.apply(_j, [_m.apply(_l, [_w.sent(), contentType]),
1397
- "APIErrorResponse",
1398
- ""]);
1399
- throw new exception_1.ApiException(403, body_62);
1400
- case 6:
1401
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
1402
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1403
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1404
- return [4 /*yield*/, response.body.text()];
1405
- case 7:
1406
- body_63 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
1407
- "APIErrorResponse",
1408
- ""]);
1409
- throw new exception_1.ApiException(429, body_63);
1410
- case 8:
1411
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
1412
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1413
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1414
- return [4 /*yield*/, response.body.text()];
1415
- case 9:
1416
- body_64 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
1299
+ body_40 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
1417
1300
  "SecurityMonitoringSignalsListResponse",
1418
1301
  ""]);
1419
- return [2 /*return*/, body_64];
1420
- case 10: return [4 /*yield*/, response.body.text()];
1421
- case 11:
1422
- body = (_w.sent()) || "";
1302
+ return [2 /*return*/, body_40];
1303
+ case 6: return [4 /*yield*/, response.body.text()];
1304
+ case 7:
1305
+ body = (_l.sent()) || "";
1423
1306
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
1424
1307
  }
1425
1308
  });
@@ -1434,83 +1317,51 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
1434
1317
  */
1435
1318
  SecurityMonitoringApiResponseProcessor.prototype.updateSecurityFilter = function (response) {
1436
1319
  return __awaiter(this, void 0, void 0, function () {
1437
- var contentType, body_65, _a, _b, _c, _d, body_66, _e, _f, _g, _h, body_67, _j, _k, _l, _m, body_68, _o, _p, _q, _r, body_69, _s, _t, _u, _v, body_70, _w, _x, _y, _z, body_71, _0, _1, _2, _3, body;
1438
- return __generator(this, function (_4) {
1439
- switch (_4.label) {
1320
+ var contentType, body_41, _a, _b, _c, _d, bodyText, _e, _f, body_42, body_43, _g, _h, _j, _k, body;
1321
+ return __generator(this, function (_l) {
1322
+ switch (_l.label) {
1440
1323
  case 0:
1441
1324
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1442
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
1325
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
1443
1326
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1444
1327
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1445
1328
  return [4 /*yield*/, response.body.text()];
1446
1329
  case 1:
1447
- body_65 = _b.apply(_a, [_d.apply(_c, [_4.sent(), contentType]),
1448
- "SecurityFilterResponse",
1449
- ""]);
1450
- return [2 /*return*/, body_65];
1330
+ body_41 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
1331
+ "SecurityFilterResponse"]);
1332
+ return [2 /*return*/, body_41];
1451
1333
  case 2:
1452
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
1453
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1454
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1334
+ if (!(response.httpStatusCode == 400 ||
1335
+ response.httpStatusCode == 403 ||
1336
+ response.httpStatusCode == 404 ||
1337
+ response.httpStatusCode == 409 ||
1338
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
1339
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
1455
1340
  return [4 /*yield*/, response.body.text()];
1456
1341
  case 3:
1457
- body_66 = _f.apply(_e, [_h.apply(_g, [_4.sent(), contentType]),
1458
- "APIErrorResponse",
1459
- ""]);
1460
- throw new exception_1.ApiException(400, body_66);
1342
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
1343
+ try {
1344
+ body_42 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
1345
+ throw new exception_1.ApiException(response.httpStatusCode, body_42);
1346
+ }
1347
+ catch (error) {
1348
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
1349
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
1350
+ }
1351
+ _l.label = 4;
1461
1352
  case 4:
1462
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
1463
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1464
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1353
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
1354
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
1355
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
1465
1356
  return [4 /*yield*/, response.body.text()];
1466
1357
  case 5:
1467
- body_67 = _k.apply(_j, [_m.apply(_l, [_4.sent(), contentType]),
1468
- "APIErrorResponse",
1469
- ""]);
1470
- throw new exception_1.ApiException(403, body_67);
1471
- case 6:
1472
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
1473
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1474
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1475
- return [4 /*yield*/, response.body.text()];
1476
- case 7:
1477
- body_68 = _p.apply(_o, [_r.apply(_q, [_4.sent(), contentType]),
1478
- "APIErrorResponse",
1479
- ""]);
1480
- throw new exception_1.ApiException(404, body_68);
1481
- case 8:
1482
- if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3 /*break*/, 10];
1483
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1484
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1485
- return [4 /*yield*/, response.body.text()];
1486
- case 9:
1487
- body_69 = _t.apply(_s, [_v.apply(_u, [_4.sent(), contentType]),
1488
- "APIErrorResponse",
1489
- ""]);
1490
- throw new exception_1.ApiException(409, body_69);
1491
- case 10:
1492
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 12];
1493
- _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
1494
- _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
1495
- return [4 /*yield*/, response.body.text()];
1496
- case 11:
1497
- body_70 = _x.apply(_w, [_z.apply(_y, [_4.sent(), contentType]),
1498
- "APIErrorResponse",
1499
- ""]);
1500
- throw new exception_1.ApiException(429, body_70);
1501
- case 12:
1502
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 14];
1503
- _1 = (_0 = ObjectSerializer_1.ObjectSerializer).deserialize;
1504
- _3 = (_2 = ObjectSerializer_1.ObjectSerializer).parse;
1505
- return [4 /*yield*/, response.body.text()];
1506
- case 13:
1507
- body_71 = _1.apply(_0, [_3.apply(_2, [_4.sent(), contentType]),
1358
+ body_43 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
1508
1359
  "SecurityFilterResponse",
1509
1360
  ""]);
1510
- return [2 /*return*/, body_71];
1511
- case 14: return [4 /*yield*/, response.body.text()];
1512
- case 15:
1513
- body = (_4.sent()) || "";
1361
+ return [2 /*return*/, body_43];
1362
+ case 6: return [4 /*yield*/, response.body.text()];
1363
+ case 7:
1364
+ body = (_l.sent()) || "";
1514
1365
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
1515
1366
  }
1516
1367
  });
@@ -1525,83 +1376,51 @@ var SecurityMonitoringApiResponseProcessor = /** @class */ (function () {
1525
1376
  */
1526
1377
  SecurityMonitoringApiResponseProcessor.prototype.updateSecurityMonitoringRule = function (response) {
1527
1378
  return __awaiter(this, void 0, void 0, function () {
1528
- var contentType, body_72, _a, _b, _c, _d, body_73, _e, _f, _g, _h, body_74, _j, _k, _l, _m, body_75, _o, _p, _q, _r, body_76, _s, _t, _u, _v, body_77, _w, _x, _y, _z, body_78, _0, _1, _2, _3, body;
1529
- return __generator(this, function (_4) {
1530
- switch (_4.label) {
1379
+ var contentType, body_44, _a, _b, _c, _d, bodyText, _e, _f, body_45, body_46, _g, _h, _j, _k, body;
1380
+ return __generator(this, function (_l) {
1381
+ switch (_l.label) {
1531
1382
  case 0:
1532
1383
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1533
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
1384
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
1534
1385
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1535
1386
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1536
1387
  return [4 /*yield*/, response.body.text()];
1537
1388
  case 1:
1538
- body_72 = _b.apply(_a, [_d.apply(_c, [_4.sent(), contentType]),
1539
- "SecurityMonitoringRuleResponse",
1540
- ""]);
1541
- return [2 /*return*/, body_72];
1389
+ body_44 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
1390
+ "SecurityMonitoringRuleResponse"]);
1391
+ return [2 /*return*/, body_44];
1542
1392
  case 2:
1543
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
1544
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1545
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1393
+ if (!(response.httpStatusCode == 400 ||
1394
+ response.httpStatusCode == 401 ||
1395
+ response.httpStatusCode == 403 ||
1396
+ response.httpStatusCode == 404 ||
1397
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
1398
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
1546
1399
  return [4 /*yield*/, response.body.text()];
1547
1400
  case 3:
1548
- body_73 = _f.apply(_e, [_h.apply(_g, [_4.sent(), contentType]),
1549
- "APIErrorResponse",
1550
- ""]);
1551
- throw new exception_1.ApiException(400, body_73);
1401
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
1402
+ try {
1403
+ body_45 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
1404
+ throw new exception_1.ApiException(response.httpStatusCode, body_45);
1405
+ }
1406
+ catch (error) {
1407
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
1408
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
1409
+ }
1410
+ _l.label = 4;
1552
1411
  case 4:
1553
- if (!(0, util_1.isCodeInRange)("401", response.httpStatusCode)) return [3 /*break*/, 6];
1554
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1555
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1412
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
1413
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
1414
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
1556
1415
  return [4 /*yield*/, response.body.text()];
1557
1416
  case 5:
1558
- body_74 = _k.apply(_j, [_m.apply(_l, [_4.sent(), contentType]),
1559
- "APIErrorResponse",
1560
- ""]);
1561
- throw new exception_1.ApiException(401, body_74);
1562
- case 6:
1563
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 8];
1564
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1565
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1566
- return [4 /*yield*/, response.body.text()];
1567
- case 7:
1568
- body_75 = _p.apply(_o, [_r.apply(_q, [_4.sent(), contentType]),
1569
- "APIErrorResponse",
1570
- ""]);
1571
- throw new exception_1.ApiException(403, body_75);
1572
- case 8:
1573
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 10];
1574
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1575
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1576
- return [4 /*yield*/, response.body.text()];
1577
- case 9:
1578
- body_76 = _t.apply(_s, [_v.apply(_u, [_4.sent(), contentType]),
1579
- "APIErrorResponse",
1580
- ""]);
1581
- throw new exception_1.ApiException(404, body_76);
1582
- case 10:
1583
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 12];
1584
- _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
1585
- _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
1586
- return [4 /*yield*/, response.body.text()];
1587
- case 11:
1588
- body_77 = _x.apply(_w, [_z.apply(_y, [_4.sent(), contentType]),
1589
- "APIErrorResponse",
1590
- ""]);
1591
- throw new exception_1.ApiException(429, body_77);
1592
- case 12:
1593
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 14];
1594
- _1 = (_0 = ObjectSerializer_1.ObjectSerializer).deserialize;
1595
- _3 = (_2 = ObjectSerializer_1.ObjectSerializer).parse;
1596
- return [4 /*yield*/, response.body.text()];
1597
- case 13:
1598
- body_78 = _1.apply(_0, [_3.apply(_2, [_4.sent(), contentType]),
1417
+ body_46 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
1599
1418
  "SecurityMonitoringRuleResponse",
1600
1419
  ""]);
1601
- return [2 /*return*/, body_78];
1602
- case 14: return [4 /*yield*/, response.body.text()];
1603
- case 15:
1604
- body = (_4.sent()) || "";
1420
+ return [2 /*return*/, body_46];
1421
+ case 6: return [4 /*yield*/, response.body.text()];
1422
+ case 7:
1423
+ body = (_l.sent()) || "";
1605
1424
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
1606
1425
  }
1607
1426
  });
@@ -1759,6 +1578,21 @@ var SecurityMonitoringApi = /** @class */ (function () {
1759
1578
  });
1760
1579
  });
1761
1580
  };
1581
+ /**
1582
+ * Get a signal's details.
1583
+ * @param param The request object
1584
+ */
1585
+ SecurityMonitoringApi.prototype.getSecurityMonitoringSignal = function (param, options) {
1586
+ var _this = this;
1587
+ var requestContextPromise = this.requestFactory.getSecurityMonitoringSignal(param.signalId, options);
1588
+ return requestContextPromise.then(function (requestContext) {
1589
+ return _this.configuration.httpApi
1590
+ .send(requestContext)
1591
+ .then(function (responseContext) {
1592
+ return _this.responseProcessor.getSecurityMonitoringSignal(responseContext);
1593
+ });
1594
+ });
1595
+ };
1762
1596
  /**
1763
1597
  * Get the list of configured security filters with their definitions.
1764
1598
  * @param param The request object