@datadog/datadog-api-client 1.2.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +54 -0
- package/LICENSE-3rdparty.csv +1 -0
- package/README.md +120 -3
- package/dist/packages/datadog-api-client-common/configuration.d.ts +5 -1
- package/dist/packages/datadog-api-client-common/configuration.js +3 -6
- package/dist/packages/datadog-api-client-common/configuration.js.map +1 -1
- package/dist/packages/datadog-api-client-common/http/http.d.ts +2 -0
- package/dist/packages/datadog-api-client-common/http/isomorphic-fetch.d.ts +2 -1
- package/dist/packages/datadog-api-client-common/http/isomorphic-fetch.js +11 -5
- package/dist/packages/datadog-api-client-common/http/isomorphic-fetch.js.map +1 -1
- package/dist/packages/datadog-api-client-common/servers.js.map +1 -1
- package/dist/packages/datadog-api-client-common/util.d.ts +0 -9
- package/dist/packages/datadog-api-client-common/util.js +1 -32
- package/dist/packages/datadog-api-client-common/util.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/AWSIntegrationApi.js +262 -407
- package/dist/packages/datadog-api-client-v1/apis/AWSIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/AWSLogsIntegrationApi.js +201 -291
- package/dist/packages/datadog-api-client-v1/apis/AWSLogsIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/AuthenticationApi.js +27 -33
- package/dist/packages/datadog-api-client-v1/apis/AuthenticationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/AzureIntegrationApi.js +145 -215
- package/dist/packages/datadog-api-client-v1/apis/AzureIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/DashboardListsApi.js +144 -215
- package/dist/packages/datadog-api-client-v1/apis/DashboardListsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/DashboardsApi.js +198 -313
- package/dist/packages/datadog-api-client-v1/apis/DashboardsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/DowntimesApi.js +201 -308
- package/dist/packages/datadog-api-client-v1/apis/DowntimesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/EventsApi.js +85 -119
- package/dist/packages/datadog-api-client-v1/apis/EventsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/GCPIntegrationApi.js +116 -172
- package/dist/packages/datadog-api-client-v1/apis/GCPIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/HostsApi.js +116 -172
- package/dist/packages/datadog-api-client-v1/apis/HostsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/IPRangesApi.js +23 -19
- package/dist/packages/datadog-api-client-v1/apis/IPRangesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/KeyManagementApi.js +291 -460
- package/dist/packages/datadog-api-client-v1/apis/KeyManagementApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/LogsApi.js +75 -67
- package/dist/packages/datadog-api-client-v1/apis/LogsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/LogsIndexesApi.js +210 -226
- package/dist/packages/datadog-api-client-v1/apis/LogsIndexesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/LogsPipelinesApi.js +246 -272
- package/dist/packages/datadog-api-client-v1/apis/LogsPipelinesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/MetricsApi.js +208 -351
- package/dist/packages/datadog-api-client-v1/apis/MetricsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/MonitorsApi.js +295 -490
- package/dist/packages/datadog-api-client-v1/apis/MonitorsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/NotebooksApi.js +146 -251
- package/dist/packages/datadog-api-client-v1/apis/NotebooksApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/OrganizationsApi.js +173 -258
- package/dist/packages/datadog-api-client-v1/apis/OrganizationsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/PagerDutyIntegrationApi.js +111 -174
- package/dist/packages/datadog-api-client-v1/apis/PagerDutyIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/SecurityMonitoringApi.js +90 -159
- package/dist/packages/datadog-api-client-v1/apis/SecurityMonitoringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/ServiceChecksApi.js +31 -63
- package/dist/packages/datadog-api-client-v1/apis/ServiceChecksApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectiveCorrectionsApi.js +142 -221
- package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectiveCorrectionsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.d.ts +8 -1
- package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.js +298 -492
- package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/SlackIntegrationApi.js +147 -261
- package/dist/packages/datadog-api-client-v1/apis/SlackIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/SnapshotsApi.js +29 -43
- package/dist/packages/datadog-api-client-v1/apis/SnapshotsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/SyntheticsApi.js +765 -1130
- package/dist/packages/datadog-api-client-v1/apis/SyntheticsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/TagsApi.js +142 -211
- package/dist/packages/datadog-api-client-v1/apis/TagsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.d.ts +37 -27
- package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.js +1129 -1641
- package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/UsersApi.js +146 -235
- package/dist/packages/datadog-api-client-v1/apis/UsersApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/WebhooksIntegrationApi.js +230 -376
- package/dist/packages/datadog-api-client-v1/apis/WebhooksIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/index.d.ts +23 -0
- package/dist/packages/datadog-api-client-v1/index.js +37 -7
- package/dist/packages/datadog-api-client-v1/index.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariable.d.ts +5 -1
- package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariable.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariable.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariablePresetValue.d.ts +5 -1
- package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariablePresetValue.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariablePresetValue.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryDefinition.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryDefinition.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryDefinition.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventsDataSource.d.ts +2 -1
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventsDataSource.js +2 -1
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventsDataSource.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.d.ts +3 -1
- package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.js +3 -1
- package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/ListStreamQuery.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/ListStreamQuery.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/ListStreamQuery.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/ListStreamSource.d.ts +2 -1
- package/dist/packages/datadog-api-client-v1/models/ListStreamSource.js +2 -1
- package/dist/packages/datadog-api-client-v1/models/ListStreamSource.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/MetricContentEncoding.d.ts +2 -1
- package/dist/packages/datadog-api-client-v1/models/MetricContentEncoding.js +2 -1
- package/dist/packages/datadog-api-client-v1/models/MetricContentEncoding.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/MonitorOptions.d.ts +16 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorOptions.js +8 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorOptions.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/MonitorSummaryWidgetDefinition.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorSummaryWidgetDefinition.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorSummaryWidgetDefinition.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.d.ts +5 -1
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.js +6 -1
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.d.ts +16 -0
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.js +20 -0
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js +71 -3
- package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/OnMissingDataOption.d.ts +10 -0
- package/dist/packages/datadog-api-client-v1/models/OnMissingDataOption.js +13 -0
- package/dist/packages/datadog-api-client-v1/models/OnMissingDataOption.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLOCreator.d.ts +36 -0
- package/dist/packages/datadog-api-client-v1/models/SLOCreator.js +42 -0
- package/dist/packages/datadog-api-client-v1/models/SLOCreator.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinition.d.ts +47 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinition.js +46 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinition.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinitionType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinitionType.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinitionType.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetQuery.d.ts +32 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetQuery.js +39 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetQuery.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequest.d.ts +34 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequest.js +34 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequestType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequestType.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequestType.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLOOverallStatuses.d.ts +55 -0
- package/dist/packages/datadog-api-client-v1/models/SLOOverallStatuses.js +56 -0
- package/dist/packages/datadog-api-client-v1/models/SLOOverallStatuses.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLORawErrorBudgetRemaining.d.ts +32 -0
- package/dist/packages/datadog-api-client-v1/models/SLORawErrorBudgetRemaining.js +38 -0
- package/dist/packages/datadog-api-client-v1/models/SLORawErrorBudgetRemaining.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOQuery.d.ts +39 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOQuery.js +43 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOQuery.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributes.d.ts +2 -2
- package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributes.js +3 -3
- package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SearchSLOThreshold.d.ts +54 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOThreshold.js +48 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOThreshold.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOTimeframe.d.ts +9 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOTimeframe.js +12 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOTimeframe.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjective.d.ts +29 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjective.js +28 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjective.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveAttributes.d.ts +103 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveAttributes.js +88 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveData.d.ts +40 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveData.js +36 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveData.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsAssertionOperator.d.ts +2 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsAssertionOperator.js +2 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsAssertionOperator.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuth.d.ts +2 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigest.d.ts +37 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigest.js +38 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigest.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigestType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigestType.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigestType.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptions.d.ts +5 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptions.js +4 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptions.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptionsType.d.ts +2 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptionsType.js +2 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptionsType.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestOptions.d.ts +12 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestOptions.js +13 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestOptions.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestProcessStatus.d.ts +1 -2
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestProcessStatus.js +1 -2
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestProcessStatus.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestRequest.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestRequest.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestRequest.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinition.d.ts +52 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinition.js +50 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinition.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinitionType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinitionType.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinitionType.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyQuery.d.ts +37 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyQuery.js +36 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyQuery.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyQueryDataSource.d.ts +8 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyQueryDataSource.js +11 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyQueryDataSource.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyRequest.d.ts +34 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyRequest.js +32 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyRequestType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyRequestType.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyRequestType.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionSort.d.ts +5 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionSort.js +5 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionSort.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionSupportedMetrics.d.ts +5 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionSupportedMetrics.js +5 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionSupportedMetrics.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionValues.d.ts +16 -0
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionValues.js +20 -0
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionValues.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageBillableSummaryHour.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/UsageBillableSummaryHour.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/UsageBillableSummaryHour.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageCloudSecurityPostureManagementHour.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/UsageCloudSecurityPostureManagementHour.js +5 -0
- package/dist/packages/datadog-api-client-v1/models/UsageCloudSecurityPostureManagementHour.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageFargateHour.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/UsageFargateHour.js +5 -0
- package/dist/packages/datadog-api-client-v1/models/UsageFargateHour.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.d.ts +8 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.d.ts +12 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.js +14 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.d.ts +8 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/WidgetDefinition.d.ts +3 -1
- package/dist/packages/datadog-api-client-v1/models/WidgetMonitorSummarySort.d.ts +3 -1
- package/dist/packages/datadog-api-client-v1/models/WidgetMonitorSummarySort.js +3 -1
- package/dist/packages/datadog-api-client-v1/models/WidgetMonitorSummarySort.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/AuditApi.js +58 -86
- package/dist/packages/datadog-api-client-v2/apis/AuditApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/AuthNMappingsApi.js +144 -241
- package/dist/packages/datadog-api-client-v2/apis/AuthNMappingsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/CloudWorkloadSecurityApi.js +167 -260
- package/dist/packages/datadog-api-client-v2/apis/CloudWorkloadSecurityApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/DashboardListsApi.js +119 -202
- package/dist/packages/datadog-api-client-v2/apis/DashboardListsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/EventsApi.js +58 -86
- package/dist/packages/datadog-api-client-v2/apis/EventsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/IncidentServicesApi.js +151 -311
- package/dist/packages/datadog-api-client-v2/apis/IncidentServicesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/IncidentTeamsApi.js +151 -311
- package/dist/packages/datadog-api-client-v2/apis/IncidentTeamsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.d.ts +67 -0
- package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.js +365 -303
- package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/KeyManagementApi.js +403 -650
- package/dist/packages/datadog-api-client-v2/apis/KeyManagementApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/LogsApi.js +121 -222
- package/dist/packages/datadog-api-client-v2/apis/LogsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/LogsArchivesApi.js +285 -469
- package/dist/packages/datadog-api-client-v2/apis/LogsArchivesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/LogsMetricsApi.js +142 -221
- package/dist/packages/datadog-api-client-v2/apis/LogsMetricsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/MetricsApi.d.ts +41 -8
- package/dist/packages/datadog-api-client-v2/apis/MetricsApi.js +428 -560
- package/dist/packages/datadog-api-client-v2/apis/MetricsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/OpsgenieIntegrationApi.js +146 -261
- package/dist/packages/datadog-api-client-v2/apis/OpsgenieIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/OrganizationsApi.js +27 -40
- package/dist/packages/datadog-api-client-v2/apis/OrganizationsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/ProcessesApi.js +29 -43
- package/dist/packages/datadog-api-client-v2/apis/ProcessesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/RUMApi.d.ts +105 -0
- package/dist/packages/datadog-api-client-v2/apis/RUMApi.js +549 -122
- package/dist/packages/datadog-api-client-v2/apis/RUMApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/RolesApi.js +380 -625
- package/dist/packages/datadog-api-client-v2/apis/RolesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.d.ts +21 -0
- package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.js +522 -688
- package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/ServiceAccountsApi.js +144 -231
- package/dist/packages/datadog-api-client-v2/apis/ServiceAccountsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.d.ts +43 -6
- package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.js +284 -265
- package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/UsersApi.js +289 -446
- package/dist/packages/datadog-api-client-v2/apis/UsersApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/index.d.ts +49 -6
- package/dist/packages/datadog-api-client-v2/index.js +69 -15
- package/dist/packages/datadog-api-client-v2/index.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/ContentEncoding.d.ts +2 -1
- package/dist/packages/datadog-api-client-v2/models/ContentEncoding.js +2 -1
- package/dist/packages/datadog-api-client-v2/models/ContentEncoding.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttachmentType.d.ts +8 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttachmentType.js +11 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttachmentType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttributes.d.ts +12 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttributes.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentData.d.ts +43 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentData.js +44 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttachmentType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttachmentType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttachmentType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributes.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributes.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributesAttachmentObject.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributesAttachmentObject.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributesAttachmentObject.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttachmentType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttachmentType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttachmentType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttributes.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttributes.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelatedObject.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelatedObject.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelatedObject.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelationships.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelationships.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelationships.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateAttributes.d.ts +12 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateAttributes.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateData.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateData.js +37 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateRequest.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateRequest.js +29 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateResponse.d.ts +35 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateResponse.js +33 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsPostmortemAttributesAttachmentObject.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsPostmortemAttributesAttachmentObject.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsPostmortemAttributesAttachmentObject.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponse.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponse.js +33 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponseIncludedItem.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponseIncludedItem.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponseIncludedItem.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentRelatedObject.d.ts +2 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentRelatedObject.js +2 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentRelatedObject.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseAttributes.d.ts +0 -4
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseAttributes.js +0 -4
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseIncludedItem.d.ts +2 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseRelationships.d.ts +5 -5
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseRelationships.js +4 -4
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseRelationships.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/MetricActiveConfigurationType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/MetricActiveConfigurationType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/MetricActiveConfigurationType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MetricContentEncoding.d.ts +3 -1
- package/dist/packages/datadog-api-client-v2/models/MetricContentEncoding.js +3 -1
- package/dist/packages/datadog-api-client-v2/models/MetricContentEncoding.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregations.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregations.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregations.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregationsResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregationsResponse.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregationsResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAttributes.d.ts +33 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAttributes.js +32 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js +98 -12
- package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/RUMApplication.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplication.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplication.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationAttributes.d.ts +60 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationAttributes.js +76 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreate.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreate.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreate.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateAttributes.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateAttributes.js +38 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateRequest.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateRequest.js +29 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationResponse.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdate.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdate.js +38 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdate.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateAttributes.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateAttributes.js +37 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateRequest.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateRequest.js +29 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationsResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationsResponse.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationsResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachment.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachment.js +29 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachment.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachmentData.d.ts +33 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachmentData.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachmentData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RoleUpdateData.d.ts +5 -0
- package/dist/packages/datadog-api-client-v2/models/RoleUpdateData.js +4 -0
- package/dist/packages/datadog-api-client-v2/models/RoleUpdateData.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCreatePayload.d.ts +4 -61
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCreatePayload.js +0 -67
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCreatePayload.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQuery.d.ts +4 -46
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQuery.js +0 -49
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQuery.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryAggregation.d.ts +2 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryAggregation.js +2 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryAggregation.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleResponse.d.ts +5 -90
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleResponse.js +0 -93
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleResponse.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleCreatePayload.d.ts +69 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleCreatePayload.js +70 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleCreatePayload.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleQuery.d.ts +49 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleQuery.js +50 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleQuery.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponse.d.ts +97 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponse.js +96 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleCreatePayload.d.ts +69 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleCreatePayload.js +70 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleCreatePayload.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/{SecurityMonitoringRuleQueryCreate.d.ts → SecurityMonitoringStandardRuleQuery.d.ts} +1 -1
- package/dist/packages/datadog-api-client-v2/models/{SecurityMonitoringRuleQueryCreate.js → SecurityMonitoringStandardRuleQuery.js} +9 -9
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleQuery.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleResponse.d.ts +97 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleResponse.js +96 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleResponse.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -2
- 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,
|
|
340
|
-
return __generator(this, function (
|
|
341
|
-
switch (
|
|
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 (
|
|
344
|
+
if (response.httpStatusCode == 204) {
|
|
345
345
|
return [2 /*return*/];
|
|
346
346
|
}
|
|
347
|
-
if (!(
|
|
348
|
-
|
|
349
|
-
|
|
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
|
-
|
|
353
|
-
|
|
354
|
-
""
|
|
355
|
-
|
|
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 (!(
|
|
358
|
-
|
|
359
|
-
|
|
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 =
|
|
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*/,
|
|
396
|
-
case
|
|
397
|
-
case
|
|
398
|
-
body = (
|
|
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,
|
|
414
|
-
return __generator(this, function (
|
|
415
|
-
switch (
|
|
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 (!(
|
|
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
|
-
|
|
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 (!(
|
|
429
|
-
|
|
430
|
-
|
|
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
|
-
|
|
434
|
-
|
|
435
|
-
""
|
|
436
|
-
|
|
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 (!(
|
|
439
|
-
|
|
440
|
-
|
|
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
|
-
|
|
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*/,
|
|
467
|
-
case
|
|
468
|
-
case
|
|
469
|
-
body = (
|
|
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,
|
|
485
|
-
return __generator(this, function (
|
|
486
|
-
switch (
|
|
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 (
|
|
453
|
+
if (response.httpStatusCode == 204) {
|
|
490
454
|
return [2 /*return*/];
|
|
491
455
|
}
|
|
492
|
-
if (!(
|
|
493
|
-
|
|
494
|
-
|
|
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
|
-
|
|
498
|
-
|
|
499
|
-
""
|
|
500
|
-
|
|
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 (!(
|
|
503
|
-
|
|
504
|
-
|
|
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
|
-
|
|
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*/,
|
|
541
|
-
case
|
|
542
|
-
case
|
|
543
|
-
body = (
|
|
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,
|
|
559
|
-
return __generator(this, function (
|
|
560
|
-
switch (
|
|
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 (!(
|
|
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
|
-
|
|
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 (!(
|
|
574
|
-
|
|
575
|
-
|
|
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
|
-
|
|
579
|
-
|
|
580
|
-
""
|
|
581
|
-
|
|
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 (!(
|
|
584
|
-
|
|
585
|
-
|
|
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
|
-
|
|
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*/,
|
|
622
|
-
case
|
|
623
|
-
case
|
|
624
|
-
body = (
|
|
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,
|
|
640
|
-
return __generator(this, function (
|
|
641
|
-
switch (
|
|
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 (!(
|
|
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
|
-
|
|
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 (!(
|
|
655
|
-
_f = (_e = ObjectSerializer_1.ObjectSerializer).
|
|
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
|
-
|
|
660
|
-
|
|
661
|
-
""
|
|
662
|
-
|
|
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 (!(
|
|
665
|
-
|
|
666
|
-
|
|
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
|
-
|
|
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*/,
|
|
683
|
-
case
|
|
684
|
-
case
|
|
685
|
-
body = (
|
|
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,
|
|
701
|
-
return __generator(this, function (
|
|
702
|
-
switch (
|
|
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 (!(
|
|
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
|
-
|
|
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 (!(
|
|
716
|
-
|
|
717
|
-
|
|
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
|
-
|
|
721
|
-
|
|
722
|
-
""
|
|
723
|
-
|
|
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 (!(
|
|
726
|
-
|
|
727
|
-
|
|
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
|
-
|
|
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*/,
|
|
764
|
-
case
|
|
765
|
-
case
|
|
766
|
-
body = (
|
|
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,
|
|
782
|
-
return __generator(this, function (
|
|
783
|
-
switch (
|
|
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 (!(
|
|
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
|
-
|
|
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 (!(
|
|
797
|
-
_f = (_e = ObjectSerializer_1.ObjectSerializer).
|
|
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
|
-
|
|
802
|
-
|
|
803
|
-
""
|
|
804
|
-
|
|
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 (!(
|
|
807
|
-
|
|
808
|
-
|
|
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
|
-
|
|
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*/,
|
|
825
|
-
case
|
|
826
|
-
case
|
|
827
|
-
body = (
|
|
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,
|
|
843
|
-
return __generator(this, function (
|
|
844
|
-
switch (
|
|
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 (
|
|
731
|
+
if (response.httpStatusCode == 204) {
|
|
848
732
|
return [2 /*return*/];
|
|
849
733
|
}
|
|
850
|
-
if (!(
|
|
851
|
-
|
|
852
|
-
|
|
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
|
-
|
|
856
|
-
|
|
857
|
-
""
|
|
858
|
-
|
|
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 (!(
|
|
861
|
-
|
|
862
|
-
|
|
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
|
-
|
|
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*/,
|
|
899
|
-
case
|
|
900
|
-
case
|
|
901
|
-
body = (
|
|
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,
|
|
917
|
-
return __generator(this, function (
|
|
918
|
-
switch (
|
|
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 (!(
|
|
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
|
-
|
|
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 (!(
|
|
932
|
-
|
|
933
|
-
|
|
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
|
-
|
|
937
|
-
|
|
938
|
-
""
|
|
939
|
-
|
|
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 (!(
|
|
942
|
-
|
|
943
|
-
|
|
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
|
-
|
|
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*/,
|
|
980
|
-
case
|
|
981
|
-
case
|
|
982
|
-
body = (
|
|
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,
|
|
998
|
-
return __generator(this, function (
|
|
999
|
-
switch (
|
|
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 (!(
|
|
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
|
-
|
|
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 (!(
|
|
1013
|
-
|
|
1014
|
-
|
|
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
|
-
|
|
1018
|
-
|
|
1019
|
-
""
|
|
1020
|
-
|
|
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 (!(
|
|
1023
|
-
|
|
1024
|
-
|
|
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
|
-
|
|
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*/,
|
|
1061
|
-
case
|
|
1062
|
-
case
|
|
1063
|
-
body = (
|
|
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
|
});
|