@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
@@ -55,9 +55,9 @@ exports.LogsArchivesApi = exports.LogsArchivesApiResponseProcessor = exports.Log
55
55
  var baseapi_1 = require("../../datadog-api-client-common/baseapi");
56
56
  var configuration_1 = require("../../datadog-api-client-common/configuration");
57
57
  var http_1 = require("../../datadog-api-client-common/http/http");
58
+ var logger_1 = require("../../../logger");
58
59
  var ObjectSerializer_1 = require("../models/ObjectSerializer");
59
60
  var exception_1 = require("../../datadog-api-client-common/exception");
60
- var util_1 = require("../../datadog-api-client-common/util");
61
61
  var LogsArchivesApiRequestFactory = /** @class */ (function (_super) {
62
62
  __extends(LogsArchivesApiRequestFactory, _super);
63
63
  function LogsArchivesApiRequestFactory() {
@@ -336,66 +336,44 @@ var LogsArchivesApiResponseProcessor = /** @class */ (function () {
336
336
  */
337
337
  LogsArchivesApiResponseProcessor.prototype.addReadRoleToArchive = function (response) {
338
338
  return __awaiter(this, void 0, void 0, function () {
339
- 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;
340
- return __generator(this, function (_w) {
341
- switch (_w.label) {
339
+ var contentType, bodyText, _a, _b, body_1, body_2, _c, _d, _e, _f, body;
340
+ return __generator(this, function (_g) {
341
+ switch (_g.label) {
342
342
  case 0:
343
343
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
344
- if ((0, util_1.isCodeInRange)("204", response.httpStatusCode)) {
344
+ if (response.httpStatusCode == 204) {
345
345
  return [2 /*return*/];
346
346
  }
347
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 2];
348
- _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
349
- _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
347
+ if (!(response.httpStatusCode == 400 ||
348
+ response.httpStatusCode == 403 ||
349
+ response.httpStatusCode == 404 ||
350
+ response.httpStatusCode == 429)) return [3 /*break*/, 2];
351
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).parse;
350
352
  return [4 /*yield*/, response.body.text()];
351
353
  case 1:
352
- body_1 = _b.apply(_a, [_d.apply(_c, [_w.sent(), contentType]),
353
- "APIErrorResponse",
354
- ""]);
355
- throw new exception_1.ApiException(400, body_1);
354
+ bodyText = _b.apply(_a, [_g.sent(), contentType]);
355
+ try {
356
+ body_1 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
357
+ throw new exception_1.ApiException(response.httpStatusCode, body_1);
358
+ }
359
+ catch (error) {
360
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
361
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
362
+ }
363
+ _g.label = 2;
356
364
  case 2:
357
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 4];
358
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
359
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
365
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 4];
366
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).deserialize;
367
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
360
368
  return [4 /*yield*/, response.body.text()];
361
369
  case 3:
362
- body_2 = _f.apply(_e, [_h.apply(_g, [_w.sent(), contentType]),
363
- "APIErrorResponse",
364
- ""]);
365
- throw new exception_1.ApiException(403, body_2);
366
- case 4:
367
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 6];
368
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
369
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
370
- return [4 /*yield*/, response.body.text()];
371
- case 5:
372
- body_3 = _k.apply(_j, [_m.apply(_l, [_w.sent(), contentType]),
373
- "APIErrorResponse",
374
- ""]);
375
- throw new exception_1.ApiException(404, body_3);
376
- case 6:
377
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
378
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
379
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
380
- return [4 /*yield*/, response.body.text()];
381
- case 7:
382
- body_4 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
383
- "APIErrorResponse",
384
- ""]);
385
- throw new exception_1.ApiException(429, body_4);
386
- case 8:
387
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
388
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
389
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
390
- return [4 /*yield*/, response.body.text()];
391
- case 9:
392
- body_5 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
370
+ body_2 = _d.apply(_c, [_f.apply(_e, [_g.sent(), contentType]),
393
371
  "void",
394
372
  ""]);
395
- return [2 /*return*/, body_5];
396
- case 10: return [4 /*yield*/, response.body.text()];
397
- case 11:
398
- body = (_w.sent()) || "";
373
+ return [2 /*return*/, body_2];
374
+ case 4: return [4 /*yield*/, response.body.text()];
375
+ case 5:
376
+ body = (_g.sent()) || "";
399
377
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
400
378
  }
401
379
  });
@@ -410,63 +388,49 @@ var LogsArchivesApiResponseProcessor = /** @class */ (function () {
410
388
  */
411
389
  LogsArchivesApiResponseProcessor.prototype.createLogsArchive = function (response) {
412
390
  return __awaiter(this, void 0, void 0, function () {
413
- var contentType, body_6, _a, _b, _c, _d, body_7, _e, _f, _g, _h, body_8, _j, _k, _l, _m, body_9, _o, _p, _q, _r, body_10, _s, _t, _u, _v, body;
414
- return __generator(this, function (_w) {
415
- switch (_w.label) {
391
+ var contentType, body_3, _a, _b, _c, _d, bodyText, _e, _f, body_4, body_5, _g, _h, _j, _k, body;
392
+ return __generator(this, function (_l) {
393
+ switch (_l.label) {
416
394
  case 0:
417
395
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
418
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
396
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
419
397
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
420
398
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
421
399
  return [4 /*yield*/, response.body.text()];
422
400
  case 1:
423
- body_6 = _b.apply(_a, [_d.apply(_c, [_w.sent(), contentType]),
424
- "LogsArchive",
425
- ""]);
426
- return [2 /*return*/, body_6];
401
+ body_3 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
402
+ "LogsArchive"]);
403
+ return [2 /*return*/, body_3];
427
404
  case 2:
428
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
429
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
430
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
405
+ if (!(response.httpStatusCode == 400 ||
406
+ response.httpStatusCode == 403 ||
407
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
408
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
431
409
  return [4 /*yield*/, response.body.text()];
432
410
  case 3:
433
- body_7 = _f.apply(_e, [_h.apply(_g, [_w.sent(), contentType]),
434
- "APIErrorResponse",
435
- ""]);
436
- throw new exception_1.ApiException(400, body_7);
411
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
412
+ try {
413
+ body_4 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
414
+ throw new exception_1.ApiException(response.httpStatusCode, body_4);
415
+ }
416
+ catch (error) {
417
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
418
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
419
+ }
420
+ _l.label = 4;
437
421
  case 4:
438
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
439
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
440
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
422
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
423
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
424
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
441
425
  return [4 /*yield*/, response.body.text()];
442
426
  case 5:
443
- body_8 = _k.apply(_j, [_m.apply(_l, [_w.sent(), contentType]),
444
- "APIErrorResponse",
445
- ""]);
446
- throw new exception_1.ApiException(403, body_8);
447
- case 6:
448
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
449
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
450
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
451
- return [4 /*yield*/, response.body.text()];
452
- case 7:
453
- body_9 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
454
- "APIErrorResponse",
455
- ""]);
456
- throw new exception_1.ApiException(429, body_9);
457
- case 8:
458
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
459
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
460
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
461
- return [4 /*yield*/, response.body.text()];
462
- case 9:
463
- body_10 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
427
+ body_5 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
464
428
  "LogsArchive",
465
429
  ""]);
466
- return [2 /*return*/, body_10];
467
- case 10: return [4 /*yield*/, response.body.text()];
468
- case 11:
469
- body = (_w.sent()) || "";
430
+ return [2 /*return*/, body_5];
431
+ case 6: return [4 /*yield*/, response.body.text()];
432
+ case 7:
433
+ body = (_l.sent()) || "";
470
434
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
471
435
  }
472
436
  });
@@ -481,66 +445,44 @@ var LogsArchivesApiResponseProcessor = /** @class */ (function () {
481
445
  */
482
446
  LogsArchivesApiResponseProcessor.prototype.deleteLogsArchive = function (response) {
483
447
  return __awaiter(this, void 0, void 0, function () {
484
- var contentType, body_11, _a, _b, _c, _d, body_12, _e, _f, _g, _h, body_13, _j, _k, _l, _m, body_14, _o, _p, _q, _r, body_15, _s, _t, _u, _v, body;
485
- return __generator(this, function (_w) {
486
- switch (_w.label) {
448
+ var contentType, bodyText, _a, _b, body_6, body_7, _c, _d, _e, _f, body;
449
+ return __generator(this, function (_g) {
450
+ switch (_g.label) {
487
451
  case 0:
488
452
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
489
- if ((0, util_1.isCodeInRange)("204", response.httpStatusCode)) {
453
+ if (response.httpStatusCode == 204) {
490
454
  return [2 /*return*/];
491
455
  }
492
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 2];
493
- _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
494
- _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
456
+ if (!(response.httpStatusCode == 400 ||
457
+ response.httpStatusCode == 403 ||
458
+ response.httpStatusCode == 404 ||
459
+ response.httpStatusCode == 429)) return [3 /*break*/, 2];
460
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).parse;
495
461
  return [4 /*yield*/, response.body.text()];
496
462
  case 1:
497
- body_11 = _b.apply(_a, [_d.apply(_c, [_w.sent(), contentType]),
498
- "APIErrorResponse",
499
- ""]);
500
- throw new exception_1.ApiException(400, body_11);
463
+ bodyText = _b.apply(_a, [_g.sent(), contentType]);
464
+ try {
465
+ body_6 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
466
+ throw new exception_1.ApiException(response.httpStatusCode, body_6);
467
+ }
468
+ catch (error) {
469
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
470
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
471
+ }
472
+ _g.label = 2;
501
473
  case 2:
502
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 4];
503
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
504
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
474
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 4];
475
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).deserialize;
476
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
505
477
  return [4 /*yield*/, response.body.text()];
506
478
  case 3:
507
- body_12 = _f.apply(_e, [_h.apply(_g, [_w.sent(), contentType]),
508
- "APIErrorResponse",
509
- ""]);
510
- throw new exception_1.ApiException(403, body_12);
511
- case 4:
512
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 6];
513
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
514
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
515
- return [4 /*yield*/, response.body.text()];
516
- case 5:
517
- body_13 = _k.apply(_j, [_m.apply(_l, [_w.sent(), contentType]),
518
- "APIErrorResponse",
519
- ""]);
520
- throw new exception_1.ApiException(404, body_13);
521
- case 6:
522
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
523
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
524
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
525
- return [4 /*yield*/, response.body.text()];
526
- case 7:
527
- body_14 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
528
- "APIErrorResponse",
529
- ""]);
530
- throw new exception_1.ApiException(429, body_14);
531
- case 8:
532
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
533
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
534
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
535
- return [4 /*yield*/, response.body.text()];
536
- case 9:
537
- body_15 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
479
+ body_7 = _d.apply(_c, [_f.apply(_e, [_g.sent(), contentType]),
538
480
  "void",
539
481
  ""]);
540
- return [2 /*return*/, body_15];
541
- case 10: return [4 /*yield*/, response.body.text()];
542
- case 11:
543
- body = (_w.sent()) || "";
482
+ return [2 /*return*/, body_7];
483
+ case 4: return [4 /*yield*/, response.body.text()];
484
+ case 5:
485
+ body = (_g.sent()) || "";
544
486
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
545
487
  }
546
488
  });
@@ -555,73 +497,50 @@ var LogsArchivesApiResponseProcessor = /** @class */ (function () {
555
497
  */
556
498
  LogsArchivesApiResponseProcessor.prototype.getLogsArchive = function (response) {
557
499
  return __awaiter(this, void 0, void 0, function () {
558
- 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_20, _s, _t, _u, _v, body_21, _w, _x, _y, _z, body;
559
- return __generator(this, function (_0) {
560
- switch (_0.label) {
500
+ var contentType, body_8, _a, _b, _c, _d, bodyText, _e, _f, body_9, body_10, _g, _h, _j, _k, body;
501
+ return __generator(this, function (_l) {
502
+ switch (_l.label) {
561
503
  case 0:
562
504
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
563
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
505
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
564
506
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
565
507
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
566
508
  return [4 /*yield*/, response.body.text()];
567
509
  case 1:
568
- body_16 = _b.apply(_a, [_d.apply(_c, [_0.sent(), contentType]),
569
- "LogsArchive",
570
- ""]);
571
- return [2 /*return*/, body_16];
510
+ body_8 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
511
+ "LogsArchive"]);
512
+ return [2 /*return*/, body_8];
572
513
  case 2:
573
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
574
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
575
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
514
+ if (!(response.httpStatusCode == 400 ||
515
+ response.httpStatusCode == 403 ||
516
+ response.httpStatusCode == 404 ||
517
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
518
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
576
519
  return [4 /*yield*/, response.body.text()];
577
520
  case 3:
578
- body_17 = _f.apply(_e, [_h.apply(_g, [_0.sent(), contentType]),
579
- "APIErrorResponse",
580
- ""]);
581
- throw new exception_1.ApiException(400, body_17);
521
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
522
+ try {
523
+ body_9 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
524
+ throw new exception_1.ApiException(response.httpStatusCode, body_9);
525
+ }
526
+ catch (error) {
527
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
528
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
529
+ }
530
+ _l.label = 4;
582
531
  case 4:
583
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
584
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
585
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
532
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
533
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
534
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
586
535
  return [4 /*yield*/, response.body.text()];
587
536
  case 5:
588
- body_18 = _k.apply(_j, [_m.apply(_l, [_0.sent(), contentType]),
589
- "APIErrorResponse",
590
- ""]);
591
- throw new exception_1.ApiException(403, body_18);
592
- case 6:
593
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
594
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
595
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
596
- return [4 /*yield*/, response.body.text()];
597
- case 7:
598
- body_19 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
599
- "APIErrorResponse",
600
- ""]);
601
- throw new exception_1.ApiException(404, body_19);
602
- case 8:
603
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
604
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
605
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
606
- return [4 /*yield*/, response.body.text()];
607
- case 9:
608
- body_20 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
609
- "APIErrorResponse",
610
- ""]);
611
- throw new exception_1.ApiException(429, body_20);
612
- case 10:
613
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
614
- _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
615
- _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
616
- return [4 /*yield*/, response.body.text()];
617
- case 11:
618
- body_21 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
537
+ body_10 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
619
538
  "LogsArchive",
620
539
  ""]);
621
- return [2 /*return*/, body_21];
622
- case 12: return [4 /*yield*/, response.body.text()];
623
- case 13:
624
- body = (_0.sent()) || "";
540
+ return [2 /*return*/, body_10];
541
+ case 6: return [4 /*yield*/, response.body.text()];
542
+ case 7:
543
+ body = (_l.sent()) || "";
625
544
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
626
545
  }
627
546
  });
@@ -636,53 +555,47 @@ var LogsArchivesApiResponseProcessor = /** @class */ (function () {
636
555
  */
637
556
  LogsArchivesApiResponseProcessor.prototype.getLogsArchiveOrder = function (response) {
638
557
  return __awaiter(this, void 0, void 0, function () {
639
- var contentType, body_22, _a, _b, _c, _d, body_23, _e, _f, _g, _h, body_24, _j, _k, _l, _m, body_25, _o, _p, _q, _r, body;
640
- return __generator(this, function (_s) {
641
- switch (_s.label) {
558
+ var contentType, body_11, _a, _b, _c, _d, bodyText, _e, _f, body_12, body_13, _g, _h, _j, _k, body;
559
+ return __generator(this, function (_l) {
560
+ switch (_l.label) {
642
561
  case 0:
643
562
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
644
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
563
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
645
564
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
646
565
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
647
566
  return [4 /*yield*/, response.body.text()];
648
567
  case 1:
649
- body_22 = _b.apply(_a, [_d.apply(_c, [_s.sent(), contentType]),
650
- "LogsArchiveOrder",
651
- ""]);
652
- return [2 /*return*/, body_22];
568
+ body_11 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
569
+ "LogsArchiveOrder"]);
570
+ return [2 /*return*/, body_11];
653
571
  case 2:
654
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 4];
655
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
656
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
572
+ if (!(response.httpStatusCode == 403 || response.httpStatusCode == 429)) return [3 /*break*/, 4];
573
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
657
574
  return [4 /*yield*/, response.body.text()];
658
575
  case 3:
659
- body_23 = _f.apply(_e, [_h.apply(_g, [_s.sent(), contentType]),
660
- "APIErrorResponse",
661
- ""]);
662
- throw new exception_1.ApiException(403, body_23);
576
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
577
+ try {
578
+ body_12 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
579
+ throw new exception_1.ApiException(response.httpStatusCode, body_12);
580
+ }
581
+ catch (error) {
582
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
583
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
584
+ }
585
+ _l.label = 4;
663
586
  case 4:
664
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 6];
665
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
666
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
587
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
588
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
589
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
667
590
  return [4 /*yield*/, response.body.text()];
668
591
  case 5:
669
- body_24 = _k.apply(_j, [_m.apply(_l, [_s.sent(), contentType]),
670
- "APIErrorResponse",
671
- ""]);
672
- throw new exception_1.ApiException(429, body_24);
673
- case 6:
674
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 8];
675
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
676
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
677
- return [4 /*yield*/, response.body.text()];
678
- case 7:
679
- body_25 = _p.apply(_o, [_r.apply(_q, [_s.sent(), contentType]),
592
+ body_13 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
680
593
  "LogsArchiveOrder",
681
594
  ""]);
682
- return [2 /*return*/, body_25];
683
- case 8: return [4 /*yield*/, response.body.text()];
684
- case 9:
685
- body = (_s.sent()) || "";
595
+ return [2 /*return*/, body_13];
596
+ case 6: return [4 /*yield*/, response.body.text()];
597
+ case 7:
598
+ body = (_l.sent()) || "";
686
599
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
687
600
  }
688
601
  });
@@ -697,73 +610,50 @@ var LogsArchivesApiResponseProcessor = /** @class */ (function () {
697
610
  */
698
611
  LogsArchivesApiResponseProcessor.prototype.listArchiveReadRoles = function (response) {
699
612
  return __awaiter(this, void 0, void 0, function () {
700
- 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;
701
- return __generator(this, function (_0) {
702
- switch (_0.label) {
613
+ var contentType, body_14, _a, _b, _c, _d, bodyText, _e, _f, body_15, body_16, _g, _h, _j, _k, body;
614
+ return __generator(this, function (_l) {
615
+ switch (_l.label) {
703
616
  case 0:
704
617
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
705
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
618
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
706
619
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
707
620
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
708
621
  return [4 /*yield*/, response.body.text()];
709
622
  case 1:
710
- body_26 = _b.apply(_a, [_d.apply(_c, [_0.sent(), contentType]),
711
- "RolesResponse",
712
- ""]);
713
- return [2 /*return*/, body_26];
623
+ body_14 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
624
+ "RolesResponse"]);
625
+ return [2 /*return*/, body_14];
714
626
  case 2:
715
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
716
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
717
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
627
+ if (!(response.httpStatusCode == 400 ||
628
+ response.httpStatusCode == 403 ||
629
+ response.httpStatusCode == 404 ||
630
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
631
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
718
632
  return [4 /*yield*/, response.body.text()];
719
633
  case 3:
720
- body_27 = _f.apply(_e, [_h.apply(_g, [_0.sent(), contentType]),
721
- "APIErrorResponse",
722
- ""]);
723
- throw new exception_1.ApiException(400, body_27);
634
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
635
+ try {
636
+ body_15 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
637
+ throw new exception_1.ApiException(response.httpStatusCode, body_15);
638
+ }
639
+ catch (error) {
640
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
641
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
642
+ }
643
+ _l.label = 4;
724
644
  case 4:
725
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
726
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
727
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
645
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
646
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
647
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
728
648
  return [4 /*yield*/, response.body.text()];
729
649
  case 5:
730
- body_28 = _k.apply(_j, [_m.apply(_l, [_0.sent(), contentType]),
731
- "APIErrorResponse",
732
- ""]);
733
- throw new exception_1.ApiException(403, body_28);
734
- case 6:
735
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
736
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
737
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
738
- return [4 /*yield*/, response.body.text()];
739
- case 7:
740
- body_29 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
741
- "APIErrorResponse",
742
- ""]);
743
- throw new exception_1.ApiException(404, body_29);
744
- case 8:
745
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
746
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
747
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
748
- return [4 /*yield*/, response.body.text()];
749
- case 9:
750
- body_30 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
751
- "APIErrorResponse",
752
- ""]);
753
- throw new exception_1.ApiException(429, body_30);
754
- case 10:
755
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
756
- _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
757
- _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
758
- return [4 /*yield*/, response.body.text()];
759
- case 11:
760
- body_31 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
650
+ body_16 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
761
651
  "RolesResponse",
762
652
  ""]);
763
- return [2 /*return*/, body_31];
764
- case 12: return [4 /*yield*/, response.body.text()];
765
- case 13:
766
- body = (_0.sent()) || "";
653
+ return [2 /*return*/, body_16];
654
+ case 6: return [4 /*yield*/, response.body.text()];
655
+ case 7:
656
+ body = (_l.sent()) || "";
767
657
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
768
658
  }
769
659
  });
@@ -778,53 +668,47 @@ var LogsArchivesApiResponseProcessor = /** @class */ (function () {
778
668
  */
779
669
  LogsArchivesApiResponseProcessor.prototype.listLogsArchives = function (response) {
780
670
  return __awaiter(this, void 0, void 0, function () {
781
- 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;
782
- return __generator(this, function (_s) {
783
- switch (_s.label) {
671
+ var contentType, body_17, _a, _b, _c, _d, bodyText, _e, _f, body_18, body_19, _g, _h, _j, _k, body;
672
+ return __generator(this, function (_l) {
673
+ switch (_l.label) {
784
674
  case 0:
785
675
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
786
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
676
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
787
677
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
788
678
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
789
679
  return [4 /*yield*/, response.body.text()];
790
680
  case 1:
791
- body_32 = _b.apply(_a, [_d.apply(_c, [_s.sent(), contentType]),
792
- "LogsArchives",
793
- ""]);
794
- return [2 /*return*/, body_32];
681
+ body_17 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
682
+ "LogsArchives"]);
683
+ return [2 /*return*/, body_17];
795
684
  case 2:
796
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 4];
797
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
798
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
685
+ if (!(response.httpStatusCode == 403 || response.httpStatusCode == 429)) return [3 /*break*/, 4];
686
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
799
687
  return [4 /*yield*/, response.body.text()];
800
688
  case 3:
801
- body_33 = _f.apply(_e, [_h.apply(_g, [_s.sent(), contentType]),
802
- "APIErrorResponse",
803
- ""]);
804
- throw new exception_1.ApiException(403, body_33);
689
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
690
+ try {
691
+ body_18 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
692
+ throw new exception_1.ApiException(response.httpStatusCode, body_18);
693
+ }
694
+ catch (error) {
695
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
696
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
697
+ }
698
+ _l.label = 4;
805
699
  case 4:
806
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 6];
807
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
808
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
700
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
701
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
702
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
809
703
  return [4 /*yield*/, response.body.text()];
810
704
  case 5:
811
- body_34 = _k.apply(_j, [_m.apply(_l, [_s.sent(), contentType]),
812
- "APIErrorResponse",
813
- ""]);
814
- throw new exception_1.ApiException(429, body_34);
815
- case 6:
816
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 8];
817
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
818
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
819
- return [4 /*yield*/, response.body.text()];
820
- case 7:
821
- body_35 = _p.apply(_o, [_r.apply(_q, [_s.sent(), contentType]),
705
+ body_19 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
822
706
  "LogsArchives",
823
707
  ""]);
824
- return [2 /*return*/, body_35];
825
- case 8: return [4 /*yield*/, response.body.text()];
826
- case 9:
827
- body = (_s.sent()) || "";
708
+ return [2 /*return*/, body_19];
709
+ case 6: return [4 /*yield*/, response.body.text()];
710
+ case 7:
711
+ body = (_l.sent()) || "";
828
712
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
829
713
  }
830
714
  });
@@ -839,66 +723,44 @@ var LogsArchivesApiResponseProcessor = /** @class */ (function () {
839
723
  */
840
724
  LogsArchivesApiResponseProcessor.prototype.removeRoleFromArchive = function (response) {
841
725
  return __awaiter(this, void 0, void 0, function () {
842
- var contentType, body_36, _a, _b, _c, _d, body_37, _e, _f, _g, _h, body_38, _j, _k, _l, _m, body_39, _o, _p, _q, _r, body_40, _s, _t, _u, _v, body;
843
- return __generator(this, function (_w) {
844
- switch (_w.label) {
726
+ var contentType, bodyText, _a, _b, body_20, body_21, _c, _d, _e, _f, body;
727
+ return __generator(this, function (_g) {
728
+ switch (_g.label) {
845
729
  case 0:
846
730
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
847
- if ((0, util_1.isCodeInRange)("204", response.httpStatusCode)) {
731
+ if (response.httpStatusCode == 204) {
848
732
  return [2 /*return*/];
849
733
  }
850
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 2];
851
- _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
852
- _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
734
+ if (!(response.httpStatusCode == 400 ||
735
+ response.httpStatusCode == 403 ||
736
+ response.httpStatusCode == 404 ||
737
+ response.httpStatusCode == 429)) return [3 /*break*/, 2];
738
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).parse;
853
739
  return [4 /*yield*/, response.body.text()];
854
740
  case 1:
855
- body_36 = _b.apply(_a, [_d.apply(_c, [_w.sent(), contentType]),
856
- "APIErrorResponse",
857
- ""]);
858
- throw new exception_1.ApiException(400, body_36);
741
+ bodyText = _b.apply(_a, [_g.sent(), contentType]);
742
+ try {
743
+ body_20 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
744
+ throw new exception_1.ApiException(response.httpStatusCode, body_20);
745
+ }
746
+ catch (error) {
747
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
748
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
749
+ }
750
+ _g.label = 2;
859
751
  case 2:
860
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 4];
861
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
862
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
752
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 4];
753
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).deserialize;
754
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
863
755
  return [4 /*yield*/, response.body.text()];
864
756
  case 3:
865
- body_37 = _f.apply(_e, [_h.apply(_g, [_w.sent(), contentType]),
866
- "APIErrorResponse",
867
- ""]);
868
- throw new exception_1.ApiException(403, body_37);
869
- case 4:
870
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 6];
871
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
872
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
873
- return [4 /*yield*/, response.body.text()];
874
- case 5:
875
- body_38 = _k.apply(_j, [_m.apply(_l, [_w.sent(), contentType]),
876
- "APIErrorResponse",
877
- ""]);
878
- throw new exception_1.ApiException(404, body_38);
879
- case 6:
880
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
881
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
882
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
883
- return [4 /*yield*/, response.body.text()];
884
- case 7:
885
- body_39 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
886
- "APIErrorResponse",
887
- ""]);
888
- throw new exception_1.ApiException(429, body_39);
889
- case 8:
890
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
891
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
892
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
893
- return [4 /*yield*/, response.body.text()];
894
- case 9:
895
- body_40 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
757
+ body_21 = _d.apply(_c, [_f.apply(_e, [_g.sent(), contentType]),
896
758
  "void",
897
759
  ""]);
898
- return [2 /*return*/, body_40];
899
- case 10: return [4 /*yield*/, response.body.text()];
900
- case 11:
901
- body = (_w.sent()) || "";
760
+ return [2 /*return*/, body_21];
761
+ case 4: return [4 /*yield*/, response.body.text()];
762
+ case 5:
763
+ body = (_g.sent()) || "";
902
764
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
903
765
  }
904
766
  });
@@ -913,73 +775,50 @@ var LogsArchivesApiResponseProcessor = /** @class */ (function () {
913
775
  */
914
776
  LogsArchivesApiResponseProcessor.prototype.updateLogsArchive = function (response) {
915
777
  return __awaiter(this, void 0, void 0, function () {
916
- var contentType, body_41, _a, _b, _c, _d, body_42, _e, _f, _g, _h, body_43, _j, _k, _l, _m, body_44, _o, _p, _q, _r, body_45, _s, _t, _u, _v, body_46, _w, _x, _y, _z, body;
917
- return __generator(this, function (_0) {
918
- switch (_0.label) {
778
+ var contentType, body_22, _a, _b, _c, _d, bodyText, _e, _f, body_23, body_24, _g, _h, _j, _k, body;
779
+ return __generator(this, function (_l) {
780
+ switch (_l.label) {
919
781
  case 0:
920
782
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
921
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
783
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
922
784
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
923
785
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
924
786
  return [4 /*yield*/, response.body.text()];
925
787
  case 1:
926
- body_41 = _b.apply(_a, [_d.apply(_c, [_0.sent(), contentType]),
927
- "LogsArchive",
928
- ""]);
929
- return [2 /*return*/, body_41];
788
+ body_22 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
789
+ "LogsArchive"]);
790
+ return [2 /*return*/, body_22];
930
791
  case 2:
931
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
932
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
933
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
792
+ if (!(response.httpStatusCode == 400 ||
793
+ response.httpStatusCode == 403 ||
794
+ response.httpStatusCode == 404 ||
795
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
796
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
934
797
  return [4 /*yield*/, response.body.text()];
935
798
  case 3:
936
- body_42 = _f.apply(_e, [_h.apply(_g, [_0.sent(), contentType]),
937
- "APIErrorResponse",
938
- ""]);
939
- throw new exception_1.ApiException(400, body_42);
799
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
800
+ try {
801
+ body_23 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
802
+ throw new exception_1.ApiException(response.httpStatusCode, body_23);
803
+ }
804
+ catch (error) {
805
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
806
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
807
+ }
808
+ _l.label = 4;
940
809
  case 4:
941
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
942
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
943
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
810
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
811
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
812
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
944
813
  return [4 /*yield*/, response.body.text()];
945
814
  case 5:
946
- body_43 = _k.apply(_j, [_m.apply(_l, [_0.sent(), contentType]),
947
- "APIErrorResponse",
948
- ""]);
949
- throw new exception_1.ApiException(403, body_43);
950
- case 6:
951
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
952
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
953
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
954
- return [4 /*yield*/, response.body.text()];
955
- case 7:
956
- body_44 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
957
- "APIErrorResponse",
958
- ""]);
959
- throw new exception_1.ApiException(404, body_44);
960
- case 8:
961
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
962
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
963
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
964
- return [4 /*yield*/, response.body.text()];
965
- case 9:
966
- body_45 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
967
- "APIErrorResponse",
968
- ""]);
969
- throw new exception_1.ApiException(429, body_45);
970
- case 10:
971
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
972
- _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
973
- _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
974
- return [4 /*yield*/, response.body.text()];
975
- case 11:
976
- body_46 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
815
+ body_24 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
977
816
  "LogsArchive",
978
817
  ""]);
979
- return [2 /*return*/, body_46];
980
- case 12: return [4 /*yield*/, response.body.text()];
981
- case 13:
982
- body = (_0.sent()) || "";
818
+ return [2 /*return*/, body_24];
819
+ case 6: return [4 /*yield*/, response.body.text()];
820
+ case 7:
821
+ body = (_l.sent()) || "";
983
822
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
984
823
  }
985
824
  });
@@ -994,73 +833,50 @@ var LogsArchivesApiResponseProcessor = /** @class */ (function () {
994
833
  */
995
834
  LogsArchivesApiResponseProcessor.prototype.updateLogsArchiveOrder = function (response) {
996
835
  return __awaiter(this, void 0, void 0, function () {
997
- 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_51, _s, _t, _u, _v, body_52, _w, _x, _y, _z, body;
998
- return __generator(this, function (_0) {
999
- switch (_0.label) {
836
+ var contentType, body_25, _a, _b, _c, _d, bodyText, _e, _f, body_26, body_27, _g, _h, _j, _k, body;
837
+ return __generator(this, function (_l) {
838
+ switch (_l.label) {
1000
839
  case 0:
1001
840
  contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1002
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3 /*break*/, 2];
841
+ if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
1003
842
  _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1004
843
  _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1005
844
  return [4 /*yield*/, response.body.text()];
1006
845
  case 1:
1007
- body_47 = _b.apply(_a, [_d.apply(_c, [_0.sent(), contentType]),
1008
- "LogsArchiveOrder",
1009
- ""]);
1010
- return [2 /*return*/, body_47];
846
+ body_25 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
847
+ "LogsArchiveOrder"]);
848
+ return [2 /*return*/, body_25];
1011
849
  case 2:
1012
- if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3 /*break*/, 4];
1013
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1014
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
850
+ if (!(response.httpStatusCode == 400 ||
851
+ response.httpStatusCode == 403 ||
852
+ response.httpStatusCode == 422 ||
853
+ response.httpStatusCode == 429)) return [3 /*break*/, 4];
854
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
1015
855
  return [4 /*yield*/, response.body.text()];
1016
856
  case 3:
1017
- body_48 = _f.apply(_e, [_h.apply(_g, [_0.sent(), contentType]),
1018
- "APIErrorResponse",
1019
- ""]);
1020
- throw new exception_1.ApiException(400, body_48);
857
+ bodyText = _f.apply(_e, [_l.sent(), contentType]);
858
+ try {
859
+ body_26 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
860
+ throw new exception_1.ApiException(response.httpStatusCode, body_26);
861
+ }
862
+ catch (error) {
863
+ logger_1.logger.info("Got error deserializing error: ".concat(error));
864
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
865
+ }
866
+ _l.label = 4;
1021
867
  case 4:
1022
- if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 6];
1023
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1024
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
868
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
869
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
870
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
1025
871
  return [4 /*yield*/, response.body.text()];
1026
872
  case 5:
1027
- body_49 = _k.apply(_j, [_m.apply(_l, [_0.sent(), contentType]),
1028
- "APIErrorResponse",
1029
- ""]);
1030
- throw new exception_1.ApiException(403, body_49);
1031
- case 6:
1032
- if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3 /*break*/, 8];
1033
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1034
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1035
- return [4 /*yield*/, response.body.text()];
1036
- case 7:
1037
- body_50 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
1038
- "APIErrorResponse",
1039
- ""]);
1040
- throw new exception_1.ApiException(422, body_50);
1041
- case 8:
1042
- if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
1043
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1044
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1045
- return [4 /*yield*/, response.body.text()];
1046
- case 9:
1047
- body_51 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
1048
- "APIErrorResponse",
1049
- ""]);
1050
- throw new exception_1.ApiException(429, body_51);
1051
- case 10:
1052
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
1053
- _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
1054
- _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
1055
- return [4 /*yield*/, response.body.text()];
1056
- case 11:
1057
- body_52 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
873
+ body_27 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
1058
874
  "LogsArchiveOrder",
1059
875
  ""]);
1060
- return [2 /*return*/, body_52];
1061
- case 12: return [4 /*yield*/, response.body.text()];
1062
- case 13:
1063
- body = (_0.sent()) || "";
876
+ return [2 /*return*/, body_27];
877
+ case 6: return [4 /*yield*/, response.body.text()];
878
+ case 7:
879
+ body = (_l.sent()) || "";
1064
880
  throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
1065
881
  }
1066
882
  });