@datadog/datadog-api-client 1.3.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +44 -0
- package/README.md +72 -2
- package/dist/packages/datadog-api-client-common/configuration.js +2 -1
- package/dist/packages/datadog-api-client-common/configuration.js.map +1 -1
- package/dist/packages/datadog-api-client-common/exception.js +3 -0
- package/dist/packages/datadog-api-client-common/exception.js.map +1 -1
- package/dist/packages/datadog-api-client-common/http/isomorphic-fetch.js +3 -5
- package/dist/packages/datadog-api-client-common/http/isomorphic-fetch.js.map +1 -1
- package/dist/packages/datadog-api-client-common/servers.js.map +1 -1
- package/dist/packages/datadog-api-client-common/util.d.ts +0 -9
- package/dist/packages/datadog-api-client-common/util.js +1 -32
- package/dist/packages/datadog-api-client-common/util.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/AWSIntegrationApi.js +253 -407
- package/dist/packages/datadog-api-client-v1/apis/AWSIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/AWSLogsIntegrationApi.js +194 -291
- package/dist/packages/datadog-api-client-v1/apis/AWSLogsIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/AuthenticationApi.js +26 -33
- package/dist/packages/datadog-api-client-v1/apis/AuthenticationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/AzureIntegrationApi.js +140 -215
- package/dist/packages/datadog-api-client-v1/apis/AzureIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/DashboardListsApi.js +139 -215
- package/dist/packages/datadog-api-client-v1/apis/DashboardListsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/DashboardsApi.js +191 -313
- package/dist/packages/datadog-api-client-v1/apis/DashboardsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/DowntimesApi.js +194 -308
- package/dist/packages/datadog-api-client-v1/apis/DowntimesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/EventsApi.js +82 -119
- package/dist/packages/datadog-api-client-v1/apis/EventsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/GCPIntegrationApi.js +112 -172
- package/dist/packages/datadog-api-client-v1/apis/GCPIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/HostsApi.js +112 -172
- package/dist/packages/datadog-api-client-v1/apis/HostsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/IPRangesApi.js +22 -19
- package/dist/packages/datadog-api-client-v1/apis/IPRangesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/KeyManagementApi.js +281 -460
- package/dist/packages/datadog-api-client-v1/apis/KeyManagementApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/LogsApi.js +71 -67
- package/dist/packages/datadog-api-client-v1/apis/LogsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/LogsIndexesApi.js +200 -226
- package/dist/packages/datadog-api-client-v1/apis/LogsIndexesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/LogsPipelinesApi.js +234 -272
- package/dist/packages/datadog-api-client-v1/apis/LogsPipelinesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/MetricsApi.js +201 -351
- package/dist/packages/datadog-api-client-v1/apis/MetricsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/MonitorsApi.js +285 -490
- package/dist/packages/datadog-api-client-v1/apis/MonitorsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/NotebooksApi.js +141 -251
- package/dist/packages/datadog-api-client-v1/apis/NotebooksApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/OrganizationsApi.js +167 -258
- package/dist/packages/datadog-api-client-v1/apis/OrganizationsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/PagerDutyIntegrationApi.js +107 -174
- package/dist/packages/datadog-api-client-v1/apis/PagerDutyIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/SecurityMonitoringApi.js +87 -159
- package/dist/packages/datadog-api-client-v1/apis/SecurityMonitoringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/ServiceChecksApi.js +30 -63
- package/dist/packages/datadog-api-client-v1/apis/ServiceChecksApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectiveCorrectionsApi.js +137 -221
- package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectiveCorrectionsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.d.ts +8 -1
- package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.js +288 -492
- package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/SlackIntegrationApi.js +142 -261
- package/dist/packages/datadog-api-client-v1/apis/SlackIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/SnapshotsApi.js +28 -43
- package/dist/packages/datadog-api-client-v1/apis/SnapshotsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/SyntheticsApi.js +738 -1130
- package/dist/packages/datadog-api-client-v1/apis/SyntheticsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/TagsApi.js +137 -211
- package/dist/packages/datadog-api-client-v1/apis/TagsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.d.ts +1 -1
- package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.js +1056 -1595
- package/dist/packages/datadog-api-client-v1/apis/UsageMeteringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/UsersApi.js +141 -235
- package/dist/packages/datadog-api-client-v1/apis/UsersApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/apis/WebhooksIntegrationApi.js +222 -376
- package/dist/packages/datadog-api-client-v1/apis/WebhooksIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/index.d.ts +20 -0
- package/dist/packages/datadog-api-client-v1/index.js +35 -7
- package/dist/packages/datadog-api-client-v1/index.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariable.d.ts +5 -1
- package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariable.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariable.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariablePresetValue.d.ts +5 -1
- package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariablePresetValue.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/DashboardTemplateVariablePresetValue.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryDefinition.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryDefinition.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/FormulaAndFunctionEventQueryDefinition.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.d.ts +2 -1
- package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.js +2 -1
- package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/ListStreamQuery.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/ListStreamQuery.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/ListStreamQuery.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/MonitorOptions.d.ts +9 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorOptions.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/MonitorOptions.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.d.ts +3 -1
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.js +4 -2
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.d.ts +8 -0
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js +44 -0
- package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SLOCreator.d.ts +36 -0
- package/dist/packages/datadog-api-client-v1/models/SLOCreator.js +42 -0
- package/dist/packages/datadog-api-client-v1/models/SLOCreator.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinition.d.ts +47 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinition.js +46 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinition.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinitionType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinitionType.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetDefinitionType.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetQuery.d.ts +32 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetQuery.js +39 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetQuery.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequest.d.ts +34 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequest.js +34 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequestType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequestType.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/SLOListWidgetRequestType.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLOOverallStatuses.d.ts +55 -0
- package/dist/packages/datadog-api-client-v1/models/SLOOverallStatuses.js +56 -0
- package/dist/packages/datadog-api-client-v1/models/SLOOverallStatuses.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SLORawErrorBudgetRemaining.d.ts +32 -0
- package/dist/packages/datadog-api-client-v1/models/SLORawErrorBudgetRemaining.js +38 -0
- package/dist/packages/datadog-api-client-v1/models/SLORawErrorBudgetRemaining.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOQuery.d.ts +39 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOQuery.js +43 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOQuery.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributes.d.ts +2 -2
- package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributes.js +3 -3
- package/dist/packages/datadog-api-client-v1/models/SearchSLOResponseDataAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SearchSLOThreshold.d.ts +54 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOThreshold.js +48 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOThreshold.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOTimeframe.d.ts +9 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOTimeframe.js +12 -0
- package/dist/packages/datadog-api-client-v1/models/SearchSLOTimeframe.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjective.d.ts +29 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjective.js +28 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjective.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveAttributes.d.ts +103 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveAttributes.js +88 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveData.d.ts +40 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveData.js +36 -0
- package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveData.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/SyntheticsAssertionOperator.d.ts +2 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsAssertionOperator.js +2 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsAssertionOperator.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/SyntheticsBrowserTest.d.ts +1 -1
- package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinition.d.ts +52 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinition.js +50 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinition.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinitionType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinitionType.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyMapWidgetDefinitionType.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyQuery.d.ts +37 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyQuery.js +36 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyQuery.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyQueryDataSource.d.ts +8 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyQueryDataSource.js +11 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyQueryDataSource.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyRequest.d.ts +34 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyRequest.js +32 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyRequestType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyRequestType.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/TopologyRequestType.js.map +1 -0
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionSort.d.ts +3 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionSort.js +3 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionSort.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionSupportedMetrics.d.ts +3 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionSupportedMetrics.js +3 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionSupportedMetrics.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionValues.d.ts +8 -0
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionValues.js +10 -0
- package/dist/packages/datadog-api-client-v1/models/UsageAttributionValues.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageCIVisibilityHour.js +4 -0
- package/dist/packages/datadog-api-client-v1/models/UsageCIVisibilityHour.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageFargateHour.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/UsageFargateHour.js +5 -0
- package/dist/packages/datadog-api-client-v1/models/UsageFargateHour.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageOnlineArchiveHour.js +1 -0
- package/dist/packages/datadog-api-client-v1/models/UsageOnlineArchiveHour.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.js +5 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.js +5 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.d.ts +4 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.js +5 -0
- package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.js.map +1 -1
- package/dist/packages/datadog-api-client-v1/models/WidgetDefinition.d.ts +3 -1
- package/dist/packages/datadog-api-client-v2/apis/AuditApi.js +56 -86
- package/dist/packages/datadog-api-client-v2/apis/AuditApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/AuthNMappingsApi.js +139 -241
- package/dist/packages/datadog-api-client-v2/apis/AuthNMappingsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/CloudWorkloadSecurityApi.js +161 -260
- package/dist/packages/datadog-api-client-v2/apis/CloudWorkloadSecurityApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/ConfluentCloudApi.d.ts +253 -0
- package/dist/packages/datadog-api-client-v2/apis/ConfluentCloudApi.js +1064 -0
- package/dist/packages/datadog-api-client-v2/apis/ConfluentCloudApi.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/apis/DashboardListsApi.js +115 -202
- package/dist/packages/datadog-api-client-v2/apis/DashboardListsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/EventsApi.js +55 -86
- package/dist/packages/datadog-api-client-v2/apis/EventsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/IncidentServicesApi.js +146 -311
- package/dist/packages/datadog-api-client-v2/apis/IncidentServicesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/IncidentTeamsApi.js +146 -311
- package/dist/packages/datadog-api-client-v2/apis/IncidentTeamsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.d.ts +67 -0
- package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.js +358 -303
- package/dist/packages/datadog-api-client-v2/apis/IncidentsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/KeyManagementApi.js +389 -650
- package/dist/packages/datadog-api-client-v2/apis/KeyManagementApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/LogsApi.js +117 -222
- package/dist/packages/datadog-api-client-v2/apis/LogsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/LogsArchivesApi.js +275 -469
- package/dist/packages/datadog-api-client-v2/apis/LogsArchivesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/LogsMetricsApi.js +137 -221
- package/dist/packages/datadog-api-client-v2/apis/LogsMetricsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/MetricsApi.d.ts +41 -8
- package/dist/packages/datadog-api-client-v2/apis/MetricsApi.js +419 -563
- package/dist/packages/datadog-api-client-v2/apis/MetricsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/OpsgenieIntegrationApi.js +141 -261
- package/dist/packages/datadog-api-client-v2/apis/OpsgenieIntegrationApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/OrganizationsApi.js +26 -40
- package/dist/packages/datadog-api-client-v2/apis/OrganizationsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/ProcessesApi.js +28 -43
- package/dist/packages/datadog-api-client-v2/apis/ProcessesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/RUMApi.js +214 -310
- package/dist/packages/datadog-api-client-v2/apis/RUMApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/RolesApi.js +367 -625
- package/dist/packages/datadog-api-client-v2/apis/RolesApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.d.ts +21 -0
- package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.js +506 -685
- package/dist/packages/datadog-api-client-v2/apis/SecurityMonitoringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/ServiceAccountsApi.js +139 -231
- package/dist/packages/datadog-api-client-v2/apis/ServiceAccountsApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/ServiceDefinitionApi.d.ts +94 -0
- package/dist/packages/datadog-api-client-v2/apis/ServiceDefinitionApi.js +456 -0
- package/dist/packages/datadog-api-client-v2/apis/ServiceDefinitionApi.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.d.ts +43 -6
- package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.js +277 -265
- package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/apis/UsersApi.js +279 -446
- package/dist/packages/datadog-api-client-v2/apis/UsersApi.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/index.d.ts +88 -5
- package/dist/packages/datadog-api-client-v2/index.js +134 -17
- package/dist/packages/datadog-api-client-v2/index.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequest.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequest.js +29 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequestAttributes.d.ts +41 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequestAttributes.js +42 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequestAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequestData.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequestData.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountCreateRequestData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResourceAttributes.d.ts +36 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResourceAttributes.js +41 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResourceAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResponse.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResponseAttributes.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResponseAttributes.js +37 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResponseAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResponseData.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResponseData.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountResponseData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequest.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequest.js +29 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequestAttributes.d.ts +36 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequestAttributes.js +43 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequestAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequestData.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequestData.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountUpdateRequestData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountsResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountsResponse.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentAccountsResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceRequest.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceRequest.js +29 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceRequestAttributes.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceRequestAttributes.js +37 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceRequestAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceRequestData.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceRequestData.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceRequestData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceResponse.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceResponseAttributes.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceResponseAttributes.js +38 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceResponseAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceResponseData.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceResponseData.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceResponseData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourceType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourcesResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourcesResponse.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/ConfluentResourcesResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/Event.js +1 -0
- package/dist/packages/datadog-api-client-v2/models/Event.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/EventAttributes.js +2 -0
- package/dist/packages/datadog-api-client-v2/models/EventAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/HTTPLogItem.d.ts +3 -3
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttachmentType.d.ts +8 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttachmentType.js +11 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttachmentType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttributes.d.ts +12 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttributes.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentData.d.ts +43 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentData.js +44 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttachmentType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttachmentType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttachmentType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributes.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributes.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributesAttachmentObject.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributesAttachmentObject.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentLinkAttributesAttachmentObject.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttachmentType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttachmentType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttachmentType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttributes.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttributes.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentPostmortemAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelatedObject.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelatedObject.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelatedObject.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelationships.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelationships.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentRelationships.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateAttributes.d.ts +12 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateAttributes.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateData.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateData.js +37 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateRequest.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateRequest.js +29 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateResponse.d.ts +35 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateResponse.js +33 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentUpdateResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsPostmortemAttributesAttachmentObject.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsPostmortemAttributesAttachmentObject.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsPostmortemAttributesAttachmentObject.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponse.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponse.js +33 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponseIncludedItem.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponseIncludedItem.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentAttachmentsResponseIncludedItem.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/IncidentRelatedObject.d.ts +2 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentRelatedObject.js +2 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentRelatedObject.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseAttributes.d.ts +1 -5
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseAttributes.js +0 -4
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseIncludedItem.d.ts +2 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseRelationships.d.ts +5 -5
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseRelationships.js +4 -4
- package/dist/packages/datadog-api-client-v2/models/IncidentResponseRelationships.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/IncidentUpdateAttributes.d.ts +0 -4
- package/dist/packages/datadog-api-client-v2/models/IncidentUpdateAttributes.js +0 -5
- package/dist/packages/datadog-api-client-v2/models/IncidentUpdateAttributes.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/MetricActiveConfigurationType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/MetricActiveConfigurationType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/MetricActiveConfigurationType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregations.d.ts +38 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregations.js +36 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregations.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregationsResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregationsResponse.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAndAggregationsResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAttributes.d.ts +33 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAttributes.js +32 -0
- package/dist/packages/datadog-api-client-v2/models/MetricSuggestedTagsAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorType.js +4 -0
- package/dist/packages/datadog-api-client-v2/models/MonitorType.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js +186 -10
- package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachment.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachment.js +29 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachment.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachmentData.d.ts +33 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachmentData.js +34 -0
- package/dist/packages/datadog-api-client-v2/models/RelationshipToIncidentAttachmentData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCreatePayload.d.ts +4 -61
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCreatePayload.js +0 -67
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleCreatePayload.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQuery.d.ts +4 -46
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQuery.js +0 -49
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQuery.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryAggregation.d.ts +2 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryAggregation.js +2 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryAggregation.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleResponse.d.ts +5 -90
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleResponse.js +0 -93
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleResponse.js.map +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleCreatePayload.d.ts +69 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleCreatePayload.js +70 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleCreatePayload.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleQuery.d.ts +49 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleQuery.js +50 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleQuery.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponse.d.ts +97 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponse.js +96 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponseQuery.d.ts +53 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponseQuery.js +53 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponseQuery.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleCreatePayload.d.ts +69 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleCreatePayload.js +70 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleCreatePayload.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/{SecurityMonitoringRuleQueryCreate.d.ts → SecurityMonitoringStandardRuleQuery.d.ts} +4 -4
- package/dist/packages/datadog-api-client-v2/models/{SecurityMonitoringRuleQueryCreate.js → SecurityMonitoringStandardRuleQuery.js} +9 -9
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleQuery.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleResponse.d.ts +97 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleResponse.js +96 -0
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionCreateResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionCreateResponse.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionCreateResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionData.d.ts +33 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionData.js +32 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionData.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionDataAttributes.d.ts +34 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionDataAttributes.js +32 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionDataAttributes.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionGetResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionGetResponse.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionGetResponse.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionMeta.d.ts +40 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionMeta.js +45 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionMeta.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionSchema.d.ts +12 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionSchema.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionSchema.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1.d.ts +64 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1.js +58 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Contact.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Contact.js +38 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Contact.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Info.d.ts +40 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Info.js +46 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Info.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Integrations.d.ts +28 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Integrations.js +33 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Integrations.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Org.d.ts +32 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Org.js +37 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Org.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Resource.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Resource.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Resource.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1ResourceType.d.ts +15 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1ResourceType.js +18 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1ResourceType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Version.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Version.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV1Version.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2.d.ts +76 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2.js +70 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Contact.d.ts +12 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Contact.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Contact.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Doc.d.ts +36 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Doc.js +43 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Doc.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Email.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Email.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Email.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2EmailType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2EmailType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2EmailType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Integrations.d.ts +33 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Integrations.js +32 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Integrations.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Link.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Link.js +39 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Link.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2LinkType.d.ts +15 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2LinkType.js +18 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2LinkType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Opsgenie.d.ts +33 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Opsgenie.js +33 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Opsgenie.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2OpsgenieRegion.d.ts +8 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2OpsgenieRegion.js +11 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2OpsgenieRegion.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Repo.d.ts +36 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Repo.js +43 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Repo.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Slack.d.ts +37 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Slack.js +38 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Slack.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2SlackType.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2SlackType.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2SlackType.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Version.d.ts +7 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Version.js +10 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionV2Version.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionsCreateRequest.d.ts +11 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionsCreateRequest.js +3 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionsCreateRequest.js.map +1 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionsListResponse.d.ts +29 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionsListResponse.js +28 -0
- package/dist/packages/datadog-api-client-v2/models/ServiceDefinitionsListResponse.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryCreate.js.map +0 -1
|
@@ -55,9 +55,9 @@ exports.KeyManagementApi = exports.KeyManagementApiResponseProcessor = exports.K
|
|
|
55
55
|
var baseapi_1 = require("../../datadog-api-client-common/baseapi");
|
|
56
56
|
var configuration_1 = require("../../datadog-api-client-common/configuration");
|
|
57
57
|
var http_1 = require("../../datadog-api-client-common/http/http");
|
|
58
|
+
var logger_1 = require("../../../logger");
|
|
58
59
|
var ObjectSerializer_1 = require("../models/ObjectSerializer");
|
|
59
60
|
var exception_1 = require("../../datadog-api-client-common/exception");
|
|
60
|
-
var util_1 = require("../../datadog-api-client-common/util");
|
|
61
61
|
var KeyManagementApiRequestFactory = /** @class */ (function (_super) {
|
|
62
62
|
__extends(KeyManagementApiRequestFactory, _super);
|
|
63
63
|
function KeyManagementApiRequestFactory() {
|
|
@@ -490,63 +490,48 @@ var KeyManagementApiResponseProcessor = /** @class */ (function () {
|
|
|
490
490
|
*/
|
|
491
491
|
KeyManagementApiResponseProcessor.prototype.createAPIKey = function (response) {
|
|
492
492
|
return __awaiter(this, void 0, void 0, function () {
|
|
493
|
-
var contentType, body_1, _a, _b, _c, _d,
|
|
494
|
-
return __generator(this, function (
|
|
495
|
-
switch (
|
|
493
|
+
var contentType, body_1, _a, _b, _c, _d, bodyText, _e, _f, body_2, body_3, _g, _h, _j, _k, body;
|
|
494
|
+
return __generator(this, function (_l) {
|
|
495
|
+
switch (_l.label) {
|
|
496
496
|
case 0:
|
|
497
497
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
498
|
-
if (!(
|
|
498
|
+
if (!(response.httpStatusCode == 201)) return [3 /*break*/, 2];
|
|
499
499
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
500
500
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
501
501
|
return [4 /*yield*/, response.body.text()];
|
|
502
502
|
case 1:
|
|
503
|
-
body_1 = _b.apply(_a, [_d.apply(_c, [
|
|
504
|
-
"APIKeyResponse"
|
|
505
|
-
""]);
|
|
503
|
+
body_1 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
504
|
+
"APIKeyResponse"]);
|
|
506
505
|
return [2 /*return*/, body_1];
|
|
507
506
|
case 2:
|
|
508
|
-
if (!(
|
|
509
|
-
|
|
510
|
-
|
|
507
|
+
if (!(response.httpStatusCode == 400 ||
|
|
508
|
+
response.httpStatusCode == 403 ||
|
|
509
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
510
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
511
511
|
return [4 /*yield*/, response.body.text()];
|
|
512
512
|
case 3:
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
""
|
|
516
|
-
|
|
513
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
514
|
+
try {
|
|
515
|
+
body_2 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
516
|
+
}
|
|
517
|
+
catch (error) {
|
|
518
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
519
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
520
|
+
}
|
|
521
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_2);
|
|
517
522
|
case 4:
|
|
518
|
-
if (!(
|
|
519
|
-
|
|
520
|
-
|
|
523
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
524
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
525
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
521
526
|
return [4 /*yield*/, response.body.text()];
|
|
522
527
|
case 5:
|
|
523
|
-
body_3 =
|
|
524
|
-
"APIErrorResponse",
|
|
525
|
-
""]);
|
|
526
|
-
throw new exception_1.ApiException(403, body_3);
|
|
527
|
-
case 6:
|
|
528
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
529
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
530
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
531
|
-
return [4 /*yield*/, response.body.text()];
|
|
532
|
-
case 7:
|
|
533
|
-
body_4 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
534
|
-
"APIErrorResponse",
|
|
535
|
-
""]);
|
|
536
|
-
throw new exception_1.ApiException(429, body_4);
|
|
537
|
-
case 8:
|
|
538
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
539
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
540
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
541
|
-
return [4 /*yield*/, response.body.text()];
|
|
542
|
-
case 9:
|
|
543
|
-
body_5 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
528
|
+
body_3 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
544
529
|
"APIKeyResponse",
|
|
545
530
|
""]);
|
|
546
|
-
return [2 /*return*/,
|
|
547
|
-
case
|
|
548
|
-
case
|
|
549
|
-
body = (
|
|
531
|
+
return [2 /*return*/, body_3];
|
|
532
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
533
|
+
case 7:
|
|
534
|
+
body = (_l.sent()) || "";
|
|
550
535
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
551
536
|
}
|
|
552
537
|
});
|
|
@@ -561,63 +546,48 @@ var KeyManagementApiResponseProcessor = /** @class */ (function () {
|
|
|
561
546
|
*/
|
|
562
547
|
KeyManagementApiResponseProcessor.prototype.createCurrentUserApplicationKey = function (response) {
|
|
563
548
|
return __awaiter(this, void 0, void 0, function () {
|
|
564
|
-
var contentType,
|
|
565
|
-
return __generator(this, function (
|
|
566
|
-
switch (
|
|
549
|
+
var contentType, body_4, _a, _b, _c, _d, bodyText, _e, _f, body_5, body_6, _g, _h, _j, _k, body;
|
|
550
|
+
return __generator(this, function (_l) {
|
|
551
|
+
switch (_l.label) {
|
|
567
552
|
case 0:
|
|
568
553
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
569
|
-
if (!(
|
|
554
|
+
if (!(response.httpStatusCode == 201)) return [3 /*break*/, 2];
|
|
570
555
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
571
556
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
572
557
|
return [4 /*yield*/, response.body.text()];
|
|
573
558
|
case 1:
|
|
574
|
-
|
|
575
|
-
"ApplicationKeyResponse"
|
|
576
|
-
|
|
577
|
-
return [2 /*return*/, body_6];
|
|
559
|
+
body_4 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
560
|
+
"ApplicationKeyResponse"]);
|
|
561
|
+
return [2 /*return*/, body_4];
|
|
578
562
|
case 2:
|
|
579
|
-
if (!(
|
|
580
|
-
|
|
581
|
-
|
|
563
|
+
if (!(response.httpStatusCode == 400 ||
|
|
564
|
+
response.httpStatusCode == 403 ||
|
|
565
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
566
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
582
567
|
return [4 /*yield*/, response.body.text()];
|
|
583
568
|
case 3:
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
""
|
|
587
|
-
|
|
569
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
570
|
+
try {
|
|
571
|
+
body_5 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
572
|
+
}
|
|
573
|
+
catch (error) {
|
|
574
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
575
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
576
|
+
}
|
|
577
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_5);
|
|
588
578
|
case 4:
|
|
589
|
-
if (!(
|
|
590
|
-
|
|
591
|
-
|
|
579
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
580
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
581
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
592
582
|
return [4 /*yield*/, response.body.text()];
|
|
593
583
|
case 5:
|
|
594
|
-
|
|
595
|
-
"APIErrorResponse",
|
|
596
|
-
""]);
|
|
597
|
-
throw new exception_1.ApiException(403, body_8);
|
|
598
|
-
case 6:
|
|
599
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
600
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
601
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
602
|
-
return [4 /*yield*/, response.body.text()];
|
|
603
|
-
case 7:
|
|
604
|
-
body_9 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
605
|
-
"APIErrorResponse",
|
|
606
|
-
""]);
|
|
607
|
-
throw new exception_1.ApiException(429, body_9);
|
|
608
|
-
case 8:
|
|
609
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
610
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
611
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
612
|
-
return [4 /*yield*/, response.body.text()];
|
|
613
|
-
case 9:
|
|
614
|
-
body_10 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
584
|
+
body_6 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
615
585
|
"ApplicationKeyResponse",
|
|
616
586
|
""]);
|
|
617
|
-
return [2 /*return*/,
|
|
618
|
-
case
|
|
619
|
-
case
|
|
620
|
-
body = (
|
|
587
|
+
return [2 /*return*/, body_6];
|
|
588
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
589
|
+
case 7:
|
|
590
|
+
body = (_l.sent()) || "";
|
|
621
591
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
622
592
|
}
|
|
623
593
|
});
|
|
@@ -632,56 +602,42 @@ var KeyManagementApiResponseProcessor = /** @class */ (function () {
|
|
|
632
602
|
*/
|
|
633
603
|
KeyManagementApiResponseProcessor.prototype.deleteAPIKey = function (response) {
|
|
634
604
|
return __awaiter(this, void 0, void 0, function () {
|
|
635
|
-
var contentType,
|
|
636
|
-
return __generator(this, function (
|
|
637
|
-
switch (
|
|
605
|
+
var contentType, bodyText, _a, _b, body_7, body_8, _c, _d, _e, _f, body;
|
|
606
|
+
return __generator(this, function (_g) {
|
|
607
|
+
switch (_g.label) {
|
|
638
608
|
case 0:
|
|
639
609
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
640
|
-
if (
|
|
610
|
+
if (response.httpStatusCode == 204) {
|
|
641
611
|
return [2 /*return*/];
|
|
642
612
|
}
|
|
643
|
-
if (!(
|
|
644
|
-
|
|
645
|
-
|
|
613
|
+
if (!(response.httpStatusCode == 403 ||
|
|
614
|
+
response.httpStatusCode == 404 ||
|
|
615
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 2];
|
|
616
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).parse;
|
|
646
617
|
return [4 /*yield*/, response.body.text()];
|
|
647
618
|
case 1:
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
""
|
|
651
|
-
|
|
619
|
+
bodyText = _b.apply(_a, [_g.sent(), contentType]);
|
|
620
|
+
try {
|
|
621
|
+
body_7 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
622
|
+
}
|
|
623
|
+
catch (error) {
|
|
624
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
625
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
626
|
+
}
|
|
627
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_7);
|
|
652
628
|
case 2:
|
|
653
|
-
if (!(
|
|
654
|
-
|
|
655
|
-
|
|
629
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 4];
|
|
630
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
631
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
656
632
|
return [4 /*yield*/, response.body.text()];
|
|
657
633
|
case 3:
|
|
658
|
-
|
|
659
|
-
"APIErrorResponse",
|
|
660
|
-
""]);
|
|
661
|
-
throw new exception_1.ApiException(404, body_12);
|
|
662
|
-
case 4:
|
|
663
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 6];
|
|
664
|
-
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
665
|
-
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
666
|
-
return [4 /*yield*/, response.body.text()];
|
|
667
|
-
case 5:
|
|
668
|
-
body_13 = _k.apply(_j, [_m.apply(_l, [_s.sent(), contentType]),
|
|
669
|
-
"APIErrorResponse",
|
|
670
|
-
""]);
|
|
671
|
-
throw new exception_1.ApiException(429, body_13);
|
|
672
|
-
case 6:
|
|
673
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 8];
|
|
674
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
675
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
676
|
-
return [4 /*yield*/, response.body.text()];
|
|
677
|
-
case 7:
|
|
678
|
-
body_14 = _p.apply(_o, [_r.apply(_q, [_s.sent(), contentType]),
|
|
634
|
+
body_8 = _d.apply(_c, [_f.apply(_e, [_g.sent(), contentType]),
|
|
679
635
|
"void",
|
|
680
636
|
""]);
|
|
681
|
-
return [2 /*return*/,
|
|
682
|
-
case
|
|
683
|
-
case
|
|
684
|
-
body = (
|
|
637
|
+
return [2 /*return*/, body_8];
|
|
638
|
+
case 4: return [4 /*yield*/, response.body.text()];
|
|
639
|
+
case 5:
|
|
640
|
+
body = (_g.sent()) || "";
|
|
685
641
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
686
642
|
}
|
|
687
643
|
});
|
|
@@ -696,56 +652,42 @@ var KeyManagementApiResponseProcessor = /** @class */ (function () {
|
|
|
696
652
|
*/
|
|
697
653
|
KeyManagementApiResponseProcessor.prototype.deleteApplicationKey = function (response) {
|
|
698
654
|
return __awaiter(this, void 0, void 0, function () {
|
|
699
|
-
var contentType,
|
|
700
|
-
return __generator(this, function (
|
|
701
|
-
switch (
|
|
655
|
+
var contentType, bodyText, _a, _b, body_9, body_10, _c, _d, _e, _f, body;
|
|
656
|
+
return __generator(this, function (_g) {
|
|
657
|
+
switch (_g.label) {
|
|
702
658
|
case 0:
|
|
703
659
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
704
|
-
if (
|
|
660
|
+
if (response.httpStatusCode == 204) {
|
|
705
661
|
return [2 /*return*/];
|
|
706
662
|
}
|
|
707
|
-
if (!(
|
|
708
|
-
|
|
709
|
-
|
|
663
|
+
if (!(response.httpStatusCode == 403 ||
|
|
664
|
+
response.httpStatusCode == 404 ||
|
|
665
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 2];
|
|
666
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).parse;
|
|
710
667
|
return [4 /*yield*/, response.body.text()];
|
|
711
668
|
case 1:
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
""
|
|
715
|
-
|
|
669
|
+
bodyText = _b.apply(_a, [_g.sent(), contentType]);
|
|
670
|
+
try {
|
|
671
|
+
body_9 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
672
|
+
}
|
|
673
|
+
catch (error) {
|
|
674
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
675
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
676
|
+
}
|
|
677
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_9);
|
|
716
678
|
case 2:
|
|
717
|
-
if (!(
|
|
718
|
-
|
|
719
|
-
|
|
679
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 4];
|
|
680
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
681
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
720
682
|
return [4 /*yield*/, response.body.text()];
|
|
721
683
|
case 3:
|
|
722
|
-
|
|
723
|
-
"APIErrorResponse",
|
|
724
|
-
""]);
|
|
725
|
-
throw new exception_1.ApiException(404, body_16);
|
|
726
|
-
case 4:
|
|
727
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 6];
|
|
728
|
-
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
729
|
-
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
730
|
-
return [4 /*yield*/, response.body.text()];
|
|
731
|
-
case 5:
|
|
732
|
-
body_17 = _k.apply(_j, [_m.apply(_l, [_s.sent(), contentType]),
|
|
733
|
-
"APIErrorResponse",
|
|
734
|
-
""]);
|
|
735
|
-
throw new exception_1.ApiException(429, body_17);
|
|
736
|
-
case 6:
|
|
737
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 8];
|
|
738
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
739
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
740
|
-
return [4 /*yield*/, response.body.text()];
|
|
741
|
-
case 7:
|
|
742
|
-
body_18 = _p.apply(_o, [_r.apply(_q, [_s.sent(), contentType]),
|
|
684
|
+
body_10 = _d.apply(_c, [_f.apply(_e, [_g.sent(), contentType]),
|
|
743
685
|
"void",
|
|
744
686
|
""]);
|
|
745
|
-
return [2 /*return*/,
|
|
746
|
-
case
|
|
747
|
-
case
|
|
748
|
-
body = (
|
|
687
|
+
return [2 /*return*/, body_10];
|
|
688
|
+
case 4: return [4 /*yield*/, response.body.text()];
|
|
689
|
+
case 5:
|
|
690
|
+
body = (_g.sent()) || "";
|
|
749
691
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
750
692
|
}
|
|
751
693
|
});
|
|
@@ -760,56 +702,42 @@ var KeyManagementApiResponseProcessor = /** @class */ (function () {
|
|
|
760
702
|
*/
|
|
761
703
|
KeyManagementApiResponseProcessor.prototype.deleteCurrentUserApplicationKey = function (response) {
|
|
762
704
|
return __awaiter(this, void 0, void 0, function () {
|
|
763
|
-
var contentType,
|
|
764
|
-
return __generator(this, function (
|
|
765
|
-
switch (
|
|
705
|
+
var contentType, bodyText, _a, _b, body_11, body_12, _c, _d, _e, _f, body;
|
|
706
|
+
return __generator(this, function (_g) {
|
|
707
|
+
switch (_g.label) {
|
|
766
708
|
case 0:
|
|
767
709
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
768
|
-
if (
|
|
710
|
+
if (response.httpStatusCode == 204) {
|
|
769
711
|
return [2 /*return*/];
|
|
770
712
|
}
|
|
771
|
-
if (!(
|
|
772
|
-
|
|
773
|
-
|
|
713
|
+
if (!(response.httpStatusCode == 403 ||
|
|
714
|
+
response.httpStatusCode == 404 ||
|
|
715
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 2];
|
|
716
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).parse;
|
|
774
717
|
return [4 /*yield*/, response.body.text()];
|
|
775
718
|
case 1:
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
""
|
|
779
|
-
|
|
719
|
+
bodyText = _b.apply(_a, [_g.sent(), contentType]);
|
|
720
|
+
try {
|
|
721
|
+
body_11 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
722
|
+
}
|
|
723
|
+
catch (error) {
|
|
724
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
725
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
726
|
+
}
|
|
727
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_11);
|
|
780
728
|
case 2:
|
|
781
|
-
if (!(
|
|
782
|
-
|
|
783
|
-
|
|
729
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 4];
|
|
730
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
731
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
784
732
|
return [4 /*yield*/, response.body.text()];
|
|
785
733
|
case 3:
|
|
786
|
-
|
|
787
|
-
"APIErrorResponse",
|
|
788
|
-
""]);
|
|
789
|
-
throw new exception_1.ApiException(404, body_20);
|
|
790
|
-
case 4:
|
|
791
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 6];
|
|
792
|
-
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
793
|
-
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
794
|
-
return [4 /*yield*/, response.body.text()];
|
|
795
|
-
case 5:
|
|
796
|
-
body_21 = _k.apply(_j, [_m.apply(_l, [_s.sent(), contentType]),
|
|
797
|
-
"APIErrorResponse",
|
|
798
|
-
""]);
|
|
799
|
-
throw new exception_1.ApiException(429, body_21);
|
|
800
|
-
case 6:
|
|
801
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 8];
|
|
802
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
803
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
804
|
-
return [4 /*yield*/, response.body.text()];
|
|
805
|
-
case 7:
|
|
806
|
-
body_22 = _p.apply(_o, [_r.apply(_q, [_s.sent(), contentType]),
|
|
734
|
+
body_12 = _d.apply(_c, [_f.apply(_e, [_g.sent(), contentType]),
|
|
807
735
|
"void",
|
|
808
736
|
""]);
|
|
809
|
-
return [2 /*return*/,
|
|
810
|
-
case
|
|
811
|
-
case
|
|
812
|
-
body = (
|
|
737
|
+
return [2 /*return*/, body_12];
|
|
738
|
+
case 4: return [4 /*yield*/, response.body.text()];
|
|
739
|
+
case 5:
|
|
740
|
+
body = (_g.sent()) || "";
|
|
813
741
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
814
742
|
}
|
|
815
743
|
});
|
|
@@ -824,63 +752,48 @@ var KeyManagementApiResponseProcessor = /** @class */ (function () {
|
|
|
824
752
|
*/
|
|
825
753
|
KeyManagementApiResponseProcessor.prototype.getAPIKey = function (response) {
|
|
826
754
|
return __awaiter(this, void 0, void 0, function () {
|
|
827
|
-
var contentType,
|
|
828
|
-
return __generator(this, function (
|
|
829
|
-
switch (
|
|
755
|
+
var contentType, body_13, _a, _b, _c, _d, bodyText, _e, _f, body_14, body_15, _g, _h, _j, _k, body;
|
|
756
|
+
return __generator(this, function (_l) {
|
|
757
|
+
switch (_l.label) {
|
|
830
758
|
case 0:
|
|
831
759
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
832
|
-
if (!(
|
|
760
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
833
761
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
834
762
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
835
763
|
return [4 /*yield*/, response.body.text()];
|
|
836
764
|
case 1:
|
|
837
|
-
|
|
838
|
-
"APIKeyResponse"
|
|
839
|
-
|
|
840
|
-
return [2 /*return*/, body_23];
|
|
765
|
+
body_13 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
766
|
+
"APIKeyResponse"]);
|
|
767
|
+
return [2 /*return*/, body_13];
|
|
841
768
|
case 2:
|
|
842
|
-
if (!(
|
|
843
|
-
|
|
844
|
-
|
|
769
|
+
if (!(response.httpStatusCode == 403 ||
|
|
770
|
+
response.httpStatusCode == 404 ||
|
|
771
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
772
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
845
773
|
return [4 /*yield*/, response.body.text()];
|
|
846
774
|
case 3:
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
""
|
|
850
|
-
|
|
775
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
776
|
+
try {
|
|
777
|
+
body_14 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
778
|
+
}
|
|
779
|
+
catch (error) {
|
|
780
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
781
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
782
|
+
}
|
|
783
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_14);
|
|
851
784
|
case 4:
|
|
852
|
-
if (!(
|
|
853
|
-
|
|
854
|
-
|
|
785
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
786
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
787
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
855
788
|
return [4 /*yield*/, response.body.text()];
|
|
856
789
|
case 5:
|
|
857
|
-
|
|
858
|
-
"APIErrorResponse",
|
|
859
|
-
""]);
|
|
860
|
-
throw new exception_1.ApiException(404, body_25);
|
|
861
|
-
case 6:
|
|
862
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
863
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
864
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
865
|
-
return [4 /*yield*/, response.body.text()];
|
|
866
|
-
case 7:
|
|
867
|
-
body_26 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
868
|
-
"APIErrorResponse",
|
|
869
|
-
""]);
|
|
870
|
-
throw new exception_1.ApiException(429, body_26);
|
|
871
|
-
case 8:
|
|
872
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
873
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
874
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
875
|
-
return [4 /*yield*/, response.body.text()];
|
|
876
|
-
case 9:
|
|
877
|
-
body_27 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
790
|
+
body_15 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
878
791
|
"APIKeyResponse",
|
|
879
792
|
""]);
|
|
880
|
-
return [2 /*return*/,
|
|
881
|
-
case
|
|
882
|
-
case
|
|
883
|
-
body = (
|
|
793
|
+
return [2 /*return*/, body_15];
|
|
794
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
795
|
+
case 7:
|
|
796
|
+
body = (_l.sent()) || "";
|
|
884
797
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
885
798
|
}
|
|
886
799
|
});
|
|
@@ -895,73 +808,49 @@ var KeyManagementApiResponseProcessor = /** @class */ (function () {
|
|
|
895
808
|
*/
|
|
896
809
|
KeyManagementApiResponseProcessor.prototype.getApplicationKey = function (response) {
|
|
897
810
|
return __awaiter(this, void 0, void 0, function () {
|
|
898
|
-
var contentType,
|
|
899
|
-
return __generator(this, function (
|
|
900
|
-
switch (
|
|
811
|
+
var contentType, body_16, _a, _b, _c, _d, bodyText, _e, _f, body_17, body_18, _g, _h, _j, _k, body;
|
|
812
|
+
return __generator(this, function (_l) {
|
|
813
|
+
switch (_l.label) {
|
|
901
814
|
case 0:
|
|
902
815
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
903
|
-
if (!(
|
|
816
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
904
817
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
905
818
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
906
819
|
return [4 /*yield*/, response.body.text()];
|
|
907
820
|
case 1:
|
|
908
|
-
|
|
909
|
-
"ApplicationKeyResponse"
|
|
910
|
-
|
|
911
|
-
return [2 /*return*/, body_28];
|
|
821
|
+
body_16 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
822
|
+
"ApplicationKeyResponse"]);
|
|
823
|
+
return [2 /*return*/, body_16];
|
|
912
824
|
case 2:
|
|
913
|
-
if (!(
|
|
914
|
-
|
|
915
|
-
|
|
825
|
+
if (!(response.httpStatusCode == 400 ||
|
|
826
|
+
response.httpStatusCode == 403 ||
|
|
827
|
+
response.httpStatusCode == 404 ||
|
|
828
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
829
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
916
830
|
return [4 /*yield*/, response.body.text()];
|
|
917
831
|
case 3:
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
""
|
|
921
|
-
|
|
832
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
833
|
+
try {
|
|
834
|
+
body_17 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
835
|
+
}
|
|
836
|
+
catch (error) {
|
|
837
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
838
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
839
|
+
}
|
|
840
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_17);
|
|
922
841
|
case 4:
|
|
923
|
-
if (!(
|
|
924
|
-
|
|
925
|
-
|
|
842
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
843
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
844
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
926
845
|
return [4 /*yield*/, response.body.text()];
|
|
927
846
|
case 5:
|
|
928
|
-
|
|
929
|
-
"APIErrorResponse",
|
|
930
|
-
""]);
|
|
931
|
-
throw new exception_1.ApiException(403, body_30);
|
|
932
|
-
case 6:
|
|
933
|
-
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
934
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
935
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
936
|
-
return [4 /*yield*/, response.body.text()];
|
|
937
|
-
case 7:
|
|
938
|
-
body_31 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
|
|
939
|
-
"APIErrorResponse",
|
|
940
|
-
""]);
|
|
941
|
-
throw new exception_1.ApiException(404, body_31);
|
|
942
|
-
case 8:
|
|
943
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
|
|
944
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
945
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
946
|
-
return [4 /*yield*/, response.body.text()];
|
|
947
|
-
case 9:
|
|
948
|
-
body_32 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
|
|
949
|
-
"APIErrorResponse",
|
|
950
|
-
""]);
|
|
951
|
-
throw new exception_1.ApiException(429, body_32);
|
|
952
|
-
case 10:
|
|
953
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
|
|
954
|
-
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
955
|
-
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
956
|
-
return [4 /*yield*/, response.body.text()];
|
|
957
|
-
case 11:
|
|
958
|
-
body_33 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
|
|
847
|
+
body_18 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
959
848
|
"ApplicationKeyResponse",
|
|
960
849
|
""]);
|
|
961
|
-
return [2 /*return*/,
|
|
962
|
-
case
|
|
963
|
-
case
|
|
964
|
-
body = (
|
|
850
|
+
return [2 /*return*/, body_18];
|
|
851
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
852
|
+
case 7:
|
|
853
|
+
body = (_l.sent()) || "";
|
|
965
854
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
966
855
|
}
|
|
967
856
|
});
|
|
@@ -976,63 +865,48 @@ var KeyManagementApiResponseProcessor = /** @class */ (function () {
|
|
|
976
865
|
*/
|
|
977
866
|
KeyManagementApiResponseProcessor.prototype.getCurrentUserApplicationKey = function (response) {
|
|
978
867
|
return __awaiter(this, void 0, void 0, function () {
|
|
979
|
-
var contentType,
|
|
980
|
-
return __generator(this, function (
|
|
981
|
-
switch (
|
|
868
|
+
var contentType, body_19, _a, _b, _c, _d, bodyText, _e, _f, body_20, body_21, _g, _h, _j, _k, body;
|
|
869
|
+
return __generator(this, function (_l) {
|
|
870
|
+
switch (_l.label) {
|
|
982
871
|
case 0:
|
|
983
872
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
984
|
-
if (!(
|
|
873
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
985
874
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
986
875
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
987
876
|
return [4 /*yield*/, response.body.text()];
|
|
988
877
|
case 1:
|
|
989
|
-
|
|
990
|
-
"ApplicationKeyResponse"
|
|
991
|
-
|
|
992
|
-
return [2 /*return*/, body_34];
|
|
878
|
+
body_19 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
879
|
+
"ApplicationKeyResponse"]);
|
|
880
|
+
return [2 /*return*/, body_19];
|
|
993
881
|
case 2:
|
|
994
|
-
if (!(
|
|
995
|
-
|
|
996
|
-
|
|
882
|
+
if (!(response.httpStatusCode == 403 ||
|
|
883
|
+
response.httpStatusCode == 404 ||
|
|
884
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
885
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
997
886
|
return [4 /*yield*/, response.body.text()];
|
|
998
887
|
case 3:
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
""
|
|
1002
|
-
|
|
888
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
889
|
+
try {
|
|
890
|
+
body_20 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
891
|
+
}
|
|
892
|
+
catch (error) {
|
|
893
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
894
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
895
|
+
}
|
|
896
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_20);
|
|
1003
897
|
case 4:
|
|
1004
|
-
if (!(
|
|
1005
|
-
|
|
1006
|
-
|
|
898
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
899
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
900
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1007
901
|
return [4 /*yield*/, response.body.text()];
|
|
1008
902
|
case 5:
|
|
1009
|
-
|
|
1010
|
-
"APIErrorResponse",
|
|
1011
|
-
""]);
|
|
1012
|
-
throw new exception_1.ApiException(404, body_36);
|
|
1013
|
-
case 6:
|
|
1014
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
1015
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1016
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1017
|
-
return [4 /*yield*/, response.body.text()];
|
|
1018
|
-
case 7:
|
|
1019
|
-
body_37 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
1020
|
-
"APIErrorResponse",
|
|
1021
|
-
""]);
|
|
1022
|
-
throw new exception_1.ApiException(429, body_37);
|
|
1023
|
-
case 8:
|
|
1024
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
1025
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1026
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1027
|
-
return [4 /*yield*/, response.body.text()];
|
|
1028
|
-
case 9:
|
|
1029
|
-
body_38 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
903
|
+
body_21 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
1030
904
|
"ApplicationKeyResponse",
|
|
1031
905
|
""]);
|
|
1032
|
-
return [2 /*return*/,
|
|
1033
|
-
case
|
|
1034
|
-
case
|
|
1035
|
-
body = (
|
|
906
|
+
return [2 /*return*/, body_21];
|
|
907
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
908
|
+
case 7:
|
|
909
|
+
body = (_l.sent()) || "";
|
|
1036
910
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1037
911
|
}
|
|
1038
912
|
});
|
|
@@ -1047,63 +921,48 @@ var KeyManagementApiResponseProcessor = /** @class */ (function () {
|
|
|
1047
921
|
*/
|
|
1048
922
|
KeyManagementApiResponseProcessor.prototype.listAPIKeys = function (response) {
|
|
1049
923
|
return __awaiter(this, void 0, void 0, function () {
|
|
1050
|
-
var contentType,
|
|
1051
|
-
return __generator(this, function (
|
|
1052
|
-
switch (
|
|
924
|
+
var contentType, body_22, _a, _b, _c, _d, bodyText, _e, _f, body_23, body_24, _g, _h, _j, _k, body;
|
|
925
|
+
return __generator(this, function (_l) {
|
|
926
|
+
switch (_l.label) {
|
|
1053
927
|
case 0:
|
|
1054
928
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1055
|
-
if (!(
|
|
929
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
1056
930
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1057
931
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1058
932
|
return [4 /*yield*/, response.body.text()];
|
|
1059
933
|
case 1:
|
|
1060
|
-
|
|
1061
|
-
"APIKeysResponse"
|
|
1062
|
-
|
|
1063
|
-
return [2 /*return*/, body_39];
|
|
934
|
+
body_22 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
935
|
+
"APIKeysResponse"]);
|
|
936
|
+
return [2 /*return*/, body_22];
|
|
1064
937
|
case 2:
|
|
1065
|
-
if (!(
|
|
1066
|
-
|
|
1067
|
-
|
|
938
|
+
if (!(response.httpStatusCode == 400 ||
|
|
939
|
+
response.httpStatusCode == 403 ||
|
|
940
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
941
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1068
942
|
return [4 /*yield*/, response.body.text()];
|
|
1069
943
|
case 3:
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
""
|
|
1073
|
-
|
|
944
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
945
|
+
try {
|
|
946
|
+
body_23 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
947
|
+
}
|
|
948
|
+
catch (error) {
|
|
949
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
950
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
951
|
+
}
|
|
952
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_23);
|
|
1074
953
|
case 4:
|
|
1075
|
-
if (!(
|
|
1076
|
-
|
|
1077
|
-
|
|
954
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
955
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
956
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1078
957
|
return [4 /*yield*/, response.body.text()];
|
|
1079
958
|
case 5:
|
|
1080
|
-
|
|
1081
|
-
"APIErrorResponse",
|
|
1082
|
-
""]);
|
|
1083
|
-
throw new exception_1.ApiException(403, body_41);
|
|
1084
|
-
case 6:
|
|
1085
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
1086
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1087
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1088
|
-
return [4 /*yield*/, response.body.text()];
|
|
1089
|
-
case 7:
|
|
1090
|
-
body_42 = _p.apply(_o, [_r.apply(_q, [_w.sent(), contentType]),
|
|
1091
|
-
"APIErrorResponse",
|
|
1092
|
-
""]);
|
|
1093
|
-
throw new exception_1.ApiException(429, body_42);
|
|
1094
|
-
case 8:
|
|
1095
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 10];
|
|
1096
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1097
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1098
|
-
return [4 /*yield*/, response.body.text()];
|
|
1099
|
-
case 9:
|
|
1100
|
-
body_43 = _t.apply(_s, [_v.apply(_u, [_w.sent(), contentType]),
|
|
959
|
+
body_24 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
1101
960
|
"APIKeysResponse",
|
|
1102
961
|
""]);
|
|
1103
|
-
return [2 /*return*/,
|
|
1104
|
-
case
|
|
1105
|
-
case
|
|
1106
|
-
body = (
|
|
962
|
+
return [2 /*return*/, body_24];
|
|
963
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
964
|
+
case 7:
|
|
965
|
+
body = (_l.sent()) || "";
|
|
1107
966
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1108
967
|
}
|
|
1109
968
|
});
|
|
@@ -1118,73 +977,49 @@ var KeyManagementApiResponseProcessor = /** @class */ (function () {
|
|
|
1118
977
|
*/
|
|
1119
978
|
KeyManagementApiResponseProcessor.prototype.listApplicationKeys = function (response) {
|
|
1120
979
|
return __awaiter(this, void 0, void 0, function () {
|
|
1121
|
-
var contentType,
|
|
1122
|
-
return __generator(this, function (
|
|
1123
|
-
switch (
|
|
980
|
+
var contentType, body_25, _a, _b, _c, _d, bodyText, _e, _f, body_26, body_27, _g, _h, _j, _k, body;
|
|
981
|
+
return __generator(this, function (_l) {
|
|
982
|
+
switch (_l.label) {
|
|
1124
983
|
case 0:
|
|
1125
984
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1126
|
-
if (!(
|
|
985
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
1127
986
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1128
987
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1129
988
|
return [4 /*yield*/, response.body.text()];
|
|
1130
989
|
case 1:
|
|
1131
|
-
|
|
1132
|
-
"ListApplicationKeysResponse"
|
|
1133
|
-
|
|
1134
|
-
return [2 /*return*/, body_44];
|
|
990
|
+
body_25 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
991
|
+
"ListApplicationKeysResponse"]);
|
|
992
|
+
return [2 /*return*/, body_25];
|
|
1135
993
|
case 2:
|
|
1136
|
-
if (!(
|
|
1137
|
-
|
|
1138
|
-
|
|
994
|
+
if (!(response.httpStatusCode == 400 ||
|
|
995
|
+
response.httpStatusCode == 403 ||
|
|
996
|
+
response.httpStatusCode == 404 ||
|
|
997
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
998
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1139
999
|
return [4 /*yield*/, response.body.text()];
|
|
1140
1000
|
case 3:
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
""
|
|
1144
|
-
|
|
1001
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
1002
|
+
try {
|
|
1003
|
+
body_26 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1004
|
+
}
|
|
1005
|
+
catch (error) {
|
|
1006
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
1007
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1008
|
+
}
|
|
1009
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_26);
|
|
1145
1010
|
case 4:
|
|
1146
|
-
if (!(
|
|
1147
|
-
|
|
1148
|
-
|
|
1011
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
1012
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1013
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1149
1014
|
return [4 /*yield*/, response.body.text()];
|
|
1150
1015
|
case 5:
|
|
1151
|
-
|
|
1152
|
-
"APIErrorResponse",
|
|
1153
|
-
""]);
|
|
1154
|
-
throw new exception_1.ApiException(403, body_46);
|
|
1155
|
-
case 6:
|
|
1156
|
-
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
1157
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1158
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1159
|
-
return [4 /*yield*/, response.body.text()];
|
|
1160
|
-
case 7:
|
|
1161
|
-
body_47 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
|
|
1162
|
-
"APIErrorResponse",
|
|
1163
|
-
""]);
|
|
1164
|
-
throw new exception_1.ApiException(404, body_47);
|
|
1165
|
-
case 8:
|
|
1166
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
|
|
1167
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1168
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1169
|
-
return [4 /*yield*/, response.body.text()];
|
|
1170
|
-
case 9:
|
|
1171
|
-
body_48 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
|
|
1172
|
-
"APIErrorResponse",
|
|
1173
|
-
""]);
|
|
1174
|
-
throw new exception_1.ApiException(429, body_48);
|
|
1175
|
-
case 10:
|
|
1176
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
|
|
1177
|
-
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1178
|
-
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1179
|
-
return [4 /*yield*/, response.body.text()];
|
|
1180
|
-
case 11:
|
|
1181
|
-
body_49 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
|
|
1016
|
+
body_27 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
1182
1017
|
"ListApplicationKeysResponse",
|
|
1183
1018
|
""]);
|
|
1184
|
-
return [2 /*return*/,
|
|
1185
|
-
case
|
|
1186
|
-
case
|
|
1187
|
-
body = (
|
|
1019
|
+
return [2 /*return*/, body_27];
|
|
1020
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
1021
|
+
case 7:
|
|
1022
|
+
body = (_l.sent()) || "";
|
|
1188
1023
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1189
1024
|
}
|
|
1190
1025
|
});
|
|
@@ -1199,73 +1034,49 @@ var KeyManagementApiResponseProcessor = /** @class */ (function () {
|
|
|
1199
1034
|
*/
|
|
1200
1035
|
KeyManagementApiResponseProcessor.prototype.listCurrentUserApplicationKeys = function (response) {
|
|
1201
1036
|
return __awaiter(this, void 0, void 0, function () {
|
|
1202
|
-
var contentType,
|
|
1203
|
-
return __generator(this, function (
|
|
1204
|
-
switch (
|
|
1037
|
+
var contentType, body_28, _a, _b, _c, _d, bodyText, _e, _f, body_29, body_30, _g, _h, _j, _k, body;
|
|
1038
|
+
return __generator(this, function (_l) {
|
|
1039
|
+
switch (_l.label) {
|
|
1205
1040
|
case 0:
|
|
1206
1041
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1207
|
-
if (!(
|
|
1042
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
1208
1043
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1209
1044
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1210
1045
|
return [4 /*yield*/, response.body.text()];
|
|
1211
1046
|
case 1:
|
|
1212
|
-
|
|
1213
|
-
"ListApplicationKeysResponse"
|
|
1214
|
-
|
|
1215
|
-
return [2 /*return*/, body_50];
|
|
1047
|
+
body_28 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
1048
|
+
"ListApplicationKeysResponse"]);
|
|
1049
|
+
return [2 /*return*/, body_28];
|
|
1216
1050
|
case 2:
|
|
1217
|
-
if (!(
|
|
1218
|
-
|
|
1219
|
-
|
|
1051
|
+
if (!(response.httpStatusCode == 400 ||
|
|
1052
|
+
response.httpStatusCode == 403 ||
|
|
1053
|
+
response.httpStatusCode == 404 ||
|
|
1054
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
1055
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1220
1056
|
return [4 /*yield*/, response.body.text()];
|
|
1221
1057
|
case 3:
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
""
|
|
1225
|
-
|
|
1058
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
1059
|
+
try {
|
|
1060
|
+
body_29 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1061
|
+
}
|
|
1062
|
+
catch (error) {
|
|
1063
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
1064
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1065
|
+
}
|
|
1066
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_29);
|
|
1226
1067
|
case 4:
|
|
1227
|
-
if (!(
|
|
1228
|
-
|
|
1229
|
-
|
|
1068
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
1069
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1070
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1230
1071
|
return [4 /*yield*/, response.body.text()];
|
|
1231
1072
|
case 5:
|
|
1232
|
-
|
|
1233
|
-
"APIErrorResponse",
|
|
1234
|
-
""]);
|
|
1235
|
-
throw new exception_1.ApiException(403, body_52);
|
|
1236
|
-
case 6:
|
|
1237
|
-
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
1238
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1239
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1240
|
-
return [4 /*yield*/, response.body.text()];
|
|
1241
|
-
case 7:
|
|
1242
|
-
body_53 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
|
|
1243
|
-
"APIErrorResponse",
|
|
1244
|
-
""]);
|
|
1245
|
-
throw new exception_1.ApiException(404, body_53);
|
|
1246
|
-
case 8:
|
|
1247
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
|
|
1248
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1249
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1250
|
-
return [4 /*yield*/, response.body.text()];
|
|
1251
|
-
case 9:
|
|
1252
|
-
body_54 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
|
|
1253
|
-
"APIErrorResponse",
|
|
1254
|
-
""]);
|
|
1255
|
-
throw new exception_1.ApiException(429, body_54);
|
|
1256
|
-
case 10:
|
|
1257
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
|
|
1258
|
-
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1259
|
-
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1260
|
-
return [4 /*yield*/, response.body.text()];
|
|
1261
|
-
case 11:
|
|
1262
|
-
body_55 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
|
|
1073
|
+
body_30 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
1263
1074
|
"ListApplicationKeysResponse",
|
|
1264
1075
|
""]);
|
|
1265
|
-
return [2 /*return*/,
|
|
1266
|
-
case
|
|
1267
|
-
case
|
|
1268
|
-
body = (
|
|
1076
|
+
return [2 /*return*/, body_30];
|
|
1077
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
1078
|
+
case 7:
|
|
1079
|
+
body = (_l.sent()) || "";
|
|
1269
1080
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1270
1081
|
}
|
|
1271
1082
|
});
|
|
@@ -1280,73 +1091,49 @@ var KeyManagementApiResponseProcessor = /** @class */ (function () {
|
|
|
1280
1091
|
*/
|
|
1281
1092
|
KeyManagementApiResponseProcessor.prototype.updateAPIKey = function (response) {
|
|
1282
1093
|
return __awaiter(this, void 0, void 0, function () {
|
|
1283
|
-
var contentType,
|
|
1284
|
-
return __generator(this, function (
|
|
1285
|
-
switch (
|
|
1094
|
+
var contentType, body_31, _a, _b, _c, _d, bodyText, _e, _f, body_32, body_33, _g, _h, _j, _k, body;
|
|
1095
|
+
return __generator(this, function (_l) {
|
|
1096
|
+
switch (_l.label) {
|
|
1286
1097
|
case 0:
|
|
1287
1098
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1288
|
-
if (!(
|
|
1099
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
1289
1100
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1290
1101
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1291
1102
|
return [4 /*yield*/, response.body.text()];
|
|
1292
1103
|
case 1:
|
|
1293
|
-
|
|
1294
|
-
"APIKeyResponse"
|
|
1295
|
-
|
|
1296
|
-
return [2 /*return*/, body_56];
|
|
1104
|
+
body_31 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
1105
|
+
"APIKeyResponse"]);
|
|
1106
|
+
return [2 /*return*/, body_31];
|
|
1297
1107
|
case 2:
|
|
1298
|
-
if (!(
|
|
1299
|
-
|
|
1300
|
-
|
|
1108
|
+
if (!(response.httpStatusCode == 400 ||
|
|
1109
|
+
response.httpStatusCode == 403 ||
|
|
1110
|
+
response.httpStatusCode == 404 ||
|
|
1111
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
1112
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1301
1113
|
return [4 /*yield*/, response.body.text()];
|
|
1302
1114
|
case 3:
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
""
|
|
1306
|
-
|
|
1115
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
1116
|
+
try {
|
|
1117
|
+
body_32 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1118
|
+
}
|
|
1119
|
+
catch (error) {
|
|
1120
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
1121
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1122
|
+
}
|
|
1123
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_32);
|
|
1307
1124
|
case 4:
|
|
1308
|
-
if (!(
|
|
1309
|
-
|
|
1310
|
-
|
|
1125
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
1126
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1127
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1311
1128
|
return [4 /*yield*/, response.body.text()];
|
|
1312
1129
|
case 5:
|
|
1313
|
-
|
|
1314
|
-
"APIErrorResponse",
|
|
1315
|
-
""]);
|
|
1316
|
-
throw new exception_1.ApiException(403, body_58);
|
|
1317
|
-
case 6:
|
|
1318
|
-
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
1319
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1320
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1321
|
-
return [4 /*yield*/, response.body.text()];
|
|
1322
|
-
case 7:
|
|
1323
|
-
body_59 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
|
|
1324
|
-
"APIErrorResponse",
|
|
1325
|
-
""]);
|
|
1326
|
-
throw new exception_1.ApiException(404, body_59);
|
|
1327
|
-
case 8:
|
|
1328
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
|
|
1329
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1330
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1331
|
-
return [4 /*yield*/, response.body.text()];
|
|
1332
|
-
case 9:
|
|
1333
|
-
body_60 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
|
|
1334
|
-
"APIErrorResponse",
|
|
1335
|
-
""]);
|
|
1336
|
-
throw new exception_1.ApiException(429, body_60);
|
|
1337
|
-
case 10:
|
|
1338
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
|
|
1339
|
-
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1340
|
-
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1341
|
-
return [4 /*yield*/, response.body.text()];
|
|
1342
|
-
case 11:
|
|
1343
|
-
body_61 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
|
|
1130
|
+
body_33 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
1344
1131
|
"APIKeyResponse",
|
|
1345
1132
|
""]);
|
|
1346
|
-
return [2 /*return*/,
|
|
1347
|
-
case
|
|
1348
|
-
case
|
|
1349
|
-
body = (
|
|
1133
|
+
return [2 /*return*/, body_33];
|
|
1134
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
1135
|
+
case 7:
|
|
1136
|
+
body = (_l.sent()) || "";
|
|
1350
1137
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1351
1138
|
}
|
|
1352
1139
|
});
|
|
@@ -1361,73 +1148,49 @@ var KeyManagementApiResponseProcessor = /** @class */ (function () {
|
|
|
1361
1148
|
*/
|
|
1362
1149
|
KeyManagementApiResponseProcessor.prototype.updateApplicationKey = function (response) {
|
|
1363
1150
|
return __awaiter(this, void 0, void 0, function () {
|
|
1364
|
-
var contentType,
|
|
1365
|
-
return __generator(this, function (
|
|
1366
|
-
switch (
|
|
1151
|
+
var contentType, body_34, _a, _b, _c, _d, bodyText, _e, _f, body_35, body_36, _g, _h, _j, _k, body;
|
|
1152
|
+
return __generator(this, function (_l) {
|
|
1153
|
+
switch (_l.label) {
|
|
1367
1154
|
case 0:
|
|
1368
1155
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1369
|
-
if (!(
|
|
1156
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
1370
1157
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1371
1158
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1372
1159
|
return [4 /*yield*/, response.body.text()];
|
|
1373
1160
|
case 1:
|
|
1374
|
-
|
|
1375
|
-
"ApplicationKeyResponse"
|
|
1376
|
-
|
|
1377
|
-
return [2 /*return*/, body_62];
|
|
1161
|
+
body_34 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
1162
|
+
"ApplicationKeyResponse"]);
|
|
1163
|
+
return [2 /*return*/, body_34];
|
|
1378
1164
|
case 2:
|
|
1379
|
-
if (!(
|
|
1380
|
-
|
|
1381
|
-
|
|
1165
|
+
if (!(response.httpStatusCode == 400 ||
|
|
1166
|
+
response.httpStatusCode == 403 ||
|
|
1167
|
+
response.httpStatusCode == 404 ||
|
|
1168
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
1169
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1382
1170
|
return [4 /*yield*/, response.body.text()];
|
|
1383
1171
|
case 3:
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
""
|
|
1387
|
-
|
|
1172
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
1173
|
+
try {
|
|
1174
|
+
body_35 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1175
|
+
}
|
|
1176
|
+
catch (error) {
|
|
1177
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
1178
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1179
|
+
}
|
|
1180
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_35);
|
|
1388
1181
|
case 4:
|
|
1389
|
-
if (!(
|
|
1390
|
-
|
|
1391
|
-
|
|
1182
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
1183
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1184
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1392
1185
|
return [4 /*yield*/, response.body.text()];
|
|
1393
1186
|
case 5:
|
|
1394
|
-
|
|
1395
|
-
"APIErrorResponse",
|
|
1396
|
-
""]);
|
|
1397
|
-
throw new exception_1.ApiException(403, body_64);
|
|
1398
|
-
case 6:
|
|
1399
|
-
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
1400
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1401
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1402
|
-
return [4 /*yield*/, response.body.text()];
|
|
1403
|
-
case 7:
|
|
1404
|
-
body_65 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
|
|
1405
|
-
"APIErrorResponse",
|
|
1406
|
-
""]);
|
|
1407
|
-
throw new exception_1.ApiException(404, body_65);
|
|
1408
|
-
case 8:
|
|
1409
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
|
|
1410
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1411
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1412
|
-
return [4 /*yield*/, response.body.text()];
|
|
1413
|
-
case 9:
|
|
1414
|
-
body_66 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
|
|
1415
|
-
"APIErrorResponse",
|
|
1416
|
-
""]);
|
|
1417
|
-
throw new exception_1.ApiException(429, body_66);
|
|
1418
|
-
case 10:
|
|
1419
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
|
|
1420
|
-
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1421
|
-
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1422
|
-
return [4 /*yield*/, response.body.text()];
|
|
1423
|
-
case 11:
|
|
1424
|
-
body_67 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
|
|
1187
|
+
body_36 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
1425
1188
|
"ApplicationKeyResponse",
|
|
1426
1189
|
""]);
|
|
1427
|
-
return [2 /*return*/,
|
|
1428
|
-
case
|
|
1429
|
-
case
|
|
1430
|
-
body = (
|
|
1190
|
+
return [2 /*return*/, body_36];
|
|
1191
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
1192
|
+
case 7:
|
|
1193
|
+
body = (_l.sent()) || "";
|
|
1431
1194
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1432
1195
|
}
|
|
1433
1196
|
});
|
|
@@ -1442,73 +1205,49 @@ var KeyManagementApiResponseProcessor = /** @class */ (function () {
|
|
|
1442
1205
|
*/
|
|
1443
1206
|
KeyManagementApiResponseProcessor.prototype.updateCurrentUserApplicationKey = function (response) {
|
|
1444
1207
|
return __awaiter(this, void 0, void 0, function () {
|
|
1445
|
-
var contentType,
|
|
1446
|
-
return __generator(this, function (
|
|
1447
|
-
switch (
|
|
1208
|
+
var contentType, body_37, _a, _b, _c, _d, bodyText, _e, _f, body_38, body_39, _g, _h, _j, _k, body;
|
|
1209
|
+
return __generator(this, function (_l) {
|
|
1210
|
+
switch (_l.label) {
|
|
1448
1211
|
case 0:
|
|
1449
1212
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1450
|
-
if (!(
|
|
1213
|
+
if (!(response.httpStatusCode == 200)) return [3 /*break*/, 2];
|
|
1451
1214
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1452
1215
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1453
1216
|
return [4 /*yield*/, response.body.text()];
|
|
1454
1217
|
case 1:
|
|
1455
|
-
|
|
1456
|
-
"ApplicationKeyResponse"
|
|
1457
|
-
|
|
1458
|
-
return [2 /*return*/, body_68];
|
|
1218
|
+
body_37 = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
1219
|
+
"ApplicationKeyResponse"]);
|
|
1220
|
+
return [2 /*return*/, body_37];
|
|
1459
1221
|
case 2:
|
|
1460
|
-
if (!(
|
|
1461
|
-
|
|
1462
|
-
|
|
1222
|
+
if (!(response.httpStatusCode == 400 ||
|
|
1223
|
+
response.httpStatusCode == 403 ||
|
|
1224
|
+
response.httpStatusCode == 404 ||
|
|
1225
|
+
response.httpStatusCode == 429)) return [3 /*break*/, 4];
|
|
1226
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1463
1227
|
return [4 /*yield*/, response.body.text()];
|
|
1464
1228
|
case 3:
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
""
|
|
1468
|
-
|
|
1229
|
+
bodyText = _f.apply(_e, [_l.sent(), contentType]);
|
|
1230
|
+
try {
|
|
1231
|
+
body_38 = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
|
|
1232
|
+
}
|
|
1233
|
+
catch (error) {
|
|
1234
|
+
logger_1.logger.info("Got error deserializing error: ".concat(error));
|
|
1235
|
+
throw new exception_1.ApiException(response.httpStatusCode, bodyText);
|
|
1236
|
+
}
|
|
1237
|
+
throw new exception_1.ApiException(response.httpStatusCode, body_38);
|
|
1469
1238
|
case 4:
|
|
1470
|
-
if (!(
|
|
1471
|
-
|
|
1472
|
-
|
|
1239
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 6];
|
|
1240
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1241
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1473
1242
|
return [4 /*yield*/, response.body.text()];
|
|
1474
1243
|
case 5:
|
|
1475
|
-
|
|
1476
|
-
"APIErrorResponse",
|
|
1477
|
-
""]);
|
|
1478
|
-
throw new exception_1.ApiException(403, body_70);
|
|
1479
|
-
case 6:
|
|
1480
|
-
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3 /*break*/, 8];
|
|
1481
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1482
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1483
|
-
return [4 /*yield*/, response.body.text()];
|
|
1484
|
-
case 7:
|
|
1485
|
-
body_71 = _p.apply(_o, [_r.apply(_q, [_0.sent(), contentType]),
|
|
1486
|
-
"APIErrorResponse",
|
|
1487
|
-
""]);
|
|
1488
|
-
throw new exception_1.ApiException(404, body_71);
|
|
1489
|
-
case 8:
|
|
1490
|
-
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3 /*break*/, 10];
|
|
1491
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1492
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1493
|
-
return [4 /*yield*/, response.body.text()];
|
|
1494
|
-
case 9:
|
|
1495
|
-
body_72 = _t.apply(_s, [_v.apply(_u, [_0.sent(), contentType]),
|
|
1496
|
-
"APIErrorResponse",
|
|
1497
|
-
""]);
|
|
1498
|
-
throw new exception_1.ApiException(429, body_72);
|
|
1499
|
-
case 10:
|
|
1500
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3 /*break*/, 12];
|
|
1501
|
-
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1502
|
-
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1503
|
-
return [4 /*yield*/, response.body.text()];
|
|
1504
|
-
case 11:
|
|
1505
|
-
body_73 = _x.apply(_w, [_z.apply(_y, [_0.sent(), contentType]),
|
|
1244
|
+
body_39 = _h.apply(_g, [_k.apply(_j, [_l.sent(), contentType]),
|
|
1506
1245
|
"ApplicationKeyResponse",
|
|
1507
1246
|
""]);
|
|
1508
|
-
return [2 /*return*/,
|
|
1509
|
-
case
|
|
1510
|
-
case
|
|
1511
|
-
body = (
|
|
1247
|
+
return [2 /*return*/, body_39];
|
|
1248
|
+
case 6: return [4 /*yield*/, response.body.text()];
|
|
1249
|
+
case 7:
|
|
1250
|
+
body = (_l.sent()) || "";
|
|
1512
1251
|
throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
|
|
1513
1252
|
}
|
|
1514
1253
|
});
|