@datadog/datadog-api-client 1.2.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +54 -0
- package/LICENSE-3rdparty.csv +1 -0
- package/README.md +120 -3
- package/dist/packages/datadog-api-client-common/configuration.d.ts +5 -1
- package/dist/packages/datadog-api-client-common/configuration.js +3 -6
- package/dist/packages/datadog-api-client-common/configuration.js.map +1 -1
- package/dist/packages/datadog-api-client-common/http/http.d.ts +2 -0
- package/dist/packages/datadog-api-client-common/http/isomorphic-fetch.d.ts +2 -1
- package/dist/packages/datadog-api-client-common/http/isomorphic-fetch.js +11 -5
- package/dist/packages/datadog-api-client-common/http/isomorphic-fetch.js.map +1 -1
- package/dist/packages/datadog-api-client-common/servers.js.map +1 -1
- package/dist/packages/datadog-api-client-common/util.d.ts +0 -9
- package/dist/packages/datadog-api-client-common/util.js +1 -32
- package/dist/packages/datadog-api-client-common/util.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/AWSIntegrationApi.js +262 -407
- package/dist/packages/datadog-api-client-v1/apis/AWSIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/AWSLogsIntegrationApi.js +201 -291
- package/dist/packages/datadog-api-client-v1/apis/AWSLogsIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/AuthenticationApi.js +27 -33
- package/dist/packages/datadog-api-client-v1/apis/AuthenticationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/AzureIntegrationApi.js +145 -215
- package/dist/packages/datadog-api-client-v1/apis/AzureIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/DashboardListsApi.js +144 -215
- package/dist/packages/datadog-api-client-v1/apis/DashboardListsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/DashboardsApi.js +198 -313
- package/dist/packages/datadog-api-client-v1/apis/DashboardsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/DowntimesApi.js +201 -308
- package/dist/packages/datadog-api-client-v1/apis/DowntimesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/EventsApi.js +85 -119
- package/dist/packages/datadog-api-client-v1/apis/EventsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/GCPIntegrationApi.js +116 -172
- package/dist/packages/datadog-api-client-v1/apis/GCPIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/HostsApi.js +116 -172
- package/dist/packages/datadog-api-client-v1/apis/HostsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/IPRangesApi.js +23 -19
- package/dist/packages/datadog-api-client-v1/apis/IPRangesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/KeyManagementApi.js +291 -460
- package/dist/packages/datadog-api-client-v1/apis/KeyManagementApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/LogsApi.js +75 -67
- package/dist/packages/datadog-api-client-v1/apis/LogsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/LogsIndexesApi.js +210 -226
- package/dist/packages/datadog-api-client-v1/apis/LogsIndexesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/LogsPipelinesApi.js +246 -272
- package/dist/packages/datadog-api-client-v1/apis/LogsPipelinesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/MetricsApi.js +208 -351
- package/dist/packages/datadog-api-client-v1/apis/MetricsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/MonitorsApi.js +295 -490
- package/dist/packages/datadog-api-client-v1/apis/MonitorsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/NotebooksApi.js +146 -251
- package/dist/packages/datadog-api-client-v1/apis/NotebooksApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/OrganizationsApi.js +173 -258
- package/dist/packages/datadog-api-client-v1/apis/OrganizationsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/PagerDutyIntegrationApi.js +111 -174
- package/dist/packages/datadog-api-client-v1/apis/PagerDutyIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/SecurityMonitoringApi.js +90 -159
- package/dist/packages/datadog-api-client-v1/apis/SecurityMonitoringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/ServiceChecksApi.js +31 -63
- package/dist/packages/datadog-api-client-v1/apis/ServiceChecksApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectiveCorrectionsApi.js +142 -221
- package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectiveCorrectionsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.d.ts +8 -1
- package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.js +298 -492
- package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/SlackIntegrationApi.js +147 -261
- package/dist/packages/datadog-api-client-v1/apis/SlackIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/SnapshotsApi.js +29 -43
- package/dist/packages/datadog-api-client-v1/apis/SnapshotsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/SyntheticsApi.js +765 -1130
- package/dist/packages/datadog-api-client-v1/apis/SyntheticsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/TagsApi.js +142 -211
- package/dist/packages/datadog-api-client-v1/apis/TagsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.d.ts +37 -27
- package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.js +1129 -1641
- package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/UsersApi.js +146 -235
- package/dist/packages/datadog-api-client-v1/apis/UsersApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/WebhooksIntegrationApi.js +230 -376
- package/dist/packages/datadog-api-client-v1/apis/WebhooksIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/index.d.ts +23 -0
- package/dist/packages/datadog-api-client-v1/index.js +37 -7
- package/dist/packages/datadog-api-client-v1/index.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariable.d.ts +5 -1
- package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariable.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariable.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariablePresetValue.d.ts +5 -1
- package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariablePresetValue.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariablePresetValue.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryDefinition.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryDefinition.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryDefinition.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventsDataSource.d.ts +2 -1
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventsDataSource.js +2 -1
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventsDataSource.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.d.ts +3 -1
- package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.js +3 -1
- package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/ListStreamQuery.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/ListStreamQuery.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/ListStreamQuery.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/ListStreamSource.d.ts +2 -1
- package/dist/packages/datadog-api-client-v1/models/ListStreamSource.js +2 -1
- package/dist/packages/datadog-api-client-v1/models/ListStreamSource.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/MetricContentEncoding.d.ts +2 -1
- package/dist/packages/datadog-api-client-v1/models/MetricContentEncoding.js +2 -1
- package/dist/packages/datadog-api-client-v1/models/MetricContentEncoding.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/MonitorOptions.d.ts +16 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorOptions.js +8 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorOptions.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/MonitorSummaryWidgetDefinition.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorSummaryWidgetDefinition.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorSummaryWidgetDefinition.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.d.ts +5 -1
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.js +6 -1
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.d.ts +16 -0
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.js +20 -0
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js +71 -3
- package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/OnMissingDataOption.d.ts +10 -0
- package/dist/packages/datadog-api-client-v1/models/OnMissingDataOption.js +13 -0
- package/dist/packages/datadog-api-client-v1/models/OnMissingDataOption.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLOCreator.d.ts +36 -0
- package/dist/packages/datadog-api-client-v1/models/SLOCreator.js +42 -0
- package/dist/packages/datadog-api-client-v1/models/SLOCreator.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinition.d.ts +47 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinition.js +46 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinition.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinitionType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinitionType.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinitionType.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetQuery.d.ts +32 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetQuery.js +39 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetQuery.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequest.d.ts +34 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequest.js +34 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequestType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequestType.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequestType.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLOOverallStatuses.d.ts +55 -0
- package/dist/packages/datadog-api-client-v1/models/SLOOverallStatuses.js +56 -0
- package/dist/packages/datadog-api-client-v1/models/SLOOverallStatuses.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLORawErrorBudgetRemaining.d.ts +32 -0
- package/dist/packages/datadog-api-client-v1/models/SLORawErrorBudgetRemaining.js +38 -0
- package/dist/packages/datadog-api-client-v1/models/SLORawErrorBudgetRemaining.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOQuery.d.ts +39 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOQuery.js +43 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOQuery.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributes.d.ts +2 -2
- package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributes.js +3 -3
- package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SearchSLOThreshold.d.ts +54 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOThreshold.js +48 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOThreshold.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOTimeframe.d.ts +9 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOTimeframe.js +12 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOTimeframe.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjective.d.ts +29 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjective.js +28 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjective.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveAttributes.d.ts +103 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveAttributes.js +88 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveData.d.ts +40 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveData.js +36 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveData.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsAssertionOperator.d.ts +2 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsAssertionOperator.js +2 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsAssertionOperator.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuth.d.ts +2 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigest.d.ts +37 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigest.js +38 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigest.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigestType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigestType.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsBasicAuthDigestType.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptions.d.ts +5 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptions.js +4 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptions.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptionsType.d.ts +2 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptionsType.js +2 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsGlobalVariableParseTestOptionsType.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestOptions.d.ts +12 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestOptions.js +13 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestOptions.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestProcessStatus.d.ts +1 -2
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestProcessStatus.js +1 -2
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestProcessStatus.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestRequest.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestRequest.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsTestRequest.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinition.d.ts +52 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinition.js +50 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinition.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinitionType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinitionType.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinitionType.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyQuery.d.ts +37 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyQuery.js +36 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyQuery.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyQueryDataSource.d.ts +8 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyQueryDataSource.js +11 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyQueryDataSource.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyRequest.d.ts +34 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyRequest.js +32 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyRequestType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyRequestType.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyRequestType.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionSort.d.ts +5 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionSort.js +5 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionSort.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionSupportedMetrics.d.ts +5 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionSupportedMetrics.js +5 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionSupportedMetrics.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionValues.d.ts +16 -0
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionValues.js +20 -0
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionValues.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageBillableSummaryHour.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/UsageBillableSummaryHour.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/UsageBillableSummaryHour.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageCloudSecurityPostureManagementHour.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/UsageCloudSecurityPostureManagementHour.js +5 -0
- package/dist/packages/datadog-api-client-v1/models/UsageCloudSecurityPostureManagementHour.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageFargateHour.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/UsageFargateHour.js +5 -0
- package/dist/packages/datadog-api-client-v1/models/UsageFargateHour.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.d.ts +8 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.d.ts +12 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.js +14 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.d.ts +8 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/WidgetDefinition.d.ts +3 -1
- package/dist/packages/datadog-api-client-v1/models/WidgetMonitorSummarySort.d.ts +3 -1
- package/dist/packages/datadog-api-client-v1/models/WidgetMonitorSummarySort.js +3 -1
- package/dist/packages/datadog-api-client-v1/models/WidgetMonitorSummarySort.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/AuditApi.js +58 -86
- package/dist/packages/datadog-api-client-v2/apis/AuditApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/AuthNMappingsApi.js +144 -241
- package/dist/packages/datadog-api-client-v2/apis/AuthNMappingsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/CloudWorkloadSecurityApi.js +167 -260
- package/dist/packages/datadog-api-client-v2/apis/CloudWorkloadSecurityApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/DashboardListsApi.js +119 -202
- package/dist/packages/datadog-api-client-v2/apis/DashboardListsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/EventsApi.js +58 -86
- package/dist/packages/datadog-api-client-v2/apis/EventsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/IncidentServicesApi.js +151 -311
- package/dist/packages/datadog-api-client-v2/apis/IncidentServicesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/IncidentTeamsApi.js +151 -311
- package/dist/packages/datadog-api-client-v2/apis/IncidentTeamsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.d.ts +67 -0
- package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.js +365 -303
- package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/KeyManagementApi.js +403 -650
- package/dist/packages/datadog-api-client-v2/apis/KeyManagementApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/LogsApi.js +121 -222
- package/dist/packages/datadog-api-client-v2/apis/LogsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/LogsArchivesApi.js +285 -469
- package/dist/packages/datadog-api-client-v2/apis/LogsArchivesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/LogsMetricsApi.js +142 -221
- package/dist/packages/datadog-api-client-v2/apis/LogsMetricsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/MetricsApi.d.ts +41 -8
- package/dist/packages/datadog-api-client-v2/apis/MetricsApi.js +428 -560
- package/dist/packages/datadog-api-client-v2/apis/MetricsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/OpsgenieIntegrationApi.js +146 -261
- package/dist/packages/datadog-api-client-v2/apis/OpsgenieIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/OrganizationsApi.js +27 -40
- package/dist/packages/datadog-api-client-v2/apis/OrganizationsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/ProcessesApi.js +29 -43
- package/dist/packages/datadog-api-client-v2/apis/ProcessesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/RUMApi.d.ts +105 -0
- package/dist/packages/datadog-api-client-v2/apis/RUMApi.js +549 -122
- package/dist/packages/datadog-api-client-v2/apis/RUMApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/RolesApi.js +380 -625
- package/dist/packages/datadog-api-client-v2/apis/RolesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.d.ts +21 -0
- package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.js +522 -688
- package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/ServiceAccountsApi.js +144 -231
- package/dist/packages/datadog-api-client-v2/apis/ServiceAccountsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.d.ts +43 -6
- package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.js +284 -265
- package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/UsersApi.js +289 -446
- package/dist/packages/datadog-api-client-v2/apis/UsersApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/index.d.ts +49 -6
- package/dist/packages/datadog-api-client-v2/index.js +69 -15
- package/dist/packages/datadog-api-client-v2/index.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/ContentEncoding.d.ts +2 -1
- package/dist/packages/datadog-api-client-v2/models/ContentEncoding.js +2 -1
- package/dist/packages/datadog-api-client-v2/models/ContentEncoding.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttachmentType.d.ts +8 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttachmentType.js +11 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttachmentType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttributes.d.ts +12 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttributes.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentData.d.ts +43 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentData.js +44 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttachmentType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttachmentType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttachmentType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributes.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributes.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributesAttachmentObject.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributesAttachmentObject.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributesAttachmentObject.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttachmentType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttachmentType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttachmentType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttributes.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttributes.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelatedObject.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelatedObject.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelatedObject.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelationships.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelationships.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelationships.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateAttributes.d.ts +12 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateAttributes.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateData.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateData.js +37 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateRequest.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateRequest.js +29 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateResponse.d.ts +35 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateResponse.js +33 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsPostmortemAttributesAttachmentObject.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsPostmortemAttributesAttachmentObject.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsPostmortemAttributesAttachmentObject.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponse.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponse.js +33 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponseIncludedItem.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponseIncludedItem.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponseIncludedItem.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentRelatedObject.d.ts +2 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentRelatedObject.js +2 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentRelatedObject.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseAttributes.d.ts +0 -4
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseAttributes.js +0 -4
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseIncludedItem.d.ts +2 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseRelationships.d.ts +5 -5
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseRelationships.js +4 -4
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseRelationships.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/MetricActiveConfigurationType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/MetricActiveConfigurationType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/MetricActiveConfigurationType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MetricContentEncoding.d.ts +3 -1
- package/dist/packages/datadog-api-client-v2/models/MetricContentEncoding.js +3 -1
- package/dist/packages/datadog-api-client-v2/models/MetricContentEncoding.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregations.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregations.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregations.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregationsResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregationsResponse.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregationsResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAttributes.d.ts +33 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAttributes.js +32 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js +98 -12
- package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/RUMApplication.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplication.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplication.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationAttributes.d.ts +60 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationAttributes.js +76 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreate.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreate.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreate.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateAttributes.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateAttributes.js +38 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateRequest.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateRequest.js +29 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationCreateType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationResponse.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdate.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdate.js +38 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdate.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateAttributes.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateAttributes.js +37 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateRequest.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateRequest.js +29 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationUpdateType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationsResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationsResponse.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/RUMApplicationsResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachment.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachment.js +29 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachment.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachmentData.d.ts +33 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachmentData.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachmentData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RoleUpdateData.d.ts +5 -0
- package/dist/packages/datadog-api-client-v2/models/RoleUpdateData.js +4 -0
- package/dist/packages/datadog-api-client-v2/models/RoleUpdateData.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCreatePayload.d.ts +4 -61
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCreatePayload.js +0 -67
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCreatePayload.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQuery.d.ts +4 -46
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQuery.js +0 -49
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQuery.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryAggregation.d.ts +2 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryAggregation.js +2 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryAggregation.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleResponse.d.ts +5 -90
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleResponse.js +0 -93
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleResponse.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleCreatePayload.d.ts +69 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleCreatePayload.js +70 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleCreatePayload.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleQuery.d.ts +49 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleQuery.js +50 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleQuery.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponse.d.ts +97 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponse.js +96 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleCreatePayload.d.ts +69 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleCreatePayload.js +70 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleCreatePayload.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/{SecurityMonitoringRuleQueryCreate.d.ts → SecurityMonitoringStandardRuleQuery.d.ts} +1 -1
- package/dist/packages/datadog-api-client-v2/models/{SecurityMonitoringRuleQueryCreate.js → SecurityMonitoringStandardRuleQuery.js} +9 -9
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleQuery.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleResponse.d.ts +97 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleResponse.js +96 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleResponse.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -2
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryCreate.js.map +0 -1
|
@@ -58,7 +58,6 @@ var http_1 = require("../../datadog-api-client-common/http/http");
|
|
|
58
58
|
var logger_1 = require("../../../logger");
|
|
59
59
|
var ObjectSerializer_1 = require("../models/ObjectSerializer");
|
|
60
60
|
var exception_1 = require("../../datadog-api-client-common/exception");
|
|
61
|
-
var util_1 = require("../../datadog-api-client-common/util");
|
|
62
61
|
var UsageMeteringApiRequestFactory = /** @class */ (function (_super) {
|
|
63
62
|
__extends(UsageMeteringApiRequestFactory, _super);
|
|
64
63
|
function UsageMeteringApiRequestFactory() {
|
|
@@ -69,10 +68,6 @@ var UsageMeteringApiRequestFactory = /** @class */ (function (_super) {
|
|
|
69
68
|
var _config, localVarPath, requestContext;
|
|
70
69
|
return __generator(this, function (_a) {
|
|
71
70
|
_config = _options || this.configuration;
|
|
72
|
-
logger_1.logger.warn("Using unstable operation 'getDailyCustomReports'");
|
|
73
|
-
if (!_config.unstableOperations["v1.getDailyCustomReports"]) {
|
|
74
|
-
throw new Error("Unstable operation 'getDailyCustomReports' is disabled");
|
|
75
|
-
}
|
|
76
71
|
localVarPath = "/api/v1/daily_custom_reports";
|
|
77
72
|
requestContext = (0, configuration_1.getServer)(_config, "v1.UsageMeteringApi.getDailyCustomReports").makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
78
73
|
requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339");
|
|
@@ -211,10 +206,6 @@ var UsageMeteringApiRequestFactory = /** @class */ (function (_super) {
|
|
|
211
206
|
var _config, localVarPath, requestContext;
|
|
212
207
|
return __generator(this, function (_a) {
|
|
213
208
|
_config = _options || this.configuration;
|
|
214
|
-
logger_1.logger.warn("Using unstable operation 'getMonthlyCustomReports'");
|
|
215
|
-
if (!_config.unstableOperations["v1.getMonthlyCustomReports"]) {
|
|
216
|
-
throw new Error("Unstable operation 'getMonthlyCustomReports' is disabled");
|
|
217
|
-
}
|
|
218
209
|
localVarPath = "/api/v1/monthly_custom_reports";
|
|
219
210
|
requestContext = (0, configuration_1.getServer)(_config, "v1.UsageMeteringApi.getMonthlyCustomReports").makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
220
211
|
requestContext.setHeaderParam("Accept", "application/json;datetime-format=rfc3339");
|
|
@@ -299,10 +290,6 @@ var UsageMeteringApiRequestFactory = /** @class */ (function (_super) {
|
|
|
299
290
|
var _config, localVarPath, requestContext;
|
|
300
291
|
return __generator(this, function (_a) {
|
|
301
292
|
_config = _options || this.configuration;
|
|
302
|
-
logger_1.logger.warn("Using unstable operation 'getSpecifiedDailyCustomReports'");
|
|
303
|
-
if (!_config.unstableOperations["v1.getSpecifiedDailyCustomReports"]) {
|
|
304
|
-
throw new Error("Unstable operation 'getSpecifiedDailyCustomReports' is disabled");
|
|
305
|
-
}
|
|
306
293
|
// verify required parameter 'reportId' is not null or undefined
|
|
307
294
|
if (reportId === null || reportId === undefined) {
|
|
308
295
|
throw new baseapi_1.RequiredError("Required parameter reportId was null or undefined when calling getSpecifiedDailyCustomReports.");
|
|
@@ -326,10 +313,6 @@ var UsageMeteringApiRequestFactory = /** @class */ (function (_super) {
|
|
|
326
313
|
var _config, localVarPath, requestContext;
|
|
327
314
|
return __generator(this, function (_a) {
|
|
328
315
|
_config = _options || this.configuration;
|
|
329
|
-
logger_1.logger.warn("Using unstable operation 'getSpecifiedMonthlyCustomReports'");
|
|
330
|
-
if (!_config.unstableOperations["v1.getSpecifiedMonthlyCustomReports"]) {
|
|
331
|
-
throw new Error("Unstable operation 'getSpecifiedMonthlyCustomReports' is disabled");
|
|
332
|
-
}
|
|
333
316
|
// verify required parameter 'reportId' is not null or undefined
|
|
334
317
|
if (reportId === null || reportId === undefined) {
|
|
335
318
|
throw new baseapi_1.RequiredError("Required parameter reportId was null or undefined when calling getSpecifiedMonthlyCustomReports.");
|
|
@@ -383,10 +366,6 @@ var UsageMeteringApiRequestFactory = /** @class */ (function (_super) {
|
|
|
383
366
|
var _config, localVarPath, requestContext;
|
|
384
367
|
return __generator(this, function (_a) {
|
|
385
368
|
_config = _options || this.configuration;
|
|
386
|
-
logger_1.logger.warn("Using unstable operation 'getUsageAttribution'");
|
|
387
|
-
if (!_config.unstableOperations["v1.getUsageAttribution"]) {
|
|
388
|
-
throw new Error("Unstable operation 'getUsageAttribution' is disabled");
|
|
389
|
-
}
|
|
390
369
|
// verify required parameter 'startMonth' is not null or undefined
|
|
391
370
|
if (startMonth === null || startMonth === undefined) {
|
|
392
371
|
throw new baseapi_1.RequiredError("Required parameter startMonth was null or undefined when calling getUsageAttribution.");
|
|
@@ -1296,53 +1275,47 @@ var UsageMeteringApiResponseProcessor = /** @class */ (function () {
|
|
|
1296
1275
|
*/
|
|
1297
1276
|
UsageMeteringApiResponseProcessor.prototype.getDailyCustomReports = function (response) {
|
|
1298
1277
|
return __awaiter(this, void 0, void 0, function () {
|
|
1299
|
-
var contentType, body_1, _a, _b, _c, _d,
|
|
1300
|
-
return __generator(this, function (
|
|
1301
|
-
switch (
|
|
1278
|
+
var contentType, body_1, _a, _b, _c, _d, bodyText, _e, _f, body_2, body_3, _g, _h, _j, _k, body;
|
|
1279
|
+
return __generator(this, function (_l) {
|
|
1280
|
+
switch (_l.label) {
|
|
1302
1281
|
case 0:
|
|
1303
1282
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1304
|
-
if (!(
|
|
1283
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
1305
1284
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1306
1285
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1307
1286
|
return [4 /*yield*/, response.body.text()];
|
|
1308
1287
|
case 1:
|
|
1309
|
-
body_1 = _b.apply(_a, [_d.apply(_c, [
|
|
1310
|
-
"UsageCustomReportsResponse"
|
|
1311
|
-
""]);
|
|
1288
|
+
body_1 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
1289
|
+
"UsageCustomReportsResponse"]);
|
|
1312
1290
|
return [2 /*return*/, body_1];
|
|
1313
1291
|
case 2:
|
|
1314
|
-
if (!(
|
|
1315
|
-
_f = (_e = ObjectSerializer_1.ObjectSerializer).
|
|
1316
|
-
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1292
|
+
if (!(response.httpStatusCode == 403 || response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
1293
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1317
1294
|
return [4 /*yield*/, response.body.text()];
|
|
1318
1295
|
case 3:
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
""
|
|
1322
|
-
|
|
1296
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
1297
|
+
try {
|
|
1298
|
+
body_2 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1299
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_2);
|
|
1300
|
+
}
|
|
1301
|
+
catch (error) {
|
|
1302
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
1303
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1304
|
+
}
|
|
1305
|
+
_l.label = 4;
|
|
1323
1306
|
case 4:
|
|
1324
|
-
if (!(
|
|
1325
|
-
|
|
1326
|
-
|
|
1307
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
1308
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1309
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1327
1310
|
return [4 /*yield*/, response.body.text()];
|
|
1328
1311
|
case 5:
|
|
1329
|
-
body_3 =
|
|
1330
|
-
"APIErrorResponse",
|
|
1331
|
-
""]);
|
|
1332
|
-
throw new exception_1.ApiException(429, body_3);
|
|
1333
|
-
case 6:
|
|
1334
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 8];
|
|
1335
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1336
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1337
|
-
return [4 /*yield*/, response.body.text()];
|
|
1338
|
-
case 7:
|
|
1339
|
-
body_4 = _p.apply(_o, [_r.apply(_q, [_s.sent(), contentType]),
|
|
1312
|
+
body_3 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
1340
1313
|
"UsageCustomReportsResponse",
|
|
1341
1314
|
""]);
|
|
1342
|
-
return [2 /*return*/,
|
|
1343
|
-
case
|
|
1344
|
-
case
|
|
1345
|
-
body = (
|
|
1315
|
+
return [2 /*return*/, body_3];
|
|
1316
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
1317
|
+
case 7:
|
|
1318
|
+
body = (_l.sent()) || "";
|
|
1346
1319
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1347
1320
|
}
|
|
1348
1321
|
});
|
|
@@ -1357,53 +1330,47 @@ var UsageMeteringApiResponseProcessor = /** @class */ (function () {
|
|
|
1357
1330
|
*/
|
|
1358
1331
|
UsageMeteringApiResponseProcessor.prototype.getHourlyUsageAttribution = function (response) {
|
|
1359
1332
|
return __awaiter(this, void 0, void 0, function () {
|
|
1360
|
-
var contentType,
|
|
1361
|
-
return __generator(this, function (
|
|
1362
|
-
switch (
|
|
1333
|
+
var contentType, body_4, _a, _b, _c, _d, bodyText, _e, _f, body_5, body_6, _g, _h, _j, _k, body;
|
|
1334
|
+
return __generator(this, function (_l) {
|
|
1335
|
+
switch (_l.label) {
|
|
1363
1336
|
case 0:
|
|
1364
1337
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1365
|
-
if (!(
|
|
1338
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
1366
1339
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1367
1340
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1368
1341
|
return [4 /*yield*/, response.body.text()];
|
|
1369
1342
|
case 1:
|
|
1370
|
-
|
|
1371
|
-
"HourlyUsageAttributionResponse"
|
|
1372
|
-
|
|
1373
|
-
return [2 /*return*/, body_5];
|
|
1343
|
+
body_4 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
1344
|
+
"HourlyUsageAttributionResponse"]);
|
|
1345
|
+
return [2 /*return*/, body_4];
|
|
1374
1346
|
case 2:
|
|
1375
|
-
if (!(
|
|
1376
|
-
_f = (_e = ObjectSerializer_1.ObjectSerializer).
|
|
1377
|
-
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1347
|
+
if (!(response.httpStatusCode == 403 || response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
1348
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1378
1349
|
return [4 /*yield*/, response.body.text()];
|
|
1379
1350
|
case 3:
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
""
|
|
1383
|
-
|
|
1351
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
1352
|
+
try {
|
|
1353
|
+
body_5 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1354
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_5);
|
|
1355
|
+
}
|
|
1356
|
+
catch (error) {
|
|
1357
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
1358
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1359
|
+
}
|
|
1360
|
+
_l.label = 4;
|
|
1384
1361
|
case 4:
|
|
1385
|
-
if (!(
|
|
1386
|
-
|
|
1387
|
-
|
|
1362
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
1363
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1364
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1388
1365
|
return [4 /*yield*/, response.body.text()];
|
|
1389
1366
|
case 5:
|
|
1390
|
-
|
|
1391
|
-
"APIErrorResponse",
|
|
1392
|
-
""]);
|
|
1393
|
-
throw new exception_1.ApiException(429, body_7);
|
|
1394
|
-
case 6:
|
|
1395
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 8];
|
|
1396
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1397
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1398
|
-
return [4 /*yield*/, response.body.text()];
|
|
1399
|
-
case 7:
|
|
1400
|
-
body_8 = _p.apply(_o, [_r.apply(_q, [_s.sent(), contentType]),
|
|
1367
|
+
body_6 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
1401
1368
|
"HourlyUsageAttributionResponse",
|
|
1402
1369
|
""]);
|
|
1403
|
-
return [2 /*return*/,
|
|
1404
|
-
case
|
|
1405
|
-
case
|
|
1406
|
-
body = (
|
|
1370
|
+
return [2 /*return*/, body_6];
|
|
1371
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
1372
|
+
case 7:
|
|
1373
|
+
body = (_l.sent()) || "";
|
|
1407
1374
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1408
1375
|
}
|
|
1409
1376
|
});
|
|
@@ -1418,63 +1385,49 @@ var UsageMeteringApiResponseProcessor = /** @class */ (function () {
|
|
|
1418
1385
|
*/
|
|
1419
1386
|
UsageMeteringApiResponseProcessor.prototype.getIncidentManagement = function (response) {
|
|
1420
1387
|
return __awaiter(this, void 0, void 0, function () {
|
|
1421
|
-
var contentType,
|
|
1422
|
-
return __generator(this, function (
|
|
1423
|
-
switch (
|
|
1388
|
+
var contentType, body_7, _a, _b, _c, _d, bodyText, _e, _f, body_8, body_9, _g, _h, _j, _k, body;
|
|
1389
|
+
return __generator(this, function (_l) {
|
|
1390
|
+
switch (_l.label) {
|
|
1424
1391
|
case 0:
|
|
1425
1392
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1426
|
-
if (!(
|
|
1393
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
1427
1394
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1428
1395
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1429
1396
|
return [4 /*yield*/, response.body.text()];
|
|
1430
1397
|
case 1:
|
|
1431
|
-
|
|
1432
|
-
"UsageIncidentManagementResponse"
|
|
1433
|
-
|
|
1434
|
-
return [2 /*return*/, body_9];
|
|
1398
|
+
body_7 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
1399
|
+
"UsageIncidentManagementResponse"]);
|
|
1400
|
+
return [2 /*return*/, body_7];
|
|
1435
1401
|
case 2:
|
|
1436
|
-
if (!(
|
|
1437
|
-
|
|
1438
|
-
|
|
1402
|
+
if (!(response.httpStatusCode == 400 ||
|
|
1403
|
+
response.httpStatusCode == 403 ||
|
|
1404
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
1405
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1439
1406
|
return [4 /*yield*/, response.body.text()];
|
|
1440
1407
|
case 3:
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
""
|
|
1444
|
-
|
|
1408
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
1409
|
+
try {
|
|
1410
|
+
body_8 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1411
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_8);
|
|
1412
|
+
}
|
|
1413
|
+
catch (error) {
|
|
1414
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
1415
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1416
|
+
}
|
|
1417
|
+
_l.label = 4;
|
|
1445
1418
|
case 4:
|
|
1446
|
-
if (!(
|
|
1447
|
-
|
|
1448
|
-
|
|
1419
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
1420
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1421
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1449
1422
|
return [4 /*yield*/, response.body.text()];
|
|
1450
1423
|
case 5:
|
|
1451
|
-
|
|
1452
|
-
"APIErrorResponse",
|
|
1453
|
-
""]);
|
|
1454
|
-
throw new exception_1.ApiException(403, body_11);
|
|
1455
|
-
case 6:
|
|
1456
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
1457
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1458
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1459
|
-
return [4 /*yield*/, response.body.text()];
|
|
1460
|
-
case 7:
|
|
1461
|
-
body_12 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
1462
|
-
"APIErrorResponse",
|
|
1463
|
-
""]);
|
|
1464
|
-
throw new exception_1.ApiException(429, body_12);
|
|
1465
|
-
case 8:
|
|
1466
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
1467
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1468
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1469
|
-
return [4 /*yield*/, response.body.text()];
|
|
1470
|
-
case 9:
|
|
1471
|
-
body_13 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
1424
|
+
body_9 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
1472
1425
|
"UsageIncidentManagementResponse",
|
|
1473
1426
|
""]);
|
|
1474
|
-
return [2 /*return*/,
|
|
1475
|
-
case
|
|
1476
|
-
case
|
|
1477
|
-
body = (
|
|
1427
|
+
return [2 /*return*/, body_9];
|
|
1428
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
1429
|
+
case 7:
|
|
1430
|
+
body = (_l.sent()) || "";
|
|
1478
1431
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1479
1432
|
}
|
|
1480
1433
|
});
|
|
@@ -1489,63 +1442,49 @@ var UsageMeteringApiResponseProcessor = /** @class */ (function () {
|
|
|
1489
1442
|
*/
|
|
1490
1443
|
UsageMeteringApiResponseProcessor.prototype.getIngestedSpans = function (response) {
|
|
1491
1444
|
return __awaiter(this, void 0, void 0, function () {
|
|
1492
|
-
var contentType,
|
|
1493
|
-
return __generator(this, function (
|
|
1494
|
-
switch (
|
|
1445
|
+
var contentType, body_10, _a, _b, _c, _d, bodyText, _e, _f, body_11, body_12, _g, _h, _j, _k, body;
|
|
1446
|
+
return __generator(this, function (_l) {
|
|
1447
|
+
switch (_l.label) {
|
|
1495
1448
|
case 0:
|
|
1496
1449
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1497
|
-
if (!(
|
|
1450
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
1498
1451
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1499
1452
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1500
1453
|
return [4 /*yield*/, response.body.text()];
|
|
1501
1454
|
case 1:
|
|
1502
|
-
|
|
1503
|
-
"UsageIngestedSpansResponse"
|
|
1504
|
-
|
|
1505
|
-
return [2 /*return*/, body_14];
|
|
1455
|
+
body_10 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
1456
|
+
"UsageIngestedSpansResponse"]);
|
|
1457
|
+
return [2 /*return*/, body_10];
|
|
1506
1458
|
case 2:
|
|
1507
|
-
if (!(
|
|
1508
|
-
|
|
1509
|
-
|
|
1459
|
+
if (!(response.httpStatusCode == 400 ||
|
|
1460
|
+
response.httpStatusCode == 403 ||
|
|
1461
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
1462
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1510
1463
|
return [4 /*yield*/, response.body.text()];
|
|
1511
1464
|
case 3:
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
""
|
|
1515
|
-
|
|
1465
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
1466
|
+
try {
|
|
1467
|
+
body_11 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1468
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_11);
|
|
1469
|
+
}
|
|
1470
|
+
catch (error) {
|
|
1471
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
1472
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1473
|
+
}
|
|
1474
|
+
_l.label = 4;
|
|
1516
1475
|
case 4:
|
|
1517
|
-
if (!(
|
|
1518
|
-
|
|
1519
|
-
|
|
1476
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
1477
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1478
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1520
1479
|
return [4 /*yield*/, response.body.text()];
|
|
1521
1480
|
case 5:
|
|
1522
|
-
|
|
1523
|
-
"APIErrorResponse",
|
|
1524
|
-
""]);
|
|
1525
|
-
throw new exception_1.ApiException(403, body_16);
|
|
1526
|
-
case 6:
|
|
1527
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
1528
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1529
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1530
|
-
return [4 /*yield*/, response.body.text()];
|
|
1531
|
-
case 7:
|
|
1532
|
-
body_17 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
1533
|
-
"APIErrorResponse",
|
|
1534
|
-
""]);
|
|
1535
|
-
throw new exception_1.ApiException(429, body_17);
|
|
1536
|
-
case 8:
|
|
1537
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
1538
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1539
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1540
|
-
return [4 /*yield*/, response.body.text()];
|
|
1541
|
-
case 9:
|
|
1542
|
-
body_18 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
1481
|
+
body_12 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
1543
1482
|
"UsageIngestedSpansResponse",
|
|
1544
1483
|
""]);
|
|
1545
|
-
return [2 /*return*/,
|
|
1546
|
-
case
|
|
1547
|
-
case
|
|
1548
|
-
body = (
|
|
1484
|
+
return [2 /*return*/, body_12];
|
|
1485
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
1486
|
+
case 7:
|
|
1487
|
+
body = (_l.sent()) || "";
|
|
1549
1488
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1550
1489
|
}
|
|
1551
1490
|
});
|
|
@@ -1560,53 +1499,47 @@ var UsageMeteringApiResponseProcessor = /** @class */ (function () {
|
|
|
1560
1499
|
*/
|
|
1561
1500
|
UsageMeteringApiResponseProcessor.prototype.getMonthlyCustomReports = function (response) {
|
|
1562
1501
|
return __awaiter(this, void 0, void 0, function () {
|
|
1563
|
-
var contentType,
|
|
1564
|
-
return __generator(this, function (
|
|
1565
|
-
switch (
|
|
1502
|
+
var contentType, body_13, _a, _b, _c, _d, bodyText, _e, _f, body_14, body_15, _g, _h, _j, _k, body;
|
|
1503
|
+
return __generator(this, function (_l) {
|
|
1504
|
+
switch (_l.label) {
|
|
1566
1505
|
case 0:
|
|
1567
1506
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1568
|
-
if (!(
|
|
1507
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
1569
1508
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1570
1509
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1571
1510
|
return [4 /*yield*/, response.body.text()];
|
|
1572
1511
|
case 1:
|
|
1573
|
-
|
|
1574
|
-
"UsageCustomReportsResponse"
|
|
1575
|
-
|
|
1576
|
-
return [2 /*return*/, body_19];
|
|
1512
|
+
body_13 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
1513
|
+
"UsageCustomReportsResponse"]);
|
|
1514
|
+
return [2 /*return*/, body_13];
|
|
1577
1515
|
case 2:
|
|
1578
|
-
if (!(
|
|
1579
|
-
_f = (_e = ObjectSerializer_1.ObjectSerializer).
|
|
1580
|
-
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1516
|
+
if (!(response.httpStatusCode == 403 || response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
1517
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1581
1518
|
return [4 /*yield*/, response.body.text()];
|
|
1582
1519
|
case 3:
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
""
|
|
1586
|
-
|
|
1520
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
1521
|
+
try {
|
|
1522
|
+
body_14 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1523
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_14);
|
|
1524
|
+
}
|
|
1525
|
+
catch (error) {
|
|
1526
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
1527
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1528
|
+
}
|
|
1529
|
+
_l.label = 4;
|
|
1587
1530
|
case 4:
|
|
1588
|
-
if (!(
|
|
1589
|
-
|
|
1590
|
-
|
|
1531
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
1532
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1533
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1591
1534
|
return [4 /*yield*/, response.body.text()];
|
|
1592
1535
|
case 5:
|
|
1593
|
-
|
|
1594
|
-
"APIErrorResponse",
|
|
1595
|
-
""]);
|
|
1596
|
-
throw new exception_1.ApiException(429, body_21);
|
|
1597
|
-
case 6:
|
|
1598
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 8];
|
|
1599
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1600
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1601
|
-
return [4 /*yield*/, response.body.text()];
|
|
1602
|
-
case 7:
|
|
1603
|
-
body_22 = _p.apply(_o, [_r.apply(_q, [_s.sent(), contentType]),
|
|
1536
|
+
body_15 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
1604
1537
|
"UsageCustomReportsResponse",
|
|
1605
1538
|
""]);
|
|
1606
|
-
return [2 /*return*/,
|
|
1607
|
-
case
|
|
1608
|
-
case
|
|
1609
|
-
body = (
|
|
1539
|
+
return [2 /*return*/, body_15];
|
|
1540
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
1541
|
+
case 7:
|
|
1542
|
+
body = (_l.sent()) || "";
|
|
1610
1543
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1611
1544
|
}
|
|
1612
1545
|
});
|
|
@@ -1621,53 +1554,47 @@ var UsageMeteringApiResponseProcessor = /** @class */ (function () {
|
|
|
1621
1554
|
*/
|
|
1622
1555
|
UsageMeteringApiResponseProcessor.prototype.getMonthlyUsageAttribution = function (response) {
|
|
1623
1556
|
return __awaiter(this, void 0, void 0, function () {
|
|
1624
|
-
var contentType,
|
|
1625
|
-
return __generator(this, function (
|
|
1626
|
-
switch (
|
|
1557
|
+
var contentType, body_16, _a, _b, _c, _d, bodyText, _e, _f, body_17, body_18, _g, _h, _j, _k, body;
|
|
1558
|
+
return __generator(this, function (_l) {
|
|
1559
|
+
switch (_l.label) {
|
|
1627
1560
|
case 0:
|
|
1628
1561
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1629
|
-
if (!(
|
|
1562
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
1630
1563
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1631
1564
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1632
1565
|
return [4 /*yield*/, response.body.text()];
|
|
1633
1566
|
case 1:
|
|
1634
|
-
|
|
1635
|
-
"MonthlyUsageAttributionResponse"
|
|
1636
|
-
|
|
1637
|
-
return [2 /*return*/, body_23];
|
|
1567
|
+
body_16 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
1568
|
+
"MonthlyUsageAttributionResponse"]);
|
|
1569
|
+
return [2 /*return*/, body_16];
|
|
1638
1570
|
case 2:
|
|
1639
|
-
if (!(
|
|
1640
|
-
_f = (_e = ObjectSerializer_1.ObjectSerializer).
|
|
1641
|
-
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1571
|
+
if (!(response.httpStatusCode == 403 || response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
1572
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1642
1573
|
return [4 /*yield*/, response.body.text()];
|
|
1643
1574
|
case 3:
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
""
|
|
1647
|
-
|
|
1575
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
1576
|
+
try {
|
|
1577
|
+
body_17 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1578
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_17);
|
|
1579
|
+
}
|
|
1580
|
+
catch (error) {
|
|
1581
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
1582
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1583
|
+
}
|
|
1584
|
+
_l.label = 4;
|
|
1648
1585
|
case 4:
|
|
1649
|
-
if (!(
|
|
1650
|
-
|
|
1651
|
-
|
|
1586
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
1587
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1588
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1652
1589
|
return [4 /*yield*/, response.body.text()];
|
|
1653
1590
|
case 5:
|
|
1654
|
-
|
|
1655
|
-
"APIErrorResponse",
|
|
1656
|
-
""]);
|
|
1657
|
-
throw new exception_1.ApiException(429, body_25);
|
|
1658
|
-
case 6:
|
|
1659
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 8];
|
|
1660
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1661
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1662
|
-
return [4 /*yield*/, response.body.text()];
|
|
1663
|
-
case 7:
|
|
1664
|
-
body_26 = _p.apply(_o, [_r.apply(_q, [_s.sent(), contentType]),
|
|
1591
|
+
body_18 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
1665
1592
|
"MonthlyUsageAttributionResponse",
|
|
1666
1593
|
""]);
|
|
1667
|
-
return [2 /*return*/,
|
|
1668
|
-
case
|
|
1669
|
-
case
|
|
1670
|
-
body = (
|
|
1594
|
+
return [2 /*return*/, body_18];
|
|
1595
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
1596
|
+
case 7:
|
|
1597
|
+
body = (_l.sent()) || "";
|
|
1671
1598
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1672
1599
|
}
|
|
1673
1600
|
});
|
|
@@ -1682,63 +1609,49 @@ var UsageMeteringApiResponseProcessor = /** @class */ (function () {
|
|
|
1682
1609
|
*/
|
|
1683
1610
|
UsageMeteringApiResponseProcessor.prototype.getSpecifiedDailyCustomReports = function (response) {
|
|
1684
1611
|
return __awaiter(this, void 0, void 0, function () {
|
|
1685
|
-
var contentType,
|
|
1686
|
-
return __generator(this, function (
|
|
1687
|
-
switch (
|
|
1612
|
+
var contentType, body_19, _a, _b, _c, _d, bodyText, _e, _f, body_20, body_21, _g, _h, _j, _k, body;
|
|
1613
|
+
return __generator(this, function (_l) {
|
|
1614
|
+
switch (_l.label) {
|
|
1688
1615
|
case 0:
|
|
1689
1616
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1690
|
-
if (!(
|
|
1617
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
1691
1618
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1692
1619
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1693
1620
|
return [4 /*yield*/, response.body.text()];
|
|
1694
1621
|
case 1:
|
|
1695
|
-
|
|
1696
|
-
"UsageSpecifiedCustomReportsResponse"
|
|
1697
|
-
|
|
1698
|
-
return [2 /*return*/, body_27];
|
|
1622
|
+
body_19 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
1623
|
+
"UsageSpecifiedCustomReportsResponse"]);
|
|
1624
|
+
return [2 /*return*/, body_19];
|
|
1699
1625
|
case 2:
|
|
1700
|
-
if (!(
|
|
1701
|
-
|
|
1702
|
-
|
|
1626
|
+
if (!(response.httpStatusCode == 403 ||
|
|
1627
|
+
response.httpStatusCode == 404 ||
|
|
1628
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
1629
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1703
1630
|
return [4 /*yield*/, response.body.text()];
|
|
1704
1631
|
case 3:
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
""
|
|
1708
|
-
|
|
1632
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
1633
|
+
try {
|
|
1634
|
+
body_20 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1635
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_20);
|
|
1636
|
+
}
|
|
1637
|
+
catch (error) {
|
|
1638
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
1639
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1640
|
+
}
|
|
1641
|
+
_l.label = 4;
|
|
1709
1642
|
case 4:
|
|
1710
|
-
if (!(
|
|
1711
|
-
|
|
1712
|
-
|
|
1643
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
1644
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1645
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1713
1646
|
return [4 /*yield*/, response.body.text()];
|
|
1714
1647
|
case 5:
|
|
1715
|
-
|
|
1716
|
-
"APIErrorResponse",
|
|
1717
|
-
""]);
|
|
1718
|
-
throw new exception_1.ApiException(404, body_29);
|
|
1719
|
-
case 6:
|
|
1720
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
1721
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1722
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1723
|
-
return [4 /*yield*/, response.body.text()];
|
|
1724
|
-
case 7:
|
|
1725
|
-
body_30 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
1726
|
-
"APIErrorResponse",
|
|
1727
|
-
""]);
|
|
1728
|
-
throw new exception_1.ApiException(429, body_30);
|
|
1729
|
-
case 8:
|
|
1730
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
1731
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1732
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1733
|
-
return [4 /*yield*/, response.body.text()];
|
|
1734
|
-
case 9:
|
|
1735
|
-
body_31 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
1648
|
+
body_21 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
1736
1649
|
"UsageSpecifiedCustomReportsResponse",
|
|
1737
1650
|
""]);
|
|
1738
|
-
return [2 /*return*/,
|
|
1739
|
-
case
|
|
1740
|
-
case
|
|
1741
|
-
body = (
|
|
1651
|
+
return [2 /*return*/, body_21];
|
|
1652
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
1653
|
+
case 7:
|
|
1654
|
+
body = (_l.sent()) || "";
|
|
1742
1655
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1743
1656
|
}
|
|
1744
1657
|
});
|
|
@@ -1753,73 +1666,50 @@ var UsageMeteringApiResponseProcessor = /** @class */ (function () {
|
|
|
1753
1666
|
*/
|
|
1754
1667
|
UsageMeteringApiResponseProcessor.prototype.getSpecifiedMonthlyCustomReports = function (response) {
|
|
1755
1668
|
return __awaiter(this, void 0, void 0, function () {
|
|
1756
|
-
var contentType,
|
|
1757
|
-
return __generator(this, function (
|
|
1758
|
-
switch (
|
|
1669
|
+
var contentType, body_22, _a, _b, _c, _d, bodyText, _e, _f, body_23, body_24, _g, _h, _j, _k, body;
|
|
1670
|
+
return __generator(this, function (_l) {
|
|
1671
|
+
switch (_l.label) {
|
|
1759
1672
|
case 0:
|
|
1760
1673
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1761
|
-
if (!(
|
|
1674
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
1762
1675
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1763
1676
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1764
1677
|
return [4 /*yield*/, response.body.text()];
|
|
1765
1678
|
case 1:
|
|
1766
|
-
|
|
1767
|
-
"UsageSpecifiedCustomReportsResponse"
|
|
1768
|
-
|
|
1769
|
-
return [2 /*return*/, body_32];
|
|
1679
|
+
body_22 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
1680
|
+
"UsageSpecifiedCustomReportsResponse"]);
|
|
1681
|
+
return [2 /*return*/, body_22];
|
|
1770
1682
|
case 2:
|
|
1771
|
-
if (!(
|
|
1772
|
-
|
|
1773
|
-
|
|
1683
|
+
if (!(response.httpStatusCode == 400 ||
|
|
1684
|
+
response.httpStatusCode == 403 ||
|
|
1685
|
+
response.httpStatusCode == 404 ||
|
|
1686
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
1687
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1774
1688
|
return [4 /*yield*/, response.body.text()];
|
|
1775
1689
|
case 3:
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
""
|
|
1779
|
-
|
|
1690
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
1691
|
+
try {
|
|
1692
|
+
body_23 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1693
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_23);
|
|
1694
|
+
}
|
|
1695
|
+
catch (error) {
|
|
1696
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
1697
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1698
|
+
}
|
|
1699
|
+
_l.label = 4;
|
|
1780
1700
|
case 4:
|
|
1781
|
-
if (!(
|
|
1782
|
-
|
|
1783
|
-
|
|
1701
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
1702
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1703
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1784
1704
|
return [4 /*yield*/, response.body.text()];
|
|
1785
1705
|
case 5:
|
|
1786
|
-
|
|
1787
|
-
"APIErrorResponse",
|
|
1788
|
-
""]);
|
|
1789
|
-
throw new exception_1.ApiException(403, body_34);
|
|
1790
|
-
case 6:
|
|
1791
|
-
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
1792
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1793
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1794
|
-
return [4 /*yield*/, response.body.text()];
|
|
1795
|
-
case 7:
|
|
1796
|
-
body_35 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
|
|
1797
|
-
"APIErrorResponse",
|
|
1798
|
-
""]);
|
|
1799
|
-
throw new exception_1.ApiException(404, body_35);
|
|
1800
|
-
case 8:
|
|
1801
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
|
|
1802
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1803
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1804
|
-
return [4 /*yield*/, response.body.text()];
|
|
1805
|
-
case 9:
|
|
1806
|
-
body_36 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
|
|
1807
|
-
"APIErrorResponse",
|
|
1808
|
-
""]);
|
|
1809
|
-
throw new exception_1.ApiException(429, body_36);
|
|
1810
|
-
case 10:
|
|
1811
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
|
|
1812
|
-
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1813
|
-
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1814
|
-
return [4 /*yield*/, response.body.text()];
|
|
1815
|
-
case 11:
|
|
1816
|
-
body_37 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
|
|
1706
|
+
body_24 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
1817
1707
|
"UsageSpecifiedCustomReportsResponse",
|
|
1818
1708
|
""]);
|
|
1819
|
-
return [2 /*return*/,
|
|
1820
|
-
case
|
|
1821
|
-
case
|
|
1822
|
-
body = (
|
|
1709
|
+
return [2 /*return*/, body_24];
|
|
1710
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
1711
|
+
case 7:
|
|
1712
|
+
body = (_l.sent()) || "";
|
|
1823
1713
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1824
1714
|
}
|
|
1825
1715
|
});
|
|
@@ -1834,63 +1724,49 @@ var UsageMeteringApiResponseProcessor = /** @class */ (function () {
|
|
|
1834
1724
|
*/
|
|
1835
1725
|
UsageMeteringApiResponseProcessor.prototype.getUsageAnalyzedLogs = function (response) {
|
|
1836
1726
|
return __awaiter(this, void 0, void 0, function () {
|
|
1837
|
-
var contentType,
|
|
1838
|
-
return __generator(this, function (
|
|
1839
|
-
switch (
|
|
1727
|
+
var contentType, body_25, _a, _b, _c, _d, bodyText, _e, _f, body_26, body_27, _g, _h, _j, _k, body;
|
|
1728
|
+
return __generator(this, function (_l) {
|
|
1729
|
+
switch (_l.label) {
|
|
1840
1730
|
case 0:
|
|
1841
1731
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1842
|
-
if (!(
|
|
1732
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
1843
1733
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1844
1734
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1845
1735
|
return [4 /*yield*/, response.body.text()];
|
|
1846
1736
|
case 1:
|
|
1847
|
-
|
|
1848
|
-
"UsageAnalyzedLogsResponse"
|
|
1849
|
-
|
|
1850
|
-
return [2 /*return*/, body_38];
|
|
1737
|
+
body_25 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
1738
|
+
"UsageAnalyzedLogsResponse"]);
|
|
1739
|
+
return [2 /*return*/, body_25];
|
|
1851
1740
|
case 2:
|
|
1852
|
-
if (!(
|
|
1853
|
-
|
|
1854
|
-
|
|
1741
|
+
if (!(response.httpStatusCode == 400 ||
|
|
1742
|
+
response.httpStatusCode == 403 ||
|
|
1743
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
1744
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1855
1745
|
return [4 /*yield*/, response.body.text()];
|
|
1856
1746
|
case 3:
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
""
|
|
1860
|
-
|
|
1747
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
1748
|
+
try {
|
|
1749
|
+
body_26 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1750
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_26);
|
|
1751
|
+
}
|
|
1752
|
+
catch (error) {
|
|
1753
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
1754
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1755
|
+
}
|
|
1756
|
+
_l.label = 4;
|
|
1861
1757
|
case 4:
|
|
1862
|
-
if (!(
|
|
1863
|
-
|
|
1864
|
-
|
|
1758
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
1759
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1760
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1865
1761
|
return [4 /*yield*/, response.body.text()];
|
|
1866
1762
|
case 5:
|
|
1867
|
-
|
|
1868
|
-
"APIErrorResponse",
|
|
1869
|
-
""]);
|
|
1870
|
-
throw new exception_1.ApiException(403, body_40);
|
|
1871
|
-
case 6:
|
|
1872
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
1873
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1874
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1875
|
-
return [4 /*yield*/, response.body.text()];
|
|
1876
|
-
case 7:
|
|
1877
|
-
body_41 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
1878
|
-
"APIErrorResponse",
|
|
1879
|
-
""]);
|
|
1880
|
-
throw new exception_1.ApiException(429, body_41);
|
|
1881
|
-
case 8:
|
|
1882
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
1883
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1884
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1885
|
-
return [4 /*yield*/, response.body.text()];
|
|
1886
|
-
case 9:
|
|
1887
|
-
body_42 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
1763
|
+
body_27 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
1888
1764
|
"UsageAnalyzedLogsResponse",
|
|
1889
1765
|
""]);
|
|
1890
|
-
return [2 /*return*/,
|
|
1891
|
-
case
|
|
1892
|
-
case
|
|
1893
|
-
body = (
|
|
1766
|
+
return [2 /*return*/, body_27];
|
|
1767
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
1768
|
+
case 7:
|
|
1769
|
+
body = (_l.sent()) || "";
|
|
1894
1770
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1895
1771
|
}
|
|
1896
1772
|
});
|
|
@@ -1905,53 +1781,47 @@ var UsageMeteringApiResponseProcessor = /** @class */ (function () {
|
|
|
1905
1781
|
*/
|
|
1906
1782
|
UsageMeteringApiResponseProcessor.prototype.getUsageAttribution = function (response) {
|
|
1907
1783
|
return __awaiter(this, void 0, void 0, function () {
|
|
1908
|
-
var contentType,
|
|
1909
|
-
return __generator(this, function (
|
|
1910
|
-
switch (
|
|
1784
|
+
var contentType, body_28, _a, _b, _c, _d, bodyText, _e, _f, body_29, body_30, _g, _h, _j, _k, body;
|
|
1785
|
+
return __generator(this, function (_l) {
|
|
1786
|
+
switch (_l.label) {
|
|
1911
1787
|
case 0:
|
|
1912
1788
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1913
|
-
if (!(
|
|
1789
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
1914
1790
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1915
1791
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1916
1792
|
return [4 /*yield*/, response.body.text()];
|
|
1917
1793
|
case 1:
|
|
1918
|
-
|
|
1919
|
-
"UsageAttributionResponse"
|
|
1920
|
-
|
|
1921
|
-
return [2 /*return*/, body_43];
|
|
1794
|
+
body_28 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
1795
|
+
"UsageAttributionResponse"]);
|
|
1796
|
+
return [2 /*return*/, body_28];
|
|
1922
1797
|
case 2:
|
|
1923
|
-
if (!(
|
|
1924
|
-
_f = (_e = ObjectSerializer_1.ObjectSerializer).
|
|
1925
|
-
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1798
|
+
if (!(response.httpStatusCode == 403 || response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
1799
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1926
1800
|
return [4 /*yield*/, response.body.text()];
|
|
1927
1801
|
case 3:
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
""
|
|
1931
|
-
|
|
1802
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
1803
|
+
try {
|
|
1804
|
+
body_29 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1805
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_29);
|
|
1806
|
+
}
|
|
1807
|
+
catch (error) {
|
|
1808
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
1809
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1810
|
+
}
|
|
1811
|
+
_l.label = 4;
|
|
1932
1812
|
case 4:
|
|
1933
|
-
if (!(
|
|
1934
|
-
|
|
1935
|
-
|
|
1813
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
1814
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1815
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1936
1816
|
return [4 /*yield*/, response.body.text()];
|
|
1937
1817
|
case 5:
|
|
1938
|
-
|
|
1939
|
-
"APIErrorResponse",
|
|
1940
|
-
""]);
|
|
1941
|
-
throw new exception_1.ApiException(429, body_45);
|
|
1942
|
-
case 6:
|
|
1943
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 8];
|
|
1944
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1945
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1946
|
-
return [4 /*yield*/, response.body.text()];
|
|
1947
|
-
case 7:
|
|
1948
|
-
body_46 = _p.apply(_o, [_r.apply(_q, [_s.sent(), contentType]),
|
|
1818
|
+
body_30 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
1949
1819
|
"UsageAttributionResponse",
|
|
1950
1820
|
""]);
|
|
1951
|
-
return [2 /*return*/,
|
|
1952
|
-
case
|
|
1953
|
-
case
|
|
1954
|
-
body = (
|
|
1821
|
+
return [2 /*return*/, body_30];
|
|
1822
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
1823
|
+
case 7:
|
|
1824
|
+
body = (_l.sent()) || "";
|
|
1955
1825
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1956
1826
|
}
|
|
1957
1827
|
});
|
|
@@ -1966,63 +1836,49 @@ var UsageMeteringApiResponseProcessor = /** @class */ (function () {
|
|
|
1966
1836
|
*/
|
|
1967
1837
|
UsageMeteringApiResponseProcessor.prototype.getUsageAuditLogs = function (response) {
|
|
1968
1838
|
return __awaiter(this, void 0, void 0, function () {
|
|
1969
|
-
var contentType,
|
|
1970
|
-
return __generator(this, function (
|
|
1971
|
-
switch (
|
|
1839
|
+
var contentType, body_31, _a, _b, _c, _d, bodyText, _e, _f, body_32, body_33, _g, _h, _j, _k, body;
|
|
1840
|
+
return __generator(this, function (_l) {
|
|
1841
|
+
switch (_l.label) {
|
|
1972
1842
|
case 0:
|
|
1973
1843
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1974
|
-
if (!(
|
|
1844
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
1975
1845
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1976
1846
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1977
1847
|
return [4 /*yield*/, response.body.text()];
|
|
1978
1848
|
case 1:
|
|
1979
|
-
|
|
1980
|
-
"UsageAuditLogsResponse"
|
|
1981
|
-
|
|
1982
|
-
return [2 /*return*/, body_47];
|
|
1849
|
+
body_31 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
1850
|
+
"UsageAuditLogsResponse"]);
|
|
1851
|
+
return [2 /*return*/, body_31];
|
|
1983
1852
|
case 2:
|
|
1984
|
-
if (!(
|
|
1985
|
-
|
|
1986
|
-
|
|
1853
|
+
if (!(response.httpStatusCode == 400 ||
|
|
1854
|
+
response.httpStatusCode == 403 ||
|
|
1855
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
1856
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1987
1857
|
return [4 /*yield*/, response.body.text()];
|
|
1988
1858
|
case 3:
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
""
|
|
1992
|
-
|
|
1859
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
1860
|
+
try {
|
|
1861
|
+
body_32 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1862
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_32);
|
|
1863
|
+
}
|
|
1864
|
+
catch (error) {
|
|
1865
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
1866
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1867
|
+
}
|
|
1868
|
+
_l.label = 4;
|
|
1993
1869
|
case 4:
|
|
1994
|
-
if (!(
|
|
1995
|
-
|
|
1996
|
-
|
|
1870
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
1871
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1872
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1997
1873
|
return [4 /*yield*/, response.body.text()];
|
|
1998
1874
|
case 5:
|
|
1999
|
-
|
|
2000
|
-
"APIErrorResponse",
|
|
2001
|
-
""]);
|
|
2002
|
-
throw new exception_1.ApiException(403, body_49);
|
|
2003
|
-
case 6:
|
|
2004
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
2005
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2006
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2007
|
-
return [4 /*yield*/, response.body.text()];
|
|
2008
|
-
case 7:
|
|
2009
|
-
body_50 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
2010
|
-
"APIErrorResponse",
|
|
2011
|
-
""]);
|
|
2012
|
-
throw new exception_1.ApiException(429, body_50);
|
|
2013
|
-
case 8:
|
|
2014
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
2015
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2016
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2017
|
-
return [4 /*yield*/, response.body.text()];
|
|
2018
|
-
case 9:
|
|
2019
|
-
body_51 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
1875
|
+
body_33 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
2020
1876
|
"UsageAuditLogsResponse",
|
|
2021
1877
|
""]);
|
|
2022
|
-
return [2 /*return*/,
|
|
2023
|
-
case
|
|
2024
|
-
case
|
|
2025
|
-
body = (
|
|
1878
|
+
return [2 /*return*/, body_33];
|
|
1879
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
1880
|
+
case 7:
|
|
1881
|
+
body = (_l.sent()) || "";
|
|
2026
1882
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
2027
1883
|
}
|
|
2028
1884
|
});
|
|
@@ -2037,63 +1893,49 @@ var UsageMeteringApiResponseProcessor = /** @class */ (function () {
|
|
|
2037
1893
|
*/
|
|
2038
1894
|
UsageMeteringApiResponseProcessor.prototype.getUsageBillableSummary = function (response) {
|
|
2039
1895
|
return __awaiter(this, void 0, void 0, function () {
|
|
2040
|
-
var contentType,
|
|
2041
|
-
return __generator(this, function (
|
|
2042
|
-
switch (
|
|
1896
|
+
var contentType, body_34, _a, _b, _c, _d, bodyText, _e, _f, body_35, body_36, _g, _h, _j, _k, body;
|
|
1897
|
+
return __generator(this, function (_l) {
|
|
1898
|
+
switch (_l.label) {
|
|
2043
1899
|
case 0:
|
|
2044
1900
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2045
|
-
if (!(
|
|
1901
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
2046
1902
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2047
1903
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2048
1904
|
return [4 /*yield*/, response.body.text()];
|
|
2049
1905
|
case 1:
|
|
2050
|
-
|
|
2051
|
-
"UsageBillableSummaryResponse"
|
|
2052
|
-
|
|
2053
|
-
return [2 /*return*/, body_52];
|
|
1906
|
+
body_34 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
1907
|
+
"UsageBillableSummaryResponse"]);
|
|
1908
|
+
return [2 /*return*/, body_34];
|
|
2054
1909
|
case 2:
|
|
2055
|
-
if (!(
|
|
2056
|
-
|
|
2057
|
-
|
|
1910
|
+
if (!(response.httpStatusCode == 400 ||
|
|
1911
|
+
response.httpStatusCode == 403 ||
|
|
1912
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
1913
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2058
1914
|
return [4 /*yield*/, response.body.text()];
|
|
2059
1915
|
case 3:
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
""
|
|
2063
|
-
|
|
1916
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
1917
|
+
try {
|
|
1918
|
+
body_35 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1919
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_35);
|
|
1920
|
+
}
|
|
1921
|
+
catch (error) {
|
|
1922
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
1923
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1924
|
+
}
|
|
1925
|
+
_l.label = 4;
|
|
2064
1926
|
case 4:
|
|
2065
|
-
if (!(
|
|
2066
|
-
|
|
2067
|
-
|
|
1927
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
1928
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1929
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2068
1930
|
return [4 /*yield*/, response.body.text()];
|
|
2069
1931
|
case 5:
|
|
2070
|
-
|
|
2071
|
-
"APIErrorResponse",
|
|
2072
|
-
""]);
|
|
2073
|
-
throw new exception_1.ApiException(403, body_54);
|
|
2074
|
-
case 6:
|
|
2075
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
2076
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2077
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2078
|
-
return [4 /*yield*/, response.body.text()];
|
|
2079
|
-
case 7:
|
|
2080
|
-
body_55 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
2081
|
-
"APIErrorResponse",
|
|
2082
|
-
""]);
|
|
2083
|
-
throw new exception_1.ApiException(429, body_55);
|
|
2084
|
-
case 8:
|
|
2085
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
2086
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2087
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2088
|
-
return [4 /*yield*/, response.body.text()];
|
|
2089
|
-
case 9:
|
|
2090
|
-
body_56 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
1932
|
+
body_36 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
2091
1933
|
"UsageBillableSummaryResponse",
|
|
2092
1934
|
""]);
|
|
2093
|
-
return [2 /*return*/,
|
|
2094
|
-
case
|
|
2095
|
-
case
|
|
2096
|
-
body = (
|
|
1935
|
+
return [2 /*return*/, body_36];
|
|
1936
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
1937
|
+
case 7:
|
|
1938
|
+
body = (_l.sent()) || "";
|
|
2097
1939
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
2098
1940
|
}
|
|
2099
1941
|
});
|
|
@@ -2108,63 +1950,49 @@ var UsageMeteringApiResponseProcessor = /** @class */ (function () {
|
|
|
2108
1950
|
*/
|
|
2109
1951
|
UsageMeteringApiResponseProcessor.prototype.getUsageCIApp = function (response) {
|
|
2110
1952
|
return __awaiter(this, void 0, void 0, function () {
|
|
2111
|
-
var contentType,
|
|
2112
|
-
return __generator(this, function (
|
|
2113
|
-
switch (
|
|
1953
|
+
var contentType, body_37, _a, _b, _c, _d, bodyText, _e, _f, body_38, body_39, _g, _h, _j, _k, body;
|
|
1954
|
+
return __generator(this, function (_l) {
|
|
1955
|
+
switch (_l.label) {
|
|
2114
1956
|
case 0:
|
|
2115
1957
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2116
|
-
if (!(
|
|
1958
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
2117
1959
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2118
1960
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2119
1961
|
return [4 /*yield*/, response.body.text()];
|
|
2120
1962
|
case 1:
|
|
2121
|
-
|
|
2122
|
-
"UsageCIVisibilityResponse"
|
|
2123
|
-
|
|
2124
|
-
return [2 /*return*/, body_57];
|
|
1963
|
+
body_37 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
1964
|
+
"UsageCIVisibilityResponse"]);
|
|
1965
|
+
return [2 /*return*/, body_37];
|
|
2125
1966
|
case 2:
|
|
2126
|
-
if (!(
|
|
2127
|
-
|
|
2128
|
-
|
|
1967
|
+
if (!(response.httpStatusCode == 400 ||
|
|
1968
|
+
response.httpStatusCode == 403 ||
|
|
1969
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
1970
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2129
1971
|
return [4 /*yield*/, response.body.text()];
|
|
2130
1972
|
case 3:
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
""
|
|
2134
|
-
|
|
1973
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
1974
|
+
try {
|
|
1975
|
+
body_38 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1976
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_38);
|
|
1977
|
+
}
|
|
1978
|
+
catch (error) {
|
|
1979
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
1980
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1981
|
+
}
|
|
1982
|
+
_l.label = 4;
|
|
2135
1983
|
case 4:
|
|
2136
|
-
if (!(
|
|
2137
|
-
|
|
2138
|
-
|
|
1984
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
1985
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1986
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2139
1987
|
return [4 /*yield*/, response.body.text()];
|
|
2140
1988
|
case 5:
|
|
2141
|
-
|
|
2142
|
-
"APIErrorResponse",
|
|
2143
|
-
""]);
|
|
2144
|
-
throw new exception_1.ApiException(403, body_59);
|
|
2145
|
-
case 6:
|
|
2146
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
2147
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2148
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2149
|
-
return [4 /*yield*/, response.body.text()];
|
|
2150
|
-
case 7:
|
|
2151
|
-
body_60 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
2152
|
-
"APIErrorResponse",
|
|
2153
|
-
""]);
|
|
2154
|
-
throw new exception_1.ApiException(429, body_60);
|
|
2155
|
-
case 8:
|
|
2156
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
2157
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2158
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2159
|
-
return [4 /*yield*/, response.body.text()];
|
|
2160
|
-
case 9:
|
|
2161
|
-
body_61 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
1989
|
+
body_39 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
2162
1990
|
"UsageCIVisibilityResponse",
|
|
2163
1991
|
""]);
|
|
2164
|
-
return [2 /*return*/,
|
|
2165
|
-
case
|
|
2166
|
-
case
|
|
2167
|
-
body = (
|
|
1992
|
+
return [2 /*return*/, body_39];
|
|
1993
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
1994
|
+
case 7:
|
|
1995
|
+
body = (_l.sent()) || "";
|
|
2168
1996
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
2169
1997
|
}
|
|
2170
1998
|
});
|
|
@@ -2179,63 +2007,49 @@ var UsageMeteringApiResponseProcessor = /** @class */ (function () {
|
|
|
2179
2007
|
*/
|
|
2180
2008
|
UsageMeteringApiResponseProcessor.prototype.getUsageCloudSecurityPostureManagement = function (response) {
|
|
2181
2009
|
return __awaiter(this, void 0, void 0, function () {
|
|
2182
|
-
var contentType,
|
|
2183
|
-
return __generator(this, function (
|
|
2184
|
-
switch (
|
|
2010
|
+
var contentType, body_40, _a, _b, _c, _d, bodyText, _e, _f, body_41, body_42, _g, _h, _j, _k, body;
|
|
2011
|
+
return __generator(this, function (_l) {
|
|
2012
|
+
switch (_l.label) {
|
|
2185
2013
|
case 0:
|
|
2186
2014
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2187
|
-
if (!(
|
|
2015
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
2188
2016
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2189
2017
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2190
2018
|
return [4 /*yield*/, response.body.text()];
|
|
2191
2019
|
case 1:
|
|
2192
|
-
|
|
2193
|
-
"UsageCloudSecurityPostureManagementResponse"
|
|
2194
|
-
|
|
2195
|
-
return [2 /*return*/, body_62];
|
|
2020
|
+
body_40 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
2021
|
+
"UsageCloudSecurityPostureManagementResponse"]);
|
|
2022
|
+
return [2 /*return*/, body_40];
|
|
2196
2023
|
case 2:
|
|
2197
|
-
if (!(
|
|
2198
|
-
|
|
2199
|
-
|
|
2024
|
+
if (!(response.httpStatusCode == 400 ||
|
|
2025
|
+
response.httpStatusCode == 403 ||
|
|
2026
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
2027
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2200
2028
|
return [4 /*yield*/, response.body.text()];
|
|
2201
2029
|
case 3:
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
""
|
|
2205
|
-
|
|
2030
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
2031
|
+
try {
|
|
2032
|
+
body_41 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
2033
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_41);
|
|
2034
|
+
}
|
|
2035
|
+
catch (error) {
|
|
2036
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
2037
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
2038
|
+
}
|
|
2039
|
+
_l.label = 4;
|
|
2206
2040
|
case 4:
|
|
2207
|
-
if (!(
|
|
2208
|
-
|
|
2209
|
-
|
|
2041
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
2042
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2043
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2210
2044
|
return [4 /*yield*/, response.body.text()];
|
|
2211
2045
|
case 5:
|
|
2212
|
-
|
|
2213
|
-
"APIErrorResponse",
|
|
2214
|
-
""]);
|
|
2215
|
-
throw new exception_1.ApiException(403, body_64);
|
|
2216
|
-
case 6:
|
|
2217
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
2218
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2219
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2220
|
-
return [4 /*yield*/, response.body.text()];
|
|
2221
|
-
case 7:
|
|
2222
|
-
body_65 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
2223
|
-
"APIErrorResponse",
|
|
2224
|
-
""]);
|
|
2225
|
-
throw new exception_1.ApiException(429, body_65);
|
|
2226
|
-
case 8:
|
|
2227
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
2228
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2229
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2230
|
-
return [4 /*yield*/, response.body.text()];
|
|
2231
|
-
case 9:
|
|
2232
|
-
body_66 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
2046
|
+
body_42 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
2233
2047
|
"UsageCloudSecurityPostureManagementResponse",
|
|
2234
2048
|
""]);
|
|
2235
|
-
return [2 /*return*/,
|
|
2236
|
-
case
|
|
2237
|
-
case
|
|
2238
|
-
body = (
|
|
2049
|
+
return [2 /*return*/, body_42];
|
|
2050
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
2051
|
+
case 7:
|
|
2052
|
+
body = (_l.sent()) || "";
|
|
2239
2053
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
2240
2054
|
}
|
|
2241
2055
|
});
|
|
@@ -2250,63 +2064,49 @@ var UsageMeteringApiResponseProcessor = /** @class */ (function () {
|
|
|
2250
2064
|
*/
|
|
2251
2065
|
UsageMeteringApiResponseProcessor.prototype.getUsageCWS = function (response) {
|
|
2252
2066
|
return __awaiter(this, void 0, void 0, function () {
|
|
2253
|
-
var contentType,
|
|
2254
|
-
return __generator(this, function (
|
|
2255
|
-
switch (
|
|
2067
|
+
var contentType, body_43, _a, _b, _c, _d, bodyText, _e, _f, body_44, body_45, _g, _h, _j, _k, body;
|
|
2068
|
+
return __generator(this, function (_l) {
|
|
2069
|
+
switch (_l.label) {
|
|
2256
2070
|
case 0:
|
|
2257
2071
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2258
|
-
if (!(
|
|
2072
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
2259
2073
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2260
2074
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2261
2075
|
return [4 /*yield*/, response.body.text()];
|
|
2262
2076
|
case 1:
|
|
2263
|
-
|
|
2264
|
-
"UsageCWSResponse"
|
|
2265
|
-
|
|
2266
|
-
return [2 /*return*/, body_67];
|
|
2077
|
+
body_43 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
2078
|
+
"UsageCWSResponse"]);
|
|
2079
|
+
return [2 /*return*/, body_43];
|
|
2267
2080
|
case 2:
|
|
2268
|
-
if (!(
|
|
2269
|
-
|
|
2270
|
-
|
|
2081
|
+
if (!(response.httpStatusCode == 400 ||
|
|
2082
|
+
response.httpStatusCode == 403 ||
|
|
2083
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
2084
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2271
2085
|
return [4 /*yield*/, response.body.text()];
|
|
2272
2086
|
case 3:
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
""
|
|
2276
|
-
|
|
2087
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
2088
|
+
try {
|
|
2089
|
+
body_44 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
2090
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_44);
|
|
2091
|
+
}
|
|
2092
|
+
catch (error) {
|
|
2093
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
2094
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
2095
|
+
}
|
|
2096
|
+
_l.label = 4;
|
|
2277
2097
|
case 4:
|
|
2278
|
-
if (!(
|
|
2279
|
-
|
|
2280
|
-
|
|
2098
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
2099
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2100
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2281
2101
|
return [4 /*yield*/, response.body.text()];
|
|
2282
2102
|
case 5:
|
|
2283
|
-
|
|
2284
|
-
"APIErrorResponse",
|
|
2285
|
-
""]);
|
|
2286
|
-
throw new exception_1.ApiException(403, body_69);
|
|
2287
|
-
case 6:
|
|
2288
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
2289
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2290
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2291
|
-
return [4 /*yield*/, response.body.text()];
|
|
2292
|
-
case 7:
|
|
2293
|
-
body_70 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
2294
|
-
"APIErrorResponse",
|
|
2295
|
-
""]);
|
|
2296
|
-
throw new exception_1.ApiException(429, body_70);
|
|
2297
|
-
case 8:
|
|
2298
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
2299
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2300
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2301
|
-
return [4 /*yield*/, response.body.text()];
|
|
2302
|
-
case 9:
|
|
2303
|
-
body_71 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
2103
|
+
body_45 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
2304
2104
|
"UsageCWSResponse",
|
|
2305
2105
|
""]);
|
|
2306
|
-
return [2 /*return*/,
|
|
2307
|
-
case
|
|
2308
|
-
case
|
|
2309
|
-
body = (
|
|
2106
|
+
return [2 /*return*/, body_45];
|
|
2107
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
2108
|
+
case 7:
|
|
2109
|
+
body = (_l.sent()) || "";
|
|
2310
2110
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
2311
2111
|
}
|
|
2312
2112
|
});
|
|
@@ -2321,63 +2121,49 @@ var UsageMeteringApiResponseProcessor = /** @class */ (function () {
|
|
|
2321
2121
|
*/
|
|
2322
2122
|
UsageMeteringApiResponseProcessor.prototype.getUsageDBM = function (response) {
|
|
2323
2123
|
return __awaiter(this, void 0, void 0, function () {
|
|
2324
|
-
var contentType,
|
|
2325
|
-
return __generator(this, function (
|
|
2326
|
-
switch (
|
|
2124
|
+
var contentType, body_46, _a, _b, _c, _d, bodyText, _e, _f, body_47, body_48, _g, _h, _j, _k, body;
|
|
2125
|
+
return __generator(this, function (_l) {
|
|
2126
|
+
switch (_l.label) {
|
|
2327
2127
|
case 0:
|
|
2328
2128
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2329
|
-
if (!(
|
|
2129
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
2330
2130
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2331
2131
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2332
2132
|
return [4 /*yield*/, response.body.text()];
|
|
2333
2133
|
case 1:
|
|
2334
|
-
|
|
2335
|
-
"UsageDBMResponse"
|
|
2336
|
-
|
|
2337
|
-
return [2 /*return*/, body_72];
|
|
2134
|
+
body_46 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
2135
|
+
"UsageDBMResponse"]);
|
|
2136
|
+
return [2 /*return*/, body_46];
|
|
2338
2137
|
case 2:
|
|
2339
|
-
if (!(
|
|
2340
|
-
|
|
2341
|
-
|
|
2138
|
+
if (!(response.httpStatusCode == 400 ||
|
|
2139
|
+
response.httpStatusCode == 403 ||
|
|
2140
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
2141
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2342
2142
|
return [4 /*yield*/, response.body.text()];
|
|
2343
2143
|
case 3:
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
""
|
|
2347
|
-
|
|
2144
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
2145
|
+
try {
|
|
2146
|
+
body_47 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
2147
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_47);
|
|
2148
|
+
}
|
|
2149
|
+
catch (error) {
|
|
2150
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
2151
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
2152
|
+
}
|
|
2153
|
+
_l.label = 4;
|
|
2348
2154
|
case 4:
|
|
2349
|
-
if (!(
|
|
2350
|
-
|
|
2351
|
-
|
|
2155
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
2156
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2157
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2352
2158
|
return [4 /*yield*/, response.body.text()];
|
|
2353
2159
|
case 5:
|
|
2354
|
-
|
|
2355
|
-
"APIErrorResponse",
|
|
2356
|
-
""]);
|
|
2357
|
-
throw new exception_1.ApiException(403, body_74);
|
|
2358
|
-
case 6:
|
|
2359
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
2360
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2361
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2362
|
-
return [4 /*yield*/, response.body.text()];
|
|
2363
|
-
case 7:
|
|
2364
|
-
body_75 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
2365
|
-
"APIErrorResponse",
|
|
2366
|
-
""]);
|
|
2367
|
-
throw new exception_1.ApiException(429, body_75);
|
|
2368
|
-
case 8:
|
|
2369
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
2370
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2371
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2372
|
-
return [4 /*yield*/, response.body.text()];
|
|
2373
|
-
case 9:
|
|
2374
|
-
body_76 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
2160
|
+
body_48 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
2375
2161
|
"UsageDBMResponse",
|
|
2376
2162
|
""]);
|
|
2377
|
-
return [2 /*return*/,
|
|
2378
|
-
case
|
|
2379
|
-
case
|
|
2380
|
-
body = (
|
|
2163
|
+
return [2 /*return*/, body_48];
|
|
2164
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
2165
|
+
case 7:
|
|
2166
|
+
body = (_l.sent()) || "";
|
|
2381
2167
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
2382
2168
|
}
|
|
2383
2169
|
});
|
|
@@ -2392,63 +2178,49 @@ var UsageMeteringApiResponseProcessor = /** @class */ (function () {
|
|
|
2392
2178
|
*/
|
|
2393
2179
|
UsageMeteringApiResponseProcessor.prototype.getUsageFargate = function (response) {
|
|
2394
2180
|
return __awaiter(this, void 0, void 0, function () {
|
|
2395
|
-
var contentType,
|
|
2396
|
-
return __generator(this, function (
|
|
2397
|
-
switch (
|
|
2181
|
+
var contentType, body_49, _a, _b, _c, _d, bodyText, _e, _f, body_50, body_51, _g, _h, _j, _k, body;
|
|
2182
|
+
return __generator(this, function (_l) {
|
|
2183
|
+
switch (_l.label) {
|
|
2398
2184
|
case 0:
|
|
2399
2185
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2400
|
-
if (!(
|
|
2186
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
2401
2187
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2402
2188
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2403
2189
|
return [4 /*yield*/, response.body.text()];
|
|
2404
2190
|
case 1:
|
|
2405
|
-
|
|
2406
|
-
"UsageFargateResponse"
|
|
2407
|
-
|
|
2408
|
-
return [2 /*return*/, body_77];
|
|
2191
|
+
body_49 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
2192
|
+
"UsageFargateResponse"]);
|
|
2193
|
+
return [2 /*return*/, body_49];
|
|
2409
2194
|
case 2:
|
|
2410
|
-
if (!(
|
|
2411
|
-
|
|
2412
|
-
|
|
2195
|
+
if (!(response.httpStatusCode == 400 ||
|
|
2196
|
+
response.httpStatusCode == 403 ||
|
|
2197
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
2198
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2413
2199
|
return [4 /*yield*/, response.body.text()];
|
|
2414
2200
|
case 3:
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
""
|
|
2418
|
-
|
|
2201
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
2202
|
+
try {
|
|
2203
|
+
body_50 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
2204
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_50);
|
|
2205
|
+
}
|
|
2206
|
+
catch (error) {
|
|
2207
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
2208
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
2209
|
+
}
|
|
2210
|
+
_l.label = 4;
|
|
2419
2211
|
case 4:
|
|
2420
|
-
if (!(
|
|
2421
|
-
|
|
2422
|
-
|
|
2212
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
2213
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2214
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2423
2215
|
return [4 /*yield*/, response.body.text()];
|
|
2424
2216
|
case 5:
|
|
2425
|
-
|
|
2426
|
-
"APIErrorResponse",
|
|
2427
|
-
""]);
|
|
2428
|
-
throw new exception_1.ApiException(403, body_79);
|
|
2429
|
-
case 6:
|
|
2430
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
2431
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2432
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2433
|
-
return [4 /*yield*/, response.body.text()];
|
|
2434
|
-
case 7:
|
|
2435
|
-
body_80 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
2436
|
-
"APIErrorResponse",
|
|
2437
|
-
""]);
|
|
2438
|
-
throw new exception_1.ApiException(429, body_80);
|
|
2439
|
-
case 8:
|
|
2440
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
2441
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2442
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2443
|
-
return [4 /*yield*/, response.body.text()];
|
|
2444
|
-
case 9:
|
|
2445
|
-
body_81 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
2217
|
+
body_51 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
2446
2218
|
"UsageFargateResponse",
|
|
2447
2219
|
""]);
|
|
2448
|
-
return [2 /*return*/,
|
|
2449
|
-
case
|
|
2450
|
-
case
|
|
2451
|
-
body = (
|
|
2220
|
+
return [2 /*return*/, body_51];
|
|
2221
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
2222
|
+
case 7:
|
|
2223
|
+
body = (_l.sent()) || "";
|
|
2452
2224
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
2453
2225
|
}
|
|
2454
2226
|
});
|
|
@@ -2463,63 +2235,49 @@ var UsageMeteringApiResponseProcessor = /** @class */ (function () {
|
|
|
2463
2235
|
*/
|
|
2464
2236
|
UsageMeteringApiResponseProcessor.prototype.getUsageHosts = function (response) {
|
|
2465
2237
|
return __awaiter(this, void 0, void 0, function () {
|
|
2466
|
-
var contentType,
|
|
2467
|
-
return __generator(this, function (
|
|
2468
|
-
switch (
|
|
2238
|
+
var contentType, body_52, _a, _b, _c, _d, bodyText, _e, _f, body_53, body_54, _g, _h, _j, _k, body;
|
|
2239
|
+
return __generator(this, function (_l) {
|
|
2240
|
+
switch (_l.label) {
|
|
2469
2241
|
case 0:
|
|
2470
2242
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2471
|
-
if (!(
|
|
2243
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
2472
2244
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2473
2245
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2474
2246
|
return [4 /*yield*/, response.body.text()];
|
|
2475
2247
|
case 1:
|
|
2476
|
-
|
|
2477
|
-
"UsageHostsResponse"
|
|
2478
|
-
|
|
2479
|
-
return [2 /*return*/, body_82];
|
|
2248
|
+
body_52 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
2249
|
+
"UsageHostsResponse"]);
|
|
2250
|
+
return [2 /*return*/, body_52];
|
|
2480
2251
|
case 2:
|
|
2481
|
-
if (!(
|
|
2482
|
-
|
|
2483
|
-
|
|
2252
|
+
if (!(response.httpStatusCode == 400 ||
|
|
2253
|
+
response.httpStatusCode == 403 ||
|
|
2254
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
2255
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2484
2256
|
return [4 /*yield*/, response.body.text()];
|
|
2485
2257
|
case 3:
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
""
|
|
2489
|
-
|
|
2258
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
2259
|
+
try {
|
|
2260
|
+
body_53 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
2261
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_53);
|
|
2262
|
+
}
|
|
2263
|
+
catch (error) {
|
|
2264
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
2265
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
2266
|
+
}
|
|
2267
|
+
_l.label = 4;
|
|
2490
2268
|
case 4:
|
|
2491
|
-
if (!(
|
|
2492
|
-
|
|
2493
|
-
|
|
2269
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
2270
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2271
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2494
2272
|
return [4 /*yield*/, response.body.text()];
|
|
2495
2273
|
case 5:
|
|
2496
|
-
|
|
2497
|
-
"APIErrorResponse",
|
|
2498
|
-
""]);
|
|
2499
|
-
throw new exception_1.ApiException(403, body_84);
|
|
2500
|
-
case 6:
|
|
2501
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
2502
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2503
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2504
|
-
return [4 /*yield*/, response.body.text()];
|
|
2505
|
-
case 7:
|
|
2506
|
-
body_85 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
2507
|
-
"APIErrorResponse",
|
|
2508
|
-
""]);
|
|
2509
|
-
throw new exception_1.ApiException(429, body_85);
|
|
2510
|
-
case 8:
|
|
2511
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
2512
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2513
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2514
|
-
return [4 /*yield*/, response.body.text()];
|
|
2515
|
-
case 9:
|
|
2516
|
-
body_86 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
2274
|
+
body_54 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
2517
2275
|
"UsageHostsResponse",
|
|
2518
2276
|
""]);
|
|
2519
|
-
return [2 /*return*/,
|
|
2520
|
-
case
|
|
2521
|
-
case
|
|
2522
|
-
body = (
|
|
2277
|
+
return [2 /*return*/, body_54];
|
|
2278
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
2279
|
+
case 7:
|
|
2280
|
+
body = (_l.sent()) || "";
|
|
2523
2281
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
2524
2282
|
}
|
|
2525
2283
|
});
|
|
@@ -2534,63 +2292,49 @@ var UsageMeteringApiResponseProcessor = /** @class */ (function () {
|
|
|
2534
2292
|
*/
|
|
2535
2293
|
UsageMeteringApiResponseProcessor.prototype.getUsageIndexedSpans = function (response) {
|
|
2536
2294
|
return __awaiter(this, void 0, void 0, function () {
|
|
2537
|
-
var contentType,
|
|
2538
|
-
return __generator(this, function (
|
|
2539
|
-
switch (
|
|
2295
|
+
var contentType, body_55, _a, _b, _c, _d, bodyText, _e, _f, body_56, body_57, _g, _h, _j, _k, body;
|
|
2296
|
+
return __generator(this, function (_l) {
|
|
2297
|
+
switch (_l.label) {
|
|
2540
2298
|
case 0:
|
|
2541
2299
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2542
|
-
if (!(
|
|
2300
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
2543
2301
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2544
2302
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2545
2303
|
return [4 /*yield*/, response.body.text()];
|
|
2546
2304
|
case 1:
|
|
2547
|
-
|
|
2548
|
-
"UsageIndexedSpansResponse"
|
|
2549
|
-
|
|
2550
|
-
return [2 /*return*/, body_87];
|
|
2305
|
+
body_55 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
2306
|
+
"UsageIndexedSpansResponse"]);
|
|
2307
|
+
return [2 /*return*/, body_55];
|
|
2551
2308
|
case 2:
|
|
2552
|
-
if (!(
|
|
2553
|
-
|
|
2554
|
-
|
|
2309
|
+
if (!(response.httpStatusCode == 400 ||
|
|
2310
|
+
response.httpStatusCode == 403 ||
|
|
2311
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
2312
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2555
2313
|
return [4 /*yield*/, response.body.text()];
|
|
2556
2314
|
case 3:
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
""
|
|
2560
|
-
|
|
2315
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
2316
|
+
try {
|
|
2317
|
+
body_56 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
2318
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_56);
|
|
2319
|
+
}
|
|
2320
|
+
catch (error) {
|
|
2321
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
2322
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
2323
|
+
}
|
|
2324
|
+
_l.label = 4;
|
|
2561
2325
|
case 4:
|
|
2562
|
-
if (!(
|
|
2563
|
-
|
|
2564
|
-
|
|
2326
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
2327
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2328
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2565
2329
|
return [4 /*yield*/, response.body.text()];
|
|
2566
2330
|
case 5:
|
|
2567
|
-
|
|
2568
|
-
"APIErrorResponse",
|
|
2569
|
-
""]);
|
|
2570
|
-
throw new exception_1.ApiException(403, body_89);
|
|
2571
|
-
case 6:
|
|
2572
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
2573
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2574
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2575
|
-
return [4 /*yield*/, response.body.text()];
|
|
2576
|
-
case 7:
|
|
2577
|
-
body_90 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
2578
|
-
"APIErrorResponse",
|
|
2579
|
-
""]);
|
|
2580
|
-
throw new exception_1.ApiException(429, body_90);
|
|
2581
|
-
case 8:
|
|
2582
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
2583
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2584
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2585
|
-
return [4 /*yield*/, response.body.text()];
|
|
2586
|
-
case 9:
|
|
2587
|
-
body_91 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
2331
|
+
body_57 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
2588
2332
|
"UsageIndexedSpansResponse",
|
|
2589
2333
|
""]);
|
|
2590
|
-
return [2 /*return*/,
|
|
2591
|
-
case
|
|
2592
|
-
case
|
|
2593
|
-
body = (
|
|
2334
|
+
return [2 /*return*/, body_57];
|
|
2335
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
2336
|
+
case 7:
|
|
2337
|
+
body = (_l.sent()) || "";
|
|
2594
2338
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
2595
2339
|
}
|
|
2596
2340
|
});
|
|
@@ -2605,63 +2349,49 @@ var UsageMeteringApiResponseProcessor = /** @class */ (function () {
|
|
|
2605
2349
|
*/
|
|
2606
2350
|
UsageMeteringApiResponseProcessor.prototype.getUsageInternetOfThings = function (response) {
|
|
2607
2351
|
return __awaiter(this, void 0, void 0, function () {
|
|
2608
|
-
var contentType,
|
|
2609
|
-
return __generator(this, function (
|
|
2610
|
-
switch (
|
|
2352
|
+
var contentType, body_58, _a, _b, _c, _d, bodyText, _e, _f, body_59, body_60, _g, _h, _j, _k, body;
|
|
2353
|
+
return __generator(this, function (_l) {
|
|
2354
|
+
switch (_l.label) {
|
|
2611
2355
|
case 0:
|
|
2612
2356
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2613
|
-
if (!(
|
|
2357
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
2614
2358
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2615
2359
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2616
2360
|
return [4 /*yield*/, response.body.text()];
|
|
2617
2361
|
case 1:
|
|
2618
|
-
|
|
2619
|
-
"UsageIoTResponse"
|
|
2620
|
-
|
|
2621
|
-
return [2 /*return*/, body_92];
|
|
2362
|
+
body_58 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
2363
|
+
"UsageIoTResponse"]);
|
|
2364
|
+
return [2 /*return*/, body_58];
|
|
2622
2365
|
case 2:
|
|
2623
|
-
if (!(
|
|
2624
|
-
|
|
2625
|
-
|
|
2366
|
+
if (!(response.httpStatusCode == 400 ||
|
|
2367
|
+
response.httpStatusCode == 403 ||
|
|
2368
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
2369
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2626
2370
|
return [4 /*yield*/, response.body.text()];
|
|
2627
2371
|
case 3:
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
""
|
|
2631
|
-
|
|
2372
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
2373
|
+
try {
|
|
2374
|
+
body_59 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
2375
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_59);
|
|
2376
|
+
}
|
|
2377
|
+
catch (error) {
|
|
2378
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
2379
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
2380
|
+
}
|
|
2381
|
+
_l.label = 4;
|
|
2632
2382
|
case 4:
|
|
2633
|
-
if (!(
|
|
2634
|
-
|
|
2635
|
-
|
|
2383
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
2384
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2385
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2636
2386
|
return [4 /*yield*/, response.body.text()];
|
|
2637
2387
|
case 5:
|
|
2638
|
-
|
|
2639
|
-
"APIErrorResponse",
|
|
2640
|
-
""]);
|
|
2641
|
-
throw new exception_1.ApiException(403, body_94);
|
|
2642
|
-
case 6:
|
|
2643
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
2644
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2645
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2646
|
-
return [4 /*yield*/, response.body.text()];
|
|
2647
|
-
case 7:
|
|
2648
|
-
body_95 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
2649
|
-
"APIErrorResponse",
|
|
2650
|
-
""]);
|
|
2651
|
-
throw new exception_1.ApiException(429, body_95);
|
|
2652
|
-
case 8:
|
|
2653
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
2654
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2655
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2656
|
-
return [4 /*yield*/, response.body.text()];
|
|
2657
|
-
case 9:
|
|
2658
|
-
body_96 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
2388
|
+
body_60 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
2659
2389
|
"UsageIoTResponse",
|
|
2660
2390
|
""]);
|
|
2661
|
-
return [2 /*return*/,
|
|
2662
|
-
case
|
|
2663
|
-
case
|
|
2664
|
-
body = (
|
|
2391
|
+
return [2 /*return*/, body_60];
|
|
2392
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
2393
|
+
case 7:
|
|
2394
|
+
body = (_l.sent()) || "";
|
|
2665
2395
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
2666
2396
|
}
|
|
2667
2397
|
});
|
|
@@ -2676,63 +2406,49 @@ var UsageMeteringApiResponseProcessor = /** @class */ (function () {
|
|
|
2676
2406
|
*/
|
|
2677
2407
|
UsageMeteringApiResponseProcessor.prototype.getUsageLambda = function (response) {
|
|
2678
2408
|
return __awaiter(this, void 0, void 0, function () {
|
|
2679
|
-
var contentType,
|
|
2680
|
-
return __generator(this, function (
|
|
2681
|
-
switch (
|
|
2409
|
+
var contentType, body_61, _a, _b, _c, _d, bodyText, _e, _f, body_62, body_63, _g, _h, _j, _k, body;
|
|
2410
|
+
return __generator(this, function (_l) {
|
|
2411
|
+
switch (_l.label) {
|
|
2682
2412
|
case 0:
|
|
2683
2413
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2684
|
-
if (!(
|
|
2414
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
2685
2415
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2686
2416
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2687
2417
|
return [4 /*yield*/, response.body.text()];
|
|
2688
2418
|
case 1:
|
|
2689
|
-
|
|
2690
|
-
"UsageLambdaResponse"
|
|
2691
|
-
|
|
2692
|
-
return [2 /*return*/, body_97];
|
|
2419
|
+
body_61 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
2420
|
+
"UsageLambdaResponse"]);
|
|
2421
|
+
return [2 /*return*/, body_61];
|
|
2693
2422
|
case 2:
|
|
2694
|
-
if (!(
|
|
2695
|
-
|
|
2696
|
-
|
|
2423
|
+
if (!(response.httpStatusCode == 400 ||
|
|
2424
|
+
response.httpStatusCode == 403 ||
|
|
2425
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
2426
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2697
2427
|
return [4 /*yield*/, response.body.text()];
|
|
2698
2428
|
case 3:
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
""
|
|
2702
|
-
|
|
2429
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
2430
|
+
try {
|
|
2431
|
+
body_62 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
2432
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_62);
|
|
2433
|
+
}
|
|
2434
|
+
catch (error) {
|
|
2435
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
2436
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
2437
|
+
}
|
|
2438
|
+
_l.label = 4;
|
|
2703
2439
|
case 4:
|
|
2704
|
-
if (!(
|
|
2705
|
-
|
|
2706
|
-
|
|
2440
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
2441
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2442
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2707
2443
|
return [4 /*yield*/, response.body.text()];
|
|
2708
2444
|
case 5:
|
|
2709
|
-
|
|
2710
|
-
"APIErrorResponse",
|
|
2711
|
-
""]);
|
|
2712
|
-
throw new exception_1.ApiException(403, body_99);
|
|
2713
|
-
case 6:
|
|
2714
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
2715
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2716
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2717
|
-
return [4 /*yield*/, response.body.text()];
|
|
2718
|
-
case 7:
|
|
2719
|
-
body_100 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
2720
|
-
"APIErrorResponse",
|
|
2721
|
-
""]);
|
|
2722
|
-
throw new exception_1.ApiException(429, body_100);
|
|
2723
|
-
case 8:
|
|
2724
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
2725
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2726
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2727
|
-
return [4 /*yield*/, response.body.text()];
|
|
2728
|
-
case 9:
|
|
2729
|
-
body_101 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
2445
|
+
body_63 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
2730
2446
|
"UsageLambdaResponse",
|
|
2731
2447
|
""]);
|
|
2732
|
-
return [2 /*return*/,
|
|
2733
|
-
case
|
|
2734
|
-
case
|
|
2735
|
-
body = (
|
|
2448
|
+
return [2 /*return*/, body_63];
|
|
2449
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
2450
|
+
case 7:
|
|
2451
|
+
body = (_l.sent()) || "";
|
|
2736
2452
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
2737
2453
|
}
|
|
2738
2454
|
});
|
|
@@ -2747,63 +2463,49 @@ var UsageMeteringApiResponseProcessor = /** @class */ (function () {
|
|
|
2747
2463
|
*/
|
|
2748
2464
|
UsageMeteringApiResponseProcessor.prototype.getUsageLogs = function (response) {
|
|
2749
2465
|
return __awaiter(this, void 0, void 0, function () {
|
|
2750
|
-
var contentType,
|
|
2751
|
-
return __generator(this, function (
|
|
2752
|
-
switch (
|
|
2466
|
+
var contentType, body_64, _a, _b, _c, _d, bodyText, _e, _f, body_65, body_66, _g, _h, _j, _k, body;
|
|
2467
|
+
return __generator(this, function (_l) {
|
|
2468
|
+
switch (_l.label) {
|
|
2753
2469
|
case 0:
|
|
2754
2470
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2755
|
-
if (!(
|
|
2471
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
2756
2472
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2757
2473
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2758
2474
|
return [4 /*yield*/, response.body.text()];
|
|
2759
2475
|
case 1:
|
|
2760
|
-
|
|
2761
|
-
"UsageLogsResponse"
|
|
2762
|
-
|
|
2763
|
-
return [2 /*return*/, body_102];
|
|
2476
|
+
body_64 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
2477
|
+
"UsageLogsResponse"]);
|
|
2478
|
+
return [2 /*return*/, body_64];
|
|
2764
2479
|
case 2:
|
|
2765
|
-
if (!(
|
|
2766
|
-
|
|
2767
|
-
|
|
2480
|
+
if (!(response.httpStatusCode == 400 ||
|
|
2481
|
+
response.httpStatusCode == 403 ||
|
|
2482
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
2483
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2768
2484
|
return [4 /*yield*/, response.body.text()];
|
|
2769
2485
|
case 3:
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
""
|
|
2773
|
-
|
|
2486
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
2487
|
+
try {
|
|
2488
|
+
body_65 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
2489
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_65);
|
|
2490
|
+
}
|
|
2491
|
+
catch (error) {
|
|
2492
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
2493
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
2494
|
+
}
|
|
2495
|
+
_l.label = 4;
|
|
2774
2496
|
case 4:
|
|
2775
|
-
if (!(
|
|
2776
|
-
|
|
2777
|
-
|
|
2497
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
2498
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2499
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2778
2500
|
return [4 /*yield*/, response.body.text()];
|
|
2779
2501
|
case 5:
|
|
2780
|
-
|
|
2781
|
-
"APIErrorResponse",
|
|
2782
|
-
""]);
|
|
2783
|
-
throw new exception_1.ApiException(403, body_104);
|
|
2784
|
-
case 6:
|
|
2785
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
2786
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2787
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2788
|
-
return [4 /*yield*/, response.body.text()];
|
|
2789
|
-
case 7:
|
|
2790
|
-
body_105 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
2791
|
-
"APIErrorResponse",
|
|
2792
|
-
""]);
|
|
2793
|
-
throw new exception_1.ApiException(429, body_105);
|
|
2794
|
-
case 8:
|
|
2795
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
2796
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2797
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2798
|
-
return [4 /*yield*/, response.body.text()];
|
|
2799
|
-
case 9:
|
|
2800
|
-
body_106 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
2502
|
+
body_66 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
2801
2503
|
"UsageLogsResponse",
|
|
2802
2504
|
""]);
|
|
2803
|
-
return [2 /*return*/,
|
|
2804
|
-
case
|
|
2805
|
-
case
|
|
2806
|
-
body = (
|
|
2505
|
+
return [2 /*return*/, body_66];
|
|
2506
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
2507
|
+
case 7:
|
|
2508
|
+
body = (_l.sent()) || "";
|
|
2807
2509
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
2808
2510
|
}
|
|
2809
2511
|
});
|
|
@@ -2818,63 +2520,49 @@ var UsageMeteringApiResponseProcessor = /** @class */ (function () {
|
|
|
2818
2520
|
*/
|
|
2819
2521
|
UsageMeteringApiResponseProcessor.prototype.getUsageLogsByIndex = function (response) {
|
|
2820
2522
|
return __awaiter(this, void 0, void 0, function () {
|
|
2821
|
-
var contentType,
|
|
2822
|
-
return __generator(this, function (
|
|
2823
|
-
switch (
|
|
2523
|
+
var contentType, body_67, _a, _b, _c, _d, bodyText, _e, _f, body_68, body_69, _g, _h, _j, _k, body;
|
|
2524
|
+
return __generator(this, function (_l) {
|
|
2525
|
+
switch (_l.label) {
|
|
2824
2526
|
case 0:
|
|
2825
2527
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2826
|
-
if (!(
|
|
2528
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
2827
2529
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2828
2530
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2829
2531
|
return [4 /*yield*/, response.body.text()];
|
|
2830
2532
|
case 1:
|
|
2831
|
-
|
|
2832
|
-
"UsageLogsByIndexResponse"
|
|
2833
|
-
|
|
2834
|
-
return [2 /*return*/, body_107];
|
|
2533
|
+
body_67 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
2534
|
+
"UsageLogsByIndexResponse"]);
|
|
2535
|
+
return [2 /*return*/, body_67];
|
|
2835
2536
|
case 2:
|
|
2836
|
-
if (!(
|
|
2837
|
-
|
|
2838
|
-
|
|
2537
|
+
if (!(response.httpStatusCode == 400 ||
|
|
2538
|
+
response.httpStatusCode == 403 ||
|
|
2539
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
2540
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2839
2541
|
return [4 /*yield*/, response.body.text()];
|
|
2840
2542
|
case 3:
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
""
|
|
2844
|
-
|
|
2543
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
2544
|
+
try {
|
|
2545
|
+
body_68 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
2546
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_68);
|
|
2547
|
+
}
|
|
2548
|
+
catch (error) {
|
|
2549
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
2550
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
2551
|
+
}
|
|
2552
|
+
_l.label = 4;
|
|
2845
2553
|
case 4:
|
|
2846
|
-
if (!(
|
|
2847
|
-
|
|
2848
|
-
|
|
2554
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
2555
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2556
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2849
2557
|
return [4 /*yield*/, response.body.text()];
|
|
2850
2558
|
case 5:
|
|
2851
|
-
|
|
2852
|
-
"APIErrorResponse",
|
|
2853
|
-
""]);
|
|
2854
|
-
throw new exception_1.ApiException(403, body_109);
|
|
2855
|
-
case 6:
|
|
2856
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
2857
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2858
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2859
|
-
return [4 /*yield*/, response.body.text()];
|
|
2860
|
-
case 7:
|
|
2861
|
-
body_110 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
2862
|
-
"APIErrorResponse",
|
|
2863
|
-
""]);
|
|
2864
|
-
throw new exception_1.ApiException(429, body_110);
|
|
2865
|
-
case 8:
|
|
2866
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
2867
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2868
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2869
|
-
return [4 /*yield*/, response.body.text()];
|
|
2870
|
-
case 9:
|
|
2871
|
-
body_111 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
2559
|
+
body_69 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
2872
2560
|
"UsageLogsByIndexResponse",
|
|
2873
2561
|
""]);
|
|
2874
|
-
return [2 /*return*/,
|
|
2875
|
-
case
|
|
2876
|
-
case
|
|
2877
|
-
body = (
|
|
2562
|
+
return [2 /*return*/, body_69];
|
|
2563
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
2564
|
+
case 7:
|
|
2565
|
+
body = (_l.sent()) || "";
|
|
2878
2566
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
2879
2567
|
}
|
|
2880
2568
|
});
|
|
@@ -2889,63 +2577,49 @@ var UsageMeteringApiResponseProcessor = /** @class */ (function () {
|
|
|
2889
2577
|
*/
|
|
2890
2578
|
UsageMeteringApiResponseProcessor.prototype.getUsageLogsByRetention = function (response) {
|
|
2891
2579
|
return __awaiter(this, void 0, void 0, function () {
|
|
2892
|
-
var contentType,
|
|
2893
|
-
return __generator(this, function (
|
|
2894
|
-
switch (
|
|
2580
|
+
var contentType, body_70, _a, _b, _c, _d, bodyText, _e, _f, body_71, body_72, _g, _h, _j, _k, body;
|
|
2581
|
+
return __generator(this, function (_l) {
|
|
2582
|
+
switch (_l.label) {
|
|
2895
2583
|
case 0:
|
|
2896
2584
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2897
|
-
if (!(
|
|
2585
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
2898
2586
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2899
2587
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2900
2588
|
return [4 /*yield*/, response.body.text()];
|
|
2901
2589
|
case 1:
|
|
2902
|
-
|
|
2903
|
-
"UsageLogsByRetentionResponse"
|
|
2904
|
-
|
|
2905
|
-
return [2 /*return*/, body_112];
|
|
2590
|
+
body_70 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
2591
|
+
"UsageLogsByRetentionResponse"]);
|
|
2592
|
+
return [2 /*return*/, body_70];
|
|
2906
2593
|
case 2:
|
|
2907
|
-
if (!(
|
|
2908
|
-
|
|
2909
|
-
|
|
2594
|
+
if (!(response.httpStatusCode == 400 ||
|
|
2595
|
+
response.httpStatusCode == 403 ||
|
|
2596
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
2597
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2910
2598
|
return [4 /*yield*/, response.body.text()];
|
|
2911
2599
|
case 3:
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
""
|
|
2915
|
-
|
|
2600
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
2601
|
+
try {
|
|
2602
|
+
body_71 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
2603
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_71);
|
|
2604
|
+
}
|
|
2605
|
+
catch (error) {
|
|
2606
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
2607
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
2608
|
+
}
|
|
2609
|
+
_l.label = 4;
|
|
2916
2610
|
case 4:
|
|
2917
|
-
if (!(
|
|
2918
|
-
|
|
2919
|
-
|
|
2611
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
2612
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2613
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2920
2614
|
return [4 /*yield*/, response.body.text()];
|
|
2921
2615
|
case 5:
|
|
2922
|
-
|
|
2923
|
-
"APIErrorResponse",
|
|
2924
|
-
""]);
|
|
2925
|
-
throw new exception_1.ApiException(403, body_114);
|
|
2926
|
-
case 6:
|
|
2927
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
2928
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2929
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2930
|
-
return [4 /*yield*/, response.body.text()];
|
|
2931
|
-
case 7:
|
|
2932
|
-
body_115 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
2933
|
-
"APIErrorResponse",
|
|
2934
|
-
""]);
|
|
2935
|
-
throw new exception_1.ApiException(429, body_115);
|
|
2936
|
-
case 8:
|
|
2937
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
2938
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2939
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2940
|
-
return [4 /*yield*/, response.body.text()];
|
|
2941
|
-
case 9:
|
|
2942
|
-
body_116 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
2616
|
+
body_72 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
2943
2617
|
"UsageLogsByRetentionResponse",
|
|
2944
2618
|
""]);
|
|
2945
|
-
return [2 /*return*/,
|
|
2946
|
-
case
|
|
2947
|
-
case
|
|
2948
|
-
body = (
|
|
2619
|
+
return [2 /*return*/, body_72];
|
|
2620
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
2621
|
+
case 7:
|
|
2622
|
+
body = (_l.sent()) || "";
|
|
2949
2623
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
2950
2624
|
}
|
|
2951
2625
|
});
|
|
@@ -2960,63 +2634,49 @@ var UsageMeteringApiResponseProcessor = /** @class */ (function () {
|
|
|
2960
2634
|
*/
|
|
2961
2635
|
UsageMeteringApiResponseProcessor.prototype.getUsageNetworkFlows = function (response) {
|
|
2962
2636
|
return __awaiter(this, void 0, void 0, function () {
|
|
2963
|
-
var contentType,
|
|
2964
|
-
return __generator(this, function (
|
|
2965
|
-
switch (
|
|
2637
|
+
var contentType, body_73, _a, _b, _c, _d, bodyText, _e, _f, body_74, body_75, _g, _h, _j, _k, body;
|
|
2638
|
+
return __generator(this, function (_l) {
|
|
2639
|
+
switch (_l.label) {
|
|
2966
2640
|
case 0:
|
|
2967
2641
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2968
|
-
if (!(
|
|
2642
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
2969
2643
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2970
2644
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2971
2645
|
return [4 /*yield*/, response.body.text()];
|
|
2972
2646
|
case 1:
|
|
2973
|
-
|
|
2974
|
-
"UsageNetworkFlowsResponse"
|
|
2975
|
-
|
|
2976
|
-
return [2 /*return*/, body_117];
|
|
2647
|
+
body_73 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
2648
|
+
"UsageNetworkFlowsResponse"]);
|
|
2649
|
+
return [2 /*return*/, body_73];
|
|
2977
2650
|
case 2:
|
|
2978
|
-
if (!(
|
|
2979
|
-
|
|
2980
|
-
|
|
2651
|
+
if (!(response.httpStatusCode == 400 ||
|
|
2652
|
+
response.httpStatusCode == 403 ||
|
|
2653
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
2654
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2981
2655
|
return [4 /*yield*/, response.body.text()];
|
|
2982
2656
|
case 3:
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
""
|
|
2986
|
-
|
|
2657
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
2658
|
+
try {
|
|
2659
|
+
body_74 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
2660
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_74);
|
|
2661
|
+
}
|
|
2662
|
+
catch (error) {
|
|
2663
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
2664
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
2665
|
+
}
|
|
2666
|
+
_l.label = 4;
|
|
2987
2667
|
case 4:
|
|
2988
|
-
if (!(
|
|
2989
|
-
|
|
2990
|
-
|
|
2668
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
2669
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2670
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2991
2671
|
return [4 /*yield*/, response.body.text()];
|
|
2992
2672
|
case 5:
|
|
2993
|
-
|
|
2994
|
-
"APIErrorResponse",
|
|
2995
|
-
""]);
|
|
2996
|
-
throw new exception_1.ApiException(403, body_119);
|
|
2997
|
-
case 6:
|
|
2998
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
2999
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3000
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3001
|
-
return [4 /*yield*/, response.body.text()];
|
|
3002
|
-
case 7:
|
|
3003
|
-
body_120 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
3004
|
-
"APIErrorResponse",
|
|
3005
|
-
""]);
|
|
3006
|
-
throw new exception_1.ApiException(429, body_120);
|
|
3007
|
-
case 8:
|
|
3008
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
3009
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3010
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3011
|
-
return [4 /*yield*/, response.body.text()];
|
|
3012
|
-
case 9:
|
|
3013
|
-
body_121 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
2673
|
+
body_75 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
3014
2674
|
"UsageNetworkFlowsResponse",
|
|
3015
2675
|
""]);
|
|
3016
|
-
return [2 /*return*/,
|
|
3017
|
-
case
|
|
3018
|
-
case
|
|
3019
|
-
body = (
|
|
2676
|
+
return [2 /*return*/, body_75];
|
|
2677
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
2678
|
+
case 7:
|
|
2679
|
+
body = (_l.sent()) || "";
|
|
3020
2680
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
3021
2681
|
}
|
|
3022
2682
|
});
|
|
@@ -3031,63 +2691,49 @@ var UsageMeteringApiResponseProcessor = /** @class */ (function () {
|
|
|
3031
2691
|
*/
|
|
3032
2692
|
UsageMeteringApiResponseProcessor.prototype.getUsageNetworkHosts = function (response) {
|
|
3033
2693
|
return __awaiter(this, void 0, void 0, function () {
|
|
3034
|
-
var contentType,
|
|
3035
|
-
return __generator(this, function (
|
|
3036
|
-
switch (
|
|
2694
|
+
var contentType, body_76, _a, _b, _c, _d, bodyText, _e, _f, body_77, body_78, _g, _h, _j, _k, body;
|
|
2695
|
+
return __generator(this, function (_l) {
|
|
2696
|
+
switch (_l.label) {
|
|
3037
2697
|
case 0:
|
|
3038
2698
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
3039
|
-
if (!(
|
|
2699
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
3040
2700
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3041
2701
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3042
2702
|
return [4 /*yield*/, response.body.text()];
|
|
3043
2703
|
case 1:
|
|
3044
|
-
|
|
3045
|
-
"UsageNetworkHostsResponse"
|
|
3046
|
-
|
|
3047
|
-
return [2 /*return*/, body_122];
|
|
2704
|
+
body_76 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
2705
|
+
"UsageNetworkHostsResponse"]);
|
|
2706
|
+
return [2 /*return*/, body_76];
|
|
3048
2707
|
case 2:
|
|
3049
|
-
if (!(
|
|
3050
|
-
|
|
3051
|
-
|
|
2708
|
+
if (!(response.httpStatusCode == 400 ||
|
|
2709
|
+
response.httpStatusCode == 403 ||
|
|
2710
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
2711
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3052
2712
|
return [4 /*yield*/, response.body.text()];
|
|
3053
2713
|
case 3:
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
""
|
|
3057
|
-
|
|
2714
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
2715
|
+
try {
|
|
2716
|
+
body_77 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
2717
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_77);
|
|
2718
|
+
}
|
|
2719
|
+
catch (error) {
|
|
2720
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
2721
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
2722
|
+
}
|
|
2723
|
+
_l.label = 4;
|
|
3058
2724
|
case 4:
|
|
3059
|
-
if (!(
|
|
3060
|
-
|
|
3061
|
-
|
|
2725
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
2726
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2727
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3062
2728
|
return [4 /*yield*/, response.body.text()];
|
|
3063
2729
|
case 5:
|
|
3064
|
-
|
|
3065
|
-
"APIErrorResponse",
|
|
3066
|
-
""]);
|
|
3067
|
-
throw new exception_1.ApiException(403, body_124);
|
|
3068
|
-
case 6:
|
|
3069
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
3070
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3071
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3072
|
-
return [4 /*yield*/, response.body.text()];
|
|
3073
|
-
case 7:
|
|
3074
|
-
body_125 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
3075
|
-
"APIErrorResponse",
|
|
3076
|
-
""]);
|
|
3077
|
-
throw new exception_1.ApiException(429, body_125);
|
|
3078
|
-
case 8:
|
|
3079
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
3080
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3081
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3082
|
-
return [4 /*yield*/, response.body.text()];
|
|
3083
|
-
case 9:
|
|
3084
|
-
body_126 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
2730
|
+
body_78 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
3085
2731
|
"UsageNetworkHostsResponse",
|
|
3086
2732
|
""]);
|
|
3087
|
-
return [2 /*return*/,
|
|
3088
|
-
case
|
|
3089
|
-
case
|
|
3090
|
-
body = (
|
|
2733
|
+
return [2 /*return*/, body_78];
|
|
2734
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
2735
|
+
case 7:
|
|
2736
|
+
body = (_l.sent()) || "";
|
|
3091
2737
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
3092
2738
|
}
|
|
3093
2739
|
});
|
|
@@ -3102,63 +2748,49 @@ var UsageMeteringApiResponseProcessor = /** @class */ (function () {
|
|
|
3102
2748
|
*/
|
|
3103
2749
|
UsageMeteringApiResponseProcessor.prototype.getUsageOnlineArchive = function (response) {
|
|
3104
2750
|
return __awaiter(this, void 0, void 0, function () {
|
|
3105
|
-
var contentType,
|
|
3106
|
-
return __generator(this, function (
|
|
3107
|
-
switch (
|
|
2751
|
+
var contentType, body_79, _a, _b, _c, _d, bodyText, _e, _f, body_80, body_81, _g, _h, _j, _k, body;
|
|
2752
|
+
return __generator(this, function (_l) {
|
|
2753
|
+
switch (_l.label) {
|
|
3108
2754
|
case 0:
|
|
3109
2755
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
3110
|
-
if (!(
|
|
2756
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
3111
2757
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3112
2758
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3113
2759
|
return [4 /*yield*/, response.body.text()];
|
|
3114
2760
|
case 1:
|
|
3115
|
-
|
|
3116
|
-
"UsageOnlineArchiveResponse"
|
|
3117
|
-
|
|
3118
|
-
return [2 /*return*/, body_127];
|
|
2761
|
+
body_79 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
2762
|
+
"UsageOnlineArchiveResponse"]);
|
|
2763
|
+
return [2 /*return*/, body_79];
|
|
3119
2764
|
case 2:
|
|
3120
|
-
if (!(
|
|
3121
|
-
|
|
3122
|
-
|
|
2765
|
+
if (!(response.httpStatusCode == 400 ||
|
|
2766
|
+
response.httpStatusCode == 403 ||
|
|
2767
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
2768
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3123
2769
|
return [4 /*yield*/, response.body.text()];
|
|
3124
2770
|
case 3:
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
""
|
|
3128
|
-
|
|
2771
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
2772
|
+
try {
|
|
2773
|
+
body_80 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
2774
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_80);
|
|
2775
|
+
}
|
|
2776
|
+
catch (error) {
|
|
2777
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
2778
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
2779
|
+
}
|
|
2780
|
+
_l.label = 4;
|
|
3129
2781
|
case 4:
|
|
3130
|
-
if (!(
|
|
3131
|
-
|
|
3132
|
-
|
|
2782
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
2783
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2784
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3133
2785
|
return [4 /*yield*/, response.body.text()];
|
|
3134
2786
|
case 5:
|
|
3135
|
-
|
|
3136
|
-
"APIErrorResponse",
|
|
3137
|
-
""]);
|
|
3138
|
-
throw new exception_1.ApiException(403, body_129);
|
|
3139
|
-
case 6:
|
|
3140
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
3141
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3142
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3143
|
-
return [4 /*yield*/, response.body.text()];
|
|
3144
|
-
case 7:
|
|
3145
|
-
body_130 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
3146
|
-
"APIErrorResponse",
|
|
3147
|
-
""]);
|
|
3148
|
-
throw new exception_1.ApiException(429, body_130);
|
|
3149
|
-
case 8:
|
|
3150
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
3151
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3152
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3153
|
-
return [4 /*yield*/, response.body.text()];
|
|
3154
|
-
case 9:
|
|
3155
|
-
body_131 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
2787
|
+
body_81 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
3156
2788
|
"UsageOnlineArchiveResponse",
|
|
3157
2789
|
""]);
|
|
3158
|
-
return [2 /*return*/,
|
|
3159
|
-
case
|
|
3160
|
-
case
|
|
3161
|
-
body = (
|
|
2790
|
+
return [2 /*return*/, body_81];
|
|
2791
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
2792
|
+
case 7:
|
|
2793
|
+
body = (_l.sent()) || "";
|
|
3162
2794
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
3163
2795
|
}
|
|
3164
2796
|
});
|
|
@@ -3173,63 +2805,49 @@ var UsageMeteringApiResponseProcessor = /** @class */ (function () {
|
|
|
3173
2805
|
*/
|
|
3174
2806
|
UsageMeteringApiResponseProcessor.prototype.getUsageProfiling = function (response) {
|
|
3175
2807
|
return __awaiter(this, void 0, void 0, function () {
|
|
3176
|
-
var contentType,
|
|
3177
|
-
return __generator(this, function (
|
|
3178
|
-
switch (
|
|
2808
|
+
var contentType, body_82, _a, _b, _c, _d, bodyText, _e, _f, body_83, body_84, _g, _h, _j, _k, body;
|
|
2809
|
+
return __generator(this, function (_l) {
|
|
2810
|
+
switch (_l.label) {
|
|
3179
2811
|
case 0:
|
|
3180
2812
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
3181
|
-
if (!(
|
|
2813
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
3182
2814
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3183
2815
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3184
2816
|
return [4 /*yield*/, response.body.text()];
|
|
3185
2817
|
case 1:
|
|
3186
|
-
|
|
3187
|
-
"UsageProfilingResponse"
|
|
3188
|
-
|
|
3189
|
-
return [2 /*return*/, body_132];
|
|
2818
|
+
body_82 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
2819
|
+
"UsageProfilingResponse"]);
|
|
2820
|
+
return [2 /*return*/, body_82];
|
|
3190
2821
|
case 2:
|
|
3191
|
-
if (!(
|
|
3192
|
-
|
|
3193
|
-
|
|
2822
|
+
if (!(response.httpStatusCode == 400 ||
|
|
2823
|
+
response.httpStatusCode == 403 ||
|
|
2824
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
2825
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3194
2826
|
return [4 /*yield*/, response.body.text()];
|
|
3195
2827
|
case 3:
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
""
|
|
3199
|
-
|
|
2828
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
2829
|
+
try {
|
|
2830
|
+
body_83 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
2831
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_83);
|
|
2832
|
+
}
|
|
2833
|
+
catch (error) {
|
|
2834
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
2835
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
2836
|
+
}
|
|
2837
|
+
_l.label = 4;
|
|
3200
2838
|
case 4:
|
|
3201
|
-
if (!(
|
|
3202
|
-
|
|
3203
|
-
|
|
2839
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
2840
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2841
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3204
2842
|
return [4 /*yield*/, response.body.text()];
|
|
3205
2843
|
case 5:
|
|
3206
|
-
|
|
3207
|
-
"APIErrorResponse",
|
|
3208
|
-
""]);
|
|
3209
|
-
throw new exception_1.ApiException(403, body_134);
|
|
3210
|
-
case 6:
|
|
3211
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
3212
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3213
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3214
|
-
return [4 /*yield*/, response.body.text()];
|
|
3215
|
-
case 7:
|
|
3216
|
-
body_135 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
3217
|
-
"APIErrorResponse",
|
|
3218
|
-
""]);
|
|
3219
|
-
throw new exception_1.ApiException(429, body_135);
|
|
3220
|
-
case 8:
|
|
3221
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
3222
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3223
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3224
|
-
return [4 /*yield*/, response.body.text()];
|
|
3225
|
-
case 9:
|
|
3226
|
-
body_136 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
2844
|
+
body_84 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
3227
2845
|
"UsageProfilingResponse",
|
|
3228
2846
|
""]);
|
|
3229
|
-
return [2 /*return*/,
|
|
3230
|
-
case
|
|
3231
|
-
case
|
|
3232
|
-
body = (
|
|
2847
|
+
return [2 /*return*/, body_84];
|
|
2848
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
2849
|
+
case 7:
|
|
2850
|
+
body = (_l.sent()) || "";
|
|
3233
2851
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
3234
2852
|
}
|
|
3235
2853
|
});
|
|
@@ -3244,63 +2862,49 @@ var UsageMeteringApiResponseProcessor = /** @class */ (function () {
|
|
|
3244
2862
|
*/
|
|
3245
2863
|
UsageMeteringApiResponseProcessor.prototype.getUsageRumSessions = function (response) {
|
|
3246
2864
|
return __awaiter(this, void 0, void 0, function () {
|
|
3247
|
-
var contentType,
|
|
3248
|
-
return __generator(this, function (
|
|
3249
|
-
switch (
|
|
2865
|
+
var contentType, body_85, _a, _b, _c, _d, bodyText, _e, _f, body_86, body_87, _g, _h, _j, _k, body;
|
|
2866
|
+
return __generator(this, function (_l) {
|
|
2867
|
+
switch (_l.label) {
|
|
3250
2868
|
case 0:
|
|
3251
2869
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
3252
|
-
if (!(
|
|
2870
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
3253
2871
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3254
2872
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3255
2873
|
return [4 /*yield*/, response.body.text()];
|
|
3256
2874
|
case 1:
|
|
3257
|
-
|
|
3258
|
-
"UsageRumSessionsResponse"
|
|
3259
|
-
|
|
3260
|
-
return [2 /*return*/, body_137];
|
|
2875
|
+
body_85 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
2876
|
+
"UsageRumSessionsResponse"]);
|
|
2877
|
+
return [2 /*return*/, body_85];
|
|
3261
2878
|
case 2:
|
|
3262
|
-
if (!(
|
|
3263
|
-
|
|
3264
|
-
|
|
2879
|
+
if (!(response.httpStatusCode == 400 ||
|
|
2880
|
+
response.httpStatusCode == 403 ||
|
|
2881
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
2882
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3265
2883
|
return [4 /*yield*/, response.body.text()];
|
|
3266
2884
|
case 3:
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
""
|
|
3270
|
-
|
|
2885
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
2886
|
+
try {
|
|
2887
|
+
body_86 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
2888
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_86);
|
|
2889
|
+
}
|
|
2890
|
+
catch (error) {
|
|
2891
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
2892
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
2893
|
+
}
|
|
2894
|
+
_l.label = 4;
|
|
3271
2895
|
case 4:
|
|
3272
|
-
if (!(
|
|
3273
|
-
|
|
3274
|
-
|
|
2896
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
2897
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2898
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3275
2899
|
return [4 /*yield*/, response.body.text()];
|
|
3276
2900
|
case 5:
|
|
3277
|
-
|
|
3278
|
-
"APIErrorResponse",
|
|
3279
|
-
""]);
|
|
3280
|
-
throw new exception_1.ApiException(403, body_139);
|
|
3281
|
-
case 6:
|
|
3282
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
3283
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3284
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3285
|
-
return [4 /*yield*/, response.body.text()];
|
|
3286
|
-
case 7:
|
|
3287
|
-
body_140 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
3288
|
-
"APIErrorResponse",
|
|
3289
|
-
""]);
|
|
3290
|
-
throw new exception_1.ApiException(429, body_140);
|
|
3291
|
-
case 8:
|
|
3292
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
3293
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3294
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3295
|
-
return [4 /*yield*/, response.body.text()];
|
|
3296
|
-
case 9:
|
|
3297
|
-
body_141 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
2901
|
+
body_87 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
3298
2902
|
"UsageRumSessionsResponse",
|
|
3299
2903
|
""]);
|
|
3300
|
-
return [2 /*return*/,
|
|
3301
|
-
case
|
|
3302
|
-
case
|
|
3303
|
-
body = (
|
|
2904
|
+
return [2 /*return*/, body_87];
|
|
2905
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
2906
|
+
case 7:
|
|
2907
|
+
body = (_l.sent()) || "";
|
|
3304
2908
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
3305
2909
|
}
|
|
3306
2910
|
});
|
|
@@ -3315,63 +2919,49 @@ var UsageMeteringApiResponseProcessor = /** @class */ (function () {
|
|
|
3315
2919
|
*/
|
|
3316
2920
|
UsageMeteringApiResponseProcessor.prototype.getUsageRumUnits = function (response) {
|
|
3317
2921
|
return __awaiter(this, void 0, void 0, function () {
|
|
3318
|
-
var contentType,
|
|
3319
|
-
return __generator(this, function (
|
|
3320
|
-
switch (
|
|
2922
|
+
var contentType, body_88, _a, _b, _c, _d, bodyText, _e, _f, body_89, body_90, _g, _h, _j, _k, body;
|
|
2923
|
+
return __generator(this, function (_l) {
|
|
2924
|
+
switch (_l.label) {
|
|
3321
2925
|
case 0:
|
|
3322
2926
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
3323
|
-
if (!(
|
|
2927
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
3324
2928
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3325
2929
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3326
2930
|
return [4 /*yield*/, response.body.text()];
|
|
3327
2931
|
case 1:
|
|
3328
|
-
|
|
3329
|
-
"UsageRumUnitsResponse"
|
|
3330
|
-
|
|
3331
|
-
return [2 /*return*/, body_142];
|
|
2932
|
+
body_88 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
2933
|
+
"UsageRumUnitsResponse"]);
|
|
2934
|
+
return [2 /*return*/, body_88];
|
|
3332
2935
|
case 2:
|
|
3333
|
-
if (!(
|
|
3334
|
-
|
|
3335
|
-
|
|
2936
|
+
if (!(response.httpStatusCode == 400 ||
|
|
2937
|
+
response.httpStatusCode == 403 ||
|
|
2938
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
2939
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3336
2940
|
return [4 /*yield*/, response.body.text()];
|
|
3337
2941
|
case 3:
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
""
|
|
3341
|
-
|
|
2942
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
2943
|
+
try {
|
|
2944
|
+
body_89 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
2945
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_89);
|
|
2946
|
+
}
|
|
2947
|
+
catch (error) {
|
|
2948
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
2949
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
2950
|
+
}
|
|
2951
|
+
_l.label = 4;
|
|
3342
2952
|
case 4:
|
|
3343
|
-
if (!(
|
|
3344
|
-
|
|
3345
|
-
|
|
2953
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
2954
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2955
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3346
2956
|
return [4 /*yield*/, response.body.text()];
|
|
3347
2957
|
case 5:
|
|
3348
|
-
|
|
3349
|
-
"APIErrorResponse",
|
|
3350
|
-
""]);
|
|
3351
|
-
throw new exception_1.ApiException(403, body_144);
|
|
3352
|
-
case 6:
|
|
3353
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
3354
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3355
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3356
|
-
return [4 /*yield*/, response.body.text()];
|
|
3357
|
-
case 7:
|
|
3358
|
-
body_145 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
3359
|
-
"APIErrorResponse",
|
|
3360
|
-
""]);
|
|
3361
|
-
throw new exception_1.ApiException(429, body_145);
|
|
3362
|
-
case 8:
|
|
3363
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
3364
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3365
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3366
|
-
return [4 /*yield*/, response.body.text()];
|
|
3367
|
-
case 9:
|
|
3368
|
-
body_146 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
2958
|
+
body_90 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
3369
2959
|
"UsageRumUnitsResponse",
|
|
3370
2960
|
""]);
|
|
3371
|
-
return [2 /*return*/,
|
|
3372
|
-
case
|
|
3373
|
-
case
|
|
3374
|
-
body = (
|
|
2961
|
+
return [2 /*return*/, body_90];
|
|
2962
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
2963
|
+
case 7:
|
|
2964
|
+
body = (_l.sent()) || "";
|
|
3375
2965
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
3376
2966
|
}
|
|
3377
2967
|
});
|
|
@@ -3386,63 +2976,49 @@ var UsageMeteringApiResponseProcessor = /** @class */ (function () {
|
|
|
3386
2976
|
*/
|
|
3387
2977
|
UsageMeteringApiResponseProcessor.prototype.getUsageSDS = function (response) {
|
|
3388
2978
|
return __awaiter(this, void 0, void 0, function () {
|
|
3389
|
-
var contentType,
|
|
3390
|
-
return __generator(this, function (
|
|
3391
|
-
switch (
|
|
2979
|
+
var contentType, body_91, _a, _b, _c, _d, bodyText, _e, _f, body_92, body_93, _g, _h, _j, _k, body;
|
|
2980
|
+
return __generator(this, function (_l) {
|
|
2981
|
+
switch (_l.label) {
|
|
3392
2982
|
case 0:
|
|
3393
2983
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
3394
|
-
if (!(
|
|
2984
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
3395
2985
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3396
2986
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3397
2987
|
return [4 /*yield*/, response.body.text()];
|
|
3398
2988
|
case 1:
|
|
3399
|
-
|
|
3400
|
-
"UsageSDSResponse"
|
|
3401
|
-
|
|
3402
|
-
return [2 /*return*/, body_147];
|
|
2989
|
+
body_91 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
2990
|
+
"UsageSDSResponse"]);
|
|
2991
|
+
return [2 /*return*/, body_91];
|
|
3403
2992
|
case 2:
|
|
3404
|
-
if (!(
|
|
3405
|
-
|
|
3406
|
-
|
|
2993
|
+
if (!(response.httpStatusCode == 400 ||
|
|
2994
|
+
response.httpStatusCode == 403 ||
|
|
2995
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
2996
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3407
2997
|
return [4 /*yield*/, response.body.text()];
|
|
3408
2998
|
case 3:
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
""
|
|
3412
|
-
|
|
2999
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
3000
|
+
try {
|
|
3001
|
+
body_92 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
3002
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_92);
|
|
3003
|
+
}
|
|
3004
|
+
catch (error) {
|
|
3005
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
3006
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
3007
|
+
}
|
|
3008
|
+
_l.label = 4;
|
|
3413
3009
|
case 4:
|
|
3414
|
-
if (!(
|
|
3415
|
-
|
|
3416
|
-
|
|
3010
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
3011
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3012
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3417
3013
|
return [4 /*yield*/, response.body.text()];
|
|
3418
3014
|
case 5:
|
|
3419
|
-
|
|
3420
|
-
"APIErrorResponse",
|
|
3421
|
-
""]);
|
|
3422
|
-
throw new exception_1.ApiException(403, body_149);
|
|
3423
|
-
case 6:
|
|
3424
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
3425
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3426
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3427
|
-
return [4 /*yield*/, response.body.text()];
|
|
3428
|
-
case 7:
|
|
3429
|
-
body_150 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
3430
|
-
"APIErrorResponse",
|
|
3431
|
-
""]);
|
|
3432
|
-
throw new exception_1.ApiException(429, body_150);
|
|
3433
|
-
case 8:
|
|
3434
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
3435
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3436
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3437
|
-
return [4 /*yield*/, response.body.text()];
|
|
3438
|
-
case 9:
|
|
3439
|
-
body_151 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
3015
|
+
body_93 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
3440
3016
|
"UsageSDSResponse",
|
|
3441
3017
|
""]);
|
|
3442
|
-
return [2 /*return*/,
|
|
3443
|
-
case
|
|
3444
|
-
case
|
|
3445
|
-
body = (
|
|
3018
|
+
return [2 /*return*/, body_93];
|
|
3019
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
3020
|
+
case 7:
|
|
3021
|
+
body = (_l.sent()) || "";
|
|
3446
3022
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
3447
3023
|
}
|
|
3448
3024
|
});
|
|
@@ -3457,63 +3033,49 @@ var UsageMeteringApiResponseProcessor = /** @class */ (function () {
|
|
|
3457
3033
|
*/
|
|
3458
3034
|
UsageMeteringApiResponseProcessor.prototype.getUsageSNMP = function (response) {
|
|
3459
3035
|
return __awaiter(this, void 0, void 0, function () {
|
|
3460
|
-
var contentType,
|
|
3461
|
-
return __generator(this, function (
|
|
3462
|
-
switch (
|
|
3036
|
+
var contentType, body_94, _a, _b, _c, _d, bodyText, _e, _f, body_95, body_96, _g, _h, _j, _k, body;
|
|
3037
|
+
return __generator(this, function (_l) {
|
|
3038
|
+
switch (_l.label) {
|
|
3463
3039
|
case 0:
|
|
3464
3040
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
3465
|
-
if (!(
|
|
3041
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
3466
3042
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3467
3043
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3468
3044
|
return [4 /*yield*/, response.body.text()];
|
|
3469
3045
|
case 1:
|
|
3470
|
-
|
|
3471
|
-
"UsageSNMPResponse"
|
|
3472
|
-
|
|
3473
|
-
return [2 /*return*/, body_152];
|
|
3046
|
+
body_94 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
3047
|
+
"UsageSNMPResponse"]);
|
|
3048
|
+
return [2 /*return*/, body_94];
|
|
3474
3049
|
case 2:
|
|
3475
|
-
if (!(
|
|
3476
|
-
|
|
3477
|
-
|
|
3050
|
+
if (!(response.httpStatusCode == 400 ||
|
|
3051
|
+
response.httpStatusCode == 403 ||
|
|
3052
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
3053
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3478
3054
|
return [4 /*yield*/, response.body.text()];
|
|
3479
3055
|
case 3:
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
""
|
|
3483
|
-
|
|
3056
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
3057
|
+
try {
|
|
3058
|
+
body_95 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
3059
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_95);
|
|
3060
|
+
}
|
|
3061
|
+
catch (error) {
|
|
3062
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
3063
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
3064
|
+
}
|
|
3065
|
+
_l.label = 4;
|
|
3484
3066
|
case 4:
|
|
3485
|
-
if (!(
|
|
3486
|
-
|
|
3487
|
-
|
|
3067
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
3068
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3069
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3488
3070
|
return [4 /*yield*/, response.body.text()];
|
|
3489
3071
|
case 5:
|
|
3490
|
-
|
|
3491
|
-
"APIErrorResponse",
|
|
3492
|
-
""]);
|
|
3493
|
-
throw new exception_1.ApiException(403, body_154);
|
|
3494
|
-
case 6:
|
|
3495
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
3496
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3497
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3498
|
-
return [4 /*yield*/, response.body.text()];
|
|
3499
|
-
case 7:
|
|
3500
|
-
body_155 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
3501
|
-
"APIErrorResponse",
|
|
3502
|
-
""]);
|
|
3503
|
-
throw new exception_1.ApiException(429, body_155);
|
|
3504
|
-
case 8:
|
|
3505
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
3506
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3507
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3508
|
-
return [4 /*yield*/, response.body.text()];
|
|
3509
|
-
case 9:
|
|
3510
|
-
body_156 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
3072
|
+
body_96 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
3511
3073
|
"UsageSNMPResponse",
|
|
3512
3074
|
""]);
|
|
3513
|
-
return [2 /*return*/,
|
|
3514
|
-
case
|
|
3515
|
-
case
|
|
3516
|
-
body = (
|
|
3075
|
+
return [2 /*return*/, body_96];
|
|
3076
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
3077
|
+
case 7:
|
|
3078
|
+
body = (_l.sent()) || "";
|
|
3517
3079
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
3518
3080
|
}
|
|
3519
3081
|
});
|
|
@@ -3528,63 +3090,49 @@ var UsageMeteringApiResponseProcessor = /** @class */ (function () {
|
|
|
3528
3090
|
*/
|
|
3529
3091
|
UsageMeteringApiResponseProcessor.prototype.getUsageSummary = function (response) {
|
|
3530
3092
|
return __awaiter(this, void 0, void 0, function () {
|
|
3531
|
-
var contentType,
|
|
3532
|
-
return __generator(this, function (
|
|
3533
|
-
switch (
|
|
3093
|
+
var contentType, body_97, _a, _b, _c, _d, bodyText, _e, _f, body_98, body_99, _g, _h, _j, _k, body;
|
|
3094
|
+
return __generator(this, function (_l) {
|
|
3095
|
+
switch (_l.label) {
|
|
3534
3096
|
case 0:
|
|
3535
3097
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
3536
|
-
if (!(
|
|
3098
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
3537
3099
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3538
3100
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3539
3101
|
return [4 /*yield*/, response.body.text()];
|
|
3540
3102
|
case 1:
|
|
3541
|
-
|
|
3542
|
-
"UsageSummaryResponse"
|
|
3543
|
-
|
|
3544
|
-
return [2 /*return*/, body_157];
|
|
3103
|
+
body_97 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
3104
|
+
"UsageSummaryResponse"]);
|
|
3105
|
+
return [2 /*return*/, body_97];
|
|
3545
3106
|
case 2:
|
|
3546
|
-
if (!(
|
|
3547
|
-
|
|
3548
|
-
|
|
3107
|
+
if (!(response.httpStatusCode == 400 ||
|
|
3108
|
+
response.httpStatusCode == 403 ||
|
|
3109
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
3110
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3549
3111
|
return [4 /*yield*/, response.body.text()];
|
|
3550
3112
|
case 3:
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
""
|
|
3554
|
-
|
|
3113
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
3114
|
+
try {
|
|
3115
|
+
body_98 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
3116
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_98);
|
|
3117
|
+
}
|
|
3118
|
+
catch (error) {
|
|
3119
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
3120
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
3121
|
+
}
|
|
3122
|
+
_l.label = 4;
|
|
3555
3123
|
case 4:
|
|
3556
|
-
if (!(
|
|
3557
|
-
|
|
3558
|
-
|
|
3124
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
3125
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3126
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3559
3127
|
return [4 /*yield*/, response.body.text()];
|
|
3560
3128
|
case 5:
|
|
3561
|
-
|
|
3562
|
-
"APIErrorResponse",
|
|
3563
|
-
""]);
|
|
3564
|
-
throw new exception_1.ApiException(403, body_159);
|
|
3565
|
-
case 6:
|
|
3566
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
3567
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3568
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3569
|
-
return [4 /*yield*/, response.body.text()];
|
|
3570
|
-
case 7:
|
|
3571
|
-
body_160 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
3572
|
-
"APIErrorResponse",
|
|
3573
|
-
""]);
|
|
3574
|
-
throw new exception_1.ApiException(429, body_160);
|
|
3575
|
-
case 8:
|
|
3576
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
3577
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3578
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3579
|
-
return [4 /*yield*/, response.body.text()];
|
|
3580
|
-
case 9:
|
|
3581
|
-
body_161 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
3129
|
+
body_99 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
3582
3130
|
"UsageSummaryResponse",
|
|
3583
3131
|
""]);
|
|
3584
|
-
return [2 /*return*/,
|
|
3585
|
-
case
|
|
3586
|
-
case
|
|
3587
|
-
body = (
|
|
3132
|
+
return [2 /*return*/, body_99];
|
|
3133
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
3134
|
+
case 7:
|
|
3135
|
+
body = (_l.sent()) || "";
|
|
3588
3136
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
3589
3137
|
}
|
|
3590
3138
|
});
|
|
@@ -3599,63 +3147,49 @@ var UsageMeteringApiResponseProcessor = /** @class */ (function () {
|
|
|
3599
3147
|
*/
|
|
3600
3148
|
UsageMeteringApiResponseProcessor.prototype.getUsageSynthetics = function (response) {
|
|
3601
3149
|
return __awaiter(this, void 0, void 0, function () {
|
|
3602
|
-
var contentType,
|
|
3603
|
-
return __generator(this, function (
|
|
3604
|
-
switch (
|
|
3150
|
+
var contentType, body_100, _a, _b, _c, _d, bodyText, _e, _f, body_101, body_102, _g, _h, _j, _k, body;
|
|
3151
|
+
return __generator(this, function (_l) {
|
|
3152
|
+
switch (_l.label) {
|
|
3605
3153
|
case 0:
|
|
3606
3154
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
3607
|
-
if (!(
|
|
3155
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
3608
3156
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3609
3157
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3610
3158
|
return [4 /*yield*/, response.body.text()];
|
|
3611
3159
|
case 1:
|
|
3612
|
-
|
|
3613
|
-
"UsageSyntheticsResponse"
|
|
3614
|
-
|
|
3615
|
-
return [2 /*return*/, body_162];
|
|
3160
|
+
body_100 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
3161
|
+
"UsageSyntheticsResponse"]);
|
|
3162
|
+
return [2 /*return*/, body_100];
|
|
3616
3163
|
case 2:
|
|
3617
|
-
if (!(
|
|
3618
|
-
|
|
3619
|
-
|
|
3164
|
+
if (!(response.httpStatusCode == 400 ||
|
|
3165
|
+
response.httpStatusCode == 403 ||
|
|
3166
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
3167
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3620
3168
|
return [4 /*yield*/, response.body.text()];
|
|
3621
3169
|
case 3:
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
""
|
|
3625
|
-
|
|
3170
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
3171
|
+
try {
|
|
3172
|
+
body_101 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
3173
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_101);
|
|
3174
|
+
}
|
|
3175
|
+
catch (error) {
|
|
3176
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
3177
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
3178
|
+
}
|
|
3179
|
+
_l.label = 4;
|
|
3626
3180
|
case 4:
|
|
3627
|
-
if (!(
|
|
3628
|
-
|
|
3629
|
-
|
|
3181
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
3182
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3183
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3630
3184
|
return [4 /*yield*/, response.body.text()];
|
|
3631
3185
|
case 5:
|
|
3632
|
-
|
|
3633
|
-
"APIErrorResponse",
|
|
3634
|
-
""]);
|
|
3635
|
-
throw new exception_1.ApiException(403, body_164);
|
|
3636
|
-
case 6:
|
|
3637
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
3638
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3639
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3640
|
-
return [4 /*yield*/, response.body.text()];
|
|
3641
|
-
case 7:
|
|
3642
|
-
body_165 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
3643
|
-
"APIErrorResponse",
|
|
3644
|
-
""]);
|
|
3645
|
-
throw new exception_1.ApiException(429, body_165);
|
|
3646
|
-
case 8:
|
|
3647
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
3648
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3649
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3650
|
-
return [4 /*yield*/, response.body.text()];
|
|
3651
|
-
case 9:
|
|
3652
|
-
body_166 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
3186
|
+
body_102 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
3653
3187
|
"UsageSyntheticsResponse",
|
|
3654
3188
|
""]);
|
|
3655
|
-
return [2 /*return*/,
|
|
3656
|
-
case
|
|
3657
|
-
case
|
|
3658
|
-
body = (
|
|
3189
|
+
return [2 /*return*/, body_102];
|
|
3190
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
3191
|
+
case 7:
|
|
3192
|
+
body = (_l.sent()) || "";
|
|
3659
3193
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
3660
3194
|
}
|
|
3661
3195
|
});
|
|
@@ -3670,63 +3204,49 @@ var UsageMeteringApiResponseProcessor = /** @class */ (function () {
|
|
|
3670
3204
|
*/
|
|
3671
3205
|
UsageMeteringApiResponseProcessor.prototype.getUsageSyntheticsAPI = function (response) {
|
|
3672
3206
|
return __awaiter(this, void 0, void 0, function () {
|
|
3673
|
-
var contentType,
|
|
3674
|
-
return __generator(this, function (
|
|
3675
|
-
switch (
|
|
3207
|
+
var contentType, body_103, _a, _b, _c, _d, bodyText, _e, _f, body_104, body_105, _g, _h, _j, _k, body;
|
|
3208
|
+
return __generator(this, function (_l) {
|
|
3209
|
+
switch (_l.label) {
|
|
3676
3210
|
case 0:
|
|
3677
3211
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
3678
|
-
if (!(
|
|
3212
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
3679
3213
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3680
3214
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3681
3215
|
return [4 /*yield*/, response.body.text()];
|
|
3682
3216
|
case 1:
|
|
3683
|
-
|
|
3684
|
-
"UsageSyntheticsAPIResponse"
|
|
3685
|
-
|
|
3686
|
-
return [2 /*return*/, body_167];
|
|
3217
|
+
body_103 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
3218
|
+
"UsageSyntheticsAPIResponse"]);
|
|
3219
|
+
return [2 /*return*/, body_103];
|
|
3687
3220
|
case 2:
|
|
3688
|
-
if (!(
|
|
3689
|
-
|
|
3690
|
-
|
|
3221
|
+
if (!(response.httpStatusCode == 400 ||
|
|
3222
|
+
response.httpStatusCode == 403 ||
|
|
3223
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
3224
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3691
3225
|
return [4 /*yield*/, response.body.text()];
|
|
3692
3226
|
case 3:
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
""
|
|
3696
|
-
|
|
3227
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
3228
|
+
try {
|
|
3229
|
+
body_104 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
3230
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_104);
|
|
3231
|
+
}
|
|
3232
|
+
catch (error) {
|
|
3233
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
3234
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
3235
|
+
}
|
|
3236
|
+
_l.label = 4;
|
|
3697
3237
|
case 4:
|
|
3698
|
-
if (!(
|
|
3699
|
-
|
|
3700
|
-
|
|
3238
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
3239
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3240
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3701
3241
|
return [4 /*yield*/, response.body.text()];
|
|
3702
3242
|
case 5:
|
|
3703
|
-
|
|
3704
|
-
"APIErrorResponse",
|
|
3705
|
-
""]);
|
|
3706
|
-
throw new exception_1.ApiException(403, body_169);
|
|
3707
|
-
case 6:
|
|
3708
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
3709
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3710
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3711
|
-
return [4 /*yield*/, response.body.text()];
|
|
3712
|
-
case 7:
|
|
3713
|
-
body_170 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
3714
|
-
"APIErrorResponse",
|
|
3715
|
-
""]);
|
|
3716
|
-
throw new exception_1.ApiException(429, body_170);
|
|
3717
|
-
case 8:
|
|
3718
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
3719
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3720
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3721
|
-
return [4 /*yield*/, response.body.text()];
|
|
3722
|
-
case 9:
|
|
3723
|
-
body_171 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
3243
|
+
body_105 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
3724
3244
|
"UsageSyntheticsAPIResponse",
|
|
3725
3245
|
""]);
|
|
3726
|
-
return [2 /*return*/,
|
|
3727
|
-
case
|
|
3728
|
-
case
|
|
3729
|
-
body = (
|
|
3246
|
+
return [2 /*return*/, body_105];
|
|
3247
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
3248
|
+
case 7:
|
|
3249
|
+
body = (_l.sent()) || "";
|
|
3730
3250
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
3731
3251
|
}
|
|
3732
3252
|
});
|
|
@@ -3741,63 +3261,49 @@ var UsageMeteringApiResponseProcessor = /** @class */ (function () {
|
|
|
3741
3261
|
*/
|
|
3742
3262
|
UsageMeteringApiResponseProcessor.prototype.getUsageSyntheticsBrowser = function (response) {
|
|
3743
3263
|
return __awaiter(this, void 0, void 0, function () {
|
|
3744
|
-
var contentType,
|
|
3745
|
-
return __generator(this, function (
|
|
3746
|
-
switch (
|
|
3264
|
+
var contentType, body_106, _a, _b, _c, _d, bodyText, _e, _f, body_107, body_108, _g, _h, _j, _k, body;
|
|
3265
|
+
return __generator(this, function (_l) {
|
|
3266
|
+
switch (_l.label) {
|
|
3747
3267
|
case 0:
|
|
3748
3268
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
3749
|
-
if (!(
|
|
3269
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
3750
3270
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3751
3271
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3752
3272
|
return [4 /*yield*/, response.body.text()];
|
|
3753
3273
|
case 1:
|
|
3754
|
-
|
|
3755
|
-
"UsageSyntheticsBrowserResponse"
|
|
3756
|
-
|
|
3757
|
-
return [2 /*return*/, body_172];
|
|
3274
|
+
body_106 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
3275
|
+
"UsageSyntheticsBrowserResponse"]);
|
|
3276
|
+
return [2 /*return*/, body_106];
|
|
3758
3277
|
case 2:
|
|
3759
|
-
if (!(
|
|
3760
|
-
|
|
3761
|
-
|
|
3278
|
+
if (!(response.httpStatusCode == 400 ||
|
|
3279
|
+
response.httpStatusCode == 403 ||
|
|
3280
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
3281
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3762
3282
|
return [4 /*yield*/, response.body.text()];
|
|
3763
3283
|
case 3:
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
""
|
|
3767
|
-
|
|
3284
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
3285
|
+
try {
|
|
3286
|
+
body_107 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
3287
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_107);
|
|
3288
|
+
}
|
|
3289
|
+
catch (error) {
|
|
3290
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
3291
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
3292
|
+
}
|
|
3293
|
+
_l.label = 4;
|
|
3768
3294
|
case 4:
|
|
3769
|
-
if (!(
|
|
3770
|
-
|
|
3771
|
-
|
|
3295
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
3296
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3297
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3772
3298
|
return [4 /*yield*/, response.body.text()];
|
|
3773
3299
|
case 5:
|
|
3774
|
-
|
|
3775
|
-
"APIErrorResponse",
|
|
3776
|
-
""]);
|
|
3777
|
-
throw new exception_1.ApiException(403, body_174);
|
|
3778
|
-
case 6:
|
|
3779
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
3780
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3781
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3782
|
-
return [4 /*yield*/, response.body.text()];
|
|
3783
|
-
case 7:
|
|
3784
|
-
body_175 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
3785
|
-
"APIErrorResponse",
|
|
3786
|
-
""]);
|
|
3787
|
-
throw new exception_1.ApiException(429, body_175);
|
|
3788
|
-
case 8:
|
|
3789
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
3790
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3791
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3792
|
-
return [4 /*yield*/, response.body.text()];
|
|
3793
|
-
case 9:
|
|
3794
|
-
body_176 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
3300
|
+
body_108 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
3795
3301
|
"UsageSyntheticsBrowserResponse",
|
|
3796
3302
|
""]);
|
|
3797
|
-
return [2 /*return*/,
|
|
3798
|
-
case
|
|
3799
|
-
case
|
|
3800
|
-
body = (
|
|
3303
|
+
return [2 /*return*/, body_108];
|
|
3304
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
3305
|
+
case 7:
|
|
3306
|
+
body = (_l.sent()) || "";
|
|
3801
3307
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
3802
3308
|
}
|
|
3803
3309
|
});
|
|
@@ -3812,63 +3318,49 @@ var UsageMeteringApiResponseProcessor = /** @class */ (function () {
|
|
|
3812
3318
|
*/
|
|
3813
3319
|
UsageMeteringApiResponseProcessor.prototype.getUsageTimeseries = function (response) {
|
|
3814
3320
|
return __awaiter(this, void 0, void 0, function () {
|
|
3815
|
-
var contentType,
|
|
3816
|
-
return __generator(this, function (
|
|
3817
|
-
switch (
|
|
3321
|
+
var contentType, body_109, _a, _b, _c, _d, bodyText, _e, _f, body_110, body_111, _g, _h, _j, _k, body;
|
|
3322
|
+
return __generator(this, function (_l) {
|
|
3323
|
+
switch (_l.label) {
|
|
3818
3324
|
case 0:
|
|
3819
3325
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
3820
|
-
if (!(
|
|
3326
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
3821
3327
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3822
3328
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3823
3329
|
return [4 /*yield*/, response.body.text()];
|
|
3824
3330
|
case 1:
|
|
3825
|
-
|
|
3826
|
-
"UsageTimeseriesResponse"
|
|
3827
|
-
|
|
3828
|
-
return [2 /*return*/, body_177];
|
|
3331
|
+
body_109 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
3332
|
+
"UsageTimeseriesResponse"]);
|
|
3333
|
+
return [2 /*return*/, body_109];
|
|
3829
3334
|
case 2:
|
|
3830
|
-
if (!(
|
|
3831
|
-
|
|
3832
|
-
|
|
3335
|
+
if (!(response.httpStatusCode == 400 ||
|
|
3336
|
+
response.httpStatusCode == 403 ||
|
|
3337
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
3338
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3833
3339
|
return [4 /*yield*/, response.body.text()];
|
|
3834
3340
|
case 3:
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
""
|
|
3838
|
-
|
|
3341
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
3342
|
+
try {
|
|
3343
|
+
body_110 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
3344
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_110);
|
|
3345
|
+
}
|
|
3346
|
+
catch (error) {
|
|
3347
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
3348
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
3349
|
+
}
|
|
3350
|
+
_l.label = 4;
|
|
3839
3351
|
case 4:
|
|
3840
|
-
if (!(
|
|
3841
|
-
|
|
3842
|
-
|
|
3352
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
3353
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3354
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3843
3355
|
return [4 /*yield*/, response.body.text()];
|
|
3844
3356
|
case 5:
|
|
3845
|
-
|
|
3846
|
-
"APIErrorResponse",
|
|
3847
|
-
""]);
|
|
3848
|
-
throw new exception_1.ApiException(403, body_179);
|
|
3849
|
-
case 6:
|
|
3850
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
3851
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3852
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3853
|
-
return [4 /*yield*/, response.body.text()];
|
|
3854
|
-
case 7:
|
|
3855
|
-
body_180 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
3856
|
-
"APIErrorResponse",
|
|
3857
|
-
""]);
|
|
3858
|
-
throw new exception_1.ApiException(429, body_180);
|
|
3859
|
-
case 8:
|
|
3860
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
3861
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3862
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3863
|
-
return [4 /*yield*/, response.body.text()];
|
|
3864
|
-
case 9:
|
|
3865
|
-
body_181 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
3357
|
+
body_111 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
3866
3358
|
"UsageTimeseriesResponse",
|
|
3867
3359
|
""]);
|
|
3868
|
-
return [2 /*return*/,
|
|
3869
|
-
case
|
|
3870
|
-
case
|
|
3871
|
-
body = (
|
|
3360
|
+
return [2 /*return*/, body_111];
|
|
3361
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
3362
|
+
case 7:
|
|
3363
|
+
body = (_l.sent()) || "";
|
|
3872
3364
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
3873
3365
|
}
|
|
3874
3366
|
});
|
|
@@ -3883,63 +3375,49 @@ var UsageMeteringApiResponseProcessor = /** @class */ (function () {
|
|
|
3883
3375
|
*/
|
|
3884
3376
|
UsageMeteringApiResponseProcessor.prototype.getUsageTopAvgMetrics = function (response) {
|
|
3885
3377
|
return __awaiter(this, void 0, void 0, function () {
|
|
3886
|
-
var contentType,
|
|
3887
|
-
return __generator(this, function (
|
|
3888
|
-
switch (
|
|
3378
|
+
var contentType, body_112, _a, _b, _c, _d, bodyText, _e, _f, body_113, body_114, _g, _h, _j, _k, body;
|
|
3379
|
+
return __generator(this, function (_l) {
|
|
3380
|
+
switch (_l.label) {
|
|
3889
3381
|
case 0:
|
|
3890
3382
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
3891
|
-
if (!(
|
|
3383
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
3892
3384
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3893
3385
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3894
3386
|
return [4 /*yield*/, response.body.text()];
|
|
3895
3387
|
case 1:
|
|
3896
|
-
|
|
3897
|
-
"UsageTopAvgMetricsResponse"
|
|
3898
|
-
|
|
3899
|
-
return [2 /*return*/, body_182];
|
|
3388
|
+
body_112 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
3389
|
+
"UsageTopAvgMetricsResponse"]);
|
|
3390
|
+
return [2 /*return*/, body_112];
|
|
3900
3391
|
case 2:
|
|
3901
|
-
if (!(
|
|
3902
|
-
|
|
3903
|
-
|
|
3392
|
+
if (!(response.httpStatusCode == 400 ||
|
|
3393
|
+
response.httpStatusCode == 403 ||
|
|
3394
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
3395
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3904
3396
|
return [4 /*yield*/, response.body.text()];
|
|
3905
3397
|
case 3:
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
""
|
|
3909
|
-
|
|
3398
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
3399
|
+
try {
|
|
3400
|
+
body_113 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
3401
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_113);
|
|
3402
|
+
}
|
|
3403
|
+
catch (error) {
|
|
3404
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
3405
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
3406
|
+
}
|
|
3407
|
+
_l.label = 4;
|
|
3910
3408
|
case 4:
|
|
3911
|
-
if (!(
|
|
3912
|
-
|
|
3913
|
-
|
|
3409
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
3410
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3411
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3914
3412
|
return [4 /*yield*/, response.body.text()];
|
|
3915
3413
|
case 5:
|
|
3916
|
-
|
|
3917
|
-
"APIErrorResponse",
|
|
3918
|
-
""]);
|
|
3919
|
-
throw new exception_1.ApiException(403, body_184);
|
|
3920
|
-
case 6:
|
|
3921
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
3922
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3923
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3924
|
-
return [4 /*yield*/, response.body.text()];
|
|
3925
|
-
case 7:
|
|
3926
|
-
body_185 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
3927
|
-
"APIErrorResponse",
|
|
3928
|
-
""]);
|
|
3929
|
-
throw new exception_1.ApiException(429, body_185);
|
|
3930
|
-
case 8:
|
|
3931
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
3932
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3933
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3934
|
-
return [4 /*yield*/, response.body.text()];
|
|
3935
|
-
case 9:
|
|
3936
|
-
body_186 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
3414
|
+
body_114 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
3937
3415
|
"UsageTopAvgMetricsResponse",
|
|
3938
3416
|
""]);
|
|
3939
|
-
return [2 /*return*/,
|
|
3940
|
-
case
|
|
3941
|
-
case
|
|
3942
|
-
body = (
|
|
3417
|
+
return [2 /*return*/, body_114];
|
|
3418
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
3419
|
+
case 7:
|
|
3420
|
+
body = (_l.sent()) || "";
|
|
3943
3421
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
3944
3422
|
}
|
|
3945
3423
|
});
|
|
@@ -3958,6 +3436,8 @@ var UsageMeteringApi = /** @class */ (function () {
|
|
|
3958
3436
|
}
|
|
3959
3437
|
/**
|
|
3960
3438
|
* Get daily custom reports.
|
|
3439
|
+
* **Note:** This endpoint will be fully deprecated on December 1, 2022.
|
|
3440
|
+
* Refer to [Migrating from v1 to v2 of the Usage Attribution API](https://docs.datadoghq.com/account_management/guide/usage-attribution-migration/) for the associated migration guide.
|
|
3961
3441
|
* @param param The request object
|
|
3962
3442
|
*/
|
|
3963
3443
|
UsageMeteringApi.prototype.getDailyCustomReports = function (param, options) {
|
|
@@ -4003,7 +3483,7 @@ var UsageMeteringApi = /** @class */ (function () {
|
|
|
4003
3483
|
};
|
|
4004
3484
|
/**
|
|
4005
3485
|
* Get hourly usage for incident management.
|
|
4006
|
-
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|
|
3486
|
+
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
4007
3487
|
* @param param The request object
|
|
4008
3488
|
*/
|
|
4009
3489
|
UsageMeteringApi.prototype.getIncidentManagement = function (param, options) {
|
|
@@ -4019,7 +3499,7 @@ var UsageMeteringApi = /** @class */ (function () {
|
|
|
4019
3499
|
};
|
|
4020
3500
|
/**
|
|
4021
3501
|
* Get hourly usage for ingested spans.
|
|
4022
|
-
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|
|
3502
|
+
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
4023
3503
|
* @param param The request object
|
|
4024
3504
|
*/
|
|
4025
3505
|
UsageMeteringApi.prototype.getIngestedSpans = function (param, options) {
|
|
@@ -4035,6 +3515,8 @@ var UsageMeteringApi = /** @class */ (function () {
|
|
|
4035
3515
|
};
|
|
4036
3516
|
/**
|
|
4037
3517
|
* Get monthly custom reports.
|
|
3518
|
+
* **Note:** This endpoint will be fully deprecated on December 1, 2022.
|
|
3519
|
+
* Refer to [Migrating from v1 to v2 of the Usage Attribution API](https://docs.datadoghq.com/account_management/guide/usage-attribution-migration/) for the associated migration guide.
|
|
4038
3520
|
* @param param The request object
|
|
4039
3521
|
*/
|
|
4040
3522
|
UsageMeteringApi.prototype.getMonthlyCustomReports = function (param, options) {
|
|
@@ -4080,6 +3562,8 @@ var UsageMeteringApi = /** @class */ (function () {
|
|
|
4080
3562
|
};
|
|
4081
3563
|
/**
|
|
4082
3564
|
* Get specified daily custom reports.
|
|
3565
|
+
* **Note:** This endpoint will be fully deprecated on December 1, 2022.
|
|
3566
|
+
* Refer to [Migrating from v1 to v2 of the Usage Attribution API](https://docs.datadoghq.com/account_management/guide/usage-attribution-migration/) for the associated migration guide.
|
|
4083
3567
|
* @param param The request object
|
|
4084
3568
|
*/
|
|
4085
3569
|
UsageMeteringApi.prototype.getSpecifiedDailyCustomReports = function (param, options) {
|
|
@@ -4095,6 +3579,8 @@ var UsageMeteringApi = /** @class */ (function () {
|
|
|
4095
3579
|
};
|
|
4096
3580
|
/**
|
|
4097
3581
|
* Get specified monthly custom reports.
|
|
3582
|
+
* **Note:** This endpoint will be fully deprecated on December 1, 2022.
|
|
3583
|
+
* Refer to [Migrating from v1 to v2 of the Usage Attribution API](https://docs.datadoghq.com/account_management/guide/usage-attribution-migration/) for the associated migration guide.
|
|
4098
3584
|
* @param param The request object
|
|
4099
3585
|
*/
|
|
4100
3586
|
UsageMeteringApi.prototype.getSpecifiedMonthlyCustomReports = function (param, options) {
|
|
@@ -4110,7 +3596,7 @@ var UsageMeteringApi = /** @class */ (function () {
|
|
|
4110
3596
|
};
|
|
4111
3597
|
/**
|
|
4112
3598
|
* Get hourly usage for analyzed logs (Security Monitoring).
|
|
4113
|
-
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|
|
3599
|
+
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
4114
3600
|
* @param param The request object
|
|
4115
3601
|
*/
|
|
4116
3602
|
UsageMeteringApi.prototype.getUsageAnalyzedLogs = function (param, options) {
|
|
@@ -4126,6 +3612,8 @@ var UsageMeteringApi = /** @class */ (function () {
|
|
|
4126
3612
|
};
|
|
4127
3613
|
/**
|
|
4128
3614
|
* Get usage attribution.
|
|
3615
|
+
* **Note:** This endpoint will be fully deprecated on December 1, 2022.
|
|
3616
|
+
* Refer to [Migrating from v1 to v2 of the Usage Attribution API](https://docs.datadoghq.com/account_management/guide/usage-attribution-migration/) for the associated migration guide.
|
|
4129
3617
|
* @param param The request object
|
|
4130
3618
|
*/
|
|
4131
3619
|
UsageMeteringApi.prototype.getUsageAttribution = function (param, options) {
|
|
@@ -4141,7 +3629,7 @@ var UsageMeteringApi = /** @class */ (function () {
|
|
|
4141
3629
|
};
|
|
4142
3630
|
/**
|
|
4143
3631
|
* Get hourly usage for audit logs.
|
|
4144
|
-
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|
|
3632
|
+
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
4145
3633
|
* @param param The request object
|
|
4146
3634
|
*/
|
|
4147
3635
|
UsageMeteringApi.prototype.getUsageAuditLogs = function (param, options) {
|
|
@@ -4173,7 +3661,7 @@ var UsageMeteringApi = /** @class */ (function () {
|
|
|
4173
3661
|
};
|
|
4174
3662
|
/**
|
|
4175
3663
|
* Get hourly usage for CI visibility (tests, pipeline, and spans).
|
|
4176
|
-
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|
|
3664
|
+
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
4177
3665
|
* @param param The request object
|
|
4178
3666
|
*/
|
|
4179
3667
|
UsageMeteringApi.prototype.getUsageCIApp = function (param, options) {
|
|
@@ -4189,7 +3677,7 @@ var UsageMeteringApi = /** @class */ (function () {
|
|
|
4189
3677
|
};
|
|
4190
3678
|
/**
|
|
4191
3679
|
* Get hourly usage for cloud security posture management (CSPM).
|
|
4192
|
-
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|
|
3680
|
+
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
4193
3681
|
* @param param The request object
|
|
4194
3682
|
*/
|
|
4195
3683
|
UsageMeteringApi.prototype.getUsageCloudSecurityPostureManagement = function (param, options) {
|
|
@@ -4205,7 +3693,7 @@ var UsageMeteringApi = /** @class */ (function () {
|
|
|
4205
3693
|
};
|
|
4206
3694
|
/**
|
|
4207
3695
|
* Get hourly usage for cloud workload security.
|
|
4208
|
-
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|
|
3696
|
+
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
4209
3697
|
* @param param The request object
|
|
4210
3698
|
*/
|
|
4211
3699
|
UsageMeteringApi.prototype.getUsageCWS = function (param, options) {
|
|
@@ -4221,7 +3709,7 @@ var UsageMeteringApi = /** @class */ (function () {
|
|
|
4221
3709
|
};
|
|
4222
3710
|
/**
|
|
4223
3711
|
* Get hourly usage for database monitoring
|
|
4224
|
-
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|
|
3712
|
+
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
4225
3713
|
* @param param The request object
|
|
4226
3714
|
*/
|
|
4227
3715
|
UsageMeteringApi.prototype.getUsageDBM = function (param, options) {
|
|
@@ -4237,7 +3725,7 @@ var UsageMeteringApi = /** @class */ (function () {
|
|
|
4237
3725
|
};
|
|
4238
3726
|
/**
|
|
4239
3727
|
* Get hourly usage for [Fargate](https://docs.datadoghq.com/integrations/ecs_fargate/).
|
|
4240
|
-
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|
|
3728
|
+
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
4241
3729
|
* @param param The request object
|
|
4242
3730
|
*/
|
|
4243
3731
|
UsageMeteringApi.prototype.getUsageFargate = function (param, options) {
|
|
@@ -4253,7 +3741,7 @@ var UsageMeteringApi = /** @class */ (function () {
|
|
|
4253
3741
|
};
|
|
4254
3742
|
/**
|
|
4255
3743
|
* Get hourly usage for hosts and containers.
|
|
4256
|
-
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|
|
3744
|
+
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
4257
3745
|
* @param param The request object
|
|
4258
3746
|
*/
|
|
4259
3747
|
UsageMeteringApi.prototype.getUsageHosts = function (param, options) {
|
|
@@ -4269,7 +3757,7 @@ var UsageMeteringApi = /** @class */ (function () {
|
|
|
4269
3757
|
};
|
|
4270
3758
|
/**
|
|
4271
3759
|
* Get hourly usage for indexed spans.
|
|
4272
|
-
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|
|
3760
|
+
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
4273
3761
|
* @param param The request object
|
|
4274
3762
|
*/
|
|
4275
3763
|
UsageMeteringApi.prototype.getUsageIndexedSpans = function (param, options) {
|
|
@@ -4285,7 +3773,7 @@ var UsageMeteringApi = /** @class */ (function () {
|
|
|
4285
3773
|
};
|
|
4286
3774
|
/**
|
|
4287
3775
|
* Get hourly usage for IoT.
|
|
4288
|
-
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|
|
3776
|
+
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
4289
3777
|
* @param param The request object
|
|
4290
3778
|
*/
|
|
4291
3779
|
UsageMeteringApi.prototype.getUsageInternetOfThings = function (param, options) {
|
|
@@ -4301,7 +3789,7 @@ var UsageMeteringApi = /** @class */ (function () {
|
|
|
4301
3789
|
};
|
|
4302
3790
|
/**
|
|
4303
3791
|
* Get hourly usage for lambda.
|
|
4304
|
-
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|
|
3792
|
+
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
4305
3793
|
* @param param The request object
|
|
4306
3794
|
*/
|
|
4307
3795
|
UsageMeteringApi.prototype.getUsageLambda = function (param, options) {
|
|
@@ -4317,7 +3805,7 @@ var UsageMeteringApi = /** @class */ (function () {
|
|
|
4317
3805
|
};
|
|
4318
3806
|
/**
|
|
4319
3807
|
* Get hourly usage for logs.
|
|
4320
|
-
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|
|
3808
|
+
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
4321
3809
|
* @param param The request object
|
|
4322
3810
|
*/
|
|
4323
3811
|
UsageMeteringApi.prototype.getUsageLogs = function (param, options) {
|
|
@@ -4348,7 +3836,7 @@ var UsageMeteringApi = /** @class */ (function () {
|
|
|
4348
3836
|
};
|
|
4349
3837
|
/**
|
|
4350
3838
|
* Get hourly usage for indexed logs by retention period.
|
|
4351
|
-
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|
|
3839
|
+
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
4352
3840
|
* @param param The request object
|
|
4353
3841
|
*/
|
|
4354
3842
|
UsageMeteringApi.prototype.getUsageLogsByRetention = function (param, options) {
|
|
@@ -4364,7 +3852,7 @@ var UsageMeteringApi = /** @class */ (function () {
|
|
|
4364
3852
|
};
|
|
4365
3853
|
/**
|
|
4366
3854
|
* Get hourly usage for network flows.
|
|
4367
|
-
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|
|
3855
|
+
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
4368
3856
|
* @param param The request object
|
|
4369
3857
|
*/
|
|
4370
3858
|
UsageMeteringApi.prototype.getUsageNetworkFlows = function (param, options) {
|
|
@@ -4380,7 +3868,7 @@ var UsageMeteringApi = /** @class */ (function () {
|
|
|
4380
3868
|
};
|
|
4381
3869
|
/**
|
|
4382
3870
|
* Get hourly usage for network hosts.
|
|
4383
|
-
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|
|
3871
|
+
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
4384
3872
|
* @param param The request object
|
|
4385
3873
|
*/
|
|
4386
3874
|
UsageMeteringApi.prototype.getUsageNetworkHosts = function (param, options) {
|
|
@@ -4396,7 +3884,7 @@ var UsageMeteringApi = /** @class */ (function () {
|
|
|
4396
3884
|
};
|
|
4397
3885
|
/**
|
|
4398
3886
|
* Get hourly usage for online archive.
|
|
4399
|
-
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|
|
3887
|
+
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
4400
3888
|
* @param param The request object
|
|
4401
3889
|
*/
|
|
4402
3890
|
UsageMeteringApi.prototype.getUsageOnlineArchive = function (param, options) {
|
|
@@ -4412,7 +3900,7 @@ var UsageMeteringApi = /** @class */ (function () {
|
|
|
4412
3900
|
};
|
|
4413
3901
|
/**
|
|
4414
3902
|
* Get hourly usage for profiled hosts.
|
|
4415
|
-
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|
|
3903
|
+
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
4416
3904
|
* @param param The request object
|
|
4417
3905
|
*/
|
|
4418
3906
|
UsageMeteringApi.prototype.getUsageProfiling = function (param, options) {
|
|
@@ -4428,7 +3916,7 @@ var UsageMeteringApi = /** @class */ (function () {
|
|
|
4428
3916
|
};
|
|
4429
3917
|
/**
|
|
4430
3918
|
* Get hourly usage for [RUM](https://docs.datadoghq.com/real_user_monitoring/) Sessions.
|
|
4431
|
-
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|
|
3919
|
+
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
4432
3920
|
* @param param The request object
|
|
4433
3921
|
*/
|
|
4434
3922
|
UsageMeteringApi.prototype.getUsageRumSessions = function (param, options) {
|
|
@@ -4444,7 +3932,7 @@ var UsageMeteringApi = /** @class */ (function () {
|
|
|
4444
3932
|
};
|
|
4445
3933
|
/**
|
|
4446
3934
|
* Get hourly usage for [RUM](https://docs.datadoghq.com/real_user_monitoring/) Units.
|
|
4447
|
-
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|
|
3935
|
+
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
4448
3936
|
* @param param The request object
|
|
4449
3937
|
*/
|
|
4450
3938
|
UsageMeteringApi.prototype.getUsageRumUnits = function (param, options) {
|
|
@@ -4460,7 +3948,7 @@ var UsageMeteringApi = /** @class */ (function () {
|
|
|
4460
3948
|
};
|
|
4461
3949
|
/**
|
|
4462
3950
|
* Get hourly usage for sensitive data scanner.
|
|
4463
|
-
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|
|
3951
|
+
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
4464
3952
|
* @param param The request object
|
|
4465
3953
|
*/
|
|
4466
3954
|
UsageMeteringApi.prototype.getUsageSDS = function (param, options) {
|
|
@@ -4476,7 +3964,7 @@ var UsageMeteringApi = /** @class */ (function () {
|
|
|
4476
3964
|
};
|
|
4477
3965
|
/**
|
|
4478
3966
|
* Get hourly usage for SNMP devices.
|
|
4479
|
-
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|
|
3967
|
+
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
4480
3968
|
* @param param The request object
|
|
4481
3969
|
*/
|
|
4482
3970
|
UsageMeteringApi.prototype.getUsageSNMP = function (param, options) {
|
|
@@ -4507,7 +3995,7 @@ var UsageMeteringApi = /** @class */ (function () {
|
|
|
4507
3995
|
};
|
|
4508
3996
|
/**
|
|
4509
3997
|
* Get hourly usage for [synthetics checks](https://docs.datadoghq.com/synthetics/).
|
|
4510
|
-
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|
|
3998
|
+
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
4511
3999
|
* @param param The request object
|
|
4512
4000
|
*/
|
|
4513
4001
|
UsageMeteringApi.prototype.getUsageSynthetics = function (param, options) {
|
|
@@ -4523,7 +4011,7 @@ var UsageMeteringApi = /** @class */ (function () {
|
|
|
4523
4011
|
};
|
|
4524
4012
|
/**
|
|
4525
4013
|
* Get hourly usage for [synthetics API checks](https://docs.datadoghq.com/synthetics/).
|
|
4526
|
-
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|
|
4014
|
+
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
4527
4015
|
* @param param The request object
|
|
4528
4016
|
*/
|
|
4529
4017
|
UsageMeteringApi.prototype.getUsageSyntheticsAPI = function (param, options) {
|
|
@@ -4539,7 +4027,7 @@ var UsageMeteringApi = /** @class */ (function () {
|
|
|
4539
4027
|
};
|
|
4540
4028
|
/**
|
|
4541
4029
|
* Get hourly usage for synthetics browser checks.
|
|
4542
|
-
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|
|
4030
|
+
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
4543
4031
|
* @param param The request object
|
|
4544
4032
|
*/
|
|
4545
4033
|
UsageMeteringApi.prototype.getUsageSyntheticsBrowser = function (param, options) {
|
|
@@ -4555,7 +4043,7 @@ var UsageMeteringApi = /** @class */ (function () {
|
|
|
4555
4043
|
};
|
|
4556
4044
|
/**
|
|
4557
4045
|
* Get hourly usage for [custom metrics](https://docs.datadoghq.com/developers/metrics/custom_metrics/).
|
|
4558
|
-
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family)
|
|
4046
|
+
* **Note:** hourly usage data for all products is now available in the [Get hourly usage by product family API](https://docs.datadoghq.com/api/latest/usage-metering/#get-hourly-usage-by-product-family). Refer to [Migrating from the V1 Hourly Usage APIs to V2](https://docs.datadoghq.com/account_management/guide/hourly-usage-migration/) for the associated migration guide.
|
|
4559
4047
|
* @param param The request object
|
|
4560
4048
|
*/
|
|
4561
4049
|
UsageMeteringApi.prototype.getUsageTimeseries = function (param, options) {
|