@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 ServiceLevelObjectivesApiRequestFactory = /** @class */ (function (_super) {
|
|
63
62
|
__extends(ServiceLevelObjectivesApiRequestFactory, _super);
|
|
64
63
|
function ServiceLevelObjectivesApiRequestFactory() {
|
|
@@ -304,7 +303,7 @@ var ServiceLevelObjectivesApiRequestFactory = /** @class */ (function (_super) {
|
|
|
304
303
|
});
|
|
305
304
|
});
|
|
306
305
|
};
|
|
307
|
-
ServiceLevelObjectivesApiRequestFactory.prototype.searchSLO = function (query, pageSize, pageNumber, _options) {
|
|
306
|
+
ServiceLevelObjectivesApiRequestFactory.prototype.searchSLO = function (query, pageSize, pageNumber, includeFacets, _options) {
|
|
308
307
|
return __awaiter(this, void 0, void 0, function () {
|
|
309
308
|
var _config, localVarPath, requestContext;
|
|
310
309
|
return __generator(this, function (_a) {
|
|
@@ -327,6 +326,9 @@ var ServiceLevelObjectivesApiRequestFactory = /** @class */ (function (_super) {
|
|
|
327
326
|
if (pageNumber !== undefined) {
|
|
328
327
|
requestContext.setQueryParam("page[number]", ObjectSerializer_1.ObjectSerializer.serialize(pageNumber, "number", "int64"));
|
|
329
328
|
}
|
|
329
|
+
if (includeFacets !== undefined) {
|
|
330
|
+
requestContext.setQueryParam("include_facets", ObjectSerializer_1.ObjectSerializer.serialize(includeFacets, "boolean", ""));
|
|
331
|
+
}
|
|
330
332
|
// Apply auth methods
|
|
331
333
|
(0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
|
|
332
334
|
"apiKeyAuth",
|
|
@@ -383,73 +385,49 @@ var ServiceLevelObjectivesApiResponseProcessor = /** @class */ (function () {
|
|
|
383
385
|
*/
|
|
384
386
|
ServiceLevelObjectivesApiResponseProcessor.prototype.checkCanDeleteSLO = function (response) {
|
|
385
387
|
return __awaiter(this, void 0, void 0, function () {
|
|
386
|
-
var contentType, body_1, _a, _b, _c, _d,
|
|
387
|
-
return __generator(this, function (
|
|
388
|
-
switch (
|
|
388
|
+
var contentType, body_1, _a, _b, _c, _d, bodyText, _e, _f, body_2, body_3, _g, _h, _j, _k, body;
|
|
389
|
+
return __generator(this, function (_l) {
|
|
390
|
+
switch (_l.label) {
|
|
389
391
|
case 0:
|
|
390
392
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
391
|
-
if (!(
|
|
393
|
+
if (!(response.httpStatusCode == 200 || response.httpStatusCode == 409)) return [3 /*break*/, 2];
|
|
392
394
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
393
395
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
394
396
|
return [4 /*yield*/, response.body.text()];
|
|
395
397
|
case 1:
|
|
396
|
-
body_1 = _b.apply(_a, [_d.apply(_c, [
|
|
397
|
-
"CheckCanDeleteSLOResponse"
|
|
398
|
-
""]);
|
|
398
|
+
body_1 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
399
|
+
"CheckCanDeleteSLOResponse"]);
|
|
399
400
|
return [2 /*return*/, body_1];
|
|
400
401
|
case 2:
|
|
401
|
-
if (!(
|
|
402
|
-
|
|
403
|
-
|
|
402
|
+
if (!(response.httpStatusCode == 400 ||
|
|
403
|
+
response.httpStatusCode == 403 ||
|
|
404
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
405
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
404
406
|
return [4 /*yield*/, response.body.text()];
|
|
405
407
|
case 3:
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
""
|
|
409
|
-
|
|
408
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
409
|
+
try {
|
|
410
|
+
body_2 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
411
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_2);
|
|
412
|
+
}
|
|
413
|
+
catch (error) {
|
|
414
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
415
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
416
|
+
}
|
|
417
|
+
_l.label = 4;
|
|
410
418
|
case 4:
|
|
411
|
-
if (!(
|
|
412
|
-
|
|
413
|
-
|
|
419
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
420
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
421
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
414
422
|
return [4 /*yield*/, response.body.text()];
|
|
415
423
|
case 5:
|
|
416
|
-
body_3 =
|
|
417
|
-
"APIErrorResponse",
|
|
418
|
-
""]);
|
|
419
|
-
throw new exception_1.ApiException(403, body_3);
|
|
420
|
-
case 6:
|
|
421
|
-
if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
422
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
423
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
424
|
-
return [4 /*yield*/, response.body.text()];
|
|
425
|
-
case 7:
|
|
426
|
-
body_4 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
|
|
424
|
+
body_3 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
427
425
|
"CheckCanDeleteSLOResponse",
|
|
428
426
|
""]);
|
|
429
|
-
|
|
430
|
-
case
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
434
|
-
return [4 /*yield*/, response.body.text()];
|
|
435
|
-
case 9:
|
|
436
|
-
body_5 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
|
|
437
|
-
"APIErrorResponse",
|
|
438
|
-
""]);
|
|
439
|
-
throw new exception_1.ApiException(429, body_5);
|
|
440
|
-
case 10:
|
|
441
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
|
|
442
|
-
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
443
|
-
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
444
|
-
return [4 /*yield*/, response.body.text()];
|
|
445
|
-
case 11:
|
|
446
|
-
body_6 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
|
|
447
|
-
"CheckCanDeleteSLOResponse",
|
|
448
|
-
""]);
|
|
449
|
-
return [2 /*return*/, body_6];
|
|
450
|
-
case 12: return [4 /*yield*/, response.body.text()];
|
|
451
|
-
case 13:
|
|
452
|
-
body = (_0.sent()) || "";
|
|
427
|
+
return [2 /*return*/, body_3];
|
|
428
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
429
|
+
case 7:
|
|
430
|
+
body = (_l.sent()) || "";
|
|
453
431
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
454
432
|
}
|
|
455
433
|
});
|
|
@@ -464,63 +442,49 @@ var ServiceLevelObjectivesApiResponseProcessor = /** @class */ (function () {
|
|
|
464
442
|
*/
|
|
465
443
|
ServiceLevelObjectivesApiResponseProcessor.prototype.createSLO = function (response) {
|
|
466
444
|
return __awaiter(this, void 0, void 0, function () {
|
|
467
|
-
var contentType,
|
|
468
|
-
return __generator(this, function (
|
|
469
|
-
switch (
|
|
445
|
+
var contentType, body_4, _a, _b, _c, _d, bodyText, _e, _f, body_5, body_6, _g, _h, _j, _k, body;
|
|
446
|
+
return __generator(this, function (_l) {
|
|
447
|
+
switch (_l.label) {
|
|
470
448
|
case 0:
|
|
471
449
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
472
|
-
if (!(
|
|
450
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
473
451
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
474
452
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
475
453
|
return [4 /*yield*/, response.body.text()];
|
|
476
454
|
case 1:
|
|
477
|
-
|
|
478
|
-
"SLOListResponse"
|
|
479
|
-
|
|
480
|
-
return [2 /*return*/, body_7];
|
|
455
|
+
body_4 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
456
|
+
"SLOListResponse"]);
|
|
457
|
+
return [2 /*return*/, body_4];
|
|
481
458
|
case 2:
|
|
482
|
-
if (!(
|
|
483
|
-
|
|
484
|
-
|
|
459
|
+
if (!(response.httpStatusCode == 400 ||
|
|
460
|
+
response.httpStatusCode == 403 ||
|
|
461
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
462
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
485
463
|
return [4 /*yield*/, response.body.text()];
|
|
486
464
|
case 3:
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
""
|
|
490
|
-
|
|
465
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
466
|
+
try {
|
|
467
|
+
body_5 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
468
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_5);
|
|
469
|
+
}
|
|
470
|
+
catch (error) {
|
|
471
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
472
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
473
|
+
}
|
|
474
|
+
_l.label = 4;
|
|
491
475
|
case 4:
|
|
492
|
-
if (!(
|
|
493
|
-
|
|
494
|
-
|
|
476
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
477
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
478
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
495
479
|
return [4 /*yield*/, response.body.text()];
|
|
496
480
|
case 5:
|
|
497
|
-
|
|
498
|
-
"APIErrorResponse",
|
|
499
|
-
""]);
|
|
500
|
-
throw new exception_1.ApiException(403, body_9);
|
|
501
|
-
case 6:
|
|
502
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
503
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
504
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
505
|
-
return [4 /*yield*/, response.body.text()];
|
|
506
|
-
case 7:
|
|
507
|
-
body_10 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
508
|
-
"APIErrorResponse",
|
|
509
|
-
""]);
|
|
510
|
-
throw new exception_1.ApiException(429, body_10);
|
|
511
|
-
case 8:
|
|
512
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
513
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
514
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
515
|
-
return [4 /*yield*/, response.body.text()];
|
|
516
|
-
case 9:
|
|
517
|
-
body_11 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
481
|
+
body_6 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
518
482
|
"SLOListResponse",
|
|
519
483
|
""]);
|
|
520
|
-
return [2 /*return*/,
|
|
521
|
-
case
|
|
522
|
-
case
|
|
523
|
-
body = (
|
|
484
|
+
return [2 /*return*/, body_6];
|
|
485
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
486
|
+
case 7:
|
|
487
|
+
body = (_l.sent()) || "";
|
|
524
488
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
525
489
|
}
|
|
526
490
|
});
|
|
@@ -535,73 +499,49 @@ var ServiceLevelObjectivesApiResponseProcessor = /** @class */ (function () {
|
|
|
535
499
|
*/
|
|
536
500
|
ServiceLevelObjectivesApiResponseProcessor.prototype.deleteSLO = function (response) {
|
|
537
501
|
return __awaiter(this, void 0, void 0, function () {
|
|
538
|
-
var contentType,
|
|
539
|
-
return __generator(this, function (
|
|
540
|
-
switch (
|
|
502
|
+
var contentType, body_7, _a, _b, _c, _d, bodyText, _e, _f, body_8, body_9, _g, _h, _j, _k, body;
|
|
503
|
+
return __generator(this, function (_l) {
|
|
504
|
+
switch (_l.label) {
|
|
541
505
|
case 0:
|
|
542
506
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
543
|
-
if (!(
|
|
507
|
+
if (!(response.httpStatusCode == 200 || response.httpStatusCode == 409)) return [3 /*break*/, 2];
|
|
544
508
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
545
509
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
546
510
|
return [4 /*yield*/, response.body.text()];
|
|
547
511
|
case 1:
|
|
548
|
-
|
|
549
|
-
"SLODeleteResponse"
|
|
550
|
-
|
|
551
|
-
return [2 /*return*/, body_12];
|
|
512
|
+
body_7 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
513
|
+
"SLODeleteResponse"]);
|
|
514
|
+
return [2 /*return*/, body_7];
|
|
552
515
|
case 2:
|
|
553
|
-
if (!(
|
|
554
|
-
|
|
555
|
-
|
|
516
|
+
if (!(response.httpStatusCode == 403 ||
|
|
517
|
+
response.httpStatusCode == 404 ||
|
|
518
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
519
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
556
520
|
return [4 /*yield*/, response.body.text()];
|
|
557
521
|
case 3:
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
""
|
|
561
|
-
|
|
522
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
523
|
+
try {
|
|
524
|
+
body_8 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
525
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_8);
|
|
526
|
+
}
|
|
527
|
+
catch (error) {
|
|
528
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
529
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
530
|
+
}
|
|
531
|
+
_l.label = 4;
|
|
562
532
|
case 4:
|
|
563
|
-
if (!(
|
|
564
|
-
|
|
565
|
-
|
|
533
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
534
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
535
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
566
536
|
return [4 /*yield*/, response.body.text()];
|
|
567
537
|
case 5:
|
|
568
|
-
|
|
569
|
-
"APIErrorResponse",
|
|
570
|
-
""]);
|
|
571
|
-
throw new exception_1.ApiException(404, body_14);
|
|
572
|
-
case 6:
|
|
573
|
-
if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
574
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
575
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
576
|
-
return [4 /*yield*/, response.body.text()];
|
|
577
|
-
case 7:
|
|
578
|
-
body_15 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
|
|
579
|
-
"SLODeleteResponse",
|
|
580
|
-
""]);
|
|
581
|
-
throw new exception_1.ApiException(409, body_15);
|
|
582
|
-
case 8:
|
|
583
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
|
|
584
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
585
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
586
|
-
return [4 /*yield*/, response.body.text()];
|
|
587
|
-
case 9:
|
|
588
|
-
body_16 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
|
|
589
|
-
"APIErrorResponse",
|
|
590
|
-
""]);
|
|
591
|
-
throw new exception_1.ApiException(429, body_16);
|
|
592
|
-
case 10:
|
|
593
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
|
|
594
|
-
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
595
|
-
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
596
|
-
return [4 /*yield*/, response.body.text()];
|
|
597
|
-
case 11:
|
|
598
|
-
body_17 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
|
|
538
|
+
body_9 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
599
539
|
"SLODeleteResponse",
|
|
600
540
|
""]);
|
|
601
|
-
return [2 /*return*/,
|
|
602
|
-
case
|
|
603
|
-
case
|
|
604
|
-
body = (
|
|
541
|
+
return [2 /*return*/, body_9];
|
|
542
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
543
|
+
case 7:
|
|
544
|
+
body = (_l.sent()) || "";
|
|
605
545
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
606
546
|
}
|
|
607
547
|
});
|
|
@@ -616,63 +556,49 @@ var ServiceLevelObjectivesApiResponseProcessor = /** @class */ (function () {
|
|
|
616
556
|
*/
|
|
617
557
|
ServiceLevelObjectivesApiResponseProcessor.prototype.deleteSLOTimeframeInBulk = function (response) {
|
|
618
558
|
return __awaiter(this, void 0, void 0, function () {
|
|
619
|
-
var contentType,
|
|
620
|
-
return __generator(this, function (
|
|
621
|
-
switch (
|
|
559
|
+
var contentType, body_10, _a, _b, _c, _d, bodyText, _e, _f, body_11, body_12, _g, _h, _j, _k, body;
|
|
560
|
+
return __generator(this, function (_l) {
|
|
561
|
+
switch (_l.label) {
|
|
622
562
|
case 0:
|
|
623
563
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
624
|
-
if (!(
|
|
564
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
625
565
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
626
566
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
627
567
|
return [4 /*yield*/, response.body.text()];
|
|
628
568
|
case 1:
|
|
629
|
-
|
|
630
|
-
"SLOBulkDeleteResponse"
|
|
631
|
-
|
|
632
|
-
return [2 /*return*/, body_18];
|
|
569
|
+
body_10 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
570
|
+
"SLOBulkDeleteResponse"]);
|
|
571
|
+
return [2 /*return*/, body_10];
|
|
633
572
|
case 2:
|
|
634
|
-
if (!(
|
|
635
|
-
|
|
636
|
-
|
|
573
|
+
if (!(response.httpStatusCode == 400 ||
|
|
574
|
+
response.httpStatusCode == 403 ||
|
|
575
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
576
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
637
577
|
return [4 /*yield*/, response.body.text()];
|
|
638
578
|
case 3:
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
""
|
|
642
|
-
|
|
579
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
580
|
+
try {
|
|
581
|
+
body_11 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
582
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_11);
|
|
583
|
+
}
|
|
584
|
+
catch (error) {
|
|
585
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
586
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
587
|
+
}
|
|
588
|
+
_l.label = 4;
|
|
643
589
|
case 4:
|
|
644
|
-
if (!(
|
|
645
|
-
|
|
646
|
-
|
|
590
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
591
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
592
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
647
593
|
return [4 /*yield*/, response.body.text()];
|
|
648
594
|
case 5:
|
|
649
|
-
|
|
650
|
-
"APIErrorResponse",
|
|
651
|
-
""]);
|
|
652
|
-
throw new exception_1.ApiException(403, body_20);
|
|
653
|
-
case 6:
|
|
654
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
655
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
656
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
657
|
-
return [4 /*yield*/, response.body.text()];
|
|
658
|
-
case 7:
|
|
659
|
-
body_21 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
660
|
-
"APIErrorResponse",
|
|
661
|
-
""]);
|
|
662
|
-
throw new exception_1.ApiException(429, body_21);
|
|
663
|
-
case 8:
|
|
664
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
665
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
666
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
667
|
-
return [4 /*yield*/, response.body.text()];
|
|
668
|
-
case 9:
|
|
669
|
-
body_22 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
595
|
+
body_12 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
670
596
|
"SLOBulkDeleteResponse",
|
|
671
597
|
""]);
|
|
672
|
-
return [2 /*return*/,
|
|
673
|
-
case
|
|
674
|
-
case
|
|
675
|
-
body = (
|
|
598
|
+
return [2 /*return*/, body_12];
|
|
599
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
600
|
+
case 7:
|
|
601
|
+
body = (_l.sent()) || "";
|
|
676
602
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
677
603
|
}
|
|
678
604
|
});
|
|
@@ -687,63 +613,49 @@ var ServiceLevelObjectivesApiResponseProcessor = /** @class */ (function () {
|
|
|
687
613
|
*/
|
|
688
614
|
ServiceLevelObjectivesApiResponseProcessor.prototype.getSLO = function (response) {
|
|
689
615
|
return __awaiter(this, void 0, void 0, function () {
|
|
690
|
-
var contentType,
|
|
691
|
-
return __generator(this, function (
|
|
692
|
-
switch (
|
|
616
|
+
var contentType, body_13, _a, _b, _c, _d, bodyText, _e, _f, body_14, body_15, _g, _h, _j, _k, body;
|
|
617
|
+
return __generator(this, function (_l) {
|
|
618
|
+
switch (_l.label) {
|
|
693
619
|
case 0:
|
|
694
620
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
695
|
-
if (!(
|
|
621
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
696
622
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
697
623
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
698
624
|
return [4 /*yield*/, response.body.text()];
|
|
699
625
|
case 1:
|
|
700
|
-
|
|
701
|
-
"SLOResponse"
|
|
702
|
-
|
|
703
|
-
return [2 /*return*/, body_23];
|
|
626
|
+
body_13 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
627
|
+
"SLOResponse"]);
|
|
628
|
+
return [2 /*return*/, body_13];
|
|
704
629
|
case 2:
|
|
705
|
-
if (!(
|
|
706
|
-
|
|
707
|
-
|
|
630
|
+
if (!(response.httpStatusCode == 403 ||
|
|
631
|
+
response.httpStatusCode == 404 ||
|
|
632
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
633
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
708
634
|
return [4 /*yield*/, response.body.text()];
|
|
709
635
|
case 3:
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
""
|
|
713
|
-
|
|
636
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
637
|
+
try {
|
|
638
|
+
body_14 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
639
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_14);
|
|
640
|
+
}
|
|
641
|
+
catch (error) {
|
|
642
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
643
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
644
|
+
}
|
|
645
|
+
_l.label = 4;
|
|
714
646
|
case 4:
|
|
715
|
-
if (!(
|
|
716
|
-
|
|
717
|
-
|
|
647
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
648
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
649
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
718
650
|
return [4 /*yield*/, response.body.text()];
|
|
719
651
|
case 5:
|
|
720
|
-
|
|
721
|
-
"APIErrorResponse",
|
|
722
|
-
""]);
|
|
723
|
-
throw new exception_1.ApiException(404, body_25);
|
|
724
|
-
case 6:
|
|
725
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
726
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
727
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
728
|
-
return [4 /*yield*/, response.body.text()];
|
|
729
|
-
case 7:
|
|
730
|
-
body_26 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
731
|
-
"APIErrorResponse",
|
|
732
|
-
""]);
|
|
733
|
-
throw new exception_1.ApiException(429, body_26);
|
|
734
|
-
case 8:
|
|
735
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
736
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
737
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
738
|
-
return [4 /*yield*/, response.body.text()];
|
|
739
|
-
case 9:
|
|
740
|
-
body_27 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
652
|
+
body_15 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
741
653
|
"SLOResponse",
|
|
742
654
|
""]);
|
|
743
|
-
return [2 /*return*/,
|
|
744
|
-
case
|
|
745
|
-
case
|
|
746
|
-
body = (
|
|
655
|
+
return [2 /*return*/, body_15];
|
|
656
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
657
|
+
case 7:
|
|
658
|
+
body = (_l.sent()) || "";
|
|
747
659
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
748
660
|
}
|
|
749
661
|
});
|
|
@@ -758,73 +670,50 @@ var ServiceLevelObjectivesApiResponseProcessor = /** @class */ (function () {
|
|
|
758
670
|
*/
|
|
759
671
|
ServiceLevelObjectivesApiResponseProcessor.prototype.getSLOCorrections = function (response) {
|
|
760
672
|
return __awaiter(this, void 0, void 0, function () {
|
|
761
|
-
var contentType,
|
|
762
|
-
return __generator(this, function (
|
|
763
|
-
switch (
|
|
673
|
+
var contentType, body_16, _a, _b, _c, _d, bodyText, _e, _f, body_17, body_18, _g, _h, _j, _k, body;
|
|
674
|
+
return __generator(this, function (_l) {
|
|
675
|
+
switch (_l.label) {
|
|
764
676
|
case 0:
|
|
765
677
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
766
|
-
if (!(
|
|
678
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
767
679
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
768
680
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
769
681
|
return [4 /*yield*/, response.body.text()];
|
|
770
682
|
case 1:
|
|
771
|
-
|
|
772
|
-
"SLOCorrectionListResponse"
|
|
773
|
-
|
|
774
|
-
return [2 /*return*/, body_28];
|
|
683
|
+
body_16 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
684
|
+
"SLOCorrectionListResponse"]);
|
|
685
|
+
return [2 /*return*/, body_16];
|
|
775
686
|
case 2:
|
|
776
|
-
if (!(
|
|
777
|
-
|
|
778
|
-
|
|
687
|
+
if (!(response.httpStatusCode == 400 ||
|
|
688
|
+
response.httpStatusCode == 403 ||
|
|
689
|
+
response.httpStatusCode == 404 ||
|
|
690
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
691
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
779
692
|
return [4 /*yield*/, response.body.text()];
|
|
780
693
|
case 3:
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
""
|
|
784
|
-
|
|
694
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
695
|
+
try {
|
|
696
|
+
body_17 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
697
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_17);
|
|
698
|
+
}
|
|
699
|
+
catch (error) {
|
|
700
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
701
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
702
|
+
}
|
|
703
|
+
_l.label = 4;
|
|
785
704
|
case 4:
|
|
786
|
-
if (!(
|
|
787
|
-
|
|
788
|
-
|
|
705
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
706
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
707
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
789
708
|
return [4 /*yield*/, response.body.text()];
|
|
790
709
|
case 5:
|
|
791
|
-
|
|
792
|
-
"APIErrorResponse",
|
|
793
|
-
""]);
|
|
794
|
-
throw new exception_1.ApiException(403, body_30);
|
|
795
|
-
case 6:
|
|
796
|
-
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
797
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
798
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
799
|
-
return [4 /*yield*/, response.body.text()];
|
|
800
|
-
case 7:
|
|
801
|
-
body_31 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
|
|
802
|
-
"APIErrorResponse",
|
|
803
|
-
""]);
|
|
804
|
-
throw new exception_1.ApiException(404, body_31);
|
|
805
|
-
case 8:
|
|
806
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
|
|
807
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
808
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
809
|
-
return [4 /*yield*/, response.body.text()];
|
|
810
|
-
case 9:
|
|
811
|
-
body_32 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
|
|
812
|
-
"APIErrorResponse",
|
|
813
|
-
""]);
|
|
814
|
-
throw new exception_1.ApiException(429, body_32);
|
|
815
|
-
case 10:
|
|
816
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
|
|
817
|
-
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
818
|
-
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
819
|
-
return [4 /*yield*/, response.body.text()];
|
|
820
|
-
case 11:
|
|
821
|
-
body_33 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
|
|
710
|
+
body_18 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
822
711
|
"SLOCorrectionListResponse",
|
|
823
712
|
""]);
|
|
824
|
-
return [2 /*return*/,
|
|
825
|
-
case
|
|
826
|
-
case
|
|
827
|
-
body = (
|
|
713
|
+
return [2 /*return*/, body_18];
|
|
714
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
715
|
+
case 7:
|
|
716
|
+
body = (_l.sent()) || "";
|
|
828
717
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
829
718
|
}
|
|
830
719
|
});
|
|
@@ -839,73 +728,50 @@ var ServiceLevelObjectivesApiResponseProcessor = /** @class */ (function () {
|
|
|
839
728
|
*/
|
|
840
729
|
ServiceLevelObjectivesApiResponseProcessor.prototype.getSLOHistory = function (response) {
|
|
841
730
|
return __awaiter(this, void 0, void 0, function () {
|
|
842
|
-
var contentType,
|
|
843
|
-
return __generator(this, function (
|
|
844
|
-
switch (
|
|
731
|
+
var contentType, body_19, _a, _b, _c, _d, bodyText, _e, _f, body_20, body_21, _g, _h, _j, _k, body;
|
|
732
|
+
return __generator(this, function (_l) {
|
|
733
|
+
switch (_l.label) {
|
|
845
734
|
case 0:
|
|
846
735
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
847
|
-
if (!(
|
|
736
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
848
737
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
849
738
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
850
739
|
return [4 /*yield*/, response.body.text()];
|
|
851
740
|
case 1:
|
|
852
|
-
|
|
853
|
-
"SLOHistoryResponse"
|
|
854
|
-
|
|
855
|
-
return [2 /*return*/, body_34];
|
|
741
|
+
body_19 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
742
|
+
"SLOHistoryResponse"]);
|
|
743
|
+
return [2 /*return*/, body_19];
|
|
856
744
|
case 2:
|
|
857
|
-
if (!(
|
|
858
|
-
|
|
859
|
-
|
|
745
|
+
if (!(response.httpStatusCode == 400 ||
|
|
746
|
+
response.httpStatusCode == 403 ||
|
|
747
|
+
response.httpStatusCode == 404 ||
|
|
748
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
749
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
860
750
|
return [4 /*yield*/, response.body.text()];
|
|
861
751
|
case 3:
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
""
|
|
865
|
-
|
|
752
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
753
|
+
try {
|
|
754
|
+
body_20 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
755
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_20);
|
|
756
|
+
}
|
|
757
|
+
catch (error) {
|
|
758
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
759
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
760
|
+
}
|
|
761
|
+
_l.label = 4;
|
|
866
762
|
case 4:
|
|
867
|
-
if (!(
|
|
868
|
-
|
|
869
|
-
|
|
763
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
764
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
765
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
870
766
|
return [4 /*yield*/, response.body.text()];
|
|
871
767
|
case 5:
|
|
872
|
-
|
|
873
|
-
"APIErrorResponse",
|
|
874
|
-
""]);
|
|
875
|
-
throw new exception_1.ApiException(403, body_36);
|
|
876
|
-
case 6:
|
|
877
|
-
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
878
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
879
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
880
|
-
return [4 /*yield*/, response.body.text()];
|
|
881
|
-
case 7:
|
|
882
|
-
body_37 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
|
|
883
|
-
"APIErrorResponse",
|
|
884
|
-
""]);
|
|
885
|
-
throw new exception_1.ApiException(404, body_37);
|
|
886
|
-
case 8:
|
|
887
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
|
|
888
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
889
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
890
|
-
return [4 /*yield*/, response.body.text()];
|
|
891
|
-
case 9:
|
|
892
|
-
body_38 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
|
|
893
|
-
"APIErrorResponse",
|
|
894
|
-
""]);
|
|
895
|
-
throw new exception_1.ApiException(429, body_38);
|
|
896
|
-
case 10:
|
|
897
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
|
|
898
|
-
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
899
|
-
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
900
|
-
return [4 /*yield*/, response.body.text()];
|
|
901
|
-
case 11:
|
|
902
|
-
body_39 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
|
|
768
|
+
body_21 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
903
769
|
"SLOHistoryResponse",
|
|
904
770
|
""]);
|
|
905
|
-
return [2 /*return*/,
|
|
906
|
-
case
|
|
907
|
-
case
|
|
908
|
-
body = (
|
|
771
|
+
return [2 /*return*/, body_21];
|
|
772
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
773
|
+
case 7:
|
|
774
|
+
body = (_l.sent()) || "";
|
|
909
775
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
910
776
|
}
|
|
911
777
|
});
|
|
@@ -920,73 +786,50 @@ var ServiceLevelObjectivesApiResponseProcessor = /** @class */ (function () {
|
|
|
920
786
|
*/
|
|
921
787
|
ServiceLevelObjectivesApiResponseProcessor.prototype.listSLOs = function (response) {
|
|
922
788
|
return __awaiter(this, void 0, void 0, function () {
|
|
923
|
-
var contentType,
|
|
924
|
-
return __generator(this, function (
|
|
925
|
-
switch (
|
|
789
|
+
var contentType, body_22, _a, _b, _c, _d, bodyText, _e, _f, body_23, body_24, _g, _h, _j, _k, body;
|
|
790
|
+
return __generator(this, function (_l) {
|
|
791
|
+
switch (_l.label) {
|
|
926
792
|
case 0:
|
|
927
793
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
928
|
-
if (!(
|
|
794
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
929
795
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
930
796
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
931
797
|
return [4 /*yield*/, response.body.text()];
|
|
932
798
|
case 1:
|
|
933
|
-
|
|
934
|
-
"SLOListResponse"
|
|
935
|
-
|
|
936
|
-
return [2 /*return*/, body_40];
|
|
799
|
+
body_22 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
800
|
+
"SLOListResponse"]);
|
|
801
|
+
return [2 /*return*/, body_22];
|
|
937
802
|
case 2:
|
|
938
|
-
if (!(
|
|
939
|
-
|
|
940
|
-
|
|
803
|
+
if (!(response.httpStatusCode == 400 ||
|
|
804
|
+
response.httpStatusCode == 403 ||
|
|
805
|
+
response.httpStatusCode == 404 ||
|
|
806
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
807
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
941
808
|
return [4 /*yield*/, response.body.text()];
|
|
942
809
|
case 3:
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
""
|
|
946
|
-
|
|
810
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
811
|
+
try {
|
|
812
|
+
body_23 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
813
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_23);
|
|
814
|
+
}
|
|
815
|
+
catch (error) {
|
|
816
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
817
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
818
|
+
}
|
|
819
|
+
_l.label = 4;
|
|
947
820
|
case 4:
|
|
948
|
-
if (!(
|
|
949
|
-
|
|
950
|
-
|
|
821
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
822
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
823
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
951
824
|
return [4 /*yield*/, response.body.text()];
|
|
952
825
|
case 5:
|
|
953
|
-
|
|
954
|
-
"APIErrorResponse",
|
|
955
|
-
""]);
|
|
956
|
-
throw new exception_1.ApiException(403, body_42);
|
|
957
|
-
case 6:
|
|
958
|
-
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
959
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
960
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
961
|
-
return [4 /*yield*/, response.body.text()];
|
|
962
|
-
case 7:
|
|
963
|
-
body_43 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
|
|
964
|
-
"APIErrorResponse",
|
|
965
|
-
""]);
|
|
966
|
-
throw new exception_1.ApiException(404, body_43);
|
|
967
|
-
case 8:
|
|
968
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
|
|
969
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
970
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
971
|
-
return [4 /*yield*/, response.body.text()];
|
|
972
|
-
case 9:
|
|
973
|
-
body_44 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
|
|
974
|
-
"APIErrorResponse",
|
|
975
|
-
""]);
|
|
976
|
-
throw new exception_1.ApiException(429, body_44);
|
|
977
|
-
case 10:
|
|
978
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
|
|
979
|
-
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
980
|
-
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
981
|
-
return [4 /*yield*/, response.body.text()];
|
|
982
|
-
case 11:
|
|
983
|
-
body_45 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
|
|
826
|
+
body_24 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
984
827
|
"SLOListResponse",
|
|
985
828
|
""]);
|
|
986
|
-
return [2 /*return*/,
|
|
987
|
-
case
|
|
988
|
-
case
|
|
989
|
-
body = (
|
|
829
|
+
return [2 /*return*/, body_24];
|
|
830
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
831
|
+
case 7:
|
|
832
|
+
body = (_l.sent()) || "";
|
|
990
833
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
991
834
|
}
|
|
992
835
|
});
|
|
@@ -1001,63 +844,49 @@ var ServiceLevelObjectivesApiResponseProcessor = /** @class */ (function () {
|
|
|
1001
844
|
*/
|
|
1002
845
|
ServiceLevelObjectivesApiResponseProcessor.prototype.searchSLO = function (response) {
|
|
1003
846
|
return __awaiter(this, void 0, void 0, function () {
|
|
1004
|
-
var contentType,
|
|
1005
|
-
return __generator(this, function (
|
|
1006
|
-
switch (
|
|
847
|
+
var contentType, body_25, _a, _b, _c, _d, bodyText, _e, _f, body_26, body_27, _g, _h, _j, _k, body;
|
|
848
|
+
return __generator(this, function (_l) {
|
|
849
|
+
switch (_l.label) {
|
|
1007
850
|
case 0:
|
|
1008
851
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1009
|
-
if (!(
|
|
852
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
1010
853
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1011
854
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1012
855
|
return [4 /*yield*/, response.body.text()];
|
|
1013
856
|
case 1:
|
|
1014
|
-
|
|
1015
|
-
"SearchSLOResponse"
|
|
1016
|
-
|
|
1017
|
-
return [2 /*return*/, body_46];
|
|
857
|
+
body_25 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
858
|
+
"SearchSLOResponse"]);
|
|
859
|
+
return [2 /*return*/, body_25];
|
|
1018
860
|
case 2:
|
|
1019
|
-
if (!(
|
|
1020
|
-
|
|
1021
|
-
|
|
861
|
+
if (!(response.httpStatusCode == 400 ||
|
|
862
|
+
response.httpStatusCode == 403 ||
|
|
863
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
864
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1022
865
|
return [4 /*yield*/, response.body.text()];
|
|
1023
866
|
case 3:
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
""
|
|
1027
|
-
|
|
867
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
868
|
+
try {
|
|
869
|
+
body_26 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
870
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_26);
|
|
871
|
+
}
|
|
872
|
+
catch (error) {
|
|
873
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
874
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
875
|
+
}
|
|
876
|
+
_l.label = 4;
|
|
1028
877
|
case 4:
|
|
1029
|
-
if (!(
|
|
1030
|
-
|
|
1031
|
-
|
|
878
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
879
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
880
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1032
881
|
return [4 /*yield*/, response.body.text()];
|
|
1033
882
|
case 5:
|
|
1034
|
-
|
|
1035
|
-
"APIErrorResponse",
|
|
1036
|
-
""]);
|
|
1037
|
-
throw new exception_1.ApiException(403, body_48);
|
|
1038
|
-
case 6:
|
|
1039
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
1040
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1041
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1042
|
-
return [4 /*yield*/, response.body.text()];
|
|
1043
|
-
case 7:
|
|
1044
|
-
body_49 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
1045
|
-
"APIErrorResponse",
|
|
1046
|
-
""]);
|
|
1047
|
-
throw new exception_1.ApiException(429, body_49);
|
|
1048
|
-
case 8:
|
|
1049
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
1050
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1051
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1052
|
-
return [4 /*yield*/, response.body.text()];
|
|
1053
|
-
case 9:
|
|
1054
|
-
body_50 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
883
|
+
body_27 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
1055
884
|
"SearchSLOResponse",
|
|
1056
885
|
""]);
|
|
1057
|
-
return [2 /*return*/,
|
|
1058
|
-
case
|
|
1059
|
-
case
|
|
1060
|
-
body = (
|
|
886
|
+
return [2 /*return*/, body_27];
|
|
887
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
888
|
+
case 7:
|
|
889
|
+
body = (_l.sent()) || "";
|
|
1061
890
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1062
891
|
}
|
|
1063
892
|
});
|
|
@@ -1072,73 +901,50 @@ var ServiceLevelObjectivesApiResponseProcessor = /** @class */ (function () {
|
|
|
1072
901
|
*/
|
|
1073
902
|
ServiceLevelObjectivesApiResponseProcessor.prototype.updateSLO = function (response) {
|
|
1074
903
|
return __awaiter(this, void 0, void 0, function () {
|
|
1075
|
-
var contentType,
|
|
1076
|
-
return __generator(this, function (
|
|
1077
|
-
switch (
|
|
904
|
+
var contentType, body_28, _a, _b, _c, _d, bodyText, _e, _f, body_29, body_30, _g, _h, _j, _k, body;
|
|
905
|
+
return __generator(this, function (_l) {
|
|
906
|
+
switch (_l.label) {
|
|
1078
907
|
case 0:
|
|
1079
908
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1080
|
-
if (!(
|
|
909
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
1081
910
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1082
911
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1083
912
|
return [4 /*yield*/, response.body.text()];
|
|
1084
913
|
case 1:
|
|
1085
|
-
|
|
1086
|
-
"SLOListResponse"
|
|
1087
|
-
|
|
1088
|
-
return [2 /*return*/, body_51];
|
|
914
|
+
body_28 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
915
|
+
"SLOListResponse"]);
|
|
916
|
+
return [2 /*return*/, body_28];
|
|
1089
917
|
case 2:
|
|
1090
|
-
if (!(
|
|
1091
|
-
|
|
1092
|
-
|
|
918
|
+
if (!(response.httpStatusCode == 400 ||
|
|
919
|
+
response.httpStatusCode == 403 ||
|
|
920
|
+
response.httpStatusCode == 404 ||
|
|
921
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
922
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1093
923
|
return [4 /*yield*/, response.body.text()];
|
|
1094
924
|
case 3:
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
""
|
|
1098
|
-
|
|
925
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
926
|
+
try {
|
|
927
|
+
body_29 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
928
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_29);
|
|
929
|
+
}
|
|
930
|
+
catch (error) {
|
|
931
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
932
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
933
|
+
}
|
|
934
|
+
_l.label = 4;
|
|
1099
935
|
case 4:
|
|
1100
|
-
if (!(
|
|
1101
|
-
|
|
1102
|
-
|
|
936
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
937
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
938
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1103
939
|
return [4 /*yield*/, response.body.text()];
|
|
1104
940
|
case 5:
|
|
1105
|
-
|
|
1106
|
-
"APIErrorResponse",
|
|
1107
|
-
""]);
|
|
1108
|
-
throw new exception_1.ApiException(403, body_53);
|
|
1109
|
-
case 6:
|
|
1110
|
-
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
1111
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1112
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1113
|
-
return [4 /*yield*/, response.body.text()];
|
|
1114
|
-
case 7:
|
|
1115
|
-
body_54 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
|
|
1116
|
-
"APIErrorResponse",
|
|
1117
|
-
""]);
|
|
1118
|
-
throw new exception_1.ApiException(404, body_54);
|
|
1119
|
-
case 8:
|
|
1120
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
|
|
1121
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1122
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1123
|
-
return [4 /*yield*/, response.body.text()];
|
|
1124
|
-
case 9:
|
|
1125
|
-
body_55 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
|
|
1126
|
-
"APIErrorResponse",
|
|
1127
|
-
""]);
|
|
1128
|
-
throw new exception_1.ApiException(429, body_55);
|
|
1129
|
-
case 10:
|
|
1130
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
|
|
1131
|
-
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1132
|
-
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1133
|
-
return [4 /*yield*/, response.body.text()];
|
|
1134
|
-
case 11:
|
|
1135
|
-
body_56 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
|
|
941
|
+
body_30 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
1136
942
|
"SLOListResponse",
|
|
1137
943
|
""]);
|
|
1138
|
-
return [2 /*return*/,
|
|
1139
|
-
case
|
|
1140
|
-
case
|
|
1141
|
-
body = (
|
|
944
|
+
return [2 /*return*/, body_30];
|
|
945
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
946
|
+
case 7:
|
|
947
|
+
body = (_l.sent()) || "";
|
|
1142
948
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1143
949
|
}
|
|
1144
950
|
});
|
|
@@ -1299,7 +1105,7 @@ var ServiceLevelObjectivesApi = /** @class */ (function () {
|
|
|
1299
1105
|
ServiceLevelObjectivesApi.prototype.searchSLO = function (param, options) {
|
|
1300
1106
|
var _this = this;
|
|
1301
1107
|
if (param === void 0) { param = {}; }
|
|
1302
|
-
var requestContextPromise = this.requestFactory.searchSLO(param.query, param.pageSize, param.pageNumber, options);
|
|
1108
|
+
var requestContextPromise = this.requestFactory.searchSLO(param.query, param.pageSize, param.pageNumber, param.includeFacets, options);
|
|
1303
1109
|
return requestContextPromise.then(function (requestContext) {
|
|
1304
1110
|
return _this.configuration.httpApi
|
|
1305
1111
|
.send(requestContext)
|