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