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