@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.
- package/CHANGELOG.md +26 -0
- package/README.md +72 -0
- package/dist/packages/datadog-api-client-common/configuration.js +2 -1
- package/dist/packages/datadog-api-client-common/configuration.js.map +1 -1
- package/dist/packages/datadog-api-client-common/http/isomorphic-fetch.js +3 -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.js +1093 -1594
- 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 +20 -0
- package/dist/packages/datadog-api-client-v1/index.js +35 -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/HourlyUsageAttributionUsageType.d.ts +2 -1
- package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.js +2 -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/MonthlyUsageAttributionSupportedMetrics.d.ts +3 -1
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.js +4 -2
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.d.ts +8 -0
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js +44 -0
- package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js.map +1 -1
- 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/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 +3 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionSort.js +3 -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 +3 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionSupportedMetrics.js +3 -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 +8 -0
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionValues.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionValues.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 +4 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.js +5 -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 +4 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.js +5 -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 +4 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.js +5 -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-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 +57 -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.js +222 -310
- 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 -685
- 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 +35 -5
- package/dist/packages/datadog-api-client-v2/index.js +49 -15
- package/dist/packages/datadog-api-client-v2/index.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/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 +73 -10
- package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js.map +1 -1
- 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/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 +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryCreate.js.map +0 -1
|
@@ -55,9 +55,9 @@ exports.LogsPipelinesApi = exports.LogsPipelinesApiResponseProcessor = exports.L
|
|
|
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 LogsPipelinesApiRequestFactory = /** @class */ (function (_super) {
|
|
62
62
|
__extends(LogsPipelinesApiRequestFactory, _super);
|
|
63
63
|
function LogsPipelinesApiRequestFactory() {
|
|
@@ -249,63 +249,62 @@ var LogsPipelinesApiResponseProcessor = /** @class */ (function () {
|
|
|
249
249
|
*/
|
|
250
250
|
LogsPipelinesApiResponseProcessor.prototype.createLogsPipeline = function (response) {
|
|
251
251
|
return __awaiter(this, void 0, void 0, function () {
|
|
252
|
-
var contentType, body_1, _a, _b, _c, _d,
|
|
253
|
-
return __generator(this, function (
|
|
254
|
-
switch (
|
|
252
|
+
var contentType, body_1, _a, _b, _c, _d, bodyText, _e, _f, body_2, bodyText, _g, _h, body_3, body_4, _j, _k, _l, _m, body;
|
|
253
|
+
return __generator(this, function (_o) {
|
|
254
|
+
switch (_o.label) {
|
|
255
255
|
case 0:
|
|
256
256
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
257
|
-
if (!(
|
|
257
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
258
258
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
259
259
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
260
260
|
return [4 /*yield*/, response.body.text()];
|
|
261
261
|
case 1:
|
|
262
|
-
body_1 = _b.apply(_a, [_d.apply(_c, [
|
|
263
|
-
"LogsPipeline"
|
|
264
|
-
""]);
|
|
262
|
+
body_1 = _b.apply(_a, [_d.apply(_c, [_o.sent(), contentType]),
|
|
263
|
+
"LogsPipeline"]);
|
|
265
264
|
return [2 /*return*/, body_1];
|
|
266
265
|
case 2:
|
|
267
|
-
if (!(
|
|
268
|
-
_f = (_e = ObjectSerializer_1.ObjectSerializer).
|
|
269
|
-
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
266
|
+
if (!(response.httpStatusCode == 400)) return [3 /*break*/, 4];
|
|
267
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
270
268
|
return [4 /*yield*/, response.body.text()];
|
|
271
269
|
case 3:
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
""
|
|
275
|
-
|
|
270
|
+
bodyText = _f.apply(_e, [_o.sent(), contentType]);
|
|
271
|
+
try {
|
|
272
|
+
body_2 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "LogsAPIErrorResponse");
|
|
273
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_2);
|
|
274
|
+
}
|
|
275
|
+
catch (error) {
|
|
276
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
277
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
278
|
+
}
|
|
279
|
+
_o.label = 4;
|
|
276
280
|
case 4:
|
|
277
|
-
if (!(
|
|
278
|
-
|
|
279
|
-
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
281
|
+
if (!(response.httpStatusCode == 403 || response.httpStatusCode == 429)) return [3 /*break*/, 6];
|
|
282
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
280
283
|
return [4 /*yield*/, response.body.text()];
|
|
281
284
|
case 5:
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
""
|
|
285
|
-
|
|
285
|
+
bodyText = _h.apply(_g, [_o.sent(), contentType]);
|
|
286
|
+
try {
|
|
287
|
+
body_3 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
288
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_3);
|
|
289
|
+
}
|
|
290
|
+
catch (error) {
|
|
291
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
292
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
293
|
+
}
|
|
294
|
+
_o.label = 6;
|
|
286
295
|
case 6:
|
|
287
|
-
if (!(
|
|
288
|
-
|
|
289
|
-
|
|
296
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 8];
|
|
297
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
298
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
290
299
|
return [4 /*yield*/, response.body.text()];
|
|
291
300
|
case 7:
|
|
292
|
-
body_4 =
|
|
293
|
-
"APIErrorResponse",
|
|
294
|
-
""]);
|
|
295
|
-
throw new exception_1.ApiException(429, body_4);
|
|
296
|
-
case 8:
|
|
297
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
298
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
299
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
300
|
-
return [4 /*yield*/, response.body.text()];
|
|
301
|
-
case 9:
|
|
302
|
-
body_5 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
301
|
+
body_4 = _k.apply(_j, [_m.apply(_l, [_o.sent(), contentType]),
|
|
303
302
|
"LogsPipeline",
|
|
304
303
|
""]);
|
|
305
|
-
return [2 /*return*/,
|
|
306
|
-
case
|
|
307
|
-
case
|
|
308
|
-
body = (
|
|
304
|
+
return [2 /*return*/, body_4];
|
|
305
|
+
case 8: return [4 /*yield*/, response.body.text()];
|
|
306
|
+
case 9:
|
|
307
|
+
body = (_o.sent()) || "";
|
|
309
308
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
310
309
|
}
|
|
311
310
|
});
|
|
@@ -320,56 +319,56 @@ var LogsPipelinesApiResponseProcessor = /** @class */ (function () {
|
|
|
320
319
|
*/
|
|
321
320
|
LogsPipelinesApiResponseProcessor.prototype.deleteLogsPipeline = function (response) {
|
|
322
321
|
return __awaiter(this, void 0, void 0, function () {
|
|
323
|
-
var contentType,
|
|
324
|
-
return __generator(this, function (
|
|
325
|
-
switch (
|
|
322
|
+
var contentType, bodyText, _a, _b, body_5, bodyText, _c, _d, body_6, body_7, _e, _f, _g, _h, body;
|
|
323
|
+
return __generator(this, function (_j) {
|
|
324
|
+
switch (_j.label) {
|
|
326
325
|
case 0:
|
|
327
326
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
328
|
-
if (
|
|
327
|
+
if (response.httpStatusCode == 200) {
|
|
329
328
|
return [2 /*return*/];
|
|
330
329
|
}
|
|
331
|
-
if (!(
|
|
332
|
-
_b = (_a = ObjectSerializer_1.ObjectSerializer).
|
|
333
|
-
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
330
|
+
if (!(response.httpStatusCode == 400)) return [3 /*break*/, 2];
|
|
331
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).parse;
|
|
334
332
|
return [4 /*yield*/, response.body.text()];
|
|
335
333
|
case 1:
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
""
|
|
339
|
-
|
|
334
|
+
bodyText = _b.apply(_a, [_j.sent(), contentType]);
|
|
335
|
+
try {
|
|
336
|
+
body_5 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "LogsAPIErrorResponse");
|
|
337
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_5);
|
|
338
|
+
}
|
|
339
|
+
catch (error) {
|
|
340
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
341
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
342
|
+
}
|
|
343
|
+
_j.label = 2;
|
|
340
344
|
case 2:
|
|
341
|
-
if (!(
|
|
342
|
-
|
|
343
|
-
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
345
|
+
if (!(response.httpStatusCode == 403 || response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
346
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
344
347
|
return [4 /*yield*/, response.body.text()];
|
|
345
348
|
case 3:
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
""
|
|
349
|
-
|
|
349
|
+
bodyText = _d.apply(_c, [_j.sent(), contentType]);
|
|
350
|
+
try {
|
|
351
|
+
body_6 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
352
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_6);
|
|
353
|
+
}
|
|
354
|
+
catch (error) {
|
|
355
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
356
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
357
|
+
}
|
|
358
|
+
_j.label = 4;
|
|
350
359
|
case 4:
|
|
351
|
-
if (!(
|
|
352
|
-
|
|
353
|
-
|
|
360
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
361
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
362
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
354
363
|
return [4 /*yield*/, response.body.text()];
|
|
355
364
|
case 5:
|
|
356
|
-
|
|
357
|
-
"APIErrorResponse",
|
|
358
|
-
""]);
|
|
359
|
-
throw new exception_1.ApiException(429, body_8);
|
|
360
|
-
case 6:
|
|
361
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 8];
|
|
362
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
363
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
364
|
-
return [4 /*yield*/, response.body.text()];
|
|
365
|
-
case 7:
|
|
366
|
-
body_9 = _p.apply(_o, [_r.apply(_q, [_s.sent(), contentType]),
|
|
365
|
+
body_7 = _f.apply(_e, [_h.apply(_g, [_j.sent(), contentType]),
|
|
367
366
|
"void",
|
|
368
367
|
""]);
|
|
369
|
-
return [2 /*return*/,
|
|
370
|
-
case
|
|
371
|
-
case
|
|
372
|
-
body = (
|
|
368
|
+
return [2 /*return*/, body_7];
|
|
369
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
370
|
+
case 7:
|
|
371
|
+
body = (_j.sent()) || "";
|
|
373
372
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
374
373
|
}
|
|
375
374
|
});
|
|
@@ -384,63 +383,62 @@ var LogsPipelinesApiResponseProcessor = /** @class */ (function () {
|
|
|
384
383
|
*/
|
|
385
384
|
LogsPipelinesApiResponseProcessor.prototype.getLogsPipeline = function (response) {
|
|
386
385
|
return __awaiter(this, void 0, void 0, function () {
|
|
387
|
-
var contentType,
|
|
388
|
-
return __generator(this, function (
|
|
389
|
-
switch (
|
|
386
|
+
var contentType, body_8, _a, _b, _c, _d, bodyText, _e, _f, body_9, bodyText, _g, _h, body_10, body_11, _j, _k, _l, _m, body;
|
|
387
|
+
return __generator(this, function (_o) {
|
|
388
|
+
switch (_o.label) {
|
|
390
389
|
case 0:
|
|
391
390
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
392
|
-
if (!(
|
|
391
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
393
392
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
394
393
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
395
394
|
return [4 /*yield*/, response.body.text()];
|
|
396
395
|
case 1:
|
|
397
|
-
|
|
398
|
-
"LogsPipeline"
|
|
399
|
-
|
|
400
|
-
return [2 /*return*/, body_10];
|
|
396
|
+
body_8 = _b.apply(_a, [_d.apply(_c, [_o.sent(), contentType]),
|
|
397
|
+
"LogsPipeline"]);
|
|
398
|
+
return [2 /*return*/, body_8];
|
|
401
399
|
case 2:
|
|
402
|
-
if (!(
|
|
403
|
-
_f = (_e = ObjectSerializer_1.ObjectSerializer).
|
|
404
|
-
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
400
|
+
if (!(response.httpStatusCode == 400)) return [3 /*break*/, 4];
|
|
401
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
405
402
|
return [4 /*yield*/, response.body.text()];
|
|
406
403
|
case 3:
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
""
|
|
410
|
-
|
|
404
|
+
bodyText = _f.apply(_e, [_o.sent(), contentType]);
|
|
405
|
+
try {
|
|
406
|
+
body_9 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "LogsAPIErrorResponse");
|
|
407
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_9);
|
|
408
|
+
}
|
|
409
|
+
catch (error) {
|
|
410
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
411
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
412
|
+
}
|
|
413
|
+
_o.label = 4;
|
|
411
414
|
case 4:
|
|
412
|
-
if (!(
|
|
413
|
-
|
|
414
|
-
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
415
|
+
if (!(response.httpStatusCode == 403 || response.httpStatusCode == 429)) return [3 /*break*/, 6];
|
|
416
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
415
417
|
return [4 /*yield*/, response.body.text()];
|
|
416
418
|
case 5:
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
""
|
|
420
|
-
|
|
419
|
+
bodyText = _h.apply(_g, [_o.sent(), contentType]);
|
|
420
|
+
try {
|
|
421
|
+
body_10 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
422
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_10);
|
|
423
|
+
}
|
|
424
|
+
catch (error) {
|
|
425
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
426
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
427
|
+
}
|
|
428
|
+
_o.label = 6;
|
|
421
429
|
case 6:
|
|
422
|
-
if (!(
|
|
423
|
-
|
|
424
|
-
|
|
430
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 8];
|
|
431
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
432
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
425
433
|
return [4 /*yield*/, response.body.text()];
|
|
426
434
|
case 7:
|
|
427
|
-
|
|
428
|
-
"APIErrorResponse",
|
|
429
|
-
""]);
|
|
430
|
-
throw new exception_1.ApiException(429, body_13);
|
|
431
|
-
case 8:
|
|
432
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
433
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
434
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
435
|
-
return [4 /*yield*/, response.body.text()];
|
|
436
|
-
case 9:
|
|
437
|
-
body_14 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
435
|
+
body_11 = _k.apply(_j, [_m.apply(_l, [_o.sent(), contentType]),
|
|
438
436
|
"LogsPipeline",
|
|
439
437
|
""]);
|
|
440
|
-
return [2 /*return*/,
|
|
441
|
-
case
|
|
442
|
-
case
|
|
443
|
-
body = (
|
|
438
|
+
return [2 /*return*/, body_11];
|
|
439
|
+
case 8: return [4 /*yield*/, response.body.text()];
|
|
440
|
+
case 9:
|
|
441
|
+
body = (_o.sent()) || "";
|
|
444
442
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
445
443
|
}
|
|
446
444
|
});
|
|
@@ -455,53 +453,47 @@ var LogsPipelinesApiResponseProcessor = /** @class */ (function () {
|
|
|
455
453
|
*/
|
|
456
454
|
LogsPipelinesApiResponseProcessor.prototype.getLogsPipelineOrder = function (response) {
|
|
457
455
|
return __awaiter(this, void 0, void 0, function () {
|
|
458
|
-
var contentType,
|
|
459
|
-
return __generator(this, function (
|
|
460
|
-
switch (
|
|
456
|
+
var contentType, body_12, _a, _b, _c, _d, bodyText, _e, _f, body_13, body_14, _g, _h, _j, _k, body;
|
|
457
|
+
return __generator(this, function (_l) {
|
|
458
|
+
switch (_l.label) {
|
|
461
459
|
case 0:
|
|
462
460
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
463
|
-
if (!(
|
|
461
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
464
462
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
465
463
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
466
464
|
return [4 /*yield*/, response.body.text()];
|
|
467
465
|
case 1:
|
|
468
|
-
|
|
469
|
-
"LogsPipelinesOrder"
|
|
470
|
-
|
|
471
|
-
return [2 /*return*/, body_15];
|
|
466
|
+
body_12 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
467
|
+
"LogsPipelinesOrder"]);
|
|
468
|
+
return [2 /*return*/, body_12];
|
|
472
469
|
case 2:
|
|
473
|
-
if (!(
|
|
474
|
-
_f = (_e = ObjectSerializer_1.ObjectSerializer).
|
|
475
|
-
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
470
|
+
if (!(response.httpStatusCode == 403 || response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
471
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
476
472
|
return [4 /*yield*/, response.body.text()];
|
|
477
473
|
case 3:
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
""
|
|
481
|
-
|
|
474
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
475
|
+
try {
|
|
476
|
+
body_13 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
477
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_13);
|
|
478
|
+
}
|
|
479
|
+
catch (error) {
|
|
480
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
481
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
482
|
+
}
|
|
483
|
+
_l.label = 4;
|
|
482
484
|
case 4:
|
|
483
|
-
if (!(
|
|
484
|
-
|
|
485
|
-
|
|
485
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
486
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
487
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
486
488
|
return [4 /*yield*/, response.body.text()];
|
|
487
489
|
case 5:
|
|
488
|
-
|
|
489
|
-
"APIErrorResponse",
|
|
490
|
-
""]);
|
|
491
|
-
throw new exception_1.ApiException(429, body_17);
|
|
492
|
-
case 6:
|
|
493
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 8];
|
|
494
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
495
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
496
|
-
return [4 /*yield*/, response.body.text()];
|
|
497
|
-
case 7:
|
|
498
|
-
body_18 = _p.apply(_o, [_r.apply(_q, [_s.sent(), contentType]),
|
|
490
|
+
body_14 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
499
491
|
"LogsPipelinesOrder",
|
|
500
492
|
""]);
|
|
501
|
-
return [2 /*return*/,
|
|
502
|
-
case
|
|
503
|
-
case
|
|
504
|
-
body = (
|
|
493
|
+
return [2 /*return*/, body_14];
|
|
494
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
495
|
+
case 7:
|
|
496
|
+
body = (_l.sent()) || "";
|
|
505
497
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
506
498
|
}
|
|
507
499
|
});
|
|
@@ -516,53 +508,47 @@ var LogsPipelinesApiResponseProcessor = /** @class */ (function () {
|
|
|
516
508
|
*/
|
|
517
509
|
LogsPipelinesApiResponseProcessor.prototype.listLogsPipelines = function (response) {
|
|
518
510
|
return __awaiter(this, void 0, void 0, function () {
|
|
519
|
-
var contentType,
|
|
520
|
-
return __generator(this, function (
|
|
521
|
-
switch (
|
|
511
|
+
var contentType, body_15, _a, _b, _c, _d, bodyText, _e, _f, body_16, body_17, _g, _h, _j, _k, body;
|
|
512
|
+
return __generator(this, function (_l) {
|
|
513
|
+
switch (_l.label) {
|
|
522
514
|
case 0:
|
|
523
515
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
524
|
-
if (!(
|
|
516
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
525
517
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
526
518
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
527
519
|
return [4 /*yield*/, response.body.text()];
|
|
528
520
|
case 1:
|
|
529
|
-
|
|
530
|
-
"Array<LogsPipeline>"
|
|
531
|
-
|
|
532
|
-
return [2 /*return*/, body_19];
|
|
521
|
+
body_15 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
522
|
+
"Array<LogsPipeline>"]);
|
|
523
|
+
return [2 /*return*/, body_15];
|
|
533
524
|
case 2:
|
|
534
|
-
if (!(
|
|
535
|
-
_f = (_e = ObjectSerializer_1.ObjectSerializer).
|
|
536
|
-
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
525
|
+
if (!(response.httpStatusCode == 403 || response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
526
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
537
527
|
return [4 /*yield*/, response.body.text()];
|
|
538
528
|
case 3:
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
""
|
|
542
|
-
|
|
529
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
530
|
+
try {
|
|
531
|
+
body_16 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
532
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_16);
|
|
533
|
+
}
|
|
534
|
+
catch (error) {
|
|
535
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
536
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
537
|
+
}
|
|
538
|
+
_l.label = 4;
|
|
543
539
|
case 4:
|
|
544
|
-
if (!(
|
|
545
|
-
|
|
546
|
-
|
|
540
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
541
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
542
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
547
543
|
return [4 /*yield*/, response.body.text()];
|
|
548
544
|
case 5:
|
|
549
|
-
|
|
550
|
-
"APIErrorResponse",
|
|
551
|
-
""]);
|
|
552
|
-
throw new exception_1.ApiException(429, body_21);
|
|
553
|
-
case 6:
|
|
554
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 8];
|
|
555
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
556
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
557
|
-
return [4 /*yield*/, response.body.text()];
|
|
558
|
-
case 7:
|
|
559
|
-
body_22 = _p.apply(_o, [_r.apply(_q, [_s.sent(), contentType]),
|
|
545
|
+
body_17 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
560
546
|
"Array<LogsPipeline>",
|
|
561
547
|
""]);
|
|
562
|
-
return [2 /*return*/,
|
|
563
|
-
case
|
|
564
|
-
case
|
|
565
|
-
body = (
|
|
548
|
+
return [2 /*return*/, body_17];
|
|
549
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
550
|
+
case 7:
|
|
551
|
+
body = (_l.sent()) || "";
|
|
566
552
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
567
553
|
}
|
|
568
554
|
});
|
|
@@ -577,63 +563,62 @@ var LogsPipelinesApiResponseProcessor = /** @class */ (function () {
|
|
|
577
563
|
*/
|
|
578
564
|
LogsPipelinesApiResponseProcessor.prototype.updateLogsPipeline = function (response) {
|
|
579
565
|
return __awaiter(this, void 0, void 0, function () {
|
|
580
|
-
var contentType,
|
|
581
|
-
return __generator(this, function (
|
|
582
|
-
switch (
|
|
566
|
+
var contentType, body_18, _a, _b, _c, _d, bodyText, _e, _f, body_19, bodyText, _g, _h, body_20, body_21, _j, _k, _l, _m, body;
|
|
567
|
+
return __generator(this, function (_o) {
|
|
568
|
+
switch (_o.label) {
|
|
583
569
|
case 0:
|
|
584
570
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
585
|
-
if (!(
|
|
571
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
586
572
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
587
573
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
588
574
|
return [4 /*yield*/, response.body.text()];
|
|
589
575
|
case 1:
|
|
590
|
-
|
|
591
|
-
"LogsPipeline"
|
|
592
|
-
|
|
593
|
-
return [2 /*return*/, body_23];
|
|
576
|
+
body_18 = _b.apply(_a, [_d.apply(_c, [_o.sent(), contentType]),
|
|
577
|
+
"LogsPipeline"]);
|
|
578
|
+
return [2 /*return*/, body_18];
|
|
594
579
|
case 2:
|
|
595
|
-
if (!(
|
|
596
|
-
_f = (_e = ObjectSerializer_1.ObjectSerializer).
|
|
597
|
-
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
580
|
+
if (!(response.httpStatusCode == 400)) return [3 /*break*/, 4];
|
|
581
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
598
582
|
return [4 /*yield*/, response.body.text()];
|
|
599
583
|
case 3:
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
""
|
|
603
|
-
|
|
584
|
+
bodyText = _f.apply(_e, [_o.sent(), contentType]);
|
|
585
|
+
try {
|
|
586
|
+
body_19 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "LogsAPIErrorResponse");
|
|
587
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_19);
|
|
588
|
+
}
|
|
589
|
+
catch (error) {
|
|
590
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
591
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
592
|
+
}
|
|
593
|
+
_o.label = 4;
|
|
604
594
|
case 4:
|
|
605
|
-
if (!(
|
|
606
|
-
|
|
607
|
-
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
595
|
+
if (!(response.httpStatusCode == 403 || response.httpStatusCode == 429)) return [3 /*break*/, 6];
|
|
596
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
608
597
|
return [4 /*yield*/, response.body.text()];
|
|
609
598
|
case 5:
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
""
|
|
613
|
-
|
|
599
|
+
bodyText = _h.apply(_g, [_o.sent(), contentType]);
|
|
600
|
+
try {
|
|
601
|
+
body_20 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
602
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_20);
|
|
603
|
+
}
|
|
604
|
+
catch (error) {
|
|
605
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
606
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
607
|
+
}
|
|
608
|
+
_o.label = 6;
|
|
614
609
|
case 6:
|
|
615
|
-
if (!(
|
|
616
|
-
|
|
617
|
-
|
|
610
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 8];
|
|
611
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
612
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
618
613
|
return [4 /*yield*/, response.body.text()];
|
|
619
614
|
case 7:
|
|
620
|
-
|
|
621
|
-
"APIErrorResponse",
|
|
622
|
-
""]);
|
|
623
|
-
throw new exception_1.ApiException(429, body_26);
|
|
624
|
-
case 8:
|
|
625
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
626
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
627
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
628
|
-
return [4 /*yield*/, response.body.text()];
|
|
629
|
-
case 9:
|
|
630
|
-
body_27 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
615
|
+
body_21 = _k.apply(_j, [_m.apply(_l, [_o.sent(), contentType]),
|
|
631
616
|
"LogsPipeline",
|
|
632
617
|
""]);
|
|
633
|
-
return [2 /*return*/,
|
|
634
|
-
case
|
|
635
|
-
case
|
|
636
|
-
body = (
|
|
618
|
+
return [2 /*return*/, body_21];
|
|
619
|
+
case 8: return [4 /*yield*/, response.body.text()];
|
|
620
|
+
case 9:
|
|
621
|
+
body = (_o.sent()) || "";
|
|
637
622
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
638
623
|
}
|
|
639
624
|
});
|
|
@@ -648,73 +633,62 @@ var LogsPipelinesApiResponseProcessor = /** @class */ (function () {
|
|
|
648
633
|
*/
|
|
649
634
|
LogsPipelinesApiResponseProcessor.prototype.updateLogsPipelineOrder = function (response) {
|
|
650
635
|
return __awaiter(this, void 0, void 0, function () {
|
|
651
|
-
var contentType,
|
|
652
|
-
return __generator(this, function (
|
|
653
|
-
switch (
|
|
636
|
+
var contentType, body_22, _a, _b, _c, _d, bodyText, _e, _f, body_23, bodyText, _g, _h, body_24, body_25, _j, _k, _l, _m, body;
|
|
637
|
+
return __generator(this, function (_o) {
|
|
638
|
+
switch (_o.label) {
|
|
654
639
|
case 0:
|
|
655
640
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
656
|
-
if (!(
|
|
641
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
657
642
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
658
643
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
659
644
|
return [4 /*yield*/, response.body.text()];
|
|
660
645
|
case 1:
|
|
661
|
-
|
|
662
|
-
"LogsPipelinesOrder"
|
|
663
|
-
|
|
664
|
-
return [2 /*return*/, body_28];
|
|
646
|
+
body_22 = _b.apply(_a, [_d.apply(_c, [_o.sent(), contentType]),
|
|
647
|
+
"LogsPipelinesOrder"]);
|
|
648
|
+
return [2 /*return*/, body_22];
|
|
665
649
|
case 2:
|
|
666
|
-
if (!(
|
|
667
|
-
_f = (_e = ObjectSerializer_1.ObjectSerializer).
|
|
668
|
-
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
650
|
+
if (!(response.httpStatusCode == 400 || response.httpStatusCode == 422)) return [3 /*break*/, 4];
|
|
651
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
669
652
|
return [4 /*yield*/, response.body.text()];
|
|
670
653
|
case 3:
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
""
|
|
674
|
-
|
|
654
|
+
bodyText = _f.apply(_e, [_o.sent(), contentType]);
|
|
655
|
+
try {
|
|
656
|
+
body_23 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "LogsAPIErrorResponse");
|
|
657
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_23);
|
|
658
|
+
}
|
|
659
|
+
catch (error) {
|
|
660
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
661
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
662
|
+
}
|
|
663
|
+
_o.label = 4;
|
|
675
664
|
case 4:
|
|
676
|
-
if (!(
|
|
677
|
-
|
|
678
|
-
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
665
|
+
if (!(response.httpStatusCode == 403 || response.httpStatusCode == 429)) return [3 /*break*/, 6];
|
|
666
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
679
667
|
return [4 /*yield*/, response.body.text()];
|
|
680
668
|
case 5:
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
""
|
|
684
|
-
|
|
669
|
+
bodyText = _h.apply(_g, [_o.sent(), contentType]);
|
|
670
|
+
try {
|
|
671
|
+
body_24 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
672
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_24);
|
|
673
|
+
}
|
|
674
|
+
catch (error) {
|
|
675
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
676
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
677
|
+
}
|
|
678
|
+
_o.label = 6;
|
|
685
679
|
case 6:
|
|
686
|
-
if (!(
|
|
687
|
-
|
|
688
|
-
|
|
680
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 8];
|
|
681
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
682
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
689
683
|
return [4 /*yield*/, response.body.text()];
|
|
690
684
|
case 7:
|
|
691
|
-
|
|
692
|
-
"LogsAPIErrorResponse",
|
|
693
|
-
""]);
|
|
694
|
-
throw new exception_1.ApiException(422, body_31);
|
|
695
|
-
case 8:
|
|
696
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
|
|
697
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
698
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
699
|
-
return [4 /*yield*/, response.body.text()];
|
|
700
|
-
case 9:
|
|
701
|
-
body_32 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
|
|
702
|
-
"APIErrorResponse",
|
|
703
|
-
""]);
|
|
704
|
-
throw new exception_1.ApiException(429, body_32);
|
|
705
|
-
case 10:
|
|
706
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
|
|
707
|
-
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
708
|
-
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
709
|
-
return [4 /*yield*/, response.body.text()];
|
|
710
|
-
case 11:
|
|
711
|
-
body_33 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
|
|
685
|
+
body_25 = _k.apply(_j, [_m.apply(_l, [_o.sent(), contentType]),
|
|
712
686
|
"LogsPipelinesOrder",
|
|
713
687
|
""]);
|
|
714
|
-
return [2 /*return*/,
|
|
715
|
-
case
|
|
716
|
-
case
|
|
717
|
-
body = (
|
|
688
|
+
return [2 /*return*/, body_25];
|
|
689
|
+
case 8: return [4 /*yield*/, response.body.text()];
|
|
690
|
+
case 9:
|
|
691
|
+
body = (_o.sent()) || "";
|
|
718
692
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
719
693
|
}
|
|
720
694
|
});
|