@datadog/datadog-api-client 1.3.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (359) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +72 -0
  3. package/dist/packages/datadog-api-client-common/configuration.js +2 -1
  4. package/dist/packages/datadog-api-client-common/configuration.js.map +1 -1
  5. package/dist/packages/datadog-api-client-common/http/isomorphic-fetch.js +3 -5
  6. package/dist/packages/datadog-api-client-common/http/isomorphic-fetch.js.map +1 -1
  7. package/dist/packages/datadog-api-client-common/servers.js.map +1 -1
  8. package/dist/packages/datadog-api-client-common/util.d.ts +0 -9
  9. package/dist/packages/datadog-api-client-common/util.js +1 -32
  10. package/dist/packages/datadog-api-client-common/util.js.map +1 -1
  11. package/dist/packages/datadog-api-client-v1/apis/AWSIntegrationApi.js +262 -407
  12. package/dist/packages/datadog-api-client-v1/apis/AWSIntegrationApi.js.map +1 -1
  13. package/dist/packages/datadog-api-client-v1/apis/AWSLogsIntegrationApi.js +201 -291
  14. package/dist/packages/datadog-api-client-v1/apis/AWSLogsIntegrationApi.js.map +1 -1
  15. package/dist/packages/datadog-api-client-v1/apis/AuthenticationApi.js +27 -33
  16. package/dist/packages/datadog-api-client-v1/apis/AuthenticationApi.js.map +1 -1
  17. package/dist/packages/datadog-api-client-v1/apis/AzureIntegrationApi.js +145 -215
  18. package/dist/packages/datadog-api-client-v1/apis/AzureIntegrationApi.js.map +1 -1
  19. package/dist/packages/datadog-api-client-v1/apis/DashboardListsApi.js +144 -215
  20. package/dist/packages/datadog-api-client-v1/apis/DashboardListsApi.js.map +1 -1
  21. package/dist/packages/datadog-api-client-v1/apis/DashboardsApi.js +198 -313
  22. package/dist/packages/datadog-api-client-v1/apis/DashboardsApi.js.map +1 -1
  23. package/dist/packages/datadog-api-client-v1/apis/DowntimesApi.js +201 -308
  24. package/dist/packages/datadog-api-client-v1/apis/DowntimesApi.js.map +1 -1
  25. package/dist/packages/datadog-api-client-v1/apis/EventsApi.js +85 -119
  26. package/dist/packages/datadog-api-client-v1/apis/EventsApi.js.map +1 -1
  27. package/dist/packages/datadog-api-client-v1/apis/GCPIntegrationApi.js +116 -172
  28. package/dist/packages/datadog-api-client-v1/apis/GCPIntegrationApi.js.map +1 -1
  29. package/dist/packages/datadog-api-client-v1/apis/HostsApi.js +116 -172
  30. package/dist/packages/datadog-api-client-v1/apis/HostsApi.js.map +1 -1
  31. package/dist/packages/datadog-api-client-v1/apis/IPRangesApi.js +23 -19
  32. package/dist/packages/datadog-api-client-v1/apis/IPRangesApi.js.map +1 -1
  33. package/dist/packages/datadog-api-client-v1/apis/KeyManagementApi.js +291 -460
  34. package/dist/packages/datadog-api-client-v1/apis/KeyManagementApi.js.map +1 -1
  35. package/dist/packages/datadog-api-client-v1/apis/LogsApi.js +75 -67
  36. package/dist/packages/datadog-api-client-v1/apis/LogsApi.js.map +1 -1
  37. package/dist/packages/datadog-api-client-v1/apis/LogsIndexesApi.js +210 -226
  38. package/dist/packages/datadog-api-client-v1/apis/LogsIndexesApi.js.map +1 -1
  39. package/dist/packages/datadog-api-client-v1/apis/LogsPipelinesApi.js +246 -272
  40. package/dist/packages/datadog-api-client-v1/apis/LogsPipelinesApi.js.map +1 -1
  41. package/dist/packages/datadog-api-client-v1/apis/MetricsApi.js +208 -351
  42. package/dist/packages/datadog-api-client-v1/apis/MetricsApi.js.map +1 -1
  43. package/dist/packages/datadog-api-client-v1/apis/MonitorsApi.js +295 -490
  44. package/dist/packages/datadog-api-client-v1/apis/MonitorsApi.js.map +1 -1
  45. package/dist/packages/datadog-api-client-v1/apis/NotebooksApi.js +146 -251
  46. package/dist/packages/datadog-api-client-v1/apis/NotebooksApi.js.map +1 -1
  47. package/dist/packages/datadog-api-client-v1/apis/OrganizationsApi.js +173 -258
  48. package/dist/packages/datadog-api-client-v1/apis/OrganizationsApi.js.map +1 -1
  49. package/dist/packages/datadog-api-client-v1/apis/PagerDutyIntegrationApi.js +111 -174
  50. package/dist/packages/datadog-api-client-v1/apis/PagerDutyIntegrationApi.js.map +1 -1
  51. package/dist/packages/datadog-api-client-v1/apis/SecurityMonitoringApi.js +90 -159
  52. package/dist/packages/datadog-api-client-v1/apis/SecurityMonitoringApi.js.map +1 -1
  53. package/dist/packages/datadog-api-client-v1/apis/ServiceChecksApi.js +31 -63
  54. package/dist/packages/datadog-api-client-v1/apis/ServiceChecksApi.js.map +1 -1
  55. package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectiveCorrectionsApi.js +142 -221
  56. package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectiveCorrectionsApi.js.map +1 -1
  57. package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.d.ts +8 -1
  58. package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.js +298 -492
  59. package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.js.map +1 -1
  60. package/dist/packages/datadog-api-client-v1/apis/SlackIntegrationApi.js +147 -261
  61. package/dist/packages/datadog-api-client-v1/apis/SlackIntegrationApi.js.map +1 -1
  62. package/dist/packages/datadog-api-client-v1/apis/SnapshotsApi.js +29 -43
  63. package/dist/packages/datadog-api-client-v1/apis/SnapshotsApi.js.map +1 -1
  64. package/dist/packages/datadog-api-client-v1/apis/SyntheticsApi.js +765 -1130
  65. package/dist/packages/datadog-api-client-v1/apis/SyntheticsApi.js.map +1 -1
  66. package/dist/packages/datadog-api-client-v1/apis/TagsApi.js +142 -211
  67. package/dist/packages/datadog-api-client-v1/apis/TagsApi.js.map +1 -1
  68. package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.js +1093 -1594
  69. package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.js.map +1 -1
  70. package/dist/packages/datadog-api-client-v1/apis/UsersApi.js +146 -235
  71. package/dist/packages/datadog-api-client-v1/apis/UsersApi.js.map +1 -1
  72. package/dist/packages/datadog-api-client-v1/apis/WebhooksIntegrationApi.js +230 -376
  73. package/dist/packages/datadog-api-client-v1/apis/WebhooksIntegrationApi.js.map +1 -1
  74. package/dist/packages/datadog-api-client-v1/index.d.ts +20 -0
  75. package/dist/packages/datadog-api-client-v1/index.js +35 -7
  76. package/dist/packages/datadog-api-client-v1/index.js.map +1 -1
  77. package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariable.d.ts +5 -1
  78. package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariable.js +4 -0
  79. package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariable.js.map +1 -1
  80. package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariablePresetValue.d.ts +5 -1
  81. package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariablePresetValue.js +4 -0
  82. package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariablePresetValue.js.map +1 -1
  83. package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryDefinition.d.ts +4 -0
  84. package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryDefinition.js +4 -0
  85. package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryDefinition.js.map +1 -1
  86. package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.d.ts +2 -1
  87. package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.js +2 -1
  88. package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.js.map +1 -1
  89. package/dist/packages/datadog-api-client-v1/models/ListStreamQuery.d.ts +4 -0
  90. package/dist/packages/datadog-api-client-v1/models/ListStreamQuery.js +4 -0
  91. package/dist/packages/datadog-api-client-v1/models/ListStreamQuery.js.map +1 -1
  92. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.d.ts +3 -1
  93. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.js +4 -2
  94. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.js.map +1 -1
  95. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.d.ts +8 -0
  96. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.js +10 -0
  97. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.js.map +1 -1
  98. package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js +44 -0
  99. package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js.map +1 -1
  100. package/dist/packages/datadog-api-client-v1/models/SLOCreator.d.ts +36 -0
  101. package/dist/packages/datadog-api-client-v1/models/SLOCreator.js +42 -0
  102. package/dist/packages/datadog-api-client-v1/models/SLOCreator.js.map +1 -0
  103. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinition.d.ts +47 -0
  104. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinition.js +46 -0
  105. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinition.js.map +1 -0
  106. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinitionType.d.ts +7 -0
  107. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinitionType.js +10 -0
  108. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinitionType.js.map +1 -0
  109. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetQuery.d.ts +32 -0
  110. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetQuery.js +39 -0
  111. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetQuery.js.map +1 -0
  112. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequest.d.ts +34 -0
  113. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequest.js +34 -0
  114. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequest.js.map +1 -0
  115. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequestType.d.ts +7 -0
  116. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequestType.js +10 -0
  117. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequestType.js.map +1 -0
  118. package/dist/packages/datadog-api-client-v1/models/SLOOverallStatuses.d.ts +55 -0
  119. package/dist/packages/datadog-api-client-v1/models/SLOOverallStatuses.js +56 -0
  120. package/dist/packages/datadog-api-client-v1/models/SLOOverallStatuses.js.map +1 -0
  121. package/dist/packages/datadog-api-client-v1/models/SLORawErrorBudgetRemaining.d.ts +32 -0
  122. package/dist/packages/datadog-api-client-v1/models/SLORawErrorBudgetRemaining.js +38 -0
  123. package/dist/packages/datadog-api-client-v1/models/SLORawErrorBudgetRemaining.js.map +1 -0
  124. package/dist/packages/datadog-api-client-v1/models/SearchSLOQuery.d.ts +39 -0
  125. package/dist/packages/datadog-api-client-v1/models/SearchSLOQuery.js +43 -0
  126. package/dist/packages/datadog-api-client-v1/models/SearchSLOQuery.js.map +1 -0
  127. package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributes.d.ts +2 -2
  128. package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributes.js +3 -3
  129. package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributes.js.map +1 -1
  130. package/dist/packages/datadog-api-client-v1/models/SearchSLOThreshold.d.ts +54 -0
  131. package/dist/packages/datadog-api-client-v1/models/SearchSLOThreshold.js +48 -0
  132. package/dist/packages/datadog-api-client-v1/models/SearchSLOThreshold.js.map +1 -0
  133. package/dist/packages/datadog-api-client-v1/models/SearchSLOTimeframe.d.ts +9 -0
  134. package/dist/packages/datadog-api-client-v1/models/SearchSLOTimeframe.js +12 -0
  135. package/dist/packages/datadog-api-client-v1/models/SearchSLOTimeframe.js.map +1 -0
  136. package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjective.d.ts +29 -0
  137. package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjective.js +28 -0
  138. package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjective.js.map +1 -0
  139. package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveAttributes.d.ts +103 -0
  140. package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveAttributes.js +88 -0
  141. package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveAttributes.js.map +1 -0
  142. package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveData.d.ts +40 -0
  143. package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveData.js +36 -0
  144. package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveData.js.map +1 -0
  145. package/dist/packages/datadog-api-client-v1/models/SyntheticsAssertionOperator.d.ts +2 -1
  146. package/dist/packages/datadog-api-client-v1/models/SyntheticsAssertionOperator.js +2 -1
  147. package/dist/packages/datadog-api-client-v1/models/SyntheticsAssertionOperator.js.map +1 -1
  148. package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinition.d.ts +52 -0
  149. package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinition.js +50 -0
  150. package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinition.js.map +1 -0
  151. package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinitionType.d.ts +7 -0
  152. package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinitionType.js +10 -0
  153. package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinitionType.js.map +1 -0
  154. package/dist/packages/datadog-api-client-v1/models/TopologyQuery.d.ts +37 -0
  155. package/dist/packages/datadog-api-client-v1/models/TopologyQuery.js +36 -0
  156. package/dist/packages/datadog-api-client-v1/models/TopologyQuery.js.map +1 -0
  157. package/dist/packages/datadog-api-client-v1/models/TopologyQueryDataSource.d.ts +8 -0
  158. package/dist/packages/datadog-api-client-v1/models/TopologyQueryDataSource.js +11 -0
  159. package/dist/packages/datadog-api-client-v1/models/TopologyQueryDataSource.js.map +1 -0
  160. package/dist/packages/datadog-api-client-v1/models/TopologyRequest.d.ts +34 -0
  161. package/dist/packages/datadog-api-client-v1/models/TopologyRequest.js +32 -0
  162. package/dist/packages/datadog-api-client-v1/models/TopologyRequest.js.map +1 -0
  163. package/dist/packages/datadog-api-client-v1/models/TopologyRequestType.d.ts +7 -0
  164. package/dist/packages/datadog-api-client-v1/models/TopologyRequestType.js +10 -0
  165. package/dist/packages/datadog-api-client-v1/models/TopologyRequestType.js.map +1 -0
  166. package/dist/packages/datadog-api-client-v1/models/UsageAttributionSort.d.ts +3 -1
  167. package/dist/packages/datadog-api-client-v1/models/UsageAttributionSort.js +3 -1
  168. package/dist/packages/datadog-api-client-v1/models/UsageAttributionSort.js.map +1 -1
  169. package/dist/packages/datadog-api-client-v1/models/UsageAttributionSupportedMetrics.d.ts +3 -1
  170. package/dist/packages/datadog-api-client-v1/models/UsageAttributionSupportedMetrics.js +3 -1
  171. package/dist/packages/datadog-api-client-v1/models/UsageAttributionSupportedMetrics.js.map +1 -1
  172. package/dist/packages/datadog-api-client-v1/models/UsageAttributionValues.d.ts +8 -0
  173. package/dist/packages/datadog-api-client-v1/models/UsageAttributionValues.js +10 -0
  174. package/dist/packages/datadog-api-client-v1/models/UsageAttributionValues.js.map +1 -1
  175. package/dist/packages/datadog-api-client-v1/models/UsageFargateHour.d.ts +4 -0
  176. package/dist/packages/datadog-api-client-v1/models/UsageFargateHour.js +5 -0
  177. package/dist/packages/datadog-api-client-v1/models/UsageFargateHour.js.map +1 -1
  178. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.d.ts +4 -0
  179. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.js +5 -0
  180. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.js.map +1 -1
  181. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.d.ts +4 -0
  182. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.js +5 -0
  183. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.js.map +1 -1
  184. package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.d.ts +4 -0
  185. package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.js +5 -0
  186. package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.js.map +1 -1
  187. package/dist/packages/datadog-api-client-v1/models/WidgetDefinition.d.ts +3 -1
  188. package/dist/packages/datadog-api-client-v2/apis/AuditApi.js +58 -86
  189. package/dist/packages/datadog-api-client-v2/apis/AuditApi.js.map +1 -1
  190. package/dist/packages/datadog-api-client-v2/apis/AuthNMappingsApi.js +144 -241
  191. package/dist/packages/datadog-api-client-v2/apis/AuthNMappingsApi.js.map +1 -1
  192. package/dist/packages/datadog-api-client-v2/apis/CloudWorkloadSecurityApi.js +167 -260
  193. package/dist/packages/datadog-api-client-v2/apis/CloudWorkloadSecurityApi.js.map +1 -1
  194. package/dist/packages/datadog-api-client-v2/apis/DashboardListsApi.js +119 -202
  195. package/dist/packages/datadog-api-client-v2/apis/DashboardListsApi.js.map +1 -1
  196. package/dist/packages/datadog-api-client-v2/apis/EventsApi.js +57 -86
  197. package/dist/packages/datadog-api-client-v2/apis/EventsApi.js.map +1 -1
  198. package/dist/packages/datadog-api-client-v2/apis/IncidentServicesApi.js +151 -311
  199. package/dist/packages/datadog-api-client-v2/apis/IncidentServicesApi.js.map +1 -1
  200. package/dist/packages/datadog-api-client-v2/apis/IncidentTeamsApi.js +151 -311
  201. package/dist/packages/datadog-api-client-v2/apis/IncidentTeamsApi.js.map +1 -1
  202. package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.d.ts +67 -0
  203. package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.js +365 -303
  204. package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.js.map +1 -1
  205. package/dist/packages/datadog-api-client-v2/apis/KeyManagementApi.js +403 -650
  206. package/dist/packages/datadog-api-client-v2/apis/KeyManagementApi.js.map +1 -1
  207. package/dist/packages/datadog-api-client-v2/apis/LogsApi.js +121 -222
  208. package/dist/packages/datadog-api-client-v2/apis/LogsApi.js.map +1 -1
  209. package/dist/packages/datadog-api-client-v2/apis/LogsArchivesApi.js +285 -469
  210. package/dist/packages/datadog-api-client-v2/apis/LogsArchivesApi.js.map +1 -1
  211. package/dist/packages/datadog-api-client-v2/apis/LogsMetricsApi.js +142 -221
  212. package/dist/packages/datadog-api-client-v2/apis/LogsMetricsApi.js.map +1 -1
  213. package/dist/packages/datadog-api-client-v2/apis/MetricsApi.d.ts +41 -8
  214. package/dist/packages/datadog-api-client-v2/apis/MetricsApi.js +428 -560
  215. package/dist/packages/datadog-api-client-v2/apis/MetricsApi.js.map +1 -1
  216. package/dist/packages/datadog-api-client-v2/apis/OpsgenieIntegrationApi.js +146 -261
  217. package/dist/packages/datadog-api-client-v2/apis/OpsgenieIntegrationApi.js.map +1 -1
  218. package/dist/packages/datadog-api-client-v2/apis/OrganizationsApi.js +27 -40
  219. package/dist/packages/datadog-api-client-v2/apis/OrganizationsApi.js.map +1 -1
  220. package/dist/packages/datadog-api-client-v2/apis/ProcessesApi.js +29 -43
  221. package/dist/packages/datadog-api-client-v2/apis/ProcessesApi.js.map +1 -1
  222. package/dist/packages/datadog-api-client-v2/apis/RUMApi.js +222 -310
  223. package/dist/packages/datadog-api-client-v2/apis/RUMApi.js.map +1 -1
  224. package/dist/packages/datadog-api-client-v2/apis/RolesApi.js +380 -625
  225. package/dist/packages/datadog-api-client-v2/apis/RolesApi.js.map +1 -1
  226. package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.d.ts +21 -0
  227. package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.js +522 -685
  228. package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.js.map +1 -1
  229. package/dist/packages/datadog-api-client-v2/apis/ServiceAccountsApi.js +144 -231
  230. package/dist/packages/datadog-api-client-v2/apis/ServiceAccountsApi.js.map +1 -1
  231. package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.d.ts +43 -6
  232. package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.js +284 -265
  233. package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.js.map +1 -1
  234. package/dist/packages/datadog-api-client-v2/apis/UsersApi.js +289 -446
  235. package/dist/packages/datadog-api-client-v2/apis/UsersApi.js.map +1 -1
  236. package/dist/packages/datadog-api-client-v2/index.d.ts +35 -5
  237. package/dist/packages/datadog-api-client-v2/index.js +49 -15
  238. package/dist/packages/datadog-api-client-v2/index.js.map +1 -1
  239. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttachmentType.d.ts +8 -0
  240. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttachmentType.js +11 -0
  241. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttachmentType.js.map +1 -0
  242. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttributes.d.ts +12 -0
  243. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttributes.js +3 -0
  244. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttributes.js.map +1 -0
  245. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentData.d.ts +43 -0
  246. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentData.js +44 -0
  247. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentData.js.map +1 -0
  248. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttachmentType.d.ts +7 -0
  249. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttachmentType.js +10 -0
  250. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttachmentType.js.map +1 -0
  251. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributes.d.ts +34 -0
  252. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributes.js +34 -0
  253. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributes.js.map +1 -0
  254. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributesAttachmentObject.d.ts +32 -0
  255. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributesAttachmentObject.js +39 -0
  256. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributesAttachmentObject.js.map +1 -0
  257. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttachmentType.d.ts +7 -0
  258. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttachmentType.js +10 -0
  259. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttachmentType.js.map +1 -0
  260. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttributes.d.ts +34 -0
  261. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttributes.js +34 -0
  262. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttributes.js.map +1 -0
  263. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelatedObject.d.ts +7 -0
  264. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelatedObject.js +10 -0
  265. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelatedObject.js.map +1 -0
  266. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelationships.d.ts +29 -0
  267. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelationships.js +28 -0
  268. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelationships.js.map +1 -0
  269. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentType.d.ts +7 -0
  270. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentType.js +10 -0
  271. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentType.js.map +1 -0
  272. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateAttributes.d.ts +12 -0
  273. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateAttributes.js +3 -0
  274. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateAttributes.js.map +1 -0
  275. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateData.d.ts +38 -0
  276. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateData.js +37 -0
  277. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateData.js.map +1 -0
  278. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateRequest.d.ts +32 -0
  279. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateRequest.js +29 -0
  280. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateRequest.js.map +1 -0
  281. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateResponse.d.ts +35 -0
  282. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateResponse.js +33 -0
  283. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateResponse.js.map +1 -0
  284. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsPostmortemAttributesAttachmentObject.d.ts +32 -0
  285. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsPostmortemAttributesAttachmentObject.js +39 -0
  286. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsPostmortemAttributesAttachmentObject.js.map +1 -0
  287. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponse.d.ts +34 -0
  288. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponse.js +33 -0
  289. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponse.js.map +1 -0
  290. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponseIncludedItem.d.ts +11 -0
  291. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponseIncludedItem.js +3 -0
  292. package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponseIncludedItem.js.map +1 -0
  293. package/dist/packages/datadog-api-client-v2/models/IncidentRelatedObject.d.ts +2 -1
  294. package/dist/packages/datadog-api-client-v2/models/IncidentRelatedObject.js +2 -1
  295. package/dist/packages/datadog-api-client-v2/models/IncidentRelatedObject.js.map +1 -1
  296. package/dist/packages/datadog-api-client-v2/models/IncidentResponseAttributes.d.ts +0 -4
  297. package/dist/packages/datadog-api-client-v2/models/IncidentResponseAttributes.js +0 -4
  298. package/dist/packages/datadog-api-client-v2/models/IncidentResponseAttributes.js.map +1 -1
  299. package/dist/packages/datadog-api-client-v2/models/IncidentResponseIncludedItem.d.ts +2 -1
  300. package/dist/packages/datadog-api-client-v2/models/IncidentResponseRelationships.d.ts +5 -5
  301. package/dist/packages/datadog-api-client-v2/models/IncidentResponseRelationships.js +4 -4
  302. package/dist/packages/datadog-api-client-v2/models/IncidentResponseRelationships.js.map +1 -1
  303. package/dist/packages/datadog-api-client-v2/models/MetricActiveConfigurationType.d.ts +7 -0
  304. package/dist/packages/datadog-api-client-v2/models/MetricActiveConfigurationType.js +10 -0
  305. package/dist/packages/datadog-api-client-v2/models/MetricActiveConfigurationType.js.map +1 -0
  306. package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregations.d.ts +38 -0
  307. package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregations.js +36 -0
  308. package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregations.js.map +1 -0
  309. package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregationsResponse.d.ts +29 -0
  310. package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregationsResponse.js +28 -0
  311. package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregationsResponse.js.map +1 -0
  312. package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAttributes.d.ts +33 -0
  313. package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAttributes.js +32 -0
  314. package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAttributes.js.map +1 -0
  315. package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js +73 -10
  316. package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js.map +1 -1
  317. package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachment.d.ts +29 -0
  318. package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachment.js +29 -0
  319. package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachment.js.map +1 -0
  320. package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachmentData.d.ts +33 -0
  321. package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachmentData.js +34 -0
  322. package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachmentData.js.map +1 -0
  323. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCreatePayload.d.ts +4 -61
  324. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCreatePayload.js +0 -67
  325. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCreatePayload.js.map +1 -1
  326. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQuery.d.ts +4 -46
  327. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQuery.js +0 -49
  328. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQuery.js.map +1 -1
  329. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryAggregation.d.ts +2 -1
  330. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryAggregation.js +2 -1
  331. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryAggregation.js.map +1 -1
  332. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleResponse.d.ts +5 -90
  333. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleResponse.js +0 -93
  334. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleResponse.js.map +1 -1
  335. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleCreatePayload.d.ts +69 -0
  336. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleCreatePayload.js +70 -0
  337. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleCreatePayload.js.map +1 -0
  338. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleQuery.d.ts +49 -0
  339. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleQuery.js +50 -0
  340. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleQuery.js.map +1 -0
  341. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponse.d.ts +97 -0
  342. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponse.js +96 -0
  343. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponse.js.map +1 -0
  344. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleType.d.ts +7 -0
  345. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleType.js +10 -0
  346. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleType.js.map +1 -0
  347. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleCreatePayload.d.ts +69 -0
  348. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleCreatePayload.js +70 -0
  349. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleCreatePayload.js.map +1 -0
  350. package/dist/packages/datadog-api-client-v2/models/{SecurityMonitoringRuleQueryCreate.d.ts → SecurityMonitoringStandardRuleQuery.d.ts} +1 -1
  351. package/dist/packages/datadog-api-client-v2/models/{SecurityMonitoringRuleQueryCreate.js → SecurityMonitoringStandardRuleQuery.js} +9 -9
  352. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleQuery.js.map +1 -0
  353. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleResponse.d.ts +97 -0
  354. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleResponse.js +96 -0
  355. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleResponse.js.map +1 -0
  356. package/dist/version.d.ts +1 -1
  357. package/dist/version.js +1 -1
  358. package/package.json +1 -1
  359. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryCreate.js.map +0 -1
@@ -58,7 +58,6 @@ var http_1 = require("../../datadog-api-client-common/http/http");
58
58
  var logger_1 = require("../../../logger");
59
59
  var ObjectSerializer_1 = require("../models/ObjectSerializer");
60
60
  var exception_1 = require("../../datadog-api-client-common/exception");
61
- var util_1 = require("../../datadog-api-client-common/util");
62
61
  var ServiceLevelObjectivesApiRequestFactory = /** @class */ (function (_super) {
63
62
  __extends(ServiceLevelObjectivesApiRequestFactory, _super);
64
63
  function ServiceLevelObjectivesApiRequestFactory() {
@@ -304,7 +303,7 @@ var ServiceLevelObjectivesApiRequestFactory = /** @class */ (function (_super) {
304
303
  });
305
304
  });
306
305
  };
307
- ServiceLevelObjectivesApiRequestFactory.prototype.searchSLO = function (query, pageSize, pageNumber, _options) {
306
+ ServiceLevelObjectivesApiRequestFactory.prototype.searchSLO = function (query, pageSize, pageNumber, includeFacets, _options) {
308
307
  return __awaiter(this, void 0, void 0, function () {
309
308
  var _config, localVarPath, requestContext;
310
309
  return __generator(this, function (_a) {
@@ -327,6 +326,9 @@ var ServiceLevelObjectivesApiRequestFactory = /** @class */ (function (_super) {
327
326
  if (pageNumber !== undefined) {
328
327
  requestContext.setQueryParam("page[number]", ObjectSerializer_1.ObjectSerializer.serialize(pageNumber, "number", "int64"));
329
328
  }
329
+ if (includeFacets !== undefined) {
330
+ requestContext.setQueryParam("include_facets", ObjectSerializer_1.ObjectSerializer.serialize(includeFacets, "boolean", ""));
331
+ }
330
332
  // Apply auth methods
331
333
  (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
332
334
  "apiKeyAuth",
@@ -383,73 +385,49 @@ var ServiceLevelObjectivesApiResponseProcessor = /** @class */ (function () {
383
385
  */
384
386
  ServiceLevelObjectivesApiResponseProcessor.prototype.checkCanDeleteSLO = function (response) {
385
387
  return __awaiter(this, void 0, void 0, function () {
386
- 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;
387
- return __generator(this, function (_0) {
388
- switch (_0.label) {
388
+ var contentType, body_1, _a, _b, _c, _d, bodyText, _e, _f, body_2, body_3, _g, _h, _j, _k, body;
389
+ return __generator(this, function (_l) {
390
+ switch (_l.label) {
389
391
  case 0:
390
392
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
391
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
393
+ if (!(response.httpStatusCode == 200 || response.httpStatusCode == 409)) return [3 /*break*/, 2];
392
394
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
393
395
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
394
396
  return [4 /*yield*/, response.body.text()];
395
397
  case 1:
396
- body_1 = _b.apply(_a, [_d.apply(_c, [_0.sent(), contentType]),
397
- "CheckCanDeleteSLOResponse",
398
- ""]);
398
+ body_1 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
399
+ "CheckCanDeleteSLOResponse"]);
399
400
  return [2 /*return*/, body_1];
400
401
  case 2:
401
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
402
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
403
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
402
+ if (!(response.httpStatusCode == 400 ||
403
+ response.httpStatusCode == 403 ||
404
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
405
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
404
406
  return [4 /*yield*/, response.body.text()];
405
407
  case 3:
406
- body_2 = _f.apply(_e, [_h.apply(_g, [_0.sent(), contentType]),
407
- "APIErrorResponse",
408
- ""]);
409
- throw new exception_1.ApiException(400, body_2);
408
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
409
+ try {
410
+ body_2 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
411
+ throw new exception_1.ApiException(response.httpStatusCode, body_2);
412
+ }
413
+ catch (error) {
414
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
415
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
416
+ }
417
+ _l.label = 4;
410
418
  case 4:
411
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
412
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
413
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
419
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
420
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
421
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
414
422
  return [4 /*yield*/, response.body.text()];
415
423
  case 5:
416
- body_3 = _k.apply(_j, [_m.apply(_l, [_0.sent(), contentType]),
417
- "APIErrorResponse",
418
- ""]);
419
- throw new exception_1.ApiException(403, body_3);
420
- case 6:
421
- if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3 /*break*/, 8];
422
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
423
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
424
- return [4 /*yield*/, response.body.text()];
425
- case 7:
426
- body_4 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
424
+ body_3 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
427
425
  "CheckCanDeleteSLOResponse",
428
426
  ""]);
429
- throw new exception_1.ApiException(409, body_4);
430
- case 8:
431
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
432
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
433
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
434
- return [4 /*yield*/, response.body.text()];
435
- case 9:
436
- body_5 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
437
- "APIErrorResponse",
438
- ""]);
439
- throw new exception_1.ApiException(429, body_5);
440
- case 10:
441
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
442
- _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
443
- _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
444
- return [4 /*yield*/, response.body.text()];
445
- case 11:
446
- body_6 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
447
- "CheckCanDeleteSLOResponse",
448
- ""]);
449
- return [2 /*return*/, body_6];
450
- case 12: return [4 /*yield*/, response.body.text()];
451
- case 13:
452
- body = (_0.sent()) || "";
427
+ return [2 /*return*/, body_3];
428
+ case 6: return [4 /*yield*/, response.body.text()];
429
+ case 7:
430
+ body = (_l.sent()) || "";
453
431
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
454
432
  }
455
433
  });
@@ -464,63 +442,49 @@ var ServiceLevelObjectivesApiResponseProcessor = /** @class */ (function () {
464
442
  */
465
443
  ServiceLevelObjectivesApiResponseProcessor.prototype.createSLO = function (response) {
466
444
  return __awaiter(this, void 0, void 0, function () {
467
- 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;
468
- return __generator(this, function (_w) {
469
- switch (_w.label) {
445
+ var contentType, body_4, _a, _b, _c, _d, bodyText, _e, _f, body_5, body_6, _g, _h, _j, _k, body;
446
+ return __generator(this, function (_l) {
447
+ switch (_l.label) {
470
448
  case 0:
471
449
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
472
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
450
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
473
451
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
474
452
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
475
453
  return [4 /*yield*/, response.body.text()];
476
454
  case 1:
477
- body_7 = _b.apply(_a, [_d.apply(_c, [_w.sent(), contentType]),
478
- "SLOListResponse",
479
- ""]);
480
- return [2 /*return*/, body_7];
455
+ body_4 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
456
+ "SLOListResponse"]);
457
+ return [2 /*return*/, body_4];
481
458
  case 2:
482
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
483
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
484
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
459
+ if (!(response.httpStatusCode == 400 ||
460
+ response.httpStatusCode == 403 ||
461
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
462
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
485
463
  return [4 /*yield*/, response.body.text()];
486
464
  case 3:
487
- body_8 = _f.apply(_e, [_h.apply(_g, [_w.sent(), contentType]),
488
- "APIErrorResponse",
489
- ""]);
490
- throw new exception_1.ApiException(400, body_8);
465
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
466
+ try {
467
+ body_5 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
468
+ throw new exception_1.ApiException(response.httpStatusCode, body_5);
469
+ }
470
+ catch (error) {
471
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
472
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
473
+ }
474
+ _l.label = 4;
491
475
  case 4:
492
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
493
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
494
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
476
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
477
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
478
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
495
479
  return [4 /*yield*/, response.body.text()];
496
480
  case 5:
497
- body_9 = _k.apply(_j, [_m.apply(_l, [_w.sent(), contentType]),
498
- "APIErrorResponse",
499
- ""]);
500
- throw new exception_1.ApiException(403, body_9);
501
- case 6:
502
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
503
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
504
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
505
- return [4 /*yield*/, response.body.text()];
506
- case 7:
507
- body_10 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
508
- "APIErrorResponse",
509
- ""]);
510
- throw new exception_1.ApiException(429, body_10);
511
- case 8:
512
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
513
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
514
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
515
- return [4 /*yield*/, response.body.text()];
516
- case 9:
517
- body_11 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
481
+ body_6 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
518
482
  "SLOListResponse",
519
483
  ""]);
520
- return [2 /*return*/, body_11];
521
- case 10: return [4 /*yield*/, response.body.text()];
522
- case 11:
523
- body = (_w.sent()) || "";
484
+ return [2 /*return*/, body_6];
485
+ case 6: return [4 /*yield*/, response.body.text()];
486
+ case 7:
487
+ body = (_l.sent()) || "";
524
488
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
525
489
  }
526
490
  });
@@ -535,73 +499,49 @@ var ServiceLevelObjectivesApiResponseProcessor = /** @class */ (function () {
535
499
  */
536
500
  ServiceLevelObjectivesApiResponseProcessor.prototype.deleteSLO = function (response) {
537
501
  return __awaiter(this, void 0, void 0, function () {
538
- 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_16, _s, _t, _u, _v, body_17, _w, _x, _y, _z, body;
539
- return __generator(this, function (_0) {
540
- switch (_0.label) {
502
+ var contentType, body_7, _a, _b, _c, _d, bodyText, _e, _f, body_8, body_9, _g, _h, _j, _k, body;
503
+ return __generator(this, function (_l) {
504
+ switch (_l.label) {
541
505
  case 0:
542
506
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
543
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
507
+ if (!(response.httpStatusCode == 200 || response.httpStatusCode == 409)) return [3 /*break*/, 2];
544
508
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
545
509
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
546
510
  return [4 /*yield*/, response.body.text()];
547
511
  case 1:
548
- body_12 = _b.apply(_a, [_d.apply(_c, [_0.sent(), contentType]),
549
- "SLODeleteResponse",
550
- ""]);
551
- return [2 /*return*/, body_12];
512
+ body_7 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
513
+ "SLODeleteResponse"]);
514
+ return [2 /*return*/, body_7];
552
515
  case 2:
553
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 4];
554
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
555
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
516
+ if (!(response.httpStatusCode == 403 ||
517
+ response.httpStatusCode == 404 ||
518
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
519
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
556
520
  return [4 /*yield*/, response.body.text()];
557
521
  case 3:
558
- body_13 = _f.apply(_e, [_h.apply(_g, [_0.sent(), contentType]),
559
- "APIErrorResponse",
560
- ""]);
561
- throw new exception_1.ApiException(403, body_13);
522
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
523
+ try {
524
+ body_8 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
525
+ throw new exception_1.ApiException(response.httpStatusCode, body_8);
526
+ }
527
+ catch (error) {
528
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
529
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
530
+ }
531
+ _l.label = 4;
562
532
  case 4:
563
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 6];
564
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
565
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
533
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
534
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
535
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
566
536
  return [4 /*yield*/, response.body.text()];
567
537
  case 5:
568
- body_14 = _k.apply(_j, [_m.apply(_l, [_0.sent(), contentType]),
569
- "APIErrorResponse",
570
- ""]);
571
- throw new exception_1.ApiException(404, body_14);
572
- case 6:
573
- if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3 /*break*/, 8];
574
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
575
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
576
- return [4 /*yield*/, response.body.text()];
577
- case 7:
578
- body_15 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
579
- "SLODeleteResponse",
580
- ""]);
581
- throw new exception_1.ApiException(409, body_15);
582
- case 8:
583
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
584
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
585
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
586
- return [4 /*yield*/, response.body.text()];
587
- case 9:
588
- body_16 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
589
- "APIErrorResponse",
590
- ""]);
591
- throw new exception_1.ApiException(429, body_16);
592
- case 10:
593
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
594
- _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
595
- _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
596
- return [4 /*yield*/, response.body.text()];
597
- case 11:
598
- body_17 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
538
+ body_9 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
599
539
  "SLODeleteResponse",
600
540
  ""]);
601
- return [2 /*return*/, body_17];
602
- case 12: return [4 /*yield*/, response.body.text()];
603
- case 13:
604
- body = (_0.sent()) || "";
541
+ return [2 /*return*/, body_9];
542
+ case 6: return [4 /*yield*/, response.body.text()];
543
+ case 7:
544
+ body = (_l.sent()) || "";
605
545
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
606
546
  }
607
547
  });
@@ -616,63 +556,49 @@ var ServiceLevelObjectivesApiResponseProcessor = /** @class */ (function () {
616
556
  */
617
557
  ServiceLevelObjectivesApiResponseProcessor.prototype.deleteSLOTimeframeInBulk = function (response) {
618
558
  return __awaiter(this, void 0, void 0, function () {
619
- var contentType, body_18, _a, _b, _c, _d, body_19, _e, _f, _g, _h, body_20, _j, _k, _l, _m, body_21, _o, _p, _q, _r, body_22, _s, _t, _u, _v, body;
620
- return __generator(this, function (_w) {
621
- switch (_w.label) {
559
+ var contentType, body_10, _a, _b, _c, _d, bodyText, _e, _f, body_11, body_12, _g, _h, _j, _k, body;
560
+ return __generator(this, function (_l) {
561
+ switch (_l.label) {
622
562
  case 0:
623
563
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
624
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
564
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
625
565
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
626
566
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
627
567
  return [4 /*yield*/, response.body.text()];
628
568
  case 1:
629
- body_18 = _b.apply(_a, [_d.apply(_c, [_w.sent(), contentType]),
630
- "SLOBulkDeleteResponse",
631
- ""]);
632
- return [2 /*return*/, body_18];
569
+ body_10 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
570
+ "SLOBulkDeleteResponse"]);
571
+ return [2 /*return*/, body_10];
633
572
  case 2:
634
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
635
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
636
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
573
+ if (!(response.httpStatusCode == 400 ||
574
+ response.httpStatusCode == 403 ||
575
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
576
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
637
577
  return [4 /*yield*/, response.body.text()];
638
578
  case 3:
639
- body_19 = _f.apply(_e, [_h.apply(_g, [_w.sent(), contentType]),
640
- "APIErrorResponse",
641
- ""]);
642
- throw new exception_1.ApiException(400, body_19);
579
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
580
+ try {
581
+ body_11 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
582
+ throw new exception_1.ApiException(response.httpStatusCode, body_11);
583
+ }
584
+ catch (error) {
585
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
586
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
587
+ }
588
+ _l.label = 4;
643
589
  case 4:
644
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
645
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
646
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
590
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
591
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
592
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
647
593
  return [4 /*yield*/, response.body.text()];
648
594
  case 5:
649
- body_20 = _k.apply(_j, [_m.apply(_l, [_w.sent(), contentType]),
650
- "APIErrorResponse",
651
- ""]);
652
- throw new exception_1.ApiException(403, body_20);
653
- case 6:
654
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
655
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
656
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
657
- return [4 /*yield*/, response.body.text()];
658
- case 7:
659
- body_21 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
660
- "APIErrorResponse",
661
- ""]);
662
- throw new exception_1.ApiException(429, body_21);
663
- case 8:
664
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
665
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
666
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
667
- return [4 /*yield*/, response.body.text()];
668
- case 9:
669
- body_22 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
595
+ body_12 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
670
596
  "SLOBulkDeleteResponse",
671
597
  ""]);
672
- return [2 /*return*/, body_22];
673
- case 10: return [4 /*yield*/, response.body.text()];
674
- case 11:
675
- body = (_w.sent()) || "";
598
+ return [2 /*return*/, body_12];
599
+ case 6: return [4 /*yield*/, response.body.text()];
600
+ case 7:
601
+ body = (_l.sent()) || "";
676
602
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
677
603
  }
678
604
  });
@@ -687,63 +613,49 @@ var ServiceLevelObjectivesApiResponseProcessor = /** @class */ (function () {
687
613
  */
688
614
  ServiceLevelObjectivesApiResponseProcessor.prototype.getSLO = function (response) {
689
615
  return __awaiter(this, void 0, void 0, function () {
690
- var contentType, body_23, _a, _b, _c, _d, body_24, _e, _f, _g, _h, body_25, _j, _k, _l, _m, body_26, _o, _p, _q, _r, body_27, _s, _t, _u, _v, body;
691
- return __generator(this, function (_w) {
692
- switch (_w.label) {
616
+ var contentType, body_13, _a, _b, _c, _d, bodyText, _e, _f, body_14, body_15, _g, _h, _j, _k, body;
617
+ return __generator(this, function (_l) {
618
+ switch (_l.label) {
693
619
  case 0:
694
620
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
695
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
621
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
696
622
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
697
623
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
698
624
  return [4 /*yield*/, response.body.text()];
699
625
  case 1:
700
- body_23 = _b.apply(_a, [_d.apply(_c, [_w.sent(), contentType]),
701
- "SLOResponse",
702
- ""]);
703
- return [2 /*return*/, body_23];
626
+ body_13 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
627
+ "SLOResponse"]);
628
+ return [2 /*return*/, body_13];
704
629
  case 2:
705
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 4];
706
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
707
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
630
+ if (!(response.httpStatusCode == 403 ||
631
+ response.httpStatusCode == 404 ||
632
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
633
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
708
634
  return [4 /*yield*/, response.body.text()];
709
635
  case 3:
710
- body_24 = _f.apply(_e, [_h.apply(_g, [_w.sent(), contentType]),
711
- "APIErrorResponse",
712
- ""]);
713
- throw new exception_1.ApiException(403, body_24);
636
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
637
+ try {
638
+ body_14 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
639
+ throw new exception_1.ApiException(response.httpStatusCode, body_14);
640
+ }
641
+ catch (error) {
642
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
643
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
644
+ }
645
+ _l.label = 4;
714
646
  case 4:
715
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 6];
716
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
717
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
647
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
648
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
649
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
718
650
  return [4 /*yield*/, response.body.text()];
719
651
  case 5:
720
- body_25 = _k.apply(_j, [_m.apply(_l, [_w.sent(), contentType]),
721
- "APIErrorResponse",
722
- ""]);
723
- throw new exception_1.ApiException(404, body_25);
724
- case 6:
725
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
726
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
727
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
728
- return [4 /*yield*/, response.body.text()];
729
- case 7:
730
- body_26 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
731
- "APIErrorResponse",
732
- ""]);
733
- throw new exception_1.ApiException(429, body_26);
734
- case 8:
735
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
736
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
737
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
738
- return [4 /*yield*/, response.body.text()];
739
- case 9:
740
- body_27 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
652
+ body_15 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
741
653
  "SLOResponse",
742
654
  ""]);
743
- return [2 /*return*/, body_27];
744
- case 10: return [4 /*yield*/, response.body.text()];
745
- case 11:
746
- body = (_w.sent()) || "";
655
+ return [2 /*return*/, body_15];
656
+ case 6: return [4 /*yield*/, response.body.text()];
657
+ case 7:
658
+ body = (_l.sent()) || "";
747
659
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
748
660
  }
749
661
  });
@@ -758,73 +670,50 @@ var ServiceLevelObjectivesApiResponseProcessor = /** @class */ (function () {
758
670
  */
759
671
  ServiceLevelObjectivesApiResponseProcessor.prototype.getSLOCorrections = function (response) {
760
672
  return __awaiter(this, void 0, void 0, function () {
761
- var contentType, body_28, _a, _b, _c, _d, body_29, _e, _f, _g, _h, body_30, _j, _k, _l, _m, body_31, _o, _p, _q, _r, body_32, _s, _t, _u, _v, body_33, _w, _x, _y, _z, body;
762
- return __generator(this, function (_0) {
763
- switch (_0.label) {
673
+ var contentType, body_16, _a, _b, _c, _d, bodyText, _e, _f, body_17, body_18, _g, _h, _j, _k, body;
674
+ return __generator(this, function (_l) {
675
+ switch (_l.label) {
764
676
  case 0:
765
677
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
766
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
678
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
767
679
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
768
680
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
769
681
  return [4 /*yield*/, response.body.text()];
770
682
  case 1:
771
- body_28 = _b.apply(_a, [_d.apply(_c, [_0.sent(), contentType]),
772
- "SLOCorrectionListResponse",
773
- ""]);
774
- return [2 /*return*/, body_28];
683
+ body_16 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
684
+ "SLOCorrectionListResponse"]);
685
+ return [2 /*return*/, body_16];
775
686
  case 2:
776
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
777
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
778
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
687
+ if (!(response.httpStatusCode == 400 ||
688
+ response.httpStatusCode == 403 ||
689
+ response.httpStatusCode == 404 ||
690
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
691
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
779
692
  return [4 /*yield*/, response.body.text()];
780
693
  case 3:
781
- body_29 = _f.apply(_e, [_h.apply(_g, [_0.sent(), contentType]),
782
- "APIErrorResponse",
783
- ""]);
784
- throw new exception_1.ApiException(400, body_29);
694
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
695
+ try {
696
+ body_17 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
697
+ throw new exception_1.ApiException(response.httpStatusCode, body_17);
698
+ }
699
+ catch (error) {
700
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
701
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
702
+ }
703
+ _l.label = 4;
785
704
  case 4:
786
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
787
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
788
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
705
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
706
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
707
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
789
708
  return [4 /*yield*/, response.body.text()];
790
709
  case 5:
791
- body_30 = _k.apply(_j, [_m.apply(_l, [_0.sent(), contentType]),
792
- "APIErrorResponse",
793
- ""]);
794
- throw new exception_1.ApiException(403, body_30);
795
- case 6:
796
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
797
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
798
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
799
- return [4 /*yield*/, response.body.text()];
800
- case 7:
801
- body_31 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
802
- "APIErrorResponse",
803
- ""]);
804
- throw new exception_1.ApiException(404, body_31);
805
- case 8:
806
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
807
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
808
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
809
- return [4 /*yield*/, response.body.text()];
810
- case 9:
811
- body_32 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
812
- "APIErrorResponse",
813
- ""]);
814
- throw new exception_1.ApiException(429, body_32);
815
- case 10:
816
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
817
- _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
818
- _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
819
- return [4 /*yield*/, response.body.text()];
820
- case 11:
821
- body_33 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
710
+ body_18 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
822
711
  "SLOCorrectionListResponse",
823
712
  ""]);
824
- return [2 /*return*/, body_33];
825
- case 12: return [4 /*yield*/, response.body.text()];
826
- case 13:
827
- body = (_0.sent()) || "";
713
+ return [2 /*return*/, body_18];
714
+ case 6: return [4 /*yield*/, response.body.text()];
715
+ case 7:
716
+ body = (_l.sent()) || "";
828
717
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
829
718
  }
830
719
  });
@@ -839,73 +728,50 @@ var ServiceLevelObjectivesApiResponseProcessor = /** @class */ (function () {
839
728
  */
840
729
  ServiceLevelObjectivesApiResponseProcessor.prototype.getSLOHistory = function (response) {
841
730
  return __awaiter(this, void 0, void 0, function () {
842
- var contentType, body_34, _a, _b, _c, _d, body_35, _e, _f, _g, _h, body_36, _j, _k, _l, _m, body_37, _o, _p, _q, _r, body_38, _s, _t, _u, _v, body_39, _w, _x, _y, _z, body;
843
- return __generator(this, function (_0) {
844
- switch (_0.label) {
731
+ var contentType, body_19, _a, _b, _c, _d, bodyText, _e, _f, body_20, body_21, _g, _h, _j, _k, body;
732
+ return __generator(this, function (_l) {
733
+ switch (_l.label) {
845
734
  case 0:
846
735
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
847
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
736
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
848
737
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
849
738
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
850
739
  return [4 /*yield*/, response.body.text()];
851
740
  case 1:
852
- body_34 = _b.apply(_a, [_d.apply(_c, [_0.sent(), contentType]),
853
- "SLOHistoryResponse",
854
- ""]);
855
- return [2 /*return*/, body_34];
741
+ body_19 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
742
+ "SLOHistoryResponse"]);
743
+ return [2 /*return*/, body_19];
856
744
  case 2:
857
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
858
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
859
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
745
+ if (!(response.httpStatusCode == 400 ||
746
+ response.httpStatusCode == 403 ||
747
+ response.httpStatusCode == 404 ||
748
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
749
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
860
750
  return [4 /*yield*/, response.body.text()];
861
751
  case 3:
862
- body_35 = _f.apply(_e, [_h.apply(_g, [_0.sent(), contentType]),
863
- "APIErrorResponse",
864
- ""]);
865
- throw new exception_1.ApiException(400, body_35);
752
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
753
+ try {
754
+ body_20 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
755
+ throw new exception_1.ApiException(response.httpStatusCode, body_20);
756
+ }
757
+ catch (error) {
758
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
759
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
760
+ }
761
+ _l.label = 4;
866
762
  case 4:
867
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
868
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
869
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
763
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
764
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
765
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
870
766
  return [4 /*yield*/, response.body.text()];
871
767
  case 5:
872
- body_36 = _k.apply(_j, [_m.apply(_l, [_0.sent(), contentType]),
873
- "APIErrorResponse",
874
- ""]);
875
- throw new exception_1.ApiException(403, body_36);
876
- case 6:
877
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
878
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
879
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
880
- return [4 /*yield*/, response.body.text()];
881
- case 7:
882
- body_37 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
883
- "APIErrorResponse",
884
- ""]);
885
- throw new exception_1.ApiException(404, body_37);
886
- case 8:
887
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
888
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
889
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
890
- return [4 /*yield*/, response.body.text()];
891
- case 9:
892
- body_38 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
893
- "APIErrorResponse",
894
- ""]);
895
- throw new exception_1.ApiException(429, body_38);
896
- case 10:
897
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
898
- _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
899
- _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
900
- return [4 /*yield*/, response.body.text()];
901
- case 11:
902
- body_39 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
768
+ body_21 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
903
769
  "SLOHistoryResponse",
904
770
  ""]);
905
- return [2 /*return*/, body_39];
906
- case 12: return [4 /*yield*/, response.body.text()];
907
- case 13:
908
- body = (_0.sent()) || "";
771
+ return [2 /*return*/, body_21];
772
+ case 6: return [4 /*yield*/, response.body.text()];
773
+ case 7:
774
+ body = (_l.sent()) || "";
909
775
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
910
776
  }
911
777
  });
@@ -920,73 +786,50 @@ var ServiceLevelObjectivesApiResponseProcessor = /** @class */ (function () {
920
786
  */
921
787
  ServiceLevelObjectivesApiResponseProcessor.prototype.listSLOs = function (response) {
922
788
  return __awaiter(this, void 0, void 0, function () {
923
- var contentType, body_40, _a, _b, _c, _d, body_41, _e, _f, _g, _h, body_42, _j, _k, _l, _m, body_43, _o, _p, _q, _r, body_44, _s, _t, _u, _v, body_45, _w, _x, _y, _z, body;
924
- return __generator(this, function (_0) {
925
- switch (_0.label) {
789
+ var contentType, body_22, _a, _b, _c, _d, bodyText, _e, _f, body_23, body_24, _g, _h, _j, _k, body;
790
+ return __generator(this, function (_l) {
791
+ switch (_l.label) {
926
792
  case 0:
927
793
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
928
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
794
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
929
795
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
930
796
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
931
797
  return [4 /*yield*/, response.body.text()];
932
798
  case 1:
933
- body_40 = _b.apply(_a, [_d.apply(_c, [_0.sent(), contentType]),
934
- "SLOListResponse",
935
- ""]);
936
- return [2 /*return*/, body_40];
799
+ body_22 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
800
+ "SLOListResponse"]);
801
+ return [2 /*return*/, body_22];
937
802
  case 2:
938
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
939
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
940
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
803
+ if (!(response.httpStatusCode == 400 ||
804
+ response.httpStatusCode == 403 ||
805
+ response.httpStatusCode == 404 ||
806
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
807
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
941
808
  return [4 /*yield*/, response.body.text()];
942
809
  case 3:
943
- body_41 = _f.apply(_e, [_h.apply(_g, [_0.sent(), contentType]),
944
- "APIErrorResponse",
945
- ""]);
946
- throw new exception_1.ApiException(400, body_41);
810
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
811
+ try {
812
+ body_23 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
813
+ throw new exception_1.ApiException(response.httpStatusCode, body_23);
814
+ }
815
+ catch (error) {
816
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
817
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
818
+ }
819
+ _l.label = 4;
947
820
  case 4:
948
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
949
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
950
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
821
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
822
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
823
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
951
824
  return [4 /*yield*/, response.body.text()];
952
825
  case 5:
953
- body_42 = _k.apply(_j, [_m.apply(_l, [_0.sent(), contentType]),
954
- "APIErrorResponse",
955
- ""]);
956
- throw new exception_1.ApiException(403, body_42);
957
- case 6:
958
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
959
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
960
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
961
- return [4 /*yield*/, response.body.text()];
962
- case 7:
963
- body_43 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
964
- "APIErrorResponse",
965
- ""]);
966
- throw new exception_1.ApiException(404, body_43);
967
- case 8:
968
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
969
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
970
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
971
- return [4 /*yield*/, response.body.text()];
972
- case 9:
973
- body_44 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
974
- "APIErrorResponse",
975
- ""]);
976
- throw new exception_1.ApiException(429, body_44);
977
- case 10:
978
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
979
- _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
980
- _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
981
- return [4 /*yield*/, response.body.text()];
982
- case 11:
983
- body_45 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
826
+ body_24 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
984
827
  "SLOListResponse",
985
828
  ""]);
986
- return [2 /*return*/, body_45];
987
- case 12: return [4 /*yield*/, response.body.text()];
988
- case 13:
989
- body = (_0.sent()) || "";
829
+ return [2 /*return*/, body_24];
830
+ case 6: return [4 /*yield*/, response.body.text()];
831
+ case 7:
832
+ body = (_l.sent()) || "";
990
833
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
991
834
  }
992
835
  });
@@ -1001,63 +844,49 @@ var ServiceLevelObjectivesApiResponseProcessor = /** @class */ (function () {
1001
844
  */
1002
845
  ServiceLevelObjectivesApiResponseProcessor.prototype.searchSLO = function (response) {
1003
846
  return __awaiter(this, void 0, void 0, function () {
1004
- var contentType, body_46, _a, _b, _c, _d, body_47, _e, _f, _g, _h, body_48, _j, _k, _l, _m, body_49, _o, _p, _q, _r, body_50, _s, _t, _u, _v, body;
1005
- return __generator(this, function (_w) {
1006
- switch (_w.label) {
847
+ var contentType, body_25, _a, _b, _c, _d, bodyText, _e, _f, body_26, body_27, _g, _h, _j, _k, body;
848
+ return __generator(this, function (_l) {
849
+ switch (_l.label) {
1007
850
  case 0:
1008
851
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1009
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
852
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
1010
853
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1011
854
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1012
855
  return [4 /*yield*/, response.body.text()];
1013
856
  case 1:
1014
- body_46 = _b.apply(_a, [_d.apply(_c, [_w.sent(), contentType]),
1015
- "SearchSLOResponse",
1016
- ""]);
1017
- return [2 /*return*/, body_46];
857
+ body_25 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
858
+ "SearchSLOResponse"]);
859
+ return [2 /*return*/, body_25];
1018
860
  case 2:
1019
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
1020
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1021
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
861
+ if (!(response.httpStatusCode == 400 ||
862
+ response.httpStatusCode == 403 ||
863
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
864
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
1022
865
  return [4 /*yield*/, response.body.text()];
1023
866
  case 3:
1024
- body_47 = _f.apply(_e, [_h.apply(_g, [_w.sent(), contentType]),
1025
- "APIErrorResponse",
1026
- ""]);
1027
- throw new exception_1.ApiException(400, body_47);
867
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
868
+ try {
869
+ body_26 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
870
+ throw new exception_1.ApiException(response.httpStatusCode, body_26);
871
+ }
872
+ catch (error) {
873
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
874
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
875
+ }
876
+ _l.label = 4;
1028
877
  case 4:
1029
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
1030
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1031
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
878
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
879
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
880
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
1032
881
  return [4 /*yield*/, response.body.text()];
1033
882
  case 5:
1034
- body_48 = _k.apply(_j, [_m.apply(_l, [_w.sent(), contentType]),
1035
- "APIErrorResponse",
1036
- ""]);
1037
- throw new exception_1.ApiException(403, body_48);
1038
- case 6:
1039
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
1040
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1041
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1042
- return [4 /*yield*/, response.body.text()];
1043
- case 7:
1044
- body_49 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
1045
- "APIErrorResponse",
1046
- ""]);
1047
- throw new exception_1.ApiException(429, body_49);
1048
- case 8:
1049
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
1050
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1051
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1052
- return [4 /*yield*/, response.body.text()];
1053
- case 9:
1054
- body_50 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
883
+ body_27 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
1055
884
  "SearchSLOResponse",
1056
885
  ""]);
1057
- return [2 /*return*/, body_50];
1058
- case 10: return [4 /*yield*/, response.body.text()];
1059
- case 11:
1060
- body = (_w.sent()) || "";
886
+ return [2 /*return*/, body_27];
887
+ case 6: return [4 /*yield*/, response.body.text()];
888
+ case 7:
889
+ body = (_l.sent()) || "";
1061
890
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
1062
891
  }
1063
892
  });
@@ -1072,73 +901,50 @@ var ServiceLevelObjectivesApiResponseProcessor = /** @class */ (function () {
1072
901
  */
1073
902
  ServiceLevelObjectivesApiResponseProcessor.prototype.updateSLO = function (response) {
1074
903
  return __awaiter(this, void 0, void 0, function () {
1075
- 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_55, _s, _t, _u, _v, body_56, _w, _x, _y, _z, body;
1076
- return __generator(this, function (_0) {
1077
- switch (_0.label) {
904
+ var contentType, body_28, _a, _b, _c, _d, bodyText, _e, _f, body_29, body_30, _g, _h, _j, _k, body;
905
+ return __generator(this, function (_l) {
906
+ switch (_l.label) {
1078
907
  case 0:
1079
908
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1080
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
909
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
1081
910
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1082
911
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1083
912
  return [4 /*yield*/, response.body.text()];
1084
913
  case 1:
1085
- body_51 = _b.apply(_a, [_d.apply(_c, [_0.sent(), contentType]),
1086
- "SLOListResponse",
1087
- ""]);
1088
- return [2 /*return*/, body_51];
914
+ body_28 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
915
+ "SLOListResponse"]);
916
+ return [2 /*return*/, body_28];
1089
917
  case 2:
1090
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
1091
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1092
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
918
+ if (!(response.httpStatusCode == 400 ||
919
+ response.httpStatusCode == 403 ||
920
+ response.httpStatusCode == 404 ||
921
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
922
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
1093
923
  return [4 /*yield*/, response.body.text()];
1094
924
  case 3:
1095
- body_52 = _f.apply(_e, [_h.apply(_g, [_0.sent(), contentType]),
1096
- "APIErrorResponse",
1097
- ""]);
1098
- throw new exception_1.ApiException(400, body_52);
925
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
926
+ try {
927
+ body_29 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
928
+ throw new exception_1.ApiException(response.httpStatusCode, body_29);
929
+ }
930
+ catch (error) {
931
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
932
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
933
+ }
934
+ _l.label = 4;
1099
935
  case 4:
1100
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
1101
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1102
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
936
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
937
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
938
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
1103
939
  return [4 /*yield*/, response.body.text()];
1104
940
  case 5:
1105
- body_53 = _k.apply(_j, [_m.apply(_l, [_0.sent(), contentType]),
1106
- "APIErrorResponse",
1107
- ""]);
1108
- throw new exception_1.ApiException(403, body_53);
1109
- case 6:
1110
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
1111
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1112
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1113
- return [4 /*yield*/, response.body.text()];
1114
- case 7:
1115
- body_54 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
1116
- "APIErrorResponse",
1117
- ""]);
1118
- throw new exception_1.ApiException(404, body_54);
1119
- case 8:
1120
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
1121
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1122
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1123
- return [4 /*yield*/, response.body.text()];
1124
- case 9:
1125
- body_55 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
1126
- "APIErrorResponse",
1127
- ""]);
1128
- throw new exception_1.ApiException(429, body_55);
1129
- case 10:
1130
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
1131
- _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
1132
- _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
1133
- return [4 /*yield*/, response.body.text()];
1134
- case 11:
1135
- body_56 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
941
+ body_30 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
1136
942
  "SLOListResponse",
1137
943
  ""]);
1138
- return [2 /*return*/, body_56];
1139
- case 12: return [4 /*yield*/, response.body.text()];
1140
- case 13:
1141
- body = (_0.sent()) || "";
944
+ return [2 /*return*/, body_30];
945
+ case 6: return [4 /*yield*/, response.body.text()];
946
+ case 7:
947
+ body = (_l.sent()) || "";
1142
948
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
1143
949
  }
1144
950
  });
@@ -1299,7 +1105,7 @@ var ServiceLevelObjectivesApi = /** @class */ (function () {
1299
1105
  ServiceLevelObjectivesApi.prototype.searchSLO = function (param, options) {
1300
1106
  var _this = this;
1301
1107
  if (param === void 0) { param = {}; }
1302
- var requestContextPromise = this.requestFactory.searchSLO(param.query, param.pageSize, param.pageNumber, options);
1108
+ var requestContextPromise = this.requestFactory.searchSLO(param.query, param.pageSize, param.pageNumber, param.includeFacets, options);
1303
1109
  return requestContextPromise.then(function (requestContext) {
1304
1110
  return _this.configuration.httpApi
1305
1111
  .send(requestContext)