@datadog/datadog-api-client 1.3.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +44 -0
- package/README.md +72 -2
- 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/exception.js +3 -0
- package/dist/packages/datadog-api-client-common/exception.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 +253 -407
- package/dist/packages/datadog-api-client-v1/apis/AWSIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/AWSLogsIntegrationApi.js +194 -291
- package/dist/packages/datadog-api-client-v1/apis/AWSLogsIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/AuthenticationApi.js +26 -33
- package/dist/packages/datadog-api-client-v1/apis/AuthenticationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/AzureIntegrationApi.js +140 -215
- package/dist/packages/datadog-api-client-v1/apis/AzureIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/DashboardListsApi.js +139 -215
- package/dist/packages/datadog-api-client-v1/apis/DashboardListsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/DashboardsApi.js +191 -313
- package/dist/packages/datadog-api-client-v1/apis/DashboardsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/DowntimesApi.js +194 -308
- package/dist/packages/datadog-api-client-v1/apis/DowntimesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/EventsApi.js +82 -119
- package/dist/packages/datadog-api-client-v1/apis/EventsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/GCPIntegrationApi.js +112 -172
- package/dist/packages/datadog-api-client-v1/apis/GCPIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/HostsApi.js +112 -172
- package/dist/packages/datadog-api-client-v1/apis/HostsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/IPRangesApi.js +22 -19
- package/dist/packages/datadog-api-client-v1/apis/IPRangesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/KeyManagementApi.js +281 -460
- package/dist/packages/datadog-api-client-v1/apis/KeyManagementApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/LogsApi.js +71 -67
- package/dist/packages/datadog-api-client-v1/apis/LogsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/LogsIndexesApi.js +200 -226
- package/dist/packages/datadog-api-client-v1/apis/LogsIndexesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/LogsPipelinesApi.js +234 -272
- package/dist/packages/datadog-api-client-v1/apis/LogsPipelinesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/MetricsApi.js +201 -351
- package/dist/packages/datadog-api-client-v1/apis/MetricsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/MonitorsApi.js +285 -490
- package/dist/packages/datadog-api-client-v1/apis/MonitorsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/NotebooksApi.js +141 -251
- package/dist/packages/datadog-api-client-v1/apis/NotebooksApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/OrganizationsApi.js +167 -258
- package/dist/packages/datadog-api-client-v1/apis/OrganizationsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/PagerDutyIntegrationApi.js +107 -174
- package/dist/packages/datadog-api-client-v1/apis/PagerDutyIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/SecurityMonitoringApi.js +87 -159
- package/dist/packages/datadog-api-client-v1/apis/SecurityMonitoringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/ServiceChecksApi.js +30 -63
- package/dist/packages/datadog-api-client-v1/apis/ServiceChecksApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectiveCorrectionsApi.js +137 -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 +288 -492
- package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/SlackIntegrationApi.js +142 -261
- package/dist/packages/datadog-api-client-v1/apis/SlackIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/SnapshotsApi.js +28 -43
- package/dist/packages/datadog-api-client-v1/apis/SnapshotsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/SyntheticsApi.js +738 -1130
- package/dist/packages/datadog-api-client-v1/apis/SyntheticsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/TagsApi.js +137 -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 +1 -1
- package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.js +1056 -1595
- package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/UsersApi.js +141 -235
- package/dist/packages/datadog-api-client-v1/apis/UsersApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/WebhooksIntegrationApi.js +222 -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/MonitorOptions.d.ts +9 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorOptions.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorOptions.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/SyntheticsBrowserTest.d.ts +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/UsageCIVisibilityHour.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/UsageCIVisibilityHour.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/UsageOnlineArchiveHour.js +1 -0
- package/dist/packages/datadog-api-client-v1/models/UsageOnlineArchiveHour.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 +56 -86
- package/dist/packages/datadog-api-client-v2/apis/AuditApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/AuthNMappingsApi.js +139 -241
- package/dist/packages/datadog-api-client-v2/apis/AuthNMappingsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/CloudWorkloadSecurityApi.js +161 -260
- package/dist/packages/datadog-api-client-v2/apis/CloudWorkloadSecurityApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/ConfluentCloudApi.d.ts +253 -0
- package/dist/packages/datadog-api-client-v2/apis/ConfluentCloudApi.js +1064 -0
- package/dist/packages/datadog-api-client-v2/apis/ConfluentCloudApi.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/apis/DashboardListsApi.js +115 -202
- package/dist/packages/datadog-api-client-v2/apis/DashboardListsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/EventsApi.js +55 -86
- package/dist/packages/datadog-api-client-v2/apis/EventsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/IncidentServicesApi.js +146 -311
- package/dist/packages/datadog-api-client-v2/apis/IncidentServicesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/IncidentTeamsApi.js +146 -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 +358 -303
- package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/KeyManagementApi.js +389 -650
- package/dist/packages/datadog-api-client-v2/apis/KeyManagementApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/LogsApi.js +117 -222
- package/dist/packages/datadog-api-client-v2/apis/LogsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/LogsArchivesApi.js +275 -469
- package/dist/packages/datadog-api-client-v2/apis/LogsArchivesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/LogsMetricsApi.js +137 -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 +419 -563
- package/dist/packages/datadog-api-client-v2/apis/MetricsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/OpsgenieIntegrationApi.js +141 -261
- package/dist/packages/datadog-api-client-v2/apis/OpsgenieIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/OrganizationsApi.js +26 -40
- package/dist/packages/datadog-api-client-v2/apis/OrganizationsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/ProcessesApi.js +28 -43
- package/dist/packages/datadog-api-client-v2/apis/ProcessesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/RUMApi.js +214 -310
- package/dist/packages/datadog-api-client-v2/apis/RUMApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/RolesApi.js +367 -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 +506 -685
- package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/ServiceAccountsApi.js +139 -231
- package/dist/packages/datadog-api-client-v2/apis/ServiceAccountsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/ServiceDefinitionApi.d.ts +94 -0
- package/dist/packages/datadog-api-client-v2/apis/ServiceDefinitionApi.js +456 -0
- package/dist/packages/datadog-api-client-v2/apis/ServiceDefinitionApi.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.d.ts +43 -6
- package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.js +277 -265
- package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/UsersApi.js +279 -446
- package/dist/packages/datadog-api-client-v2/apis/UsersApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/index.d.ts +88 -5
- package/dist/packages/datadog-api-client-v2/index.js +134 -17
- package/dist/packages/datadog-api-client-v2/index.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequest.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequest.js +29 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequestAttributes.d.ts +41 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequestAttributes.js +42 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequestAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequestData.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequestData.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequestData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResourceAttributes.d.ts +36 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResourceAttributes.js +41 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResourceAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResponse.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResponseAttributes.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResponseAttributes.js +37 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResponseAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResponseData.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResponseData.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResponseData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequest.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequest.js +29 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequestAttributes.d.ts +36 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequestAttributes.js +43 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequestAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequestData.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequestData.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequestData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountsResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountsResponse.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountsResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceRequest.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceRequest.js +29 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceRequestAttributes.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceRequestAttributes.js +37 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceRequestAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceRequestData.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceRequestData.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceRequestData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceResponse.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceResponseAttributes.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceResponseAttributes.js +38 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceResponseAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceResponseData.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceResponseData.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceResponseData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourcesResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourcesResponse.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourcesResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/Event.js +1 -0
- package/dist/packages/datadog-api-client-v2/models/Event.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/EventAttributes.js +2 -0
- package/dist/packages/datadog-api-client-v2/models/EventAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/HTTPLogItem.d.ts +3 -3
- 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 +1 -5
- 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/IncidentUpdateAttributes.d.ts +0 -4
- package/dist/packages/datadog-api-client-v2/models/IncidentUpdateAttributes.js +0 -5
- package/dist/packages/datadog-api-client-v2/models/IncidentUpdateAttributes.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/MonitorType.js +4 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorType.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js +186 -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/SecurityMonitoringSignalRuleResponseQuery.d.ts +53 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponseQuery.js +53 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponseQuery.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} +4 -4
- 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/packages/datadog-api-client-v2/models/ServiceDefinitionCreateResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionCreateResponse.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionCreateResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionData.d.ts +33 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionData.js +32 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionDataAttributes.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionDataAttributes.js +32 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionDataAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionGetResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionGetResponse.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionGetResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionMeta.d.ts +40 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionMeta.js +45 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionMeta.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionSchema.d.ts +12 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionSchema.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionSchema.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1.d.ts +64 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1.js +58 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Contact.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Contact.js +38 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Contact.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Info.d.ts +40 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Info.js +46 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Info.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Integrations.d.ts +28 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Integrations.js +33 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Integrations.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Org.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Org.js +37 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Org.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Resource.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Resource.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Resource.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1ResourceType.d.ts +15 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1ResourceType.js +18 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1ResourceType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Version.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Version.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Version.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2.d.ts +76 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2.js +70 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Contact.d.ts +12 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Contact.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Contact.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Doc.d.ts +36 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Doc.js +43 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Doc.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Email.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Email.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Email.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2EmailType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2EmailType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2EmailType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Integrations.d.ts +33 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Integrations.js +32 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Integrations.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Link.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Link.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Link.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2LinkType.d.ts +15 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2LinkType.js +18 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2LinkType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Opsgenie.d.ts +33 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Opsgenie.js +33 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Opsgenie.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2OpsgenieRegion.d.ts +8 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2OpsgenieRegion.js +11 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2OpsgenieRegion.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Repo.d.ts +36 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Repo.js +43 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Repo.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Slack.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Slack.js +38 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Slack.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2SlackType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2SlackType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2SlackType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Version.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Version.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Version.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionsCreateRequest.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionsCreateRequest.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionsCreateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionsListResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionsListResponse.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionsListResponse.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.SyntheticsApi = exports.SyntheticsApiResponseProcessor = exports.Synthet
|
|
|
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 SyntheticsApiRequestFactory = /** @class */ (function (_super) {
|
|
62
62
|
__extends(SyntheticsApiRequestFactory, _super);
|
|
63
63
|
function SyntheticsApiRequestFactory() {
|
|
@@ -811,63 +811,48 @@ var SyntheticsApiResponseProcessor = /** @class */ (function () {
|
|
|
811
811
|
*/
|
|
812
812
|
SyntheticsApiResponseProcessor.prototype.createGlobalVariable = function (response) {
|
|
813
813
|
return __awaiter(this, void 0, void 0, function () {
|
|
814
|
-
var contentType, body_1, _a, _b, _c, _d,
|
|
815
|
-
return __generator(this, function (
|
|
816
|
-
switch (
|
|
814
|
+
var contentType, body_1, _a, _b, _c, _d, bodyText, _e, _f, body_2, body_3, _g, _h, _j, _k, body;
|
|
815
|
+
return __generator(this, function (_l) {
|
|
816
|
+
switch (_l.label) {
|
|
817
817
|
case 0:
|
|
818
818
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
819
|
-
if (!(
|
|
819
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
820
820
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
821
821
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
822
822
|
return [4 /*yield*/, response.body.text()];
|
|
823
823
|
case 1:
|
|
824
|
-
body_1 = _b.apply(_a, [_d.apply(_c, [
|
|
825
|
-
"SyntheticsGlobalVariable"
|
|
826
|
-
""]);
|
|
824
|
+
body_1 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
825
|
+
"SyntheticsGlobalVariable"]);
|
|
827
826
|
return [2 /*return*/, body_1];
|
|
828
827
|
case 2:
|
|
829
|
-
if (!(
|
|
830
|
-
|
|
831
|
-
|
|
828
|
+
if (!(response.httpStatusCode == 400 ||
|
|
829
|
+
response.httpStatusCode == 403 ||
|
|
830
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
831
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
832
832
|
return [4 /*yield*/, response.body.text()];
|
|
833
833
|
case 3:
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
""
|
|
837
|
-
|
|
834
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
835
|
+
try {
|
|
836
|
+
body_2 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
837
|
+
}
|
|
838
|
+
catch (error) {
|
|
839
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
840
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
841
|
+
}
|
|
842
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_2);
|
|
838
843
|
case 4:
|
|
839
|
-
if (!(
|
|
840
|
-
|
|
841
|
-
|
|
844
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
845
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
846
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
842
847
|
return [4 /*yield*/, response.body.text()];
|
|
843
848
|
case 5:
|
|
844
|
-
body_3 =
|
|
845
|
-
"APIErrorResponse",
|
|
846
|
-
""]);
|
|
847
|
-
throw new exception_1.ApiException(403, body_3);
|
|
848
|
-
case 6:
|
|
849
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
850
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
851
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
852
|
-
return [4 /*yield*/, response.body.text()];
|
|
853
|
-
case 7:
|
|
854
|
-
body_4 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
855
|
-
"APIErrorResponse",
|
|
856
|
-
""]);
|
|
857
|
-
throw new exception_1.ApiException(429, body_4);
|
|
858
|
-
case 8:
|
|
859
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
860
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
861
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
862
|
-
return [4 /*yield*/, response.body.text()];
|
|
863
|
-
case 9:
|
|
864
|
-
body_5 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
849
|
+
body_3 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
865
850
|
"SyntheticsGlobalVariable",
|
|
866
851
|
""]);
|
|
867
|
-
return [2 /*return*/,
|
|
868
|
-
case
|
|
869
|
-
case
|
|
870
|
-
body = (
|
|
852
|
+
return [2 /*return*/, body_3];
|
|
853
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
854
|
+
case 7:
|
|
855
|
+
body = (_l.sent()) || "";
|
|
871
856
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
872
857
|
}
|
|
873
858
|
});
|
|
@@ -882,63 +867,48 @@ var SyntheticsApiResponseProcessor = /** @class */ (function () {
|
|
|
882
867
|
*/
|
|
883
868
|
SyntheticsApiResponseProcessor.prototype.createPrivateLocation = function (response) {
|
|
884
869
|
return __awaiter(this, void 0, void 0, function () {
|
|
885
|
-
var contentType,
|
|
886
|
-
return __generator(this, function (
|
|
887
|
-
switch (
|
|
870
|
+
var contentType, body_4, _a, _b, _c, _d, bodyText, _e, _f, body_5, body_6, _g, _h, _j, _k, body;
|
|
871
|
+
return __generator(this, function (_l) {
|
|
872
|
+
switch (_l.label) {
|
|
888
873
|
case 0:
|
|
889
874
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
890
|
-
if (!(
|
|
875
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
891
876
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
892
877
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
893
878
|
return [4 /*yield*/, response.body.text()];
|
|
894
879
|
case 1:
|
|
895
|
-
|
|
896
|
-
"SyntheticsPrivateLocationCreationResponse"
|
|
897
|
-
|
|
898
|
-
return [2 /*return*/, body_6];
|
|
880
|
+
body_4 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
881
|
+
"SyntheticsPrivateLocationCreationResponse"]);
|
|
882
|
+
return [2 /*return*/, body_4];
|
|
899
883
|
case 2:
|
|
900
|
-
if (!(
|
|
901
|
-
|
|
902
|
-
|
|
884
|
+
if (!(response.httpStatusCode == 402 ||
|
|
885
|
+
response.httpStatusCode == 404 ||
|
|
886
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
887
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
903
888
|
return [4 /*yield*/, response.body.text()];
|
|
904
889
|
case 3:
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
""
|
|
908
|
-
|
|
890
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
891
|
+
try {
|
|
892
|
+
body_5 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
893
|
+
}
|
|
894
|
+
catch (error) {
|
|
895
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
896
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
897
|
+
}
|
|
898
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_5);
|
|
909
899
|
case 4:
|
|
910
|
-
if (!(
|
|
911
|
-
|
|
912
|
-
|
|
900
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
901
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
902
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
913
903
|
return [4 /*yield*/, response.body.text()];
|
|
914
904
|
case 5:
|
|
915
|
-
|
|
916
|
-
"APIErrorResponse",
|
|
917
|
-
""]);
|
|
918
|
-
throw new exception_1.ApiException(404, body_8);
|
|
919
|
-
case 6:
|
|
920
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
921
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
922
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
923
|
-
return [4 /*yield*/, response.body.text()];
|
|
924
|
-
case 7:
|
|
925
|
-
body_9 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
926
|
-
"APIErrorResponse",
|
|
927
|
-
""]);
|
|
928
|
-
throw new exception_1.ApiException(429, body_9);
|
|
929
|
-
case 8:
|
|
930
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
931
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
932
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
933
|
-
return [4 /*yield*/, response.body.text()];
|
|
934
|
-
case 9:
|
|
935
|
-
body_10 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
905
|
+
body_6 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
936
906
|
"SyntheticsPrivateLocationCreationResponse",
|
|
937
907
|
""]);
|
|
938
|
-
return [2 /*return*/,
|
|
939
|
-
case
|
|
940
|
-
case
|
|
941
|
-
body = (
|
|
908
|
+
return [2 /*return*/, body_6];
|
|
909
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
910
|
+
case 7:
|
|
911
|
+
body = (_l.sent()) || "";
|
|
942
912
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
943
913
|
}
|
|
944
914
|
});
|
|
@@ -953,73 +923,49 @@ var SyntheticsApiResponseProcessor = /** @class */ (function () {
|
|
|
953
923
|
*/
|
|
954
924
|
SyntheticsApiResponseProcessor.prototype.createSyntheticsAPITest = function (response) {
|
|
955
925
|
return __awaiter(this, void 0, void 0, function () {
|
|
956
|
-
var contentType,
|
|
957
|
-
return __generator(this, function (
|
|
958
|
-
switch (
|
|
926
|
+
var contentType, body_7, _a, _b, _c, _d, bodyText, _e, _f, body_8, body_9, _g, _h, _j, _k, body;
|
|
927
|
+
return __generator(this, function (_l) {
|
|
928
|
+
switch (_l.label) {
|
|
959
929
|
case 0:
|
|
960
930
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
961
|
-
if (!(
|
|
931
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
962
932
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
963
933
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
964
934
|
return [4 /*yield*/, response.body.text()];
|
|
965
935
|
case 1:
|
|
966
|
-
|
|
967
|
-
"SyntheticsAPITest"
|
|
968
|
-
|
|
969
|
-
return [2 /*return*/, body_11];
|
|
936
|
+
body_7 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
937
|
+
"SyntheticsAPITest"]);
|
|
938
|
+
return [2 /*return*/, body_7];
|
|
970
939
|
case 2:
|
|
971
|
-
if (!(
|
|
972
|
-
|
|
973
|
-
|
|
940
|
+
if (!(response.httpStatusCode == 400 ||
|
|
941
|
+
response.httpStatusCode == 402 ||
|
|
942
|
+
response.httpStatusCode == 403 ||
|
|
943
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
944
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
974
945
|
return [4 /*yield*/, response.body.text()];
|
|
975
946
|
case 3:
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
""
|
|
979
|
-
|
|
947
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
948
|
+
try {
|
|
949
|
+
body_8 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
950
|
+
}
|
|
951
|
+
catch (error) {
|
|
952
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
953
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
954
|
+
}
|
|
955
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_8);
|
|
980
956
|
case 4:
|
|
981
|
-
if (!(
|
|
982
|
-
|
|
983
|
-
|
|
957
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
958
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
959
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
984
960
|
return [4 /*yield*/, response.body.text()];
|
|
985
961
|
case 5:
|
|
986
|
-
|
|
987
|
-
"APIErrorResponse",
|
|
988
|
-
""]);
|
|
989
|
-
throw new exception_1.ApiException(402, body_13);
|
|
990
|
-
case 6:
|
|
991
|
-
if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
992
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
993
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
994
|
-
return [4 /*yield*/, response.body.text()];
|
|
995
|
-
case 7:
|
|
996
|
-
body_14 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
|
|
997
|
-
"APIErrorResponse",
|
|
998
|
-
""]);
|
|
999
|
-
throw new exception_1.ApiException(403, body_14);
|
|
1000
|
-
case 8:
|
|
1001
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
|
|
1002
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1003
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1004
|
-
return [4 /*yield*/, response.body.text()];
|
|
1005
|
-
case 9:
|
|
1006
|
-
body_15 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
|
|
1007
|
-
"APIErrorResponse",
|
|
1008
|
-
""]);
|
|
1009
|
-
throw new exception_1.ApiException(429, body_15);
|
|
1010
|
-
case 10:
|
|
1011
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
|
|
1012
|
-
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1013
|
-
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1014
|
-
return [4 /*yield*/, response.body.text()];
|
|
1015
|
-
case 11:
|
|
1016
|
-
body_16 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
|
|
962
|
+
body_9 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
1017
963
|
"SyntheticsAPITest",
|
|
1018
964
|
""]);
|
|
1019
|
-
return [2 /*return*/,
|
|
1020
|
-
case
|
|
1021
|
-
case
|
|
1022
|
-
body = (
|
|
965
|
+
return [2 /*return*/, body_9];
|
|
966
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
967
|
+
case 7:
|
|
968
|
+
body = (_l.sent()) || "";
|
|
1023
969
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1024
970
|
}
|
|
1025
971
|
});
|
|
@@ -1034,73 +980,49 @@ var SyntheticsApiResponseProcessor = /** @class */ (function () {
|
|
|
1034
980
|
*/
|
|
1035
981
|
SyntheticsApiResponseProcessor.prototype.createSyntheticsBrowserTest = function (response) {
|
|
1036
982
|
return __awaiter(this, void 0, void 0, function () {
|
|
1037
|
-
var contentType,
|
|
1038
|
-
return __generator(this, function (
|
|
1039
|
-
switch (
|
|
983
|
+
var contentType, body_10, _a, _b, _c, _d, bodyText, _e, _f, body_11, body_12, _g, _h, _j, _k, body;
|
|
984
|
+
return __generator(this, function (_l) {
|
|
985
|
+
switch (_l.label) {
|
|
1040
986
|
case 0:
|
|
1041
987
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1042
|
-
if (!(
|
|
988
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
1043
989
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1044
990
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1045
991
|
return [4 /*yield*/, response.body.text()];
|
|
1046
992
|
case 1:
|
|
1047
|
-
|
|
1048
|
-
"SyntheticsBrowserTest"
|
|
1049
|
-
|
|
1050
|
-
return [2 /*return*/, body_17];
|
|
993
|
+
body_10 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
994
|
+
"SyntheticsBrowserTest"]);
|
|
995
|
+
return [2 /*return*/, body_10];
|
|
1051
996
|
case 2:
|
|
1052
|
-
if (!(
|
|
1053
|
-
|
|
1054
|
-
|
|
997
|
+
if (!(response.httpStatusCode == 400 ||
|
|
998
|
+
response.httpStatusCode == 402 ||
|
|
999
|
+
response.httpStatusCode == 403 ||
|
|
1000
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
1001
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1055
1002
|
return [4 /*yield*/, response.body.text()];
|
|
1056
1003
|
case 3:
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
""
|
|
1060
|
-
|
|
1004
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
1005
|
+
try {
|
|
1006
|
+
body_11 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1007
|
+
}
|
|
1008
|
+
catch (error) {
|
|
1009
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
1010
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1011
|
+
}
|
|
1012
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_11);
|
|
1061
1013
|
case 4:
|
|
1062
|
-
if (!(
|
|
1063
|
-
|
|
1064
|
-
|
|
1014
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
1015
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1016
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1065
1017
|
return [4 /*yield*/, response.body.text()];
|
|
1066
1018
|
case 5:
|
|
1067
|
-
|
|
1068
|
-
"APIErrorResponse",
|
|
1069
|
-
""]);
|
|
1070
|
-
throw new exception_1.ApiException(402, body_19);
|
|
1071
|
-
case 6:
|
|
1072
|
-
if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
1073
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1074
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1075
|
-
return [4 /*yield*/, response.body.text()];
|
|
1076
|
-
case 7:
|
|
1077
|
-
body_20 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
|
|
1078
|
-
"APIErrorResponse",
|
|
1079
|
-
""]);
|
|
1080
|
-
throw new exception_1.ApiException(403, body_20);
|
|
1081
|
-
case 8:
|
|
1082
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
|
|
1083
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1084
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1085
|
-
return [4 /*yield*/, response.body.text()];
|
|
1086
|
-
case 9:
|
|
1087
|
-
body_21 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
|
|
1088
|
-
"APIErrorResponse",
|
|
1089
|
-
""]);
|
|
1090
|
-
throw new exception_1.ApiException(429, body_21);
|
|
1091
|
-
case 10:
|
|
1092
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
|
|
1093
|
-
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1094
|
-
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1095
|
-
return [4 /*yield*/, response.body.text()];
|
|
1096
|
-
case 11:
|
|
1097
|
-
body_22 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
|
|
1019
|
+
body_12 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
1098
1020
|
"SyntheticsBrowserTest",
|
|
1099
1021
|
""]);
|
|
1100
|
-
return [2 /*return*/,
|
|
1101
|
-
case
|
|
1102
|
-
case
|
|
1103
|
-
body = (
|
|
1022
|
+
return [2 /*return*/, body_12];
|
|
1023
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
1024
|
+
case 7:
|
|
1025
|
+
body = (_l.sent()) || "";
|
|
1104
1026
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1105
1027
|
}
|
|
1106
1028
|
});
|
|
@@ -1115,66 +1037,43 @@ var SyntheticsApiResponseProcessor = /** @class */ (function () {
|
|
|
1115
1037
|
*/
|
|
1116
1038
|
SyntheticsApiResponseProcessor.prototype.deleteGlobalVariable = function (response) {
|
|
1117
1039
|
return __awaiter(this, void 0, void 0, function () {
|
|
1118
|
-
var contentType,
|
|
1119
|
-
return __generator(this, function (
|
|
1120
|
-
switch (
|
|
1040
|
+
var contentType, bodyText, _a, _b, body_13, body_14, _c, _d, _e, _f, body;
|
|
1041
|
+
return __generator(this, function (_g) {
|
|
1042
|
+
switch (_g.label) {
|
|
1121
1043
|
case 0:
|
|
1122
1044
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1123
|
-
if (
|
|
1045
|
+
if (response.httpStatusCode == 200) {
|
|
1124
1046
|
return [2 /*return*/];
|
|
1125
1047
|
}
|
|
1126
|
-
if (!(
|
|
1127
|
-
|
|
1128
|
-
|
|
1048
|
+
if (!(response.httpStatusCode == 400 ||
|
|
1049
|
+
response.httpStatusCode == 403 ||
|
|
1050
|
+
response.httpStatusCode == 404 ||
|
|
1051
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 2];
|
|
1052
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1129
1053
|
return [4 /*yield*/, response.body.text()];
|
|
1130
1054
|
case 1:
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
""
|
|
1134
|
-
|
|
1055
|
+
bodyText = _b.apply(_a, [_g.sent(), contentType]);
|
|
1056
|
+
try {
|
|
1057
|
+
body_13 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1058
|
+
}
|
|
1059
|
+
catch (error) {
|
|
1060
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
1061
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1062
|
+
}
|
|
1063
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_13);
|
|
1135
1064
|
case 2:
|
|
1136
|
-
if (!(
|
|
1137
|
-
|
|
1138
|
-
|
|
1065
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 4];
|
|
1066
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1067
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1139
1068
|
return [4 /*yield*/, response.body.text()];
|
|
1140
1069
|
case 3:
|
|
1141
|
-
|
|
1142
|
-
"APIErrorResponse",
|
|
1143
|
-
""]);
|
|
1144
|
-
throw new exception_1.ApiException(403, body_24);
|
|
1145
|
-
case 4:
|
|
1146
|
-
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 6];
|
|
1147
|
-
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1148
|
-
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1149
|
-
return [4 /*yield*/, response.body.text()];
|
|
1150
|
-
case 5:
|
|
1151
|
-
body_25 = _k.apply(_j, [_m.apply(_l, [_w.sent(), contentType]),
|
|
1152
|
-
"APIErrorResponse",
|
|
1153
|
-
""]);
|
|
1154
|
-
throw new exception_1.ApiException(404, body_25);
|
|
1155
|
-
case 6:
|
|
1156
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
1157
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1158
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1159
|
-
return [4 /*yield*/, response.body.text()];
|
|
1160
|
-
case 7:
|
|
1161
|
-
body_26 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
1162
|
-
"APIErrorResponse",
|
|
1163
|
-
""]);
|
|
1164
|
-
throw new exception_1.ApiException(429, body_26);
|
|
1165
|
-
case 8:
|
|
1166
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
1167
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1168
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1169
|
-
return [4 /*yield*/, response.body.text()];
|
|
1170
|
-
case 9:
|
|
1171
|
-
body_27 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
1070
|
+
body_14 = _d.apply(_c, [_f.apply(_e, [_g.sent(), contentType]),
|
|
1172
1071
|
"void",
|
|
1173
1072
|
""]);
|
|
1174
|
-
return [2 /*return*/,
|
|
1175
|
-
case
|
|
1176
|
-
case
|
|
1177
|
-
body = (
|
|
1073
|
+
return [2 /*return*/, body_14];
|
|
1074
|
+
case 4: return [4 /*yield*/, response.body.text()];
|
|
1075
|
+
case 5:
|
|
1076
|
+
body = (_g.sent()) || "";
|
|
1178
1077
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1179
1078
|
}
|
|
1180
1079
|
});
|
|
@@ -1189,46 +1088,40 @@ var SyntheticsApiResponseProcessor = /** @class */ (function () {
|
|
|
1189
1088
|
*/
|
|
1190
1089
|
SyntheticsApiResponseProcessor.prototype.deletePrivateLocation = function (response) {
|
|
1191
1090
|
return __awaiter(this, void 0, void 0, function () {
|
|
1192
|
-
var contentType,
|
|
1193
|
-
return __generator(this, function (
|
|
1194
|
-
switch (
|
|
1091
|
+
var contentType, bodyText, _a, _b, body_15, body_16, _c, _d, _e, _f, body;
|
|
1092
|
+
return __generator(this, function (_g) {
|
|
1093
|
+
switch (_g.label) {
|
|
1195
1094
|
case 0:
|
|
1196
1095
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1197
|
-
if (
|
|
1096
|
+
if (response.httpStatusCode == 204) {
|
|
1198
1097
|
return [2 /*return*/];
|
|
1199
1098
|
}
|
|
1200
|
-
if (!(
|
|
1201
|
-
_b = (_a = ObjectSerializer_1.ObjectSerializer).
|
|
1202
|
-
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1099
|
+
if (!(response.httpStatusCode == 404 || response.httpStatusCode == 429)) return [3 /*break*/, 2];
|
|
1100
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1203
1101
|
return [4 /*yield*/, response.body.text()];
|
|
1204
1102
|
case 1:
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
""
|
|
1208
|
-
|
|
1103
|
+
bodyText = _b.apply(_a, [_g.sent(), contentType]);
|
|
1104
|
+
try {
|
|
1105
|
+
body_15 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1106
|
+
}
|
|
1107
|
+
catch (error) {
|
|
1108
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
1109
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1110
|
+
}
|
|
1111
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_15);
|
|
1209
1112
|
case 2:
|
|
1210
|
-
if (!(
|
|
1211
|
-
|
|
1212
|
-
|
|
1113
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 4];
|
|
1114
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1115
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1213
1116
|
return [4 /*yield*/, response.body.text()];
|
|
1214
1117
|
case 3:
|
|
1215
|
-
|
|
1216
|
-
"APIErrorResponse",
|
|
1217
|
-
""]);
|
|
1218
|
-
throw new exception_1.ApiException(429, body_29);
|
|
1219
|
-
case 4:
|
|
1220
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
1221
|
-
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1222
|
-
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1223
|
-
return [4 /*yield*/, response.body.text()];
|
|
1224
|
-
case 5:
|
|
1225
|
-
body_30 = _k.apply(_j, [_m.apply(_l, [_o.sent(), contentType]),
|
|
1118
|
+
body_16 = _d.apply(_c, [_f.apply(_e, [_g.sent(), contentType]),
|
|
1226
1119
|
"void",
|
|
1227
1120
|
""]);
|
|
1228
|
-
return [2 /*return*/,
|
|
1229
|
-
case
|
|
1230
|
-
case
|
|
1231
|
-
body = (
|
|
1121
|
+
return [2 /*return*/, body_16];
|
|
1122
|
+
case 4: return [4 /*yield*/, response.body.text()];
|
|
1123
|
+
case 5:
|
|
1124
|
+
body = (_g.sent()) || "";
|
|
1232
1125
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1233
1126
|
}
|
|
1234
1127
|
});
|
|
@@ -1243,73 +1136,49 @@ var SyntheticsApiResponseProcessor = /** @class */ (function () {
|
|
|
1243
1136
|
*/
|
|
1244
1137
|
SyntheticsApiResponseProcessor.prototype.deleteTests = function (response) {
|
|
1245
1138
|
return __awaiter(this, void 0, void 0, function () {
|
|
1246
|
-
var contentType,
|
|
1247
|
-
return __generator(this, function (
|
|
1248
|
-
switch (
|
|
1139
|
+
var contentType, body_17, _a, _b, _c, _d, bodyText, _e, _f, body_18, body_19, _g, _h, _j, _k, body;
|
|
1140
|
+
return __generator(this, function (_l) {
|
|
1141
|
+
switch (_l.label) {
|
|
1249
1142
|
case 0:
|
|
1250
1143
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1251
|
-
if (!(
|
|
1144
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
1252
1145
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1253
1146
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1254
1147
|
return [4 /*yield*/, response.body.text()];
|
|
1255
1148
|
case 1:
|
|
1256
|
-
|
|
1257
|
-
"SyntheticsDeleteTestsResponse"
|
|
1258
|
-
|
|
1259
|
-
return [2 /*return*/, body_31];
|
|
1149
|
+
body_17 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
1150
|
+
"SyntheticsDeleteTestsResponse"]);
|
|
1151
|
+
return [2 /*return*/, body_17];
|
|
1260
1152
|
case 2:
|
|
1261
|
-
if (!(
|
|
1262
|
-
|
|
1263
|
-
|
|
1153
|
+
if (!(response.httpStatusCode == 400 ||
|
|
1154
|
+
response.httpStatusCode == 403 ||
|
|
1155
|
+
response.httpStatusCode == 404 ||
|
|
1156
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
1157
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1264
1158
|
return [4 /*yield*/, response.body.text()];
|
|
1265
1159
|
case 3:
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
""
|
|
1269
|
-
|
|
1160
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
1161
|
+
try {
|
|
1162
|
+
body_18 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1163
|
+
}
|
|
1164
|
+
catch (error) {
|
|
1165
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
1166
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1167
|
+
}
|
|
1168
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_18);
|
|
1270
1169
|
case 4:
|
|
1271
|
-
if (!(
|
|
1272
|
-
|
|
1273
|
-
|
|
1170
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
1171
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1172
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1274
1173
|
return [4 /*yield*/, response.body.text()];
|
|
1275
1174
|
case 5:
|
|
1276
|
-
|
|
1277
|
-
"APIErrorResponse",
|
|
1278
|
-
""]);
|
|
1279
|
-
throw new exception_1.ApiException(403, body_33);
|
|
1280
|
-
case 6:
|
|
1281
|
-
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
1282
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1283
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1284
|
-
return [4 /*yield*/, response.body.text()];
|
|
1285
|
-
case 7:
|
|
1286
|
-
body_34 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
|
|
1287
|
-
"APIErrorResponse",
|
|
1288
|
-
""]);
|
|
1289
|
-
throw new exception_1.ApiException(404, body_34);
|
|
1290
|
-
case 8:
|
|
1291
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
|
|
1292
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1293
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1294
|
-
return [4 /*yield*/, response.body.text()];
|
|
1295
|
-
case 9:
|
|
1296
|
-
body_35 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
|
|
1297
|
-
"APIErrorResponse",
|
|
1298
|
-
""]);
|
|
1299
|
-
throw new exception_1.ApiException(429, body_35);
|
|
1300
|
-
case 10:
|
|
1301
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
|
|
1302
|
-
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1303
|
-
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1304
|
-
return [4 /*yield*/, response.body.text()];
|
|
1305
|
-
case 11:
|
|
1306
|
-
body_36 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
|
|
1175
|
+
body_19 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
1307
1176
|
"SyntheticsDeleteTestsResponse",
|
|
1308
1177
|
""]);
|
|
1309
|
-
return [2 /*return*/,
|
|
1310
|
-
case
|
|
1311
|
-
case
|
|
1312
|
-
body = (
|
|
1178
|
+
return [2 /*return*/, body_19];
|
|
1179
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
1180
|
+
case 7:
|
|
1181
|
+
body = (_l.sent()) || "";
|
|
1313
1182
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1314
1183
|
}
|
|
1315
1184
|
});
|
|
@@ -1324,63 +1193,48 @@ var SyntheticsApiResponseProcessor = /** @class */ (function () {
|
|
|
1324
1193
|
*/
|
|
1325
1194
|
SyntheticsApiResponseProcessor.prototype.editGlobalVariable = function (response) {
|
|
1326
1195
|
return __awaiter(this, void 0, void 0, function () {
|
|
1327
|
-
var contentType,
|
|
1328
|
-
return __generator(this, function (
|
|
1329
|
-
switch (
|
|
1196
|
+
var contentType, body_20, _a, _b, _c, _d, bodyText, _e, _f, body_21, body_22, _g, _h, _j, _k, body;
|
|
1197
|
+
return __generator(this, function (_l) {
|
|
1198
|
+
switch (_l.label) {
|
|
1330
1199
|
case 0:
|
|
1331
1200
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1332
|
-
if (!(
|
|
1201
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
1333
1202
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1334
1203
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1335
1204
|
return [4 /*yield*/, response.body.text()];
|
|
1336
1205
|
case 1:
|
|
1337
|
-
|
|
1338
|
-
"SyntheticsGlobalVariable"
|
|
1339
|
-
|
|
1340
|
-
return [2 /*return*/, body_37];
|
|
1206
|
+
body_20 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
1207
|
+
"SyntheticsGlobalVariable"]);
|
|
1208
|
+
return [2 /*return*/, body_20];
|
|
1341
1209
|
case 2:
|
|
1342
|
-
if (!(
|
|
1343
|
-
|
|
1344
|
-
|
|
1210
|
+
if (!(response.httpStatusCode == 400 ||
|
|
1211
|
+
response.httpStatusCode == 403 ||
|
|
1212
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
1213
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1345
1214
|
return [4 /*yield*/, response.body.text()];
|
|
1346
1215
|
case 3:
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
""
|
|
1350
|
-
|
|
1216
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
1217
|
+
try {
|
|
1218
|
+
body_21 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1219
|
+
}
|
|
1220
|
+
catch (error) {
|
|
1221
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
1222
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1223
|
+
}
|
|
1224
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_21);
|
|
1351
1225
|
case 4:
|
|
1352
|
-
if (!(
|
|
1353
|
-
|
|
1354
|
-
|
|
1226
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
1227
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1228
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1355
1229
|
return [4 /*yield*/, response.body.text()];
|
|
1356
1230
|
case 5:
|
|
1357
|
-
|
|
1358
|
-
"APIErrorResponse",
|
|
1359
|
-
""]);
|
|
1360
|
-
throw new exception_1.ApiException(403, body_39);
|
|
1361
|
-
case 6:
|
|
1362
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
1363
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1364
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1365
|
-
return [4 /*yield*/, response.body.text()];
|
|
1366
|
-
case 7:
|
|
1367
|
-
body_40 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
1368
|
-
"APIErrorResponse",
|
|
1369
|
-
""]);
|
|
1370
|
-
throw new exception_1.ApiException(429, body_40);
|
|
1371
|
-
case 8:
|
|
1372
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
1373
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1374
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1375
|
-
return [4 /*yield*/, response.body.text()];
|
|
1376
|
-
case 9:
|
|
1377
|
-
body_41 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
1231
|
+
body_22 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
1378
1232
|
"SyntheticsGlobalVariable",
|
|
1379
1233
|
""]);
|
|
1380
|
-
return [2 /*return*/,
|
|
1381
|
-
case
|
|
1382
|
-
case
|
|
1383
|
-
body = (
|
|
1234
|
+
return [2 /*return*/, body_22];
|
|
1235
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
1236
|
+
case 7:
|
|
1237
|
+
body = (_l.sent()) || "";
|
|
1384
1238
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1385
1239
|
}
|
|
1386
1240
|
});
|
|
@@ -1395,63 +1249,48 @@ var SyntheticsApiResponseProcessor = /** @class */ (function () {
|
|
|
1395
1249
|
*/
|
|
1396
1250
|
SyntheticsApiResponseProcessor.prototype.getAPITest = function (response) {
|
|
1397
1251
|
return __awaiter(this, void 0, void 0, function () {
|
|
1398
|
-
var contentType,
|
|
1399
|
-
return __generator(this, function (
|
|
1400
|
-
switch (
|
|
1252
|
+
var contentType, body_23, _a, _b, _c, _d, bodyText, _e, _f, body_24, body_25, _g, _h, _j, _k, body;
|
|
1253
|
+
return __generator(this, function (_l) {
|
|
1254
|
+
switch (_l.label) {
|
|
1401
1255
|
case 0:
|
|
1402
1256
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1403
|
-
if (!(
|
|
1257
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
1404
1258
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1405
1259
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1406
1260
|
return [4 /*yield*/, response.body.text()];
|
|
1407
1261
|
case 1:
|
|
1408
|
-
|
|
1409
|
-
"SyntheticsAPITest"
|
|
1410
|
-
|
|
1411
|
-
return [2 /*return*/, body_42];
|
|
1262
|
+
body_23 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
1263
|
+
"SyntheticsAPITest"]);
|
|
1264
|
+
return [2 /*return*/, body_23];
|
|
1412
1265
|
case 2:
|
|
1413
|
-
if (!(
|
|
1414
|
-
|
|
1415
|
-
|
|
1266
|
+
if (!(response.httpStatusCode == 403 ||
|
|
1267
|
+
response.httpStatusCode == 404 ||
|
|
1268
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
1269
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1416
1270
|
return [4 /*yield*/, response.body.text()];
|
|
1417
1271
|
case 3:
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
""
|
|
1421
|
-
|
|
1272
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
1273
|
+
try {
|
|
1274
|
+
body_24 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1275
|
+
}
|
|
1276
|
+
catch (error) {
|
|
1277
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
1278
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1279
|
+
}
|
|
1280
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_24);
|
|
1422
1281
|
case 4:
|
|
1423
|
-
if (!(
|
|
1424
|
-
|
|
1425
|
-
|
|
1282
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
1283
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1284
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1426
1285
|
return [4 /*yield*/, response.body.text()];
|
|
1427
1286
|
case 5:
|
|
1428
|
-
|
|
1429
|
-
"APIErrorResponse",
|
|
1430
|
-
""]);
|
|
1431
|
-
throw new exception_1.ApiException(404, body_44);
|
|
1432
|
-
case 6:
|
|
1433
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
1434
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1435
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1436
|
-
return [4 /*yield*/, response.body.text()];
|
|
1437
|
-
case 7:
|
|
1438
|
-
body_45 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
1439
|
-
"APIErrorResponse",
|
|
1440
|
-
""]);
|
|
1441
|
-
throw new exception_1.ApiException(429, body_45);
|
|
1442
|
-
case 8:
|
|
1443
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
1444
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1445
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1446
|
-
return [4 /*yield*/, response.body.text()];
|
|
1447
|
-
case 9:
|
|
1448
|
-
body_46 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
1287
|
+
body_25 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
1449
1288
|
"SyntheticsAPITest",
|
|
1450
1289
|
""]);
|
|
1451
|
-
return [2 /*return*/,
|
|
1452
|
-
case
|
|
1453
|
-
case
|
|
1454
|
-
body = (
|
|
1290
|
+
return [2 /*return*/, body_25];
|
|
1291
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
1292
|
+
case 7:
|
|
1293
|
+
body = (_l.sent()) || "";
|
|
1455
1294
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1456
1295
|
}
|
|
1457
1296
|
});
|
|
@@ -1466,63 +1305,48 @@ var SyntheticsApiResponseProcessor = /** @class */ (function () {
|
|
|
1466
1305
|
*/
|
|
1467
1306
|
SyntheticsApiResponseProcessor.prototype.getAPITestLatestResults = function (response) {
|
|
1468
1307
|
return __awaiter(this, void 0, void 0, function () {
|
|
1469
|
-
var contentType,
|
|
1470
|
-
return __generator(this, function (
|
|
1471
|
-
switch (
|
|
1308
|
+
var contentType, body_26, _a, _b, _c, _d, bodyText, _e, _f, body_27, body_28, _g, _h, _j, _k, body;
|
|
1309
|
+
return __generator(this, function (_l) {
|
|
1310
|
+
switch (_l.label) {
|
|
1472
1311
|
case 0:
|
|
1473
1312
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1474
|
-
if (!(
|
|
1313
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
1475
1314
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1476
1315
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1477
1316
|
return [4 /*yield*/, response.body.text()];
|
|
1478
1317
|
case 1:
|
|
1479
|
-
|
|
1480
|
-
"SyntheticsGetAPITestLatestResultsResponse"
|
|
1481
|
-
|
|
1482
|
-
return [2 /*return*/, body_47];
|
|
1318
|
+
body_26 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
1319
|
+
"SyntheticsGetAPITestLatestResultsResponse"]);
|
|
1320
|
+
return [2 /*return*/, body_26];
|
|
1483
1321
|
case 2:
|
|
1484
|
-
if (!(
|
|
1485
|
-
|
|
1486
|
-
|
|
1322
|
+
if (!(response.httpStatusCode == 403 ||
|
|
1323
|
+
response.httpStatusCode == 404 ||
|
|
1324
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
1325
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1487
1326
|
return [4 /*yield*/, response.body.text()];
|
|
1488
1327
|
case 3:
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
""
|
|
1492
|
-
|
|
1328
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
1329
|
+
try {
|
|
1330
|
+
body_27 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1331
|
+
}
|
|
1332
|
+
catch (error) {
|
|
1333
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
1334
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1335
|
+
}
|
|
1336
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_27);
|
|
1493
1337
|
case 4:
|
|
1494
|
-
if (!(
|
|
1495
|
-
|
|
1496
|
-
|
|
1338
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
1339
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1340
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1497
1341
|
return [4 /*yield*/, response.body.text()];
|
|
1498
1342
|
case 5:
|
|
1499
|
-
|
|
1500
|
-
"APIErrorResponse",
|
|
1501
|
-
""]);
|
|
1502
|
-
throw new exception_1.ApiException(404, body_49);
|
|
1503
|
-
case 6:
|
|
1504
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
1505
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1506
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1507
|
-
return [4 /*yield*/, response.body.text()];
|
|
1508
|
-
case 7:
|
|
1509
|
-
body_50 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
1510
|
-
"APIErrorResponse",
|
|
1511
|
-
""]);
|
|
1512
|
-
throw new exception_1.ApiException(429, body_50);
|
|
1513
|
-
case 8:
|
|
1514
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
1515
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1516
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1517
|
-
return [4 /*yield*/, response.body.text()];
|
|
1518
|
-
case 9:
|
|
1519
|
-
body_51 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
1343
|
+
body_28 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
1520
1344
|
"SyntheticsGetAPITestLatestResultsResponse",
|
|
1521
1345
|
""]);
|
|
1522
|
-
return [2 /*return*/,
|
|
1523
|
-
case
|
|
1524
|
-
case
|
|
1525
|
-
body = (
|
|
1346
|
+
return [2 /*return*/, body_28];
|
|
1347
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
1348
|
+
case 7:
|
|
1349
|
+
body = (_l.sent()) || "";
|
|
1526
1350
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1527
1351
|
}
|
|
1528
1352
|
});
|
|
@@ -1537,63 +1361,48 @@ var SyntheticsApiResponseProcessor = /** @class */ (function () {
|
|
|
1537
1361
|
*/
|
|
1538
1362
|
SyntheticsApiResponseProcessor.prototype.getAPITestResult = function (response) {
|
|
1539
1363
|
return __awaiter(this, void 0, void 0, function () {
|
|
1540
|
-
var contentType,
|
|
1541
|
-
return __generator(this, function (
|
|
1542
|
-
switch (
|
|
1364
|
+
var contentType, body_29, _a, _b, _c, _d, bodyText, _e, _f, body_30, body_31, _g, _h, _j, _k, body;
|
|
1365
|
+
return __generator(this, function (_l) {
|
|
1366
|
+
switch (_l.label) {
|
|
1543
1367
|
case 0:
|
|
1544
1368
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1545
|
-
if (!(
|
|
1369
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
1546
1370
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1547
1371
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1548
1372
|
return [4 /*yield*/, response.body.text()];
|
|
1549
1373
|
case 1:
|
|
1550
|
-
|
|
1551
|
-
"SyntheticsAPITestResultFull"
|
|
1552
|
-
|
|
1553
|
-
return [2 /*return*/, body_52];
|
|
1374
|
+
body_29 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
1375
|
+
"SyntheticsAPITestResultFull"]);
|
|
1376
|
+
return [2 /*return*/, body_29];
|
|
1554
1377
|
case 2:
|
|
1555
|
-
if (!(
|
|
1556
|
-
|
|
1557
|
-
|
|
1378
|
+
if (!(response.httpStatusCode == 403 ||
|
|
1379
|
+
response.httpStatusCode == 404 ||
|
|
1380
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
1381
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1558
1382
|
return [4 /*yield*/, response.body.text()];
|
|
1559
1383
|
case 3:
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
""
|
|
1563
|
-
|
|
1384
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
1385
|
+
try {
|
|
1386
|
+
body_30 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1387
|
+
}
|
|
1388
|
+
catch (error) {
|
|
1389
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
1390
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1391
|
+
}
|
|
1392
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_30);
|
|
1564
1393
|
case 4:
|
|
1565
|
-
if (!(
|
|
1566
|
-
|
|
1567
|
-
|
|
1394
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
1395
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1396
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1568
1397
|
return [4 /*yield*/, response.body.text()];
|
|
1569
1398
|
case 5:
|
|
1570
|
-
|
|
1571
|
-
"APIErrorResponse",
|
|
1572
|
-
""]);
|
|
1573
|
-
throw new exception_1.ApiException(404, body_54);
|
|
1574
|
-
case 6:
|
|
1575
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
1576
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1577
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1578
|
-
return [4 /*yield*/, response.body.text()];
|
|
1579
|
-
case 7:
|
|
1580
|
-
body_55 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
1581
|
-
"APIErrorResponse",
|
|
1582
|
-
""]);
|
|
1583
|
-
throw new exception_1.ApiException(429, body_55);
|
|
1584
|
-
case 8:
|
|
1585
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
1586
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1587
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1588
|
-
return [4 /*yield*/, response.body.text()];
|
|
1589
|
-
case 9:
|
|
1590
|
-
body_56 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
1399
|
+
body_31 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
1591
1400
|
"SyntheticsAPITestResultFull",
|
|
1592
1401
|
""]);
|
|
1593
|
-
return [2 /*return*/,
|
|
1594
|
-
case
|
|
1595
|
-
case
|
|
1596
|
-
body = (
|
|
1402
|
+
return [2 /*return*/, body_31];
|
|
1403
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
1404
|
+
case 7:
|
|
1405
|
+
body = (_l.sent()) || "";
|
|
1597
1406
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1598
1407
|
}
|
|
1599
1408
|
});
|
|
@@ -1608,63 +1417,48 @@ var SyntheticsApiResponseProcessor = /** @class */ (function () {
|
|
|
1608
1417
|
*/
|
|
1609
1418
|
SyntheticsApiResponseProcessor.prototype.getBrowserTest = function (response) {
|
|
1610
1419
|
return __awaiter(this, void 0, void 0, function () {
|
|
1611
|
-
var contentType,
|
|
1612
|
-
return __generator(this, function (
|
|
1613
|
-
switch (
|
|
1420
|
+
var contentType, body_32, _a, _b, _c, _d, bodyText, _e, _f, body_33, body_34, _g, _h, _j, _k, body;
|
|
1421
|
+
return __generator(this, function (_l) {
|
|
1422
|
+
switch (_l.label) {
|
|
1614
1423
|
case 0:
|
|
1615
1424
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1616
|
-
if (!(
|
|
1425
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
1617
1426
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1618
1427
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1619
1428
|
return [4 /*yield*/, response.body.text()];
|
|
1620
1429
|
case 1:
|
|
1621
|
-
|
|
1622
|
-
"SyntheticsBrowserTest"
|
|
1623
|
-
|
|
1624
|
-
return [2 /*return*/, body_57];
|
|
1430
|
+
body_32 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
1431
|
+
"SyntheticsBrowserTest"]);
|
|
1432
|
+
return [2 /*return*/, body_32];
|
|
1625
1433
|
case 2:
|
|
1626
|
-
if (!(
|
|
1627
|
-
|
|
1628
|
-
|
|
1434
|
+
if (!(response.httpStatusCode == 403 ||
|
|
1435
|
+
response.httpStatusCode == 404 ||
|
|
1436
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
1437
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1629
1438
|
return [4 /*yield*/, response.body.text()];
|
|
1630
1439
|
case 3:
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
""
|
|
1634
|
-
|
|
1440
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
1441
|
+
try {
|
|
1442
|
+
body_33 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1443
|
+
}
|
|
1444
|
+
catch (error) {
|
|
1445
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
1446
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1447
|
+
}
|
|
1448
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_33);
|
|
1635
1449
|
case 4:
|
|
1636
|
-
if (!(
|
|
1637
|
-
|
|
1638
|
-
|
|
1450
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
1451
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1452
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1639
1453
|
return [4 /*yield*/, response.body.text()];
|
|
1640
1454
|
case 5:
|
|
1641
|
-
|
|
1642
|
-
"APIErrorResponse",
|
|
1643
|
-
""]);
|
|
1644
|
-
throw new exception_1.ApiException(404, body_59);
|
|
1645
|
-
case 6:
|
|
1646
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
1647
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1648
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1649
|
-
return [4 /*yield*/, response.body.text()];
|
|
1650
|
-
case 7:
|
|
1651
|
-
body_60 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
1652
|
-
"APIErrorResponse",
|
|
1653
|
-
""]);
|
|
1654
|
-
throw new exception_1.ApiException(429, body_60);
|
|
1655
|
-
case 8:
|
|
1656
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
1657
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1658
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1659
|
-
return [4 /*yield*/, response.body.text()];
|
|
1660
|
-
case 9:
|
|
1661
|
-
body_61 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
1455
|
+
body_34 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
1662
1456
|
"SyntheticsBrowserTest",
|
|
1663
1457
|
""]);
|
|
1664
|
-
return [2 /*return*/,
|
|
1665
|
-
case
|
|
1666
|
-
case
|
|
1667
|
-
body = (
|
|
1458
|
+
return [2 /*return*/, body_34];
|
|
1459
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
1460
|
+
case 7:
|
|
1461
|
+
body = (_l.sent()) || "";
|
|
1668
1462
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1669
1463
|
}
|
|
1670
1464
|
});
|
|
@@ -1679,63 +1473,48 @@ var SyntheticsApiResponseProcessor = /** @class */ (function () {
|
|
|
1679
1473
|
*/
|
|
1680
1474
|
SyntheticsApiResponseProcessor.prototype.getBrowserTestLatestResults = function (response) {
|
|
1681
1475
|
return __awaiter(this, void 0, void 0, function () {
|
|
1682
|
-
var contentType,
|
|
1683
|
-
return __generator(this, function (
|
|
1684
|
-
switch (
|
|
1476
|
+
var contentType, body_35, _a, _b, _c, _d, bodyText, _e, _f, body_36, body_37, _g, _h, _j, _k, body;
|
|
1477
|
+
return __generator(this, function (_l) {
|
|
1478
|
+
switch (_l.label) {
|
|
1685
1479
|
case 0:
|
|
1686
1480
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1687
|
-
if (!(
|
|
1481
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
1688
1482
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1689
1483
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1690
1484
|
return [4 /*yield*/, response.body.text()];
|
|
1691
1485
|
case 1:
|
|
1692
|
-
|
|
1693
|
-
"SyntheticsGetBrowserTestLatestResultsResponse"
|
|
1694
|
-
|
|
1695
|
-
return [2 /*return*/, body_62];
|
|
1486
|
+
body_35 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
1487
|
+
"SyntheticsGetBrowserTestLatestResultsResponse"]);
|
|
1488
|
+
return [2 /*return*/, body_35];
|
|
1696
1489
|
case 2:
|
|
1697
|
-
if (!(
|
|
1698
|
-
|
|
1699
|
-
|
|
1490
|
+
if (!(response.httpStatusCode == 403 ||
|
|
1491
|
+
response.httpStatusCode == 404 ||
|
|
1492
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
1493
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1700
1494
|
return [4 /*yield*/, response.body.text()];
|
|
1701
1495
|
case 3:
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
""
|
|
1705
|
-
|
|
1496
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
1497
|
+
try {
|
|
1498
|
+
body_36 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1499
|
+
}
|
|
1500
|
+
catch (error) {
|
|
1501
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
1502
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1503
|
+
}
|
|
1504
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_36);
|
|
1706
1505
|
case 4:
|
|
1707
|
-
if (!(
|
|
1708
|
-
|
|
1709
|
-
|
|
1506
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
1507
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1508
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1710
1509
|
return [4 /*yield*/, response.body.text()];
|
|
1711
1510
|
case 5:
|
|
1712
|
-
|
|
1713
|
-
"APIErrorResponse",
|
|
1714
|
-
""]);
|
|
1715
|
-
throw new exception_1.ApiException(404, body_64);
|
|
1716
|
-
case 6:
|
|
1717
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
1718
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1719
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1720
|
-
return [4 /*yield*/, response.body.text()];
|
|
1721
|
-
case 7:
|
|
1722
|
-
body_65 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
1723
|
-
"APIErrorResponse",
|
|
1724
|
-
""]);
|
|
1725
|
-
throw new exception_1.ApiException(429, body_65);
|
|
1726
|
-
case 8:
|
|
1727
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
1728
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1729
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1730
|
-
return [4 /*yield*/, response.body.text()];
|
|
1731
|
-
case 9:
|
|
1732
|
-
body_66 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
1511
|
+
body_37 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
1733
1512
|
"SyntheticsGetBrowserTestLatestResultsResponse",
|
|
1734
1513
|
""]);
|
|
1735
|
-
return [2 /*return*/,
|
|
1736
|
-
case
|
|
1737
|
-
case
|
|
1738
|
-
body = (
|
|
1514
|
+
return [2 /*return*/, body_37];
|
|
1515
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
1516
|
+
case 7:
|
|
1517
|
+
body = (_l.sent()) || "";
|
|
1739
1518
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1740
1519
|
}
|
|
1741
1520
|
});
|
|
@@ -1750,63 +1529,48 @@ var SyntheticsApiResponseProcessor = /** @class */ (function () {
|
|
|
1750
1529
|
*/
|
|
1751
1530
|
SyntheticsApiResponseProcessor.prototype.getBrowserTestResult = function (response) {
|
|
1752
1531
|
return __awaiter(this, void 0, void 0, function () {
|
|
1753
|
-
var contentType,
|
|
1754
|
-
return __generator(this, function (
|
|
1755
|
-
switch (
|
|
1532
|
+
var contentType, body_38, _a, _b, _c, _d, bodyText, _e, _f, body_39, body_40, _g, _h, _j, _k, body;
|
|
1533
|
+
return __generator(this, function (_l) {
|
|
1534
|
+
switch (_l.label) {
|
|
1756
1535
|
case 0:
|
|
1757
1536
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1758
|
-
if (!(
|
|
1537
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
1759
1538
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1760
1539
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1761
1540
|
return [4 /*yield*/, response.body.text()];
|
|
1762
1541
|
case 1:
|
|
1763
|
-
|
|
1764
|
-
"SyntheticsBrowserTestResultFull"
|
|
1765
|
-
|
|
1766
|
-
return [2 /*return*/, body_67];
|
|
1542
|
+
body_38 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
1543
|
+
"SyntheticsBrowserTestResultFull"]);
|
|
1544
|
+
return [2 /*return*/, body_38];
|
|
1767
1545
|
case 2:
|
|
1768
|
-
if (!(
|
|
1769
|
-
|
|
1770
|
-
|
|
1546
|
+
if (!(response.httpStatusCode == 403 ||
|
|
1547
|
+
response.httpStatusCode == 404 ||
|
|
1548
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
1549
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1771
1550
|
return [4 /*yield*/, response.body.text()];
|
|
1772
1551
|
case 3:
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
""
|
|
1776
|
-
|
|
1552
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
1553
|
+
try {
|
|
1554
|
+
body_39 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1555
|
+
}
|
|
1556
|
+
catch (error) {
|
|
1557
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
1558
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1559
|
+
}
|
|
1560
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_39);
|
|
1777
1561
|
case 4:
|
|
1778
|
-
if (!(
|
|
1779
|
-
|
|
1780
|
-
|
|
1562
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
1563
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1564
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1781
1565
|
return [4 /*yield*/, response.body.text()];
|
|
1782
1566
|
case 5:
|
|
1783
|
-
|
|
1784
|
-
"APIErrorResponse",
|
|
1785
|
-
""]);
|
|
1786
|
-
throw new exception_1.ApiException(404, body_69);
|
|
1787
|
-
case 6:
|
|
1788
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
1789
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1790
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1791
|
-
return [4 /*yield*/, response.body.text()];
|
|
1792
|
-
case 7:
|
|
1793
|
-
body_70 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
1794
|
-
"APIErrorResponse",
|
|
1795
|
-
""]);
|
|
1796
|
-
throw new exception_1.ApiException(429, body_70);
|
|
1797
|
-
case 8:
|
|
1798
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
1799
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1800
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1801
|
-
return [4 /*yield*/, response.body.text()];
|
|
1802
|
-
case 9:
|
|
1803
|
-
body_71 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
1567
|
+
body_40 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
1804
1568
|
"SyntheticsBrowserTestResultFull",
|
|
1805
1569
|
""]);
|
|
1806
|
-
return [2 /*return*/,
|
|
1807
|
-
case
|
|
1808
|
-
case
|
|
1809
|
-
body = (
|
|
1570
|
+
return [2 /*return*/, body_40];
|
|
1571
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
1572
|
+
case 7:
|
|
1573
|
+
body = (_l.sent()) || "";
|
|
1810
1574
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1811
1575
|
}
|
|
1812
1576
|
});
|
|
@@ -1821,63 +1585,48 @@ var SyntheticsApiResponseProcessor = /** @class */ (function () {
|
|
|
1821
1585
|
*/
|
|
1822
1586
|
SyntheticsApiResponseProcessor.prototype.getGlobalVariable = function (response) {
|
|
1823
1587
|
return __awaiter(this, void 0, void 0, function () {
|
|
1824
|
-
var contentType,
|
|
1825
|
-
return __generator(this, function (
|
|
1826
|
-
switch (
|
|
1588
|
+
var contentType, body_41, _a, _b, _c, _d, bodyText, _e, _f, body_42, body_43, _g, _h, _j, _k, body;
|
|
1589
|
+
return __generator(this, function (_l) {
|
|
1590
|
+
switch (_l.label) {
|
|
1827
1591
|
case 0:
|
|
1828
1592
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1829
|
-
if (!(
|
|
1593
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
1830
1594
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1831
1595
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1832
1596
|
return [4 /*yield*/, response.body.text()];
|
|
1833
1597
|
case 1:
|
|
1834
|
-
|
|
1835
|
-
"SyntheticsGlobalVariable"
|
|
1836
|
-
|
|
1837
|
-
return [2 /*return*/, body_72];
|
|
1598
|
+
body_41 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
1599
|
+
"SyntheticsGlobalVariable"]);
|
|
1600
|
+
return [2 /*return*/, body_41];
|
|
1838
1601
|
case 2:
|
|
1839
|
-
if (!(
|
|
1840
|
-
|
|
1841
|
-
|
|
1602
|
+
if (!(response.httpStatusCode == 403 ||
|
|
1603
|
+
response.httpStatusCode == 404 ||
|
|
1604
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
1605
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1842
1606
|
return [4 /*yield*/, response.body.text()];
|
|
1843
1607
|
case 3:
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
""
|
|
1847
|
-
|
|
1608
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
1609
|
+
try {
|
|
1610
|
+
body_42 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1611
|
+
}
|
|
1612
|
+
catch (error) {
|
|
1613
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
1614
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1615
|
+
}
|
|
1616
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_42);
|
|
1848
1617
|
case 4:
|
|
1849
|
-
if (!(
|
|
1850
|
-
|
|
1851
|
-
|
|
1618
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
1619
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1620
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1852
1621
|
return [4 /*yield*/, response.body.text()];
|
|
1853
1622
|
case 5:
|
|
1854
|
-
|
|
1855
|
-
"APIErrorResponse",
|
|
1856
|
-
""]);
|
|
1857
|
-
throw new exception_1.ApiException(404, body_74);
|
|
1858
|
-
case 6:
|
|
1859
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
1860
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1861
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1862
|
-
return [4 /*yield*/, response.body.text()];
|
|
1863
|
-
case 7:
|
|
1864
|
-
body_75 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
1865
|
-
"APIErrorResponse",
|
|
1866
|
-
""]);
|
|
1867
|
-
throw new exception_1.ApiException(429, body_75);
|
|
1868
|
-
case 8:
|
|
1869
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
1870
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1871
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1872
|
-
return [4 /*yield*/, response.body.text()];
|
|
1873
|
-
case 9:
|
|
1874
|
-
body_76 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
1623
|
+
body_43 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
1875
1624
|
"SyntheticsGlobalVariable",
|
|
1876
1625
|
""]);
|
|
1877
|
-
return [2 /*return*/,
|
|
1878
|
-
case
|
|
1879
|
-
case
|
|
1880
|
-
body = (
|
|
1626
|
+
return [2 /*return*/, body_43];
|
|
1627
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
1628
|
+
case 7:
|
|
1629
|
+
body = (_l.sent()) || "";
|
|
1881
1630
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1882
1631
|
}
|
|
1883
1632
|
});
|
|
@@ -1892,53 +1641,46 @@ var SyntheticsApiResponseProcessor = /** @class */ (function () {
|
|
|
1892
1641
|
*/
|
|
1893
1642
|
SyntheticsApiResponseProcessor.prototype.getPrivateLocation = function (response) {
|
|
1894
1643
|
return __awaiter(this, void 0, void 0, function () {
|
|
1895
|
-
var contentType,
|
|
1896
|
-
return __generator(this, function (
|
|
1897
|
-
switch (
|
|
1644
|
+
var contentType, body_44, _a, _b, _c, _d, bodyText, _e, _f, body_45, body_46, _g, _h, _j, _k, body;
|
|
1645
|
+
return __generator(this, function (_l) {
|
|
1646
|
+
switch (_l.label) {
|
|
1898
1647
|
case 0:
|
|
1899
1648
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1900
|
-
if (!(
|
|
1649
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
1901
1650
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1902
1651
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1903
1652
|
return [4 /*yield*/, response.body.text()];
|
|
1904
1653
|
case 1:
|
|
1905
|
-
|
|
1906
|
-
"SyntheticsPrivateLocation"
|
|
1907
|
-
|
|
1908
|
-
return [2 /*return*/, body_77];
|
|
1654
|
+
body_44 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
1655
|
+
"SyntheticsPrivateLocation"]);
|
|
1656
|
+
return [2 /*return*/, body_44];
|
|
1909
1657
|
case 2:
|
|
1910
|
-
if (!(
|
|
1911
|
-
_f = (_e = ObjectSerializer_1.ObjectSerializer).
|
|
1912
|
-
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1658
|
+
if (!(response.httpStatusCode == 404 || response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
1659
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1913
1660
|
return [4 /*yield*/, response.body.text()];
|
|
1914
1661
|
case 3:
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
""
|
|
1918
|
-
|
|
1662
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
1663
|
+
try {
|
|
1664
|
+
body_45 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1665
|
+
}
|
|
1666
|
+
catch (error) {
|
|
1667
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
1668
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1669
|
+
}
|
|
1670
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_45);
|
|
1919
1671
|
case 4:
|
|
1920
|
-
if (!(
|
|
1921
|
-
|
|
1922
|
-
|
|
1672
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
1673
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1674
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1923
1675
|
return [4 /*yield*/, response.body.text()];
|
|
1924
1676
|
case 5:
|
|
1925
|
-
|
|
1926
|
-
"APIErrorResponse",
|
|
1927
|
-
""]);
|
|
1928
|
-
throw new exception_1.ApiException(429, body_79);
|
|
1929
|
-
case 6:
|
|
1930
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 8];
|
|
1931
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1932
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1933
|
-
return [4 /*yield*/, response.body.text()];
|
|
1934
|
-
case 7:
|
|
1935
|
-
body_80 = _p.apply(_o, [_r.apply(_q, [_s.sent(), contentType]),
|
|
1677
|
+
body_46 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
1936
1678
|
"SyntheticsPrivateLocation",
|
|
1937
1679
|
""]);
|
|
1938
|
-
return [2 /*return*/,
|
|
1939
|
-
case
|
|
1940
|
-
case
|
|
1941
|
-
body = (
|
|
1680
|
+
return [2 /*return*/, body_46];
|
|
1681
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
1682
|
+
case 7:
|
|
1683
|
+
body = (_l.sent()) || "";
|
|
1942
1684
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1943
1685
|
}
|
|
1944
1686
|
});
|
|
@@ -1953,53 +1695,46 @@ var SyntheticsApiResponseProcessor = /** @class */ (function () {
|
|
|
1953
1695
|
*/
|
|
1954
1696
|
SyntheticsApiResponseProcessor.prototype.getSyntheticsCIBatch = function (response) {
|
|
1955
1697
|
return __awaiter(this, void 0, void 0, function () {
|
|
1956
|
-
var contentType,
|
|
1957
|
-
return __generator(this, function (
|
|
1958
|
-
switch (
|
|
1698
|
+
var contentType, body_47, _a, _b, _c, _d, bodyText, _e, _f, body_48, body_49, _g, _h, _j, _k, body;
|
|
1699
|
+
return __generator(this, function (_l) {
|
|
1700
|
+
switch (_l.label) {
|
|
1959
1701
|
case 0:
|
|
1960
1702
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1961
|
-
if (!(
|
|
1703
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
1962
1704
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1963
1705
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1964
1706
|
return [4 /*yield*/, response.body.text()];
|
|
1965
1707
|
case 1:
|
|
1966
|
-
|
|
1967
|
-
"SyntheticsBatchDetails"
|
|
1968
|
-
|
|
1969
|
-
return [2 /*return*/, body_81];
|
|
1708
|
+
body_47 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
1709
|
+
"SyntheticsBatchDetails"]);
|
|
1710
|
+
return [2 /*return*/, body_47];
|
|
1970
1711
|
case 2:
|
|
1971
|
-
if (!(
|
|
1972
|
-
_f = (_e = ObjectSerializer_1.ObjectSerializer).
|
|
1973
|
-
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1712
|
+
if (!(response.httpStatusCode == 404 || response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
1713
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1974
1714
|
return [4 /*yield*/, response.body.text()];
|
|
1975
1715
|
case 3:
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
""
|
|
1979
|
-
|
|
1716
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
1717
|
+
try {
|
|
1718
|
+
body_48 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1719
|
+
}
|
|
1720
|
+
catch (error) {
|
|
1721
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
1722
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1723
|
+
}
|
|
1724
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_48);
|
|
1980
1725
|
case 4:
|
|
1981
|
-
if (!(
|
|
1982
|
-
|
|
1983
|
-
|
|
1726
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
1727
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1728
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1984
1729
|
return [4 /*yield*/, response.body.text()];
|
|
1985
1730
|
case 5:
|
|
1986
|
-
|
|
1987
|
-
"APIErrorResponse",
|
|
1988
|
-
""]);
|
|
1989
|
-
throw new exception_1.ApiException(429, body_83);
|
|
1990
|
-
case 6:
|
|
1991
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 8];
|
|
1992
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1993
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1994
|
-
return [4 /*yield*/, response.body.text()];
|
|
1995
|
-
case 7:
|
|
1996
|
-
body_84 = _p.apply(_o, [_r.apply(_q, [_s.sent(), contentType]),
|
|
1731
|
+
body_49 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
1997
1732
|
"SyntheticsBatchDetails",
|
|
1998
1733
|
""]);
|
|
1999
|
-
return [2 /*return*/,
|
|
2000
|
-
case
|
|
2001
|
-
case
|
|
2002
|
-
body = (
|
|
1734
|
+
return [2 /*return*/, body_49];
|
|
1735
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
1736
|
+
case 7:
|
|
1737
|
+
body = (_l.sent()) || "";
|
|
2003
1738
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
2004
1739
|
}
|
|
2005
1740
|
});
|
|
@@ -2014,63 +1749,48 @@ var SyntheticsApiResponseProcessor = /** @class */ (function () {
|
|
|
2014
1749
|
*/
|
|
2015
1750
|
SyntheticsApiResponseProcessor.prototype.getTest = function (response) {
|
|
2016
1751
|
return __awaiter(this, void 0, void 0, function () {
|
|
2017
|
-
var contentType,
|
|
2018
|
-
return __generator(this, function (
|
|
2019
|
-
switch (
|
|
1752
|
+
var contentType, body_50, _a, _b, _c, _d, bodyText, _e, _f, body_51, body_52, _g, _h, _j, _k, body;
|
|
1753
|
+
return __generator(this, function (_l) {
|
|
1754
|
+
switch (_l.label) {
|
|
2020
1755
|
case 0:
|
|
2021
1756
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2022
|
-
if (!(
|
|
1757
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
2023
1758
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2024
1759
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2025
1760
|
return [4 /*yield*/, response.body.text()];
|
|
2026
1761
|
case 1:
|
|
2027
|
-
|
|
2028
|
-
"SyntheticsTestDetails"
|
|
2029
|
-
|
|
2030
|
-
return [2 /*return*/, body_85];
|
|
1762
|
+
body_50 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
1763
|
+
"SyntheticsTestDetails"]);
|
|
1764
|
+
return [2 /*return*/, body_50];
|
|
2031
1765
|
case 2:
|
|
2032
|
-
if (!(
|
|
2033
|
-
|
|
2034
|
-
|
|
1766
|
+
if (!(response.httpStatusCode == 403 ||
|
|
1767
|
+
response.httpStatusCode == 404 ||
|
|
1768
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
1769
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2035
1770
|
return [4 /*yield*/, response.body.text()];
|
|
2036
1771
|
case 3:
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
""
|
|
2040
|
-
|
|
1772
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
1773
|
+
try {
|
|
1774
|
+
body_51 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1775
|
+
}
|
|
1776
|
+
catch (error) {
|
|
1777
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
1778
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1779
|
+
}
|
|
1780
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_51);
|
|
2041
1781
|
case 4:
|
|
2042
|
-
if (!(
|
|
2043
|
-
|
|
2044
|
-
|
|
1782
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
1783
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1784
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2045
1785
|
return [4 /*yield*/, response.body.text()];
|
|
2046
1786
|
case 5:
|
|
2047
|
-
|
|
2048
|
-
"APIErrorResponse",
|
|
2049
|
-
""]);
|
|
2050
|
-
throw new exception_1.ApiException(404, body_87);
|
|
2051
|
-
case 6:
|
|
2052
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
2053
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2054
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2055
|
-
return [4 /*yield*/, response.body.text()];
|
|
2056
|
-
case 7:
|
|
2057
|
-
body_88 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
2058
|
-
"APIErrorResponse",
|
|
2059
|
-
""]);
|
|
2060
|
-
throw new exception_1.ApiException(429, body_88);
|
|
2061
|
-
case 8:
|
|
2062
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
2063
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2064
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2065
|
-
return [4 /*yield*/, response.body.text()];
|
|
2066
|
-
case 9:
|
|
2067
|
-
body_89 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
1787
|
+
body_52 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
2068
1788
|
"SyntheticsTestDetails",
|
|
2069
1789
|
""]);
|
|
2070
|
-
return [2 /*return*/,
|
|
2071
|
-
case
|
|
2072
|
-
case
|
|
2073
|
-
body = (
|
|
1790
|
+
return [2 /*return*/, body_52];
|
|
1791
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
1792
|
+
case 7:
|
|
1793
|
+
body = (_l.sent()) || "";
|
|
2074
1794
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
2075
1795
|
}
|
|
2076
1796
|
});
|
|
@@ -2085,53 +1805,46 @@ var SyntheticsApiResponseProcessor = /** @class */ (function () {
|
|
|
2085
1805
|
*/
|
|
2086
1806
|
SyntheticsApiResponseProcessor.prototype.listGlobalVariables = function (response) {
|
|
2087
1807
|
return __awaiter(this, void 0, void 0, function () {
|
|
2088
|
-
var contentType,
|
|
2089
|
-
return __generator(this, function (
|
|
2090
|
-
switch (
|
|
1808
|
+
var contentType, body_53, _a, _b, _c, _d, bodyText, _e, _f, body_54, body_55, _g, _h, _j, _k, body;
|
|
1809
|
+
return __generator(this, function (_l) {
|
|
1810
|
+
switch (_l.label) {
|
|
2091
1811
|
case 0:
|
|
2092
1812
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2093
|
-
if (!(
|
|
1813
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
2094
1814
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2095
1815
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2096
1816
|
return [4 /*yield*/, response.body.text()];
|
|
2097
1817
|
case 1:
|
|
2098
|
-
|
|
2099
|
-
"SyntheticsListGlobalVariablesResponse"
|
|
2100
|
-
|
|
2101
|
-
return [2 /*return*/, body_90];
|
|
1818
|
+
body_53 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
1819
|
+
"SyntheticsListGlobalVariablesResponse"]);
|
|
1820
|
+
return [2 /*return*/, body_53];
|
|
2102
1821
|
case 2:
|
|
2103
|
-
if (!(
|
|
2104
|
-
_f = (_e = ObjectSerializer_1.ObjectSerializer).
|
|
2105
|
-
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1822
|
+
if (!(response.httpStatusCode == 403 || response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
1823
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2106
1824
|
return [4 /*yield*/, response.body.text()];
|
|
2107
1825
|
case 3:
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
""
|
|
2111
|
-
|
|
1826
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
1827
|
+
try {
|
|
1828
|
+
body_54 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1829
|
+
}
|
|
1830
|
+
catch (error) {
|
|
1831
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
1832
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1833
|
+
}
|
|
1834
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_54);
|
|
2112
1835
|
case 4:
|
|
2113
|
-
if (!(
|
|
2114
|
-
|
|
2115
|
-
|
|
1836
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
1837
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1838
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2116
1839
|
return [4 /*yield*/, response.body.text()];
|
|
2117
1840
|
case 5:
|
|
2118
|
-
|
|
2119
|
-
"APIErrorResponse",
|
|
2120
|
-
""]);
|
|
2121
|
-
throw new exception_1.ApiException(429, body_92);
|
|
2122
|
-
case 6:
|
|
2123
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 8];
|
|
2124
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2125
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2126
|
-
return [4 /*yield*/, response.body.text()];
|
|
2127
|
-
case 7:
|
|
2128
|
-
body_93 = _p.apply(_o, [_r.apply(_q, [_s.sent(), contentType]),
|
|
1841
|
+
body_55 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
2129
1842
|
"SyntheticsListGlobalVariablesResponse",
|
|
2130
1843
|
""]);
|
|
2131
|
-
return [2 /*return*/,
|
|
2132
|
-
case
|
|
2133
|
-
case
|
|
2134
|
-
body = (
|
|
1844
|
+
return [2 /*return*/, body_55];
|
|
1845
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
1846
|
+
case 7:
|
|
1847
|
+
body = (_l.sent()) || "";
|
|
2135
1848
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
2136
1849
|
}
|
|
2137
1850
|
});
|
|
@@ -2146,43 +1859,46 @@ var SyntheticsApiResponseProcessor = /** @class */ (function () {
|
|
|
2146
1859
|
*/
|
|
2147
1860
|
SyntheticsApiResponseProcessor.prototype.listLocations = function (response) {
|
|
2148
1861
|
return __awaiter(this, void 0, void 0, function () {
|
|
2149
|
-
var contentType,
|
|
2150
|
-
return __generator(this, function (
|
|
2151
|
-
switch (
|
|
1862
|
+
var contentType, body_56, _a, _b, _c, _d, bodyText, _e, _f, body_57, body_58, _g, _h, _j, _k, body;
|
|
1863
|
+
return __generator(this, function (_l) {
|
|
1864
|
+
switch (_l.label) {
|
|
2152
1865
|
case 0:
|
|
2153
1866
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2154
|
-
if (!(
|
|
1867
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
2155
1868
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2156
1869
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2157
1870
|
return [4 /*yield*/, response.body.text()];
|
|
2158
1871
|
case 1:
|
|
2159
|
-
|
|
2160
|
-
"SyntheticsLocations"
|
|
2161
|
-
|
|
2162
|
-
return [2 /*return*/, body_94];
|
|
1872
|
+
body_56 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
1873
|
+
"SyntheticsLocations"]);
|
|
1874
|
+
return [2 /*return*/, body_56];
|
|
2163
1875
|
case 2:
|
|
2164
|
-
if (!(
|
|
2165
|
-
_f = (_e = ObjectSerializer_1.ObjectSerializer).
|
|
2166
|
-
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1876
|
+
if (!(response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
1877
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2167
1878
|
return [4 /*yield*/, response.body.text()];
|
|
2168
1879
|
case 3:
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
""
|
|
2172
|
-
|
|
1880
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
1881
|
+
try {
|
|
1882
|
+
body_57 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1883
|
+
}
|
|
1884
|
+
catch (error) {
|
|
1885
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
1886
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1887
|
+
}
|
|
1888
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_57);
|
|
2173
1889
|
case 4:
|
|
2174
1890
|
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
2175
|
-
|
|
2176
|
-
|
|
1891
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1892
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2177
1893
|
return [4 /*yield*/, response.body.text()];
|
|
2178
1894
|
case 5:
|
|
2179
|
-
|
|
1895
|
+
body_58 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
2180
1896
|
"SyntheticsLocations",
|
|
2181
1897
|
""]);
|
|
2182
|
-
return [2 /*return*/,
|
|
1898
|
+
return [2 /*return*/, body_58];
|
|
2183
1899
|
case 6: return [4 /*yield*/, response.body.text()];
|
|
2184
1900
|
case 7:
|
|
2185
|
-
body = (
|
|
1901
|
+
body = (_l.sent()) || "";
|
|
2186
1902
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
2187
1903
|
}
|
|
2188
1904
|
});
|
|
@@ -2197,63 +1913,48 @@ var SyntheticsApiResponseProcessor = /** @class */ (function () {
|
|
|
2197
1913
|
*/
|
|
2198
1914
|
SyntheticsApiResponseProcessor.prototype.listTests = function (response) {
|
|
2199
1915
|
return __awaiter(this, void 0, void 0, function () {
|
|
2200
|
-
var contentType,
|
|
2201
|
-
return __generator(this, function (
|
|
2202
|
-
switch (
|
|
1916
|
+
var contentType, body_59, _a, _b, _c, _d, bodyText, _e, _f, body_60, body_61, _g, _h, _j, _k, body;
|
|
1917
|
+
return __generator(this, function (_l) {
|
|
1918
|
+
switch (_l.label) {
|
|
2203
1919
|
case 0:
|
|
2204
1920
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2205
|
-
if (!(
|
|
1921
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
2206
1922
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2207
1923
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2208
1924
|
return [4 /*yield*/, response.body.text()];
|
|
2209
1925
|
case 1:
|
|
2210
|
-
|
|
2211
|
-
"SyntheticsListTestsResponse"
|
|
2212
|
-
|
|
2213
|
-
return [2 /*return*/, body_97];
|
|
1926
|
+
body_59 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
1927
|
+
"SyntheticsListTestsResponse"]);
|
|
1928
|
+
return [2 /*return*/, body_59];
|
|
2214
1929
|
case 2:
|
|
2215
|
-
if (!(
|
|
2216
|
-
|
|
2217
|
-
|
|
1930
|
+
if (!(response.httpStatusCode == 403 ||
|
|
1931
|
+
response.httpStatusCode == 404 ||
|
|
1932
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
1933
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2218
1934
|
return [4 /*yield*/, response.body.text()];
|
|
2219
1935
|
case 3:
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
""
|
|
2223
|
-
|
|
1936
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
1937
|
+
try {
|
|
1938
|
+
body_60 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1939
|
+
}
|
|
1940
|
+
catch (error) {
|
|
1941
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
1942
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1943
|
+
}
|
|
1944
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_60);
|
|
2224
1945
|
case 4:
|
|
2225
|
-
if (!(
|
|
2226
|
-
|
|
2227
|
-
|
|
1946
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
1947
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1948
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2228
1949
|
return [4 /*yield*/, response.body.text()];
|
|
2229
1950
|
case 5:
|
|
2230
|
-
|
|
2231
|
-
"APIErrorResponse",
|
|
2232
|
-
""]);
|
|
2233
|
-
throw new exception_1.ApiException(404, body_99);
|
|
2234
|
-
case 6:
|
|
2235
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
2236
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2237
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2238
|
-
return [4 /*yield*/, response.body.text()];
|
|
2239
|
-
case 7:
|
|
2240
|
-
body_100 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
2241
|
-
"APIErrorResponse",
|
|
2242
|
-
""]);
|
|
2243
|
-
throw new exception_1.ApiException(429, body_100);
|
|
2244
|
-
case 8:
|
|
2245
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
2246
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2247
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2248
|
-
return [4 /*yield*/, response.body.text()];
|
|
2249
|
-
case 9:
|
|
2250
|
-
body_101 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
1951
|
+
body_61 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
2251
1952
|
"SyntheticsListTestsResponse",
|
|
2252
1953
|
""]);
|
|
2253
|
-
return [2 /*return*/,
|
|
2254
|
-
case
|
|
2255
|
-
case
|
|
2256
|
-
body = (
|
|
1954
|
+
return [2 /*return*/, body_61];
|
|
1955
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
1956
|
+
case 7:
|
|
1957
|
+
body = (_l.sent()) || "";
|
|
2257
1958
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
2258
1959
|
}
|
|
2259
1960
|
});
|
|
@@ -2268,53 +1969,46 @@ var SyntheticsApiResponseProcessor = /** @class */ (function () {
|
|
|
2268
1969
|
*/
|
|
2269
1970
|
SyntheticsApiResponseProcessor.prototype.triggerCITests = function (response) {
|
|
2270
1971
|
return __awaiter(this, void 0, void 0, function () {
|
|
2271
|
-
var contentType,
|
|
2272
|
-
return __generator(this, function (
|
|
2273
|
-
switch (
|
|
1972
|
+
var contentType, body_62, _a, _b, _c, _d, bodyText, _e, _f, body_63, body_64, _g, _h, _j, _k, body;
|
|
1973
|
+
return __generator(this, function (_l) {
|
|
1974
|
+
switch (_l.label) {
|
|
2274
1975
|
case 0:
|
|
2275
1976
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2276
|
-
if (!(
|
|
1977
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
2277
1978
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2278
1979
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2279
1980
|
return [4 /*yield*/, response.body.text()];
|
|
2280
1981
|
case 1:
|
|
2281
|
-
|
|
2282
|
-
"SyntheticsTriggerCITestsResponse"
|
|
2283
|
-
|
|
2284
|
-
return [2 /*return*/, body_102];
|
|
1982
|
+
body_62 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
1983
|
+
"SyntheticsTriggerCITestsResponse"]);
|
|
1984
|
+
return [2 /*return*/, body_62];
|
|
2285
1985
|
case 2:
|
|
2286
|
-
if (!(
|
|
2287
|
-
_f = (_e = ObjectSerializer_1.ObjectSerializer).
|
|
2288
|
-
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1986
|
+
if (!(response.httpStatusCode == 400 || response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
1987
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2289
1988
|
return [4 /*yield*/, response.body.text()];
|
|
2290
1989
|
case 3:
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
""
|
|
2294
|
-
|
|
1990
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
1991
|
+
try {
|
|
1992
|
+
body_63 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1993
|
+
}
|
|
1994
|
+
catch (error) {
|
|
1995
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
1996
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1997
|
+
}
|
|
1998
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_63);
|
|
2295
1999
|
case 4:
|
|
2296
|
-
if (!(
|
|
2297
|
-
|
|
2298
|
-
|
|
2000
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
2001
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2002
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2299
2003
|
return [4 /*yield*/, response.body.text()];
|
|
2300
2004
|
case 5:
|
|
2301
|
-
|
|
2302
|
-
"APIErrorResponse",
|
|
2303
|
-
""]);
|
|
2304
|
-
throw new exception_1.ApiException(429, body_104);
|
|
2305
|
-
case 6:
|
|
2306
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 8];
|
|
2307
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2308
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2309
|
-
return [4 /*yield*/, response.body.text()];
|
|
2310
|
-
case 7:
|
|
2311
|
-
body_105 = _p.apply(_o, [_r.apply(_q, [_s.sent(), contentType]),
|
|
2005
|
+
body_64 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
2312
2006
|
"SyntheticsTriggerCITestsResponse",
|
|
2313
2007
|
""]);
|
|
2314
|
-
return [2 /*return*/,
|
|
2315
|
-
case
|
|
2316
|
-
case
|
|
2317
|
-
body = (
|
|
2008
|
+
return [2 /*return*/, body_64];
|
|
2009
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
2010
|
+
case 7:
|
|
2011
|
+
body = (_l.sent()) || "";
|
|
2318
2012
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
2319
2013
|
}
|
|
2320
2014
|
});
|
|
@@ -2329,53 +2023,46 @@ var SyntheticsApiResponseProcessor = /** @class */ (function () {
|
|
|
2329
2023
|
*/
|
|
2330
2024
|
SyntheticsApiResponseProcessor.prototype.triggerTests = function (response) {
|
|
2331
2025
|
return __awaiter(this, void 0, void 0, function () {
|
|
2332
|
-
var contentType,
|
|
2333
|
-
return __generator(this, function (
|
|
2334
|
-
switch (
|
|
2026
|
+
var contentType, body_65, _a, _b, _c, _d, bodyText, _e, _f, body_66, body_67, _g, _h, _j, _k, body;
|
|
2027
|
+
return __generator(this, function (_l) {
|
|
2028
|
+
switch (_l.label) {
|
|
2335
2029
|
case 0:
|
|
2336
2030
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2337
|
-
if (!(
|
|
2031
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
2338
2032
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2339
2033
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2340
2034
|
return [4 /*yield*/, response.body.text()];
|
|
2341
2035
|
case 1:
|
|
2342
|
-
|
|
2343
|
-
"SyntheticsTriggerCITestsResponse"
|
|
2344
|
-
|
|
2345
|
-
return [2 /*return*/, body_106];
|
|
2036
|
+
body_65 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
2037
|
+
"SyntheticsTriggerCITestsResponse"]);
|
|
2038
|
+
return [2 /*return*/, body_65];
|
|
2346
2039
|
case 2:
|
|
2347
|
-
if (!(
|
|
2348
|
-
_f = (_e = ObjectSerializer_1.ObjectSerializer).
|
|
2349
|
-
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2040
|
+
if (!(response.httpStatusCode == 400 || response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
2041
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2350
2042
|
return [4 /*yield*/, response.body.text()];
|
|
2351
2043
|
case 3:
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
""
|
|
2355
|
-
|
|
2044
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
2045
|
+
try {
|
|
2046
|
+
body_66 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
2047
|
+
}
|
|
2048
|
+
catch (error) {
|
|
2049
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
2050
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
2051
|
+
}
|
|
2052
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_66);
|
|
2356
2053
|
case 4:
|
|
2357
|
-
if (!(
|
|
2358
|
-
|
|
2359
|
-
|
|
2054
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
2055
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2056
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2360
2057
|
return [4 /*yield*/, response.body.text()];
|
|
2361
2058
|
case 5:
|
|
2362
|
-
|
|
2363
|
-
"APIErrorResponse",
|
|
2364
|
-
""]);
|
|
2365
|
-
throw new exception_1.ApiException(429, body_108);
|
|
2366
|
-
case 6:
|
|
2367
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 8];
|
|
2368
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2369
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2370
|
-
return [4 /*yield*/, response.body.text()];
|
|
2371
|
-
case 7:
|
|
2372
|
-
body_109 = _p.apply(_o, [_r.apply(_q, [_s.sent(), contentType]),
|
|
2059
|
+
body_67 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
2373
2060
|
"SyntheticsTriggerCITestsResponse",
|
|
2374
2061
|
""]);
|
|
2375
|
-
return [2 /*return*/,
|
|
2376
|
-
case
|
|
2377
|
-
case
|
|
2378
|
-
body = (
|
|
2062
|
+
return [2 /*return*/, body_67];
|
|
2063
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
2064
|
+
case 7:
|
|
2065
|
+
body = (_l.sent()) || "";
|
|
2379
2066
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
2380
2067
|
}
|
|
2381
2068
|
});
|
|
@@ -2390,73 +2077,49 @@ var SyntheticsApiResponseProcessor = /** @class */ (function () {
|
|
|
2390
2077
|
*/
|
|
2391
2078
|
SyntheticsApiResponseProcessor.prototype.updateAPITest = function (response) {
|
|
2392
2079
|
return __awaiter(this, void 0, void 0, function () {
|
|
2393
|
-
var contentType,
|
|
2394
|
-
return __generator(this, function (
|
|
2395
|
-
switch (
|
|
2080
|
+
var contentType, body_68, _a, _b, _c, _d, bodyText, _e, _f, body_69, body_70, _g, _h, _j, _k, body;
|
|
2081
|
+
return __generator(this, function (_l) {
|
|
2082
|
+
switch (_l.label) {
|
|
2396
2083
|
case 0:
|
|
2397
2084
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2398
|
-
if (!(
|
|
2085
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
2399
2086
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2400
2087
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2401
2088
|
return [4 /*yield*/, response.body.text()];
|
|
2402
2089
|
case 1:
|
|
2403
|
-
|
|
2404
|
-
"SyntheticsAPITest"
|
|
2405
|
-
|
|
2406
|
-
return [2 /*return*/, body_110];
|
|
2090
|
+
body_68 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
2091
|
+
"SyntheticsAPITest"]);
|
|
2092
|
+
return [2 /*return*/, body_68];
|
|
2407
2093
|
case 2:
|
|
2408
|
-
if (!(
|
|
2409
|
-
|
|
2410
|
-
|
|
2094
|
+
if (!(response.httpStatusCode == 400 ||
|
|
2095
|
+
response.httpStatusCode == 403 ||
|
|
2096
|
+
response.httpStatusCode == 404 ||
|
|
2097
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
2098
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2411
2099
|
return [4 /*yield*/, response.body.text()];
|
|
2412
2100
|
case 3:
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
""
|
|
2416
|
-
|
|
2101
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
2102
|
+
try {
|
|
2103
|
+
body_69 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
2104
|
+
}
|
|
2105
|
+
catch (error) {
|
|
2106
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
2107
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
2108
|
+
}
|
|
2109
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_69);
|
|
2417
2110
|
case 4:
|
|
2418
|
-
if (!(
|
|
2419
|
-
|
|
2420
|
-
|
|
2111
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
2112
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2113
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2421
2114
|
return [4 /*yield*/, response.body.text()];
|
|
2422
2115
|
case 5:
|
|
2423
|
-
|
|
2424
|
-
"APIErrorResponse",
|
|
2425
|
-
""]);
|
|
2426
|
-
throw new exception_1.ApiException(403, body_112);
|
|
2427
|
-
case 6:
|
|
2428
|
-
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
2429
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2430
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2431
|
-
return [4 /*yield*/, response.body.text()];
|
|
2432
|
-
case 7:
|
|
2433
|
-
body_113 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
|
|
2434
|
-
"APIErrorResponse",
|
|
2435
|
-
""]);
|
|
2436
|
-
throw new exception_1.ApiException(404, body_113);
|
|
2437
|
-
case 8:
|
|
2438
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
|
|
2439
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2440
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2441
|
-
return [4 /*yield*/, response.body.text()];
|
|
2442
|
-
case 9:
|
|
2443
|
-
body_114 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
|
|
2444
|
-
"APIErrorResponse",
|
|
2445
|
-
""]);
|
|
2446
|
-
throw new exception_1.ApiException(429, body_114);
|
|
2447
|
-
case 10:
|
|
2448
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
|
|
2449
|
-
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2450
|
-
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2451
|
-
return [4 /*yield*/, response.body.text()];
|
|
2452
|
-
case 11:
|
|
2453
|
-
body_115 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
|
|
2116
|
+
body_70 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
2454
2117
|
"SyntheticsAPITest",
|
|
2455
2118
|
""]);
|
|
2456
|
-
return [2 /*return*/,
|
|
2457
|
-
case
|
|
2458
|
-
case
|
|
2459
|
-
body = (
|
|
2119
|
+
return [2 /*return*/, body_70];
|
|
2120
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
2121
|
+
case 7:
|
|
2122
|
+
body = (_l.sent()) || "";
|
|
2460
2123
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
2461
2124
|
}
|
|
2462
2125
|
});
|
|
@@ -2471,73 +2134,49 @@ var SyntheticsApiResponseProcessor = /** @class */ (function () {
|
|
|
2471
2134
|
*/
|
|
2472
2135
|
SyntheticsApiResponseProcessor.prototype.updateBrowserTest = function (response) {
|
|
2473
2136
|
return __awaiter(this, void 0, void 0, function () {
|
|
2474
|
-
var contentType,
|
|
2475
|
-
return __generator(this, function (
|
|
2476
|
-
switch (
|
|
2137
|
+
var contentType, body_71, _a, _b, _c, _d, bodyText, _e, _f, body_72, body_73, _g, _h, _j, _k, body;
|
|
2138
|
+
return __generator(this, function (_l) {
|
|
2139
|
+
switch (_l.label) {
|
|
2477
2140
|
case 0:
|
|
2478
2141
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2479
|
-
if (!(
|
|
2142
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
2480
2143
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2481
2144
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2482
2145
|
return [4 /*yield*/, response.body.text()];
|
|
2483
2146
|
case 1:
|
|
2484
|
-
|
|
2485
|
-
"SyntheticsBrowserTest"
|
|
2486
|
-
|
|
2487
|
-
return [2 /*return*/, body_116];
|
|
2147
|
+
body_71 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
2148
|
+
"SyntheticsBrowserTest"]);
|
|
2149
|
+
return [2 /*return*/, body_71];
|
|
2488
2150
|
case 2:
|
|
2489
|
-
if (!(
|
|
2490
|
-
|
|
2491
|
-
|
|
2151
|
+
if (!(response.httpStatusCode == 400 ||
|
|
2152
|
+
response.httpStatusCode == 403 ||
|
|
2153
|
+
response.httpStatusCode == 404 ||
|
|
2154
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
2155
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2492
2156
|
return [4 /*yield*/, response.body.text()];
|
|
2493
2157
|
case 3:
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
""
|
|
2497
|
-
|
|
2158
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
2159
|
+
try {
|
|
2160
|
+
body_72 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
2161
|
+
}
|
|
2162
|
+
catch (error) {
|
|
2163
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
2164
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
2165
|
+
}
|
|
2166
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_72);
|
|
2498
2167
|
case 4:
|
|
2499
|
-
if (!(
|
|
2500
|
-
|
|
2501
|
-
|
|
2168
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
2169
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2170
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2502
2171
|
return [4 /*yield*/, response.body.text()];
|
|
2503
2172
|
case 5:
|
|
2504
|
-
|
|
2505
|
-
"APIErrorResponse",
|
|
2506
|
-
""]);
|
|
2507
|
-
throw new exception_1.ApiException(403, body_118);
|
|
2508
|
-
case 6:
|
|
2509
|
-
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
2510
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2511
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2512
|
-
return [4 /*yield*/, response.body.text()];
|
|
2513
|
-
case 7:
|
|
2514
|
-
body_119 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
|
|
2515
|
-
"APIErrorResponse",
|
|
2516
|
-
""]);
|
|
2517
|
-
throw new exception_1.ApiException(404, body_119);
|
|
2518
|
-
case 8:
|
|
2519
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
|
|
2520
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2521
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2522
|
-
return [4 /*yield*/, response.body.text()];
|
|
2523
|
-
case 9:
|
|
2524
|
-
body_120 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
|
|
2525
|
-
"APIErrorResponse",
|
|
2526
|
-
""]);
|
|
2527
|
-
throw new exception_1.ApiException(429, body_120);
|
|
2528
|
-
case 10:
|
|
2529
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
|
|
2530
|
-
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2531
|
-
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2532
|
-
return [4 /*yield*/, response.body.text()];
|
|
2533
|
-
case 11:
|
|
2534
|
-
body_121 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
|
|
2173
|
+
body_73 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
2535
2174
|
"SyntheticsBrowserTest",
|
|
2536
2175
|
""]);
|
|
2537
|
-
return [2 /*return*/,
|
|
2538
|
-
case
|
|
2539
|
-
case
|
|
2540
|
-
body = (
|
|
2176
|
+
return [2 /*return*/, body_73];
|
|
2177
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
2178
|
+
case 7:
|
|
2179
|
+
body = (_l.sent()) || "";
|
|
2541
2180
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
2542
2181
|
}
|
|
2543
2182
|
});
|
|
@@ -2552,53 +2191,46 @@ var SyntheticsApiResponseProcessor = /** @class */ (function () {
|
|
|
2552
2191
|
*/
|
|
2553
2192
|
SyntheticsApiResponseProcessor.prototype.updatePrivateLocation = function (response) {
|
|
2554
2193
|
return __awaiter(this, void 0, void 0, function () {
|
|
2555
|
-
var contentType,
|
|
2556
|
-
return __generator(this, function (
|
|
2557
|
-
switch (
|
|
2194
|
+
var contentType, body_74, _a, _b, _c, _d, bodyText, _e, _f, body_75, body_76, _g, _h, _j, _k, body;
|
|
2195
|
+
return __generator(this, function (_l) {
|
|
2196
|
+
switch (_l.label) {
|
|
2558
2197
|
case 0:
|
|
2559
2198
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2560
|
-
if (!(
|
|
2199
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
2561
2200
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2562
2201
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2563
2202
|
return [4 /*yield*/, response.body.text()];
|
|
2564
2203
|
case 1:
|
|
2565
|
-
|
|
2566
|
-
"SyntheticsPrivateLocation"
|
|
2567
|
-
|
|
2568
|
-
return [2 /*return*/, body_122];
|
|
2204
|
+
body_74 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
2205
|
+
"SyntheticsPrivateLocation"]);
|
|
2206
|
+
return [2 /*return*/, body_74];
|
|
2569
2207
|
case 2:
|
|
2570
|
-
if (!(
|
|
2571
|
-
_f = (_e = ObjectSerializer_1.ObjectSerializer).
|
|
2572
|
-
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2208
|
+
if (!(response.httpStatusCode == 404 || response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
2209
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2573
2210
|
return [4 /*yield*/, response.body.text()];
|
|
2574
2211
|
case 3:
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
""
|
|
2578
|
-
|
|
2212
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
2213
|
+
try {
|
|
2214
|
+
body_75 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
2215
|
+
}
|
|
2216
|
+
catch (error) {
|
|
2217
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
2218
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
2219
|
+
}
|
|
2220
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_75);
|
|
2579
2221
|
case 4:
|
|
2580
|
-
if (!(
|
|
2581
|
-
|
|
2582
|
-
|
|
2222
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
2223
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2224
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2583
2225
|
return [4 /*yield*/, response.body.text()];
|
|
2584
2226
|
case 5:
|
|
2585
|
-
|
|
2586
|
-
"APIErrorResponse",
|
|
2587
|
-
""]);
|
|
2588
|
-
throw new exception_1.ApiException(429, body_124);
|
|
2589
|
-
case 6:
|
|
2590
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 8];
|
|
2591
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2592
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2593
|
-
return [4 /*yield*/, response.body.text()];
|
|
2594
|
-
case 7:
|
|
2595
|
-
body_125 = _p.apply(_o, [_r.apply(_q, [_s.sent(), contentType]),
|
|
2227
|
+
body_76 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
2596
2228
|
"SyntheticsPrivateLocation",
|
|
2597
2229
|
""]);
|
|
2598
|
-
return [2 /*return*/,
|
|
2599
|
-
case
|
|
2600
|
-
case
|
|
2601
|
-
body = (
|
|
2230
|
+
return [2 /*return*/, body_76];
|
|
2231
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
2232
|
+
case 7:
|
|
2233
|
+
body = (_l.sent()) || "";
|
|
2602
2234
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
2603
2235
|
}
|
|
2604
2236
|
});
|
|
@@ -2613,73 +2245,49 @@ var SyntheticsApiResponseProcessor = /** @class */ (function () {
|
|
|
2613
2245
|
*/
|
|
2614
2246
|
SyntheticsApiResponseProcessor.prototype.updateTestPauseStatus = function (response) {
|
|
2615
2247
|
return __awaiter(this, void 0, void 0, function () {
|
|
2616
|
-
var contentType,
|
|
2617
|
-
return __generator(this, function (
|
|
2618
|
-
switch (
|
|
2248
|
+
var contentType, body_77, _a, _b, _c, _d, bodyText, _e, _f, body_78, body_79, _g, _h, _j, _k, body;
|
|
2249
|
+
return __generator(this, function (_l) {
|
|
2250
|
+
switch (_l.label) {
|
|
2619
2251
|
case 0:
|
|
2620
2252
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2621
|
-
if (!(
|
|
2253
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
2622
2254
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2623
2255
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2624
2256
|
return [4 /*yield*/, response.body.text()];
|
|
2625
2257
|
case 1:
|
|
2626
|
-
|
|
2627
|
-
"boolean"
|
|
2628
|
-
|
|
2629
|
-
return [2 /*return*/, body_126];
|
|
2258
|
+
body_77 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
2259
|
+
"boolean"]);
|
|
2260
|
+
return [2 /*return*/, body_77];
|
|
2630
2261
|
case 2:
|
|
2631
|
-
if (!(
|
|
2632
|
-
|
|
2633
|
-
|
|
2262
|
+
if (!(response.httpStatusCode == 400 ||
|
|
2263
|
+
response.httpStatusCode == 403 ||
|
|
2264
|
+
response.httpStatusCode == 404 ||
|
|
2265
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
2266
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2634
2267
|
return [4 /*yield*/, response.body.text()];
|
|
2635
2268
|
case 3:
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
""
|
|
2639
|
-
|
|
2269
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
2270
|
+
try {
|
|
2271
|
+
body_78 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
2272
|
+
}
|
|
2273
|
+
catch (error) {
|
|
2274
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
2275
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
2276
|
+
}
|
|
2277
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_78);
|
|
2640
2278
|
case 4:
|
|
2641
|
-
if (!(
|
|
2642
|
-
|
|
2643
|
-
|
|
2279
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
2280
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2281
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2644
2282
|
return [4 /*yield*/, response.body.text()];
|
|
2645
2283
|
case 5:
|
|
2646
|
-
|
|
2647
|
-
"APIErrorResponse",
|
|
2648
|
-
""]);
|
|
2649
|
-
throw new exception_1.ApiException(403, body_128);
|
|
2650
|
-
case 6:
|
|
2651
|
-
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
2652
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2653
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2654
|
-
return [4 /*yield*/, response.body.text()];
|
|
2655
|
-
case 7:
|
|
2656
|
-
body_129 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
|
|
2657
|
-
"APIErrorResponse",
|
|
2658
|
-
""]);
|
|
2659
|
-
throw new exception_1.ApiException(404, body_129);
|
|
2660
|
-
case 8:
|
|
2661
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
|
|
2662
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2663
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2664
|
-
return [4 /*yield*/, response.body.text()];
|
|
2665
|
-
case 9:
|
|
2666
|
-
body_130 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
|
|
2667
|
-
"APIErrorResponse",
|
|
2668
|
-
""]);
|
|
2669
|
-
throw new exception_1.ApiException(429, body_130);
|
|
2670
|
-
case 10:
|
|
2671
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
|
|
2672
|
-
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2673
|
-
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2674
|
-
return [4 /*yield*/, response.body.text()];
|
|
2675
|
-
case 11:
|
|
2676
|
-
body_131 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
|
|
2284
|
+
body_79 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
2677
2285
|
"boolean",
|
|
2678
2286
|
""]);
|
|
2679
|
-
return [2 /*return*/,
|
|
2680
|
-
case
|
|
2681
|
-
case
|
|
2682
|
-
body = (
|
|
2287
|
+
return [2 /*return*/, body_79];
|
|
2288
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
2289
|
+
case 7:
|
|
2290
|
+
body = (_l.sent()) || "";
|
|
2683
2291
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
2684
2292
|
}
|
|
2685
2293
|
});
|