@quantcdn/quant-client 4.39.0 → 4.40.1
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/api.ts +1335 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +1011 -1
- package/dist/api.js +622 -11
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +1011 -1
- package/dist/esm/api.js +607 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* QuantCDN API
|
|
6
6
|
* Unified API for QuantCDN Admin and QuantCloud Platform services ## Rate limits - **Per token.** Each API token has a limit per organisation: by default 240 requests per minute. The limit counts after the token is validated, so tokens that share an IP address (for example Quant Cloud apps and CI runners) do not share a limit. An organisation can have a different limit (set per organisation or by subscription plan); contact Quant support to change it. - **Unauthenticated requests.** Requests that end without a valid token (no token, an invalid or expired token, public routes) have a coarse limit per client IP address: by default 600 requests per minute. A request with a valid token never counts against it and is never refused by it. A request with a valid token that is refused before the per-token limit runs (for example an organisation the token cannot use) still counts against the token. - **KV per project.** Some KV operations also have a limit per project, shared by every token: kv-admin 10 requests per minute (index create, delete and resume; upgrade; export create and resume; ledger declare, raise and drop), kv-erase 30 (ledger subject preview and shred), kv-verify 6 (ledger verify). - **Responses.** Over a limit the answer is 429 with a Retry-After header (seconds). KV routes answer the V2KvError body with code RATE_LIMITED and retryable true; other routes answer {\"message\": \"Too Many Attempts.\"}. Rate-limited routes send RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset (IETF draft; Reset is seconds until the window resets) and X-RateLimit-Limit and X-RateLimit-Remaining on the responses of requests that reach a limiter, and X-RateLimit-Reset (Unix time) on a 429. A request refused before a limiter runs (for example a 401, 403 or 404 from an earlier check) can come back without these headers. When two limits apply, the headers describe the one with fewer requests left. Wait Retry-After seconds, then send the request again.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 4.
|
|
8
|
+
* The version of the OpenAPI document: 4.40.1
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,16 +22,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.
|
|
32
|
-
exports.
|
|
33
|
-
exports.
|
|
34
|
-
exports.
|
|
25
|
+
exports.CreateOrchestrationRequestStopConditionTypeEnum = exports.CreateOrchestrationRequestInputSourceTypeEnum = exports.CreateFilterPolicyRequestRulesInnerMatchTypeEnum = exports.CreateFilterPolicyRequestRulesInnerApplyToEnum = exports.CreateFilterPolicyRequestRulesInnerActionEnum = exports.CreateCustomToolRequestResponseModeEnum = exports.CreateApplicationRequestDatabaseEngineEnum = exports.CreateAISessionRequestInitialMessagesInnerRoleEnum = exports.CreateAISession201ResponseStatusEnum = exports.CreateAIAgentRequestGuardrailPresetEnum = exports.CreateAIAgentRequestReasoningEffortEnum = exports.ContainerImageReferenceTypeEnum = exports.ContainerDependsOnInnerConditionEnum = exports.CiValueWriteResultScopeEnum = exports.CiValueWriteResultKindEnum = exports.CiValueScopeEnum = exports.CiValueKindEnum = exports.CiRunnerPoolConfigConnectionStatusEnum = exports.CiRunnerPoolConfigConnectionProviderEnum = exports.CiRunnerPoolConfigAlertsInnerTypeEnum = exports.CiRunnerPoolConfigCacheResidencyEnum = exports.CiRunnerPoolConfigNetworkModeEnum = exports.CiRunnerPoolConfigArchitecturesEnum = exports.CiRunnerPoolConfigTierEnum = exports.ChatWithAIAgent202ResponseStatusEnum = exports.ChatInferenceStreamRequestMessagesInnerRoleEnum = exports.ChatInferenceRequestResponseFormatTypeEnum = exports.ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf3DocumentFormatEnum = exports.ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf2VideoFormatEnum = exports.ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf1ImageFormatEnum = exports.ChatInferenceRequestMessagesInnerRoleEnum = exports.ChatInferenceRequestGuardrailsTraceEnum = exports.ChatInference202ResponseStatusEnum = exports.ChatInference200ResponseResponseRoleEnum = exports.ChatInference200ResponseFinishReasonEnum = exports.AttachOrgResourceRequestAccessLevelEnum = exports.ApplicationImageReferenceTypeEnum = exports.ApplicationDatabaseInstanceEngineEnum = exports.ApplicationDatabaseInstanceStatusEnum = exports.ApplicationDatabaseInstanceRoleEnum = exports.ApplicationDatabaseErrorRequestedEnum = exports.ApplicationDatabaseErrorOperationEnum = exports.ApplicationDatabaseRdsInstanceEngineEnum = exports.AlertChannelSummaryTypeEnum = exports.AiSlackBotApiMessageAllOfAuthorKindEnum = exports.AiSearchUpdateSettingsRequestQueryTextRetentionEnum = exports.AiAuditRecordRowOmittedEnum = exports.AIModelEligibilityReasonEnum = exports.AIAutoModeInputEnforcementEnum = exports.AIAutoModeConfigEnforcementEnum = void 0;
|
|
26
|
+
exports.PatchEnvironmentComposeRequestSpotConfigurationStrategyEnum = exports.OrgResourceEffectiveCacheResidencyEnum = exports.OrgResourceScopeEnum = exports.OrgResourceStatusEnum = exports.OrgResourceTypeEnum = exports.OaiChatCompletionsRequestMessagesInnerRoleEnum = exports.OaiChatCompletionsRequestReasoningEffortEnum = exports.OaiChatCompletions200ResponseChoicesInnerFinishReasonEnum = exports.ListTasks200ResponseTasksInnerStatusEnum = exports.ListSlackBots200ResponseBotsInnerReasoningEffortEnum = exports.ListSlackBots200ResponseBotsInnerStatusEnum = exports.ListSlackBots200ResponseBotsInnerSetupTypeEnum = exports.ListSlackBotChannelMessages200ResponseContentTrustEnum = exports.ListOrchestrationBatches200ResponseBatchesInnerStatusEnum = exports.ListAIAgents200ResponseAgentsInnerReasoningEffortEnum = exports.ImportSkillRequestSourceTypeEnum = exports.ImportSkillCollectionRequestSourceTypeEnum = exports.IdleSleepResponseStateEnum = exports.GetTask200ResponseStatusEnum = exports.GetSlackBotThread200ResponseContentTrustEnum = exports.GetSlackBot200ResponseBotReasoningEffortEnum = exports.GetSlackBot200ResponseBotStatusEnum = exports.GetSlackBot200ResponseBotSetupTypeEnum = exports.GetScalingPolicyResponseMetricEnum = exports.GetRestoreStatus200ResponseStatusEnum = exports.GetProjectEdgeEvents200ResponseEventsInnerTypeEnum = exports.GetGovernanceConfig200ResponseModelPolicyEnum = exports.GetDurableExecutionStatus200ResponseStatusEnum = exports.GetCustomTool200ResponseToolResponseModeEnum = exports.GetAgentOverlay200ResponseOverlayReasoningEffortEnum = exports.GetAIOrchestrationStatus200ResponseToolsInnerStatusEnum = exports.GetAIOrchestrationStatus200ResponseStatusEnum = exports.GetAIAgent200ResponseAgentReasoningEffortEnum = exports.EnvironmentSummaryDeploymentStatusEnum = exports.EnvironmentResponseDeploymentFailureTypeEnum = exports.EnvironmentResponseDeploymentStatusEnum = exports.EmbeddingsRequestDimensionsEnum = exports.DeleteApplicationDatabaseResponseStatusEnum = exports.DecideToolProposalRequestScopeEnum = exports.DecideToolProposalRequestDecisionEnum = exports.DNSCreateRecordRequestTypeEnum = exports.CronRunStatusEnum = exports.CronRunRunTypeEnum = exports.CronLastRunStatusEnum = exports.CreateTaskRequestStatusEnum = exports.CreateSlackInteractionRequestActionsInnerStyleEnum = exports.CreateSlackInteractionRequestResponseModeEnum = exports.CreateSlackBotRequestReasoningEffortEnum = exports.CreateSlackBotRequestSetupTypeEnum = exports.CreateOrgResourceRequestTypeEnum = void 0;
|
|
27
|
+
exports.V2KvLedgerLockModeEnum = exports.V2KvIndexLookupStatusEnum = exports.V2KvIndexJobPhaseEnum = exports.V2KvIndexErrorEnum = exports.V2KvIndexStateEnum = exports.V2KvIncrementResponseOperationEnum = exports.V2KvExportPhaseEnum = exports.V2KvErrorLedgersInnerReasonEnum = exports.V2KvErrorReasonEnum = exports.V2KvErrorCodeEnum = exports.V2KvEntryPutResponseStatusEnum = exports.V2KvEntryDeleteResponseStatusEnum = exports.V2KvArchiveStatusSourceEnum = exports.V2KvArchiveStatusStatusEnum = exports.V2KvArchivePurgeReceiptAlgorithmEnum = exports.V2KvArchivePurgeAnswerStateEnum = exports.V2KvArchivePurgeStateEnum = exports.V1TransitionStateEnum = exports.UpsertAgentOverlayRequestReasoningEffortEnum = exports.UpsertAgentOverlayRequestGuardrailPresetEnum = exports.UpdateTaskRequestStatusEnum = exports.UpdateSlackBotRequestReasoningEffortEnum = exports.UpdateSlackBotRequestStatusEnum = exports.UpdateGovernanceConfigRequestMandatoryGuardrailPresetEnum = exports.UpdateGovernanceConfigRequestModelPolicyEnum = exports.UpdateAISessionRequestNewMessagesInnerRoleEnum = exports.UpdateAISessionRequestStatusEnum = exports.UpdateAIAgentRequestGuardrailPresetEnum = exports.UpdateAIAgentRequestReasoningEffortEnum = exports.TokensCreateRequestExpiresInEnum = exports.SpotConfigurationStrategyEnum = exports.SetScalingPolicyRequestMetricEnum = exports.ResourceAttachmentAccessLevelEnum = exports.ResizeApplicationDatabaseResponseRoleEnum = exports.ResizeApplicationDatabaseRequestInstanceClassEnum = exports.QueryVectorCollectionRequestSortOrderEnum = exports.QueryVectorCollectionRequestSortByEnum = exports.QueryVectorCollection200ResponsePaginationSortOrderEnum = exports.QueryVectorCollection200ResponsePaginationSortByEnum = exports.QueryVectorCollection200ResponseSearchModeEnum = exports.PutCiValueRequestKindEnum = exports.PurgeOrgResourceRequestScopeEnum = exports.PurgeCreateRequestScopeEnum = exports.ProvisionApplicationDatabaseRequestInstanceClassEnum = exports.ProvisionApplicationDatabaseRequestEngineEnum = exports.ProvisionApplicationDatabaseAcceptedStatusEnum = exports.ProvisionApplicationDatabaseAcceptedEngineEnum = exports.ProjectsDelete503ResponseCodeEnum = exports.ProjectsDelete409ResponseCodeEnum = exports.PostSlackBotMessageRequestFormatEnum = void 0;
|
|
28
|
+
exports.V2RuleAuthFunctionRequestAsnEnum = exports.V2MetricsMetaGranularityEnum = exports.V2MetricsMetaPeriodEnum = exports.V2KvUsageEstimateCurrencyEnum = exports.V2KvUsageStateEnum = exports.V2KvUsageFormatEnum = exports.V2KvUpgradeStatusPhaseEnum = exports.V2KvUpgradeStateStateEnum = exports.V2KvUpgradeStateFormatEnum = exports.V2KvUpgradeRequestActionEnum = exports.V2KvTransactOperationTypeEnum = exports.V2KvPageEnd = exports.V2KvLedgerVerifyShardReasonEnum = exports.V2KvLedgerVerificationReportReportTriggerEnum = exports.V2KvLedgerVerificationReportReportTypeEnum = exports.V2KvLedgerVerificationReportReportVEnum = exports.V2KvLedgerVerificationReportAlgorithmEnum = exports.V2KvLedgerSubjectEntriesRequestPersonalEnum = exports.V2KvLedgerSubjectEntriesSubjectStateEnum = exports.V2KvLedgerStatusAnchorTypeEnum = exports.V2KvLedgerPublicKeyCurveEnum = exports.V2KvLedgerPublicKeyAlgorithmEnum = exports.V2KvLedgerProvenanceTypeEnum = exports.V2KvLedgerProofAnchorTypeEnum = exports.V2KvLedgerProofStatusEnum = exports.V2KvLedgerMetaSubjectEnum = exports.V2KvLedgerListItemStateEnum = exports.V2KvLedgerListItemSubjectCaseEnum = exports.V2KvLedgerListItemSubjectModeEnum = exports.V2KvLedgerListItemLockModeEnum = exports.V2KvLedgerLastVerifyTriggerEnum = exports.V2KvLedgerErasureSubjectPreviewKeyStateEnum = exports.V2KvLedgerErasureSignedShredReceiptAlgorithmEnum = exports.V2KvLedgerErasureShredReceiptDocumentAlgorithmEnum = exports.V2KvLedgerErasureShredReceiptBodyTypeEnum = exports.V2KvLedgerErasureShredReceiptBodyVEnum = exports.V2KvLedgerErasureShredInProgressStatusEnum = exports.V2KvLedgerDetailStateEnum = exports.V2KvLedgerDetailSubjectCaseEnum = exports.V2KvLedgerDetailSubjectModeEnum = exports.V2KvLedgerDetailLockModeEnum = exports.V2KvLedgerAnchorTsaUrlEnum = exports.V2KvLedgerAnchorTypeEnum = exports.V2KvLedgerAdminRaiseRequestLockModeEnum = exports.V2KvLedgerAdminDeclareRequestSubjectCaseEnum = exports.V2KvLedgerAdminDeclareRequestSubjectModeEnum = exports.V2KvLedgerAdminDeclareRequestLockModeEnum = exports.V2KvLedgerStateEnum = exports.V2KvLedgerSubjectCaseEnum = exports.V2KvLedgerSubjectModeEnum = void 0;
|
|
29
|
+
exports.V2RuleProxyRequestTrafficSourceIsNotEnum = exports.V2RuleProxyRequestTrafficSourceIsEnum = exports.V2RuleProxyRequestTrafficSourceEnum = exports.V2RuleProxyRequestUaEnum = exports.V2RuleProxyRequestAsnEnum = exports.V2RuleProxyActionNotifyEnum = exports.V2RuleHeaderRequestTrafficSourceIsNotEnum = exports.V2RuleHeaderRequestTrafficSourceIsEnum = exports.V2RuleHeaderRequestTrafficSourceEnum = exports.V2RuleHeaderRequestUaEnum = exports.V2RuleHeaderRequestAsnEnum = exports.V2RuleFunctionRequestTrafficSourceIsNotEnum = exports.V2RuleFunctionRequestTrafficSourceIsEnum = exports.V2RuleFunctionRequestTrafficSourceEnum = exports.V2RuleFunctionRequestUaEnum = exports.V2RuleFunctionRequestAsnEnum = exports.V2RuleErrorPageRequestTrafficSourceIsNotEnum = exports.V2RuleErrorPageRequestTrafficSourceIsEnum = exports.V2RuleErrorPageRequestTrafficSourceEnum = exports.V2RuleErrorPageRequestUaEnum = exports.V2RuleErrorPageRequestAsnEnum = exports.V2RuleCustomResponseRequestTrafficSourceIsNotEnum = exports.V2RuleCustomResponseRequestTrafficSourceIsEnum = exports.V2RuleCustomResponseRequestTrafficSourceEnum = exports.V2RuleCustomResponseRequestUaEnum = exports.V2RuleCustomResponseRequestAsnEnum = exports.V2RuleContentFilterRequestTrafficSourceIsNotEnum = exports.V2RuleContentFilterRequestTrafficSourceIsEnum = exports.V2RuleContentFilterRequestTrafficSourceEnum = exports.V2RuleContentFilterRequestUaEnum = exports.V2RuleContentFilterRequestAsnEnum = exports.V2RuleBotChallengeRequestTrafficSourceIsNotEnum = exports.V2RuleBotChallengeRequestTrafficSourceIsEnum = exports.V2RuleBotChallengeRequestTrafficSourceEnum = exports.V2RuleBotChallengeRequestUaEnum = exports.V2RuleBotChallengeRequestAsnEnum = exports.V2RuleBotChallengeActionRobotChallengeVerifiedBotsOtherEnum = exports.V2RuleBotChallengeActionRobotChallengeVerifiedBotsMonitorEnum = exports.V2RuleBotChallengeActionRobotChallengeVerifiedBotsPreviewEnum = exports.V2RuleBotChallengeActionRobotChallengeVerifiedBotsAiSearchEnum = exports.V2RuleBotChallengeActionRobotChallengeVerifiedBotsSearchEnum = exports.V2RuleAuthRequestTrafficSourceIsNotEnum = exports.V2RuleAuthRequestTrafficSourceIsEnum = exports.V2RuleAuthRequestTrafficSourceEnum = exports.V2RuleAuthRequestUaEnum = exports.V2RuleAuthRequestAsnEnum = exports.V2RuleAuthFunctionRequestTrafficSourceIsNotEnum = exports.V2RuleAuthFunctionRequestTrafficSourceIsEnum = exports.V2RuleAuthFunctionRequestTrafficSourceEnum = exports.V2RuleAuthFunctionRequestUaEnum = void 0;
|
|
30
|
+
exports.AIFilterPoliciesApiFp = exports.AIFilterPoliciesApiAxiosParamCreator = exports.AIFileStorageApi = exports.AIFileStorageApiFactory = exports.AIFileStorageApiFp = exports.AIFileStorageApiAxiosParamCreator = exports.AICustomToolsApi = exports.AICustomToolsApiFactory = exports.AICustomToolsApiFp = exports.AICustomToolsApiAxiosParamCreator = exports.AIAutoModeApi = exports.AIAutoModeApiFactory = exports.AIAutoModeApiFp = exports.AIAutoModeApiAxiosParamCreator = exports.AIAuditApi = exports.AIAuditApiFactory = exports.AIAuditApiFp = exports.AIAuditApiAxiosParamCreator = exports.AIAgentsApi = exports.AIAgentsApiFactory = exports.AIAgentsApiFp = exports.AIAgentsApiAxiosParamCreator = exports.GetAIUsageStatsIncludeEnum = exports.GetAIUsageStatsGroupByEnum = exports.AIApi = exports.AIApiFactory = exports.AIApiFp = exports.AIApiAxiosParamCreator = exports.WafConfigThresholdsInnerModeEnum = exports.WafConfigThresholdsInnerTypeEnum = exports.WafConfigModeEnum = exports.V2StoreRequestFormatEnum = exports.V2StoreStatusEnum = exports.V2RuleServeStaticRequestTrafficSourceIsNotEnum = exports.V2RuleServeStaticRequestTrafficSourceIsEnum = exports.V2RuleServeStaticRequestTrafficSourceEnum = exports.V2RuleServeStaticRequestUaEnum = exports.V2RuleServeStaticRequestAsnEnum = exports.V2RuleScheduleWeeklyInnerDaysEnum = exports.V2RuleScheduleModeEnum = exports.V2RuleRequestTrafficSourceIsNotEnum = exports.V2RuleRequestTrafficSourceIsEnum = exports.V2RuleRequestTrafficSourceEnum = exports.V2RuleRequestUaEnum = exports.V2RuleRequestAsnEnum = exports.V2RuleRedirectRequestTrafficSourceIsNotEnum = exports.V2RuleRedirectRequestTrafficSourceIsEnum = exports.V2RuleRedirectRequestTrafficSourceEnum = exports.V2RuleRedirectRequestUaEnum = exports.V2RuleRedirectRequestAsnEnum = void 0;
|
|
31
|
+
exports.ListAIToolExecutionsStatusEnum = exports.AIToolsApi = exports.AIToolsApiFactory = exports.AIToolsApiFp = exports.AIToolsApiAxiosParamCreator = exports.AIToolApprovalApi = exports.AIToolApprovalApiFactory = exports.AIToolApprovalApiFp = exports.AIToolApprovalApiAxiosParamCreator = exports.ListTasksStatusEnum = exports.AITaskManagementApi = exports.AITaskManagementApiFactory = exports.AITaskManagementApiFp = exports.AITaskManagementApiAxiosParamCreator = exports.AISlackBotsApi = exports.AISlackBotsApiFactory = exports.AISlackBotsApiFp = exports.AISlackBotsApiAxiosParamCreator = exports.AISkillsApi = exports.AISkillsApiFactory = exports.AISkillsApiFp = exports.AISkillsApiAxiosParamCreator = exports.AISessionsApi = exports.AISessionsApiFactory = exports.AISessionsApiFp = exports.AISessionsApiAxiosParamCreator = exports.AISearchApi = exports.AISearchApiFactory = exports.AISearchApiFp = exports.AISearchApiAxiosParamCreator = exports.ListOrchestrationsStatusEnum = exports.AIOrchestrationsApi = exports.AIOrchestrationsApiFactory = exports.AIOrchestrationsApiFp = exports.AIOrchestrationsApiAxiosParamCreator = exports.ListAIModelsFeatureEnum = exports.AIModelsApi = exports.AIModelsApiFactory = exports.AIModelsApiFp = exports.AIModelsApiAxiosParamCreator = exports.AIInferenceApi = exports.AIInferenceApiFactory = exports.AIInferenceApiFp = exports.AIInferenceApiAxiosParamCreator = exports.AIGovernanceApi = exports.AIGovernanceApiFactory = exports.AIGovernanceApiFp = exports.AIGovernanceApiAxiosParamCreator = exports.AIFilterPoliciesApi = exports.AIFilterPoliciesApiFactory = void 0;
|
|
32
|
+
exports.ComposeApiFp = exports.ComposeApiAxiosParamCreator = exports.CommandsApi = exports.CommandsApiFactory = exports.CommandsApiFp = exports.CommandsApiAxiosParamCreator = exports.CIValuesApi = exports.CIValuesApiFactory = exports.CIValuesApiFp = exports.CIValuesApiAxiosParamCreator = exports.GetMonthlyMetricsTimestampFormatEnum = exports.GetMonthlyMetricsMetricsEnum = exports.GetHourlyMetricsTimestampFormatEnum = exports.GetHourlyMetricsMetricsEnum = exports.GetDailyMetricsTimestampFormatEnum = exports.GetDailyMetricsMetricsEnum = exports.CDNMetricsApi = exports.CDNMetricsApiFactory = exports.CDNMetricsApiFp = exports.CDNMetricsApiAxiosParamCreator = exports.ListBackupsStatusEnum = exports.ListBackupsOrderEnum = exports.ListBackupsTypeEnum = exports.DownloadBackupTypeEnum = exports.DeleteBackupTypeEnum = exports.CreateBackupTypeEnum = exports.BackupManagementApi = exports.BackupManagementApiFactory = exports.BackupManagementApiFp = exports.BackupManagementApiAxiosParamCreator = exports.ApplicationsApi = exports.ApplicationsApiFactory = exports.ApplicationsApiFp = exports.ApplicationsApiAxiosParamCreator = exports.ApplicationDatabaseApi = exports.ApplicationDatabaseApiFactory = exports.ApplicationDatabaseApiFp = exports.ApplicationDatabaseApiAxiosParamCreator = exports.AlertChannelsApi = exports.AlertChannelsApiFactory = exports.AlertChannelsApiFp = exports.AlertChannelsApiAxiosParamCreator = exports.AIVectorDatabaseApi = exports.AIVectorDatabaseApiFactory = exports.AIVectorDatabaseApiFp = exports.AIVectorDatabaseApiAxiosParamCreator = exports.AIUsageApi = exports.AIUsageApiFactory = exports.AIUsageApiFp = exports.AIUsageApiAxiosParamCreator = void 0;
|
|
33
|
+
exports.OrganizationsApiFp = exports.OrganizationsApiAxiosParamCreator = exports.OpenAICompatibilityApi = exports.OpenAICompatibilityApiFactory = exports.OpenAICompatibilityApiFp = exports.OpenAICompatibilityApiAxiosParamCreator = exports.KVKeysListTypeEnum = exports.KVApi = exports.KVApiFactory = exports.KVApiFp = exports.KVApiAxiosParamCreator = exports.IdleSleepApi = exports.IdleSleepApiFactory = exports.IdleSleepApiFp = exports.IdleSleepApiAxiosParamCreator = exports.HeadersApi = exports.HeadersApiFactory = exports.HeadersApiFp = exports.HeadersApiAxiosParamCreator = exports.SyncToEnvironmentTypeEnum = exports.ListSyncOperationsTypeEnum = exports.GetEnvironmentSlowQueriesViewEnum = exports.GetEnvironmentLogsOrderEnum = exports.EnvironmentsApi = exports.EnvironmentsApiFactory = exports.EnvironmentsApiFp = exports.EnvironmentsApiAxiosParamCreator = exports.DNSListRecordsTypeEnum = exports.DomainsApi = exports.DomainsApiFactory = exports.DomainsApiFp = exports.DomainsApiAxiosParamCreator = exports.CronApi = exports.CronApiFactory = exports.CronApiFp = exports.CronApiAxiosParamCreator = exports.CrawlersApi = exports.CrawlersApiFactory = exports.CrawlersApiFp = exports.CrawlersApiAxiosParamCreator = exports.CrawlerSchedulesApi = exports.CrawlerSchedulesApiFactory = exports.CrawlerSchedulesApiFp = exports.CrawlerSchedulesApiAxiosParamCreator = exports.ContainersApi = exports.ContainersApiFactory = exports.ContainersApiFp = exports.ContainersApiAxiosParamCreator = exports.ComposeApi = exports.ComposeApiFactory = void 0;
|
|
34
|
+
exports.VolumesApiAxiosParamCreator = exports.VariablesApi = exports.VariablesApiFactory = exports.VariablesApiFp = exports.VariablesApiAxiosParamCreator = exports.TokensApi = exports.TokensApiFactory = exports.TokensApiFp = exports.TokensApiAxiosParamCreator = exports.SubscriptionApi = exports.SubscriptionApiFactory = exports.SubscriptionApiFp = exports.SubscriptionApiAxiosParamCreator = exports.SecretsApi = exports.SecretsApiFactory = exports.SecretsApiFp = exports.SecretsApiAxiosParamCreator = exports.ListScalingPoliciesMetricEnum = exports.DeleteScalingPolicyMetricEnum = exports.ScalingPolicyApi = exports.ScalingPolicyApiFactory = exports.ScalingPolicyApiFp = exports.ScalingPolicyApiAxiosParamCreator = exports.SSHAccessApi = exports.SSHAccessApiFactory = exports.SSHAccessApiFp = exports.SSHAccessApiAxiosParamCreator = exports.RulesApi = exports.RulesApiFactory = exports.RulesApiFp = exports.RulesApiAxiosParamCreator = exports.RestoreManagementApi = exports.RestoreManagementApiFactory = exports.RestoreManagementApiFp = exports.RestoreManagementApiAxiosParamCreator = exports.ResourcesApi = exports.ResourcesApiFactory = exports.ResourcesApiFp = exports.ResourcesApiAxiosParamCreator = exports.PurgeApi = exports.PurgeApiFactory = exports.PurgeApiFp = exports.PurgeApiAxiosParamCreator = exports.GetProjectEdgeEventsLevelEnum = exports.ProjectsApi = exports.ProjectsApiFactory = exports.ProjectsApiFp = exports.ProjectsApiAxiosParamCreator = exports.OrganizationsApi = exports.OrganizationsApiFactory = void 0;
|
|
35
|
+
exports.VolumesApi = exports.VolumesApiFactory = exports.VolumesApiFp = void 0;
|
|
35
36
|
const axios_1 = require("axios");
|
|
36
37
|
// Some imports not used depending on template conditions
|
|
37
38
|
// @ts-ignore
|
|
@@ -76,6 +77,32 @@ exports.ApplicationDatabaseRdsInstanceEngineEnum = {
|
|
|
76
77
|
Mysql: 'mysql',
|
|
77
78
|
Postgres: 'postgres'
|
|
78
79
|
};
|
|
80
|
+
exports.ApplicationDatabaseErrorOperationEnum = {
|
|
81
|
+
Provision: 'provision',
|
|
82
|
+
Promote: 'promote',
|
|
83
|
+
Delete: 'delete'
|
|
84
|
+
};
|
|
85
|
+
exports.ApplicationDatabaseErrorRequestedEnum = {
|
|
86
|
+
Provision: 'provision',
|
|
87
|
+
Promote: 'promote',
|
|
88
|
+
Delete: 'delete'
|
|
89
|
+
};
|
|
90
|
+
exports.ApplicationDatabaseInstanceRoleEnum = {
|
|
91
|
+
Active: 'active',
|
|
92
|
+
Next: 'next',
|
|
93
|
+
Previous: 'previous'
|
|
94
|
+
};
|
|
95
|
+
exports.ApplicationDatabaseInstanceStatusEnum = {
|
|
96
|
+
Active: 'active',
|
|
97
|
+
Provisioning: 'provisioning',
|
|
98
|
+
Ready: 'ready',
|
|
99
|
+
Failed: 'failed',
|
|
100
|
+
Previous: 'previous'
|
|
101
|
+
};
|
|
102
|
+
exports.ApplicationDatabaseInstanceEngineEnum = {
|
|
103
|
+
Mysql: 'mysql',
|
|
104
|
+
Postgres: 'postgres'
|
|
105
|
+
};
|
|
79
106
|
exports.ApplicationImageReferenceTypeEnum = {
|
|
80
107
|
Internal: 'internal',
|
|
81
108
|
External: 'external'
|
|
@@ -307,6 +334,10 @@ exports.DecideToolProposalRequestScopeEnum = {
|
|
|
307
334
|
Once: 'once',
|
|
308
335
|
Session: 'session'
|
|
309
336
|
};
|
|
337
|
+
exports.DeleteApplicationDatabaseResponseStatusEnum = {
|
|
338
|
+
Deleting: 'deleting',
|
|
339
|
+
Deleted: 'deleted'
|
|
340
|
+
};
|
|
310
341
|
exports.EmbeddingsRequestDimensionsEnum = {
|
|
311
342
|
NUMBER_256: 256,
|
|
312
343
|
NUMBER_512: 512,
|
|
@@ -525,6 +556,27 @@ exports.ProjectsDelete503ResponseCodeEnum = {
|
|
|
525
556
|
KvStoresUnreadable: 'KV_STORES_UNREADABLE',
|
|
526
557
|
KvStoreDeleteFailed: 'KV_STORE_DELETE_FAILED'
|
|
527
558
|
};
|
|
559
|
+
exports.ProvisionApplicationDatabaseAcceptedEngineEnum = {
|
|
560
|
+
Mysql: 'mysql',
|
|
561
|
+
Postgres: 'postgres'
|
|
562
|
+
};
|
|
563
|
+
exports.ProvisionApplicationDatabaseAcceptedStatusEnum = {
|
|
564
|
+
Provisioning: 'provisioning',
|
|
565
|
+
Ready: 'ready',
|
|
566
|
+
Failed: 'failed'
|
|
567
|
+
};
|
|
568
|
+
exports.ProvisionApplicationDatabaseRequestEngineEnum = {
|
|
569
|
+
Mysql: 'mysql',
|
|
570
|
+
Postgres: 'postgres'
|
|
571
|
+
};
|
|
572
|
+
exports.ProvisionApplicationDatabaseRequestInstanceClassEnum = {
|
|
573
|
+
DbT4gMicro: 'db.t4g.micro',
|
|
574
|
+
DbT4gSmall: 'db.t4g.small',
|
|
575
|
+
DbT4gMedium: 'db.t4g.medium',
|
|
576
|
+
DbT4gLarge: 'db.t4g.large',
|
|
577
|
+
DbT4gXlarge: 'db.t4g.xlarge',
|
|
578
|
+
DbT4g2xlarge: 'db.t4g.2xlarge'
|
|
579
|
+
};
|
|
528
580
|
exports.PurgeCreateRequestScopeEnum = {
|
|
529
581
|
Project: 'project',
|
|
530
582
|
Org: 'org'
|
|
@@ -558,6 +610,19 @@ exports.QueryVectorCollectionRequestSortOrderEnum = {
|
|
|
558
610
|
Asc: 'asc',
|
|
559
611
|
Desc: 'desc'
|
|
560
612
|
};
|
|
613
|
+
exports.ResizeApplicationDatabaseRequestInstanceClassEnum = {
|
|
614
|
+
DbT4gMicro: 'db.t4g.micro',
|
|
615
|
+
DbT4gSmall: 'db.t4g.small',
|
|
616
|
+
DbT4gMedium: 'db.t4g.medium',
|
|
617
|
+
DbT4gLarge: 'db.t4g.large',
|
|
618
|
+
DbT4gXlarge: 'db.t4g.xlarge',
|
|
619
|
+
DbT4g2xlarge: 'db.t4g.2xlarge'
|
|
620
|
+
};
|
|
621
|
+
exports.ResizeApplicationDatabaseResponseRoleEnum = {
|
|
622
|
+
Active: 'active',
|
|
623
|
+
Next: 'next',
|
|
624
|
+
Previous: 'previous'
|
|
625
|
+
};
|
|
561
626
|
exports.ResourceAttachmentAccessLevelEnum = {
|
|
562
627
|
Scoped: 'scoped',
|
|
563
628
|
Admin: 'admin'
|
|
@@ -12597,6 +12662,552 @@ class AlertChannelsApi extends base_1.BaseAPI {
|
|
|
12597
12662
|
}
|
|
12598
12663
|
}
|
|
12599
12664
|
exports.AlertChannelsApi = AlertChannelsApi;
|
|
12665
|
+
/**
|
|
12666
|
+
* ApplicationDatabaseApi - axios parameter creator
|
|
12667
|
+
* @export
|
|
12668
|
+
*/
|
|
12669
|
+
const ApplicationDatabaseApiAxiosParamCreator = function (configuration) {
|
|
12670
|
+
return {
|
|
12671
|
+
/**
|
|
12672
|
+
* Deletes the pending or previous database. No final snapshot is taken and its automated backups are deleted with it, so the body must set acknowledgeDataloss to true (422 otherwise, nothing is deleted). Take a backup before promoting: a retired database is not reachable through the backups API after the promote. The active database cannot be deleted (409), nor can one while another database operation (including its own provision) holds the application\'s lock. Needs the delete_applications permission and the cloud:delete scope.
|
|
12673
|
+
* @summary Delete a database of an application
|
|
12674
|
+
* @param {string} organisation The organisation ID
|
|
12675
|
+
* @param {string} application The application ID
|
|
12676
|
+
* @param {string} instanceId The database instance identifier
|
|
12677
|
+
* @param {DeleteApplicationDatabaseRequest} deleteApplicationDatabaseRequest
|
|
12678
|
+
* @param {*} [options] Override http request option.
|
|
12679
|
+
* @throws {RequiredError}
|
|
12680
|
+
*/
|
|
12681
|
+
deleteApplicationDatabase: (organisation_1, application_1, instanceId_1, deleteApplicationDatabaseRequest_1, ...args_1) => __awaiter(this, [organisation_1, application_1, instanceId_1, deleteApplicationDatabaseRequest_1, ...args_1], void 0, function* (organisation, application, instanceId, deleteApplicationDatabaseRequest, options = {}) {
|
|
12682
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
12683
|
+
(0, common_1.assertParamExists)('deleteApplicationDatabase', 'organisation', organisation);
|
|
12684
|
+
// verify required parameter 'application' is not null or undefined
|
|
12685
|
+
(0, common_1.assertParamExists)('deleteApplicationDatabase', 'application', application);
|
|
12686
|
+
// verify required parameter 'instanceId' is not null or undefined
|
|
12687
|
+
(0, common_1.assertParamExists)('deleteApplicationDatabase', 'instanceId', instanceId);
|
|
12688
|
+
// verify required parameter 'deleteApplicationDatabaseRequest' is not null or undefined
|
|
12689
|
+
(0, common_1.assertParamExists)('deleteApplicationDatabase', 'deleteApplicationDatabaseRequest', deleteApplicationDatabaseRequest);
|
|
12690
|
+
const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/database/{instanceId}`
|
|
12691
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
12692
|
+
.replace(`{${"application"}}`, encodeURIComponent(String(application)))
|
|
12693
|
+
.replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)));
|
|
12694
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12695
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12696
|
+
let baseOptions;
|
|
12697
|
+
if (configuration) {
|
|
12698
|
+
baseOptions = configuration.baseOptions;
|
|
12699
|
+
}
|
|
12700
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
12701
|
+
const localVarHeaderParameter = {};
|
|
12702
|
+
const localVarQueryParameter = {};
|
|
12703
|
+
// authentication BearerAuth required
|
|
12704
|
+
// http bearer authentication required
|
|
12705
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12706
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12707
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12708
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12709
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12710
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(deleteApplicationDatabaseRequest, localVarRequestOptions, configuration);
|
|
12711
|
+
return {
|
|
12712
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12713
|
+
options: localVarRequestOptions,
|
|
12714
|
+
};
|
|
12715
|
+
}),
|
|
12716
|
+
/**
|
|
12717
|
+
* Poll this for a database being added: status is provisioning, ready or failed.
|
|
12718
|
+
* @summary Get one database of an application
|
|
12719
|
+
* @param {string} organisation The organisation ID
|
|
12720
|
+
* @param {string} application The application ID
|
|
12721
|
+
* @param {string} instanceId The database instance identifier, as returned by the list
|
|
12722
|
+
* @param {*} [options] Override http request option.
|
|
12723
|
+
* @throws {RequiredError}
|
|
12724
|
+
*/
|
|
12725
|
+
getApplicationDatabase: (organisation_1, application_1, instanceId_1, ...args_1) => __awaiter(this, [organisation_1, application_1, instanceId_1, ...args_1], void 0, function* (organisation, application, instanceId, options = {}) {
|
|
12726
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
12727
|
+
(0, common_1.assertParamExists)('getApplicationDatabase', 'organisation', organisation);
|
|
12728
|
+
// verify required parameter 'application' is not null or undefined
|
|
12729
|
+
(0, common_1.assertParamExists)('getApplicationDatabase', 'application', application);
|
|
12730
|
+
// verify required parameter 'instanceId' is not null or undefined
|
|
12731
|
+
(0, common_1.assertParamExists)('getApplicationDatabase', 'instanceId', instanceId);
|
|
12732
|
+
const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/database/{instanceId}`
|
|
12733
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
12734
|
+
.replace(`{${"application"}}`, encodeURIComponent(String(application)))
|
|
12735
|
+
.replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)));
|
|
12736
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12737
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12738
|
+
let baseOptions;
|
|
12739
|
+
if (configuration) {
|
|
12740
|
+
baseOptions = configuration.baseOptions;
|
|
12741
|
+
}
|
|
12742
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
12743
|
+
const localVarHeaderParameter = {};
|
|
12744
|
+
const localVarQueryParameter = {};
|
|
12745
|
+
// authentication BearerAuth required
|
|
12746
|
+
// http bearer authentication required
|
|
12747
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12748
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12749
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12750
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12751
|
+
return {
|
|
12752
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12753
|
+
options: localVarRequestOptions,
|
|
12754
|
+
};
|
|
12755
|
+
}),
|
|
12756
|
+
/**
|
|
12757
|
+
* The active database, the one being added next to it (next) and the one the last promote replaced (previous). Each is null when there is none. No credential value is returned. The application must exist (404 otherwise).
|
|
12758
|
+
* @summary Get the databases of an application
|
|
12759
|
+
* @param {string} organisation The organisation ID
|
|
12760
|
+
* @param {string} application The application ID
|
|
12761
|
+
* @param {*} [options] Override http request option.
|
|
12762
|
+
* @throws {RequiredError}
|
|
12763
|
+
*/
|
|
12764
|
+
getApplicationDatabases: (organisation_1, application_1, ...args_1) => __awaiter(this, [organisation_1, application_1, ...args_1], void 0, function* (organisation, application, options = {}) {
|
|
12765
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
12766
|
+
(0, common_1.assertParamExists)('getApplicationDatabases', 'organisation', organisation);
|
|
12767
|
+
// verify required parameter 'application' is not null or undefined
|
|
12768
|
+
(0, common_1.assertParamExists)('getApplicationDatabases', 'application', application);
|
|
12769
|
+
const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/database`
|
|
12770
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
12771
|
+
.replace(`{${"application"}}`, encodeURIComponent(String(application)));
|
|
12772
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12773
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12774
|
+
let baseOptions;
|
|
12775
|
+
if (configuration) {
|
|
12776
|
+
baseOptions = configuration.baseOptions;
|
|
12777
|
+
}
|
|
12778
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
12779
|
+
const localVarHeaderParameter = {};
|
|
12780
|
+
const localVarQueryParameter = {};
|
|
12781
|
+
// authentication BearerAuth required
|
|
12782
|
+
// http bearer authentication required
|
|
12783
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12784
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12785
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12786
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12787
|
+
return {
|
|
12788
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12789
|
+
options: localVarRequestOptions,
|
|
12790
|
+
};
|
|
12791
|
+
}),
|
|
12792
|
+
/**
|
|
12793
|
+
* Makes the ready database the one every environment, backup, restore and new environment uses, and redeploys each environment onto it (a brief interruption per environment). The previous database is kept, so promoting it again is the rollback. Take a backup before promoting: the retired database is not reachable through the backups API afterwards. Environments are redeployed within about 15 seconds of the call: redeployed, redeployQueued (not done yet), redeployFailed (with a reason) and upToDate list the outcome, and redeployRequired is failed plus queued. Repeating the request only touches environments not yet on the new revision. Refused with 409, changing nothing, when another database operation holds the application\'s lock, when the database is not ready, when a previous database is still kept (delete it first), when an environment has no user on it or its credentials cannot be read (environments lists them), or when it has no endpoint yet. Needs the delete_applications permission and the cloud:delete scope.
|
|
12794
|
+
* @summary Make a database the database of an application
|
|
12795
|
+
* @param {string} organisation The organisation ID
|
|
12796
|
+
* @param {string} application The application ID
|
|
12797
|
+
* @param {string} instanceId The database instance identifier
|
|
12798
|
+
* @param {*} [options] Override http request option.
|
|
12799
|
+
* @throws {RequiredError}
|
|
12800
|
+
*/
|
|
12801
|
+
promoteApplicationDatabase: (organisation_1, application_1, instanceId_1, ...args_1) => __awaiter(this, [organisation_1, application_1, instanceId_1, ...args_1], void 0, function* (organisation, application, instanceId, options = {}) {
|
|
12802
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
12803
|
+
(0, common_1.assertParamExists)('promoteApplicationDatabase', 'organisation', organisation);
|
|
12804
|
+
// verify required parameter 'application' is not null or undefined
|
|
12805
|
+
(0, common_1.assertParamExists)('promoteApplicationDatabase', 'application', application);
|
|
12806
|
+
// verify required parameter 'instanceId' is not null or undefined
|
|
12807
|
+
(0, common_1.assertParamExists)('promoteApplicationDatabase', 'instanceId', instanceId);
|
|
12808
|
+
const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/database/{instanceId}/promote`
|
|
12809
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
12810
|
+
.replace(`{${"application"}}`, encodeURIComponent(String(application)))
|
|
12811
|
+
.replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)));
|
|
12812
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12813
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12814
|
+
let baseOptions;
|
|
12815
|
+
if (configuration) {
|
|
12816
|
+
baseOptions = configuration.baseOptions;
|
|
12817
|
+
}
|
|
12818
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
12819
|
+
const localVarHeaderParameter = {};
|
|
12820
|
+
const localVarQueryParameter = {};
|
|
12821
|
+
// authentication BearerAuth required
|
|
12822
|
+
// http bearer authentication required
|
|
12823
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12824
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12825
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12826
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12827
|
+
return {
|
|
12828
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12829
|
+
options: localVarRequestOptions,
|
|
12830
|
+
};
|
|
12831
|
+
}),
|
|
12832
|
+
/**
|
|
12833
|
+
* Provisions a second database next to the one the application has and sets up every environment on it. Nothing the running environments use changes: DB_NEXT_HOST, DB_NEXT_PORT, DB_NEXT_DATABASE and DB_NEXT_ENGINE are added, and the existing DB_USERNAME and DB_PASSWORD are valid on both. It answers 202 at once; poll the status URL until status is ready or failed. The new database has its own user and password per environment: the application connects to the old one with DB_* and to the new one with DB_NEXT_* (DB_NEXT_USERNAME and DB_NEXT_PASSWORD are secret references). Take a backup before promoting. Repeating the request after the worker has finished resumes it, or adds an environment created since. Only one database operation runs per application at a time: a second provision, promote or delete answers 409 while one holds the lock, including a repeat of the same provision while its worker is still running. Needs the write_applications permission and the cloud:write scope.
|
|
12834
|
+
* @summary Add a database to an application
|
|
12835
|
+
* @param {string} organisation The organisation ID
|
|
12836
|
+
* @param {string} application The application ID
|
|
12837
|
+
* @param {ProvisionApplicationDatabaseRequest} provisionApplicationDatabaseRequest
|
|
12838
|
+
* @param {*} [options] Override http request option.
|
|
12839
|
+
* @throws {RequiredError}
|
|
12840
|
+
*/
|
|
12841
|
+
provisionApplicationDatabase: (organisation_1, application_1, provisionApplicationDatabaseRequest_1, ...args_1) => __awaiter(this, [organisation_1, application_1, provisionApplicationDatabaseRequest_1, ...args_1], void 0, function* (organisation, application, provisionApplicationDatabaseRequest, options = {}) {
|
|
12842
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
12843
|
+
(0, common_1.assertParamExists)('provisionApplicationDatabase', 'organisation', organisation);
|
|
12844
|
+
// verify required parameter 'application' is not null or undefined
|
|
12845
|
+
(0, common_1.assertParamExists)('provisionApplicationDatabase', 'application', application);
|
|
12846
|
+
// verify required parameter 'provisionApplicationDatabaseRequest' is not null or undefined
|
|
12847
|
+
(0, common_1.assertParamExists)('provisionApplicationDatabase', 'provisionApplicationDatabaseRequest', provisionApplicationDatabaseRequest);
|
|
12848
|
+
const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/database`
|
|
12849
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
12850
|
+
.replace(`{${"application"}}`, encodeURIComponent(String(application)));
|
|
12851
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12852
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12853
|
+
let baseOptions;
|
|
12854
|
+
if (configuration) {
|
|
12855
|
+
baseOptions = configuration.baseOptions;
|
|
12856
|
+
}
|
|
12857
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
12858
|
+
const localVarHeaderParameter = {};
|
|
12859
|
+
const localVarQueryParameter = {};
|
|
12860
|
+
// authentication BearerAuth required
|
|
12861
|
+
// http bearer authentication required
|
|
12862
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12863
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12864
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12865
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12866
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12867
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(provisionApplicationDatabaseRequest, localVarRequestOptions, configuration);
|
|
12868
|
+
return {
|
|
12869
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12870
|
+
options: localVarRequestOptions,
|
|
12871
|
+
};
|
|
12872
|
+
}),
|
|
12873
|
+
/**
|
|
12874
|
+
* Changes the instance class, the storage or Multi-AZ of the active, pending (once ready) or previous database. Only fields that differ change; the class and Multi-AZ compare with the value the instance will have (live, or pending for the maintenance window), so the live value withdraws a pending change. A class change restarts the instance (a few minutes without the database, about a minute of failover with Multi-AZ). Storage only grows, by at least 10 %, and can change again only after 6 hours; to make a database smaller, provision a smaller one and promote it. applyImmediately false leaves the change for the maintenance window. RDS applies every pending change with an immediate one, so an immediate request is a 409 while a pending change it does not name exists. Needs the write_applications permission and the cloud:write scope.
|
|
12875
|
+
* @summary Resize a database of an application
|
|
12876
|
+
* @param {string} organisation The organisation ID
|
|
12877
|
+
* @param {string} application The application ID
|
|
12878
|
+
* @param {string} instanceId The database instance identifier
|
|
12879
|
+
* @param {ResizeApplicationDatabaseRequest} resizeApplicationDatabaseRequest
|
|
12880
|
+
* @param {*} [options] Override http request option.
|
|
12881
|
+
* @throws {RequiredError}
|
|
12882
|
+
*/
|
|
12883
|
+
resizeApplicationDatabase: (organisation_1, application_1, instanceId_1, resizeApplicationDatabaseRequest_1, ...args_1) => __awaiter(this, [organisation_1, application_1, instanceId_1, resizeApplicationDatabaseRequest_1, ...args_1], void 0, function* (organisation, application, instanceId, resizeApplicationDatabaseRequest, options = {}) {
|
|
12884
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
12885
|
+
(0, common_1.assertParamExists)('resizeApplicationDatabase', 'organisation', organisation);
|
|
12886
|
+
// verify required parameter 'application' is not null or undefined
|
|
12887
|
+
(0, common_1.assertParamExists)('resizeApplicationDatabase', 'application', application);
|
|
12888
|
+
// verify required parameter 'instanceId' is not null or undefined
|
|
12889
|
+
(0, common_1.assertParamExists)('resizeApplicationDatabase', 'instanceId', instanceId);
|
|
12890
|
+
// verify required parameter 'resizeApplicationDatabaseRequest' is not null or undefined
|
|
12891
|
+
(0, common_1.assertParamExists)('resizeApplicationDatabase', 'resizeApplicationDatabaseRequest', resizeApplicationDatabaseRequest);
|
|
12892
|
+
const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/database/{instanceId}`
|
|
12893
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
12894
|
+
.replace(`{${"application"}}`, encodeURIComponent(String(application)))
|
|
12895
|
+
.replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)));
|
|
12896
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12897
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12898
|
+
let baseOptions;
|
|
12899
|
+
if (configuration) {
|
|
12900
|
+
baseOptions = configuration.baseOptions;
|
|
12901
|
+
}
|
|
12902
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
12903
|
+
const localVarHeaderParameter = {};
|
|
12904
|
+
const localVarQueryParameter = {};
|
|
12905
|
+
// authentication BearerAuth required
|
|
12906
|
+
// http bearer authentication required
|
|
12907
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12908
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12909
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12910
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12911
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12912
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(resizeApplicationDatabaseRequest, localVarRequestOptions, configuration);
|
|
12913
|
+
return {
|
|
12914
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12915
|
+
options: localVarRequestOptions,
|
|
12916
|
+
};
|
|
12917
|
+
}),
|
|
12918
|
+
};
|
|
12919
|
+
};
|
|
12920
|
+
exports.ApplicationDatabaseApiAxiosParamCreator = ApplicationDatabaseApiAxiosParamCreator;
|
|
12921
|
+
/**
|
|
12922
|
+
* ApplicationDatabaseApi - functional programming interface
|
|
12923
|
+
* @export
|
|
12924
|
+
*/
|
|
12925
|
+
const ApplicationDatabaseApiFp = function (configuration) {
|
|
12926
|
+
const localVarAxiosParamCreator = (0, exports.ApplicationDatabaseApiAxiosParamCreator)(configuration);
|
|
12927
|
+
return {
|
|
12928
|
+
/**
|
|
12929
|
+
* Deletes the pending or previous database. No final snapshot is taken and its automated backups are deleted with it, so the body must set acknowledgeDataloss to true (422 otherwise, nothing is deleted). Take a backup before promoting: a retired database is not reachable through the backups API after the promote. The active database cannot be deleted (409), nor can one while another database operation (including its own provision) holds the application\'s lock. Needs the delete_applications permission and the cloud:delete scope.
|
|
12930
|
+
* @summary Delete a database of an application
|
|
12931
|
+
* @param {string} organisation The organisation ID
|
|
12932
|
+
* @param {string} application The application ID
|
|
12933
|
+
* @param {string} instanceId The database instance identifier
|
|
12934
|
+
* @param {DeleteApplicationDatabaseRequest} deleteApplicationDatabaseRequest
|
|
12935
|
+
* @param {*} [options] Override http request option.
|
|
12936
|
+
* @throws {RequiredError}
|
|
12937
|
+
*/
|
|
12938
|
+
deleteApplicationDatabase(organisation, application, instanceId, deleteApplicationDatabaseRequest, options) {
|
|
12939
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12940
|
+
var _a, _b, _c;
|
|
12941
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteApplicationDatabase(organisation, application, instanceId, deleteApplicationDatabaseRequest, options);
|
|
12942
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12943
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApplicationDatabaseApi.deleteApplicationDatabase']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12944
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12945
|
+
});
|
|
12946
|
+
},
|
|
12947
|
+
/**
|
|
12948
|
+
* Poll this for a database being added: status is provisioning, ready or failed.
|
|
12949
|
+
* @summary Get one database of an application
|
|
12950
|
+
* @param {string} organisation The organisation ID
|
|
12951
|
+
* @param {string} application The application ID
|
|
12952
|
+
* @param {string} instanceId The database instance identifier, as returned by the list
|
|
12953
|
+
* @param {*} [options] Override http request option.
|
|
12954
|
+
* @throws {RequiredError}
|
|
12955
|
+
*/
|
|
12956
|
+
getApplicationDatabase(organisation, application, instanceId, options) {
|
|
12957
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12958
|
+
var _a, _b, _c;
|
|
12959
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getApplicationDatabase(organisation, application, instanceId, options);
|
|
12960
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12961
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApplicationDatabaseApi.getApplicationDatabase']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12962
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12963
|
+
});
|
|
12964
|
+
},
|
|
12965
|
+
/**
|
|
12966
|
+
* The active database, the one being added next to it (next) and the one the last promote replaced (previous). Each is null when there is none. No credential value is returned. The application must exist (404 otherwise).
|
|
12967
|
+
* @summary Get the databases of an application
|
|
12968
|
+
* @param {string} organisation The organisation ID
|
|
12969
|
+
* @param {string} application The application ID
|
|
12970
|
+
* @param {*} [options] Override http request option.
|
|
12971
|
+
* @throws {RequiredError}
|
|
12972
|
+
*/
|
|
12973
|
+
getApplicationDatabases(organisation, application, options) {
|
|
12974
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12975
|
+
var _a, _b, _c;
|
|
12976
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getApplicationDatabases(organisation, application, options);
|
|
12977
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12978
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApplicationDatabaseApi.getApplicationDatabases']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12979
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12980
|
+
});
|
|
12981
|
+
},
|
|
12982
|
+
/**
|
|
12983
|
+
* Makes the ready database the one every environment, backup, restore and new environment uses, and redeploys each environment onto it (a brief interruption per environment). The previous database is kept, so promoting it again is the rollback. Take a backup before promoting: the retired database is not reachable through the backups API afterwards. Environments are redeployed within about 15 seconds of the call: redeployed, redeployQueued (not done yet), redeployFailed (with a reason) and upToDate list the outcome, and redeployRequired is failed plus queued. Repeating the request only touches environments not yet on the new revision. Refused with 409, changing nothing, when another database operation holds the application\'s lock, when the database is not ready, when a previous database is still kept (delete it first), when an environment has no user on it or its credentials cannot be read (environments lists them), or when it has no endpoint yet. Needs the delete_applications permission and the cloud:delete scope.
|
|
12984
|
+
* @summary Make a database the database of an application
|
|
12985
|
+
* @param {string} organisation The organisation ID
|
|
12986
|
+
* @param {string} application The application ID
|
|
12987
|
+
* @param {string} instanceId The database instance identifier
|
|
12988
|
+
* @param {*} [options] Override http request option.
|
|
12989
|
+
* @throws {RequiredError}
|
|
12990
|
+
*/
|
|
12991
|
+
promoteApplicationDatabase(organisation, application, instanceId, options) {
|
|
12992
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12993
|
+
var _a, _b, _c;
|
|
12994
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.promoteApplicationDatabase(organisation, application, instanceId, options);
|
|
12995
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12996
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApplicationDatabaseApi.promoteApplicationDatabase']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12997
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12998
|
+
});
|
|
12999
|
+
},
|
|
13000
|
+
/**
|
|
13001
|
+
* Provisions a second database next to the one the application has and sets up every environment on it. Nothing the running environments use changes: DB_NEXT_HOST, DB_NEXT_PORT, DB_NEXT_DATABASE and DB_NEXT_ENGINE are added, and the existing DB_USERNAME and DB_PASSWORD are valid on both. It answers 202 at once; poll the status URL until status is ready or failed. The new database has its own user and password per environment: the application connects to the old one with DB_* and to the new one with DB_NEXT_* (DB_NEXT_USERNAME and DB_NEXT_PASSWORD are secret references). Take a backup before promoting. Repeating the request after the worker has finished resumes it, or adds an environment created since. Only one database operation runs per application at a time: a second provision, promote or delete answers 409 while one holds the lock, including a repeat of the same provision while its worker is still running. Needs the write_applications permission and the cloud:write scope.
|
|
13002
|
+
* @summary Add a database to an application
|
|
13003
|
+
* @param {string} organisation The organisation ID
|
|
13004
|
+
* @param {string} application The application ID
|
|
13005
|
+
* @param {ProvisionApplicationDatabaseRequest} provisionApplicationDatabaseRequest
|
|
13006
|
+
* @param {*} [options] Override http request option.
|
|
13007
|
+
* @throws {RequiredError}
|
|
13008
|
+
*/
|
|
13009
|
+
provisionApplicationDatabase(organisation, application, provisionApplicationDatabaseRequest, options) {
|
|
13010
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13011
|
+
var _a, _b, _c;
|
|
13012
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.provisionApplicationDatabase(organisation, application, provisionApplicationDatabaseRequest, options);
|
|
13013
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13014
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApplicationDatabaseApi.provisionApplicationDatabase']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13015
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13016
|
+
});
|
|
13017
|
+
},
|
|
13018
|
+
/**
|
|
13019
|
+
* Changes the instance class, the storage or Multi-AZ of the active, pending (once ready) or previous database. Only fields that differ change; the class and Multi-AZ compare with the value the instance will have (live, or pending for the maintenance window), so the live value withdraws a pending change. A class change restarts the instance (a few minutes without the database, about a minute of failover with Multi-AZ). Storage only grows, by at least 10 %, and can change again only after 6 hours; to make a database smaller, provision a smaller one and promote it. applyImmediately false leaves the change for the maintenance window. RDS applies every pending change with an immediate one, so an immediate request is a 409 while a pending change it does not name exists. Needs the write_applications permission and the cloud:write scope.
|
|
13020
|
+
* @summary Resize a database of an application
|
|
13021
|
+
* @param {string} organisation The organisation ID
|
|
13022
|
+
* @param {string} application The application ID
|
|
13023
|
+
* @param {string} instanceId The database instance identifier
|
|
13024
|
+
* @param {ResizeApplicationDatabaseRequest} resizeApplicationDatabaseRequest
|
|
13025
|
+
* @param {*} [options] Override http request option.
|
|
13026
|
+
* @throws {RequiredError}
|
|
13027
|
+
*/
|
|
13028
|
+
resizeApplicationDatabase(organisation, application, instanceId, resizeApplicationDatabaseRequest, options) {
|
|
13029
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13030
|
+
var _a, _b, _c;
|
|
13031
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.resizeApplicationDatabase(organisation, application, instanceId, resizeApplicationDatabaseRequest, options);
|
|
13032
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13033
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApplicationDatabaseApi.resizeApplicationDatabase']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13034
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13035
|
+
});
|
|
13036
|
+
},
|
|
13037
|
+
};
|
|
13038
|
+
};
|
|
13039
|
+
exports.ApplicationDatabaseApiFp = ApplicationDatabaseApiFp;
|
|
13040
|
+
/**
|
|
13041
|
+
* ApplicationDatabaseApi - factory interface
|
|
13042
|
+
* @export
|
|
13043
|
+
*/
|
|
13044
|
+
const ApplicationDatabaseApiFactory = function (configuration, basePath, axios) {
|
|
13045
|
+
const localVarFp = (0, exports.ApplicationDatabaseApiFp)(configuration);
|
|
13046
|
+
return {
|
|
13047
|
+
/**
|
|
13048
|
+
* Deletes the pending or previous database. No final snapshot is taken and its automated backups are deleted with it, so the body must set acknowledgeDataloss to true (422 otherwise, nothing is deleted). Take a backup before promoting: a retired database is not reachable through the backups API after the promote. The active database cannot be deleted (409), nor can one while another database operation (including its own provision) holds the application\'s lock. Needs the delete_applications permission and the cloud:delete scope.
|
|
13049
|
+
* @summary Delete a database of an application
|
|
13050
|
+
* @param {string} organisation The organisation ID
|
|
13051
|
+
* @param {string} application The application ID
|
|
13052
|
+
* @param {string} instanceId The database instance identifier
|
|
13053
|
+
* @param {DeleteApplicationDatabaseRequest} deleteApplicationDatabaseRequest
|
|
13054
|
+
* @param {*} [options] Override http request option.
|
|
13055
|
+
* @throws {RequiredError}
|
|
13056
|
+
*/
|
|
13057
|
+
deleteApplicationDatabase(organisation, application, instanceId, deleteApplicationDatabaseRequest, options) {
|
|
13058
|
+
return localVarFp.deleteApplicationDatabase(organisation, application, instanceId, deleteApplicationDatabaseRequest, options).then((request) => request(axios, basePath));
|
|
13059
|
+
},
|
|
13060
|
+
/**
|
|
13061
|
+
* Poll this for a database being added: status is provisioning, ready or failed.
|
|
13062
|
+
* @summary Get one database of an application
|
|
13063
|
+
* @param {string} organisation The organisation ID
|
|
13064
|
+
* @param {string} application The application ID
|
|
13065
|
+
* @param {string} instanceId The database instance identifier, as returned by the list
|
|
13066
|
+
* @param {*} [options] Override http request option.
|
|
13067
|
+
* @throws {RequiredError}
|
|
13068
|
+
*/
|
|
13069
|
+
getApplicationDatabase(organisation, application, instanceId, options) {
|
|
13070
|
+
return localVarFp.getApplicationDatabase(organisation, application, instanceId, options).then((request) => request(axios, basePath));
|
|
13071
|
+
},
|
|
13072
|
+
/**
|
|
13073
|
+
* The active database, the one being added next to it (next) and the one the last promote replaced (previous). Each is null when there is none. No credential value is returned. The application must exist (404 otherwise).
|
|
13074
|
+
* @summary Get the databases of an application
|
|
13075
|
+
* @param {string} organisation The organisation ID
|
|
13076
|
+
* @param {string} application The application ID
|
|
13077
|
+
* @param {*} [options] Override http request option.
|
|
13078
|
+
* @throws {RequiredError}
|
|
13079
|
+
*/
|
|
13080
|
+
getApplicationDatabases(organisation, application, options) {
|
|
13081
|
+
return localVarFp.getApplicationDatabases(organisation, application, options).then((request) => request(axios, basePath));
|
|
13082
|
+
},
|
|
13083
|
+
/**
|
|
13084
|
+
* Makes the ready database the one every environment, backup, restore and new environment uses, and redeploys each environment onto it (a brief interruption per environment). The previous database is kept, so promoting it again is the rollback. Take a backup before promoting: the retired database is not reachable through the backups API afterwards. Environments are redeployed within about 15 seconds of the call: redeployed, redeployQueued (not done yet), redeployFailed (with a reason) and upToDate list the outcome, and redeployRequired is failed plus queued. Repeating the request only touches environments not yet on the new revision. Refused with 409, changing nothing, when another database operation holds the application\'s lock, when the database is not ready, when a previous database is still kept (delete it first), when an environment has no user on it or its credentials cannot be read (environments lists them), or when it has no endpoint yet. Needs the delete_applications permission and the cloud:delete scope.
|
|
13085
|
+
* @summary Make a database the database of an application
|
|
13086
|
+
* @param {string} organisation The organisation ID
|
|
13087
|
+
* @param {string} application The application ID
|
|
13088
|
+
* @param {string} instanceId The database instance identifier
|
|
13089
|
+
* @param {*} [options] Override http request option.
|
|
13090
|
+
* @throws {RequiredError}
|
|
13091
|
+
*/
|
|
13092
|
+
promoteApplicationDatabase(organisation, application, instanceId, options) {
|
|
13093
|
+
return localVarFp.promoteApplicationDatabase(organisation, application, instanceId, options).then((request) => request(axios, basePath));
|
|
13094
|
+
},
|
|
13095
|
+
/**
|
|
13096
|
+
* Provisions a second database next to the one the application has and sets up every environment on it. Nothing the running environments use changes: DB_NEXT_HOST, DB_NEXT_PORT, DB_NEXT_DATABASE and DB_NEXT_ENGINE are added, and the existing DB_USERNAME and DB_PASSWORD are valid on both. It answers 202 at once; poll the status URL until status is ready or failed. The new database has its own user and password per environment: the application connects to the old one with DB_* and to the new one with DB_NEXT_* (DB_NEXT_USERNAME and DB_NEXT_PASSWORD are secret references). Take a backup before promoting. Repeating the request after the worker has finished resumes it, or adds an environment created since. Only one database operation runs per application at a time: a second provision, promote or delete answers 409 while one holds the lock, including a repeat of the same provision while its worker is still running. Needs the write_applications permission and the cloud:write scope.
|
|
13097
|
+
* @summary Add a database to an application
|
|
13098
|
+
* @param {string} organisation The organisation ID
|
|
13099
|
+
* @param {string} application The application ID
|
|
13100
|
+
* @param {ProvisionApplicationDatabaseRequest} provisionApplicationDatabaseRequest
|
|
13101
|
+
* @param {*} [options] Override http request option.
|
|
13102
|
+
* @throws {RequiredError}
|
|
13103
|
+
*/
|
|
13104
|
+
provisionApplicationDatabase(organisation, application, provisionApplicationDatabaseRequest, options) {
|
|
13105
|
+
return localVarFp.provisionApplicationDatabase(organisation, application, provisionApplicationDatabaseRequest, options).then((request) => request(axios, basePath));
|
|
13106
|
+
},
|
|
13107
|
+
/**
|
|
13108
|
+
* Changes the instance class, the storage or Multi-AZ of the active, pending (once ready) or previous database. Only fields that differ change; the class and Multi-AZ compare with the value the instance will have (live, or pending for the maintenance window), so the live value withdraws a pending change. A class change restarts the instance (a few minutes without the database, about a minute of failover with Multi-AZ). Storage only grows, by at least 10 %, and can change again only after 6 hours; to make a database smaller, provision a smaller one and promote it. applyImmediately false leaves the change for the maintenance window. RDS applies every pending change with an immediate one, so an immediate request is a 409 while a pending change it does not name exists. Needs the write_applications permission and the cloud:write scope.
|
|
13109
|
+
* @summary Resize a database of an application
|
|
13110
|
+
* @param {string} organisation The organisation ID
|
|
13111
|
+
* @param {string} application The application ID
|
|
13112
|
+
* @param {string} instanceId The database instance identifier
|
|
13113
|
+
* @param {ResizeApplicationDatabaseRequest} resizeApplicationDatabaseRequest
|
|
13114
|
+
* @param {*} [options] Override http request option.
|
|
13115
|
+
* @throws {RequiredError}
|
|
13116
|
+
*/
|
|
13117
|
+
resizeApplicationDatabase(organisation, application, instanceId, resizeApplicationDatabaseRequest, options) {
|
|
13118
|
+
return localVarFp.resizeApplicationDatabase(organisation, application, instanceId, resizeApplicationDatabaseRequest, options).then((request) => request(axios, basePath));
|
|
13119
|
+
},
|
|
13120
|
+
};
|
|
13121
|
+
};
|
|
13122
|
+
exports.ApplicationDatabaseApiFactory = ApplicationDatabaseApiFactory;
|
|
13123
|
+
/**
|
|
13124
|
+
* ApplicationDatabaseApi - object-oriented interface
|
|
13125
|
+
* @export
|
|
13126
|
+
* @class ApplicationDatabaseApi
|
|
13127
|
+
* @extends {BaseAPI}
|
|
13128
|
+
*/
|
|
13129
|
+
class ApplicationDatabaseApi extends base_1.BaseAPI {
|
|
13130
|
+
/**
|
|
13131
|
+
* Deletes the pending or previous database. No final snapshot is taken and its automated backups are deleted with it, so the body must set acknowledgeDataloss to true (422 otherwise, nothing is deleted). Take a backup before promoting: a retired database is not reachable through the backups API after the promote. The active database cannot be deleted (409), nor can one while another database operation (including its own provision) holds the application\'s lock. Needs the delete_applications permission and the cloud:delete scope.
|
|
13132
|
+
* @summary Delete a database of an application
|
|
13133
|
+
* @param {string} organisation The organisation ID
|
|
13134
|
+
* @param {string} application The application ID
|
|
13135
|
+
* @param {string} instanceId The database instance identifier
|
|
13136
|
+
* @param {DeleteApplicationDatabaseRequest} deleteApplicationDatabaseRequest
|
|
13137
|
+
* @param {*} [options] Override http request option.
|
|
13138
|
+
* @throws {RequiredError}
|
|
13139
|
+
* @memberof ApplicationDatabaseApi
|
|
13140
|
+
*/
|
|
13141
|
+
deleteApplicationDatabase(organisation, application, instanceId, deleteApplicationDatabaseRequest, options) {
|
|
13142
|
+
return (0, exports.ApplicationDatabaseApiFp)(this.configuration).deleteApplicationDatabase(organisation, application, instanceId, deleteApplicationDatabaseRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13143
|
+
}
|
|
13144
|
+
/**
|
|
13145
|
+
* Poll this for a database being added: status is provisioning, ready or failed.
|
|
13146
|
+
* @summary Get one database of an application
|
|
13147
|
+
* @param {string} organisation The organisation ID
|
|
13148
|
+
* @param {string} application The application ID
|
|
13149
|
+
* @param {string} instanceId The database instance identifier, as returned by the list
|
|
13150
|
+
* @param {*} [options] Override http request option.
|
|
13151
|
+
* @throws {RequiredError}
|
|
13152
|
+
* @memberof ApplicationDatabaseApi
|
|
13153
|
+
*/
|
|
13154
|
+
getApplicationDatabase(organisation, application, instanceId, options) {
|
|
13155
|
+
return (0, exports.ApplicationDatabaseApiFp)(this.configuration).getApplicationDatabase(organisation, application, instanceId, options).then((request) => request(this.axios, this.basePath));
|
|
13156
|
+
}
|
|
13157
|
+
/**
|
|
13158
|
+
* The active database, the one being added next to it (next) and the one the last promote replaced (previous). Each is null when there is none. No credential value is returned. The application must exist (404 otherwise).
|
|
13159
|
+
* @summary Get the databases of an application
|
|
13160
|
+
* @param {string} organisation The organisation ID
|
|
13161
|
+
* @param {string} application The application ID
|
|
13162
|
+
* @param {*} [options] Override http request option.
|
|
13163
|
+
* @throws {RequiredError}
|
|
13164
|
+
* @memberof ApplicationDatabaseApi
|
|
13165
|
+
*/
|
|
13166
|
+
getApplicationDatabases(organisation, application, options) {
|
|
13167
|
+
return (0, exports.ApplicationDatabaseApiFp)(this.configuration).getApplicationDatabases(organisation, application, options).then((request) => request(this.axios, this.basePath));
|
|
13168
|
+
}
|
|
13169
|
+
/**
|
|
13170
|
+
* Makes the ready database the one every environment, backup, restore and new environment uses, and redeploys each environment onto it (a brief interruption per environment). The previous database is kept, so promoting it again is the rollback. Take a backup before promoting: the retired database is not reachable through the backups API afterwards. Environments are redeployed within about 15 seconds of the call: redeployed, redeployQueued (not done yet), redeployFailed (with a reason) and upToDate list the outcome, and redeployRequired is failed plus queued. Repeating the request only touches environments not yet on the new revision. Refused with 409, changing nothing, when another database operation holds the application\'s lock, when the database is not ready, when a previous database is still kept (delete it first), when an environment has no user on it or its credentials cannot be read (environments lists them), or when it has no endpoint yet. Needs the delete_applications permission and the cloud:delete scope.
|
|
13171
|
+
* @summary Make a database the database of an application
|
|
13172
|
+
* @param {string} organisation The organisation ID
|
|
13173
|
+
* @param {string} application The application ID
|
|
13174
|
+
* @param {string} instanceId The database instance identifier
|
|
13175
|
+
* @param {*} [options] Override http request option.
|
|
13176
|
+
* @throws {RequiredError}
|
|
13177
|
+
* @memberof ApplicationDatabaseApi
|
|
13178
|
+
*/
|
|
13179
|
+
promoteApplicationDatabase(organisation, application, instanceId, options) {
|
|
13180
|
+
return (0, exports.ApplicationDatabaseApiFp)(this.configuration).promoteApplicationDatabase(organisation, application, instanceId, options).then((request) => request(this.axios, this.basePath));
|
|
13181
|
+
}
|
|
13182
|
+
/**
|
|
13183
|
+
* Provisions a second database next to the one the application has and sets up every environment on it. Nothing the running environments use changes: DB_NEXT_HOST, DB_NEXT_PORT, DB_NEXT_DATABASE and DB_NEXT_ENGINE are added, and the existing DB_USERNAME and DB_PASSWORD are valid on both. It answers 202 at once; poll the status URL until status is ready or failed. The new database has its own user and password per environment: the application connects to the old one with DB_* and to the new one with DB_NEXT_* (DB_NEXT_USERNAME and DB_NEXT_PASSWORD are secret references). Take a backup before promoting. Repeating the request after the worker has finished resumes it, or adds an environment created since. Only one database operation runs per application at a time: a second provision, promote or delete answers 409 while one holds the lock, including a repeat of the same provision while its worker is still running. Needs the write_applications permission and the cloud:write scope.
|
|
13184
|
+
* @summary Add a database to an application
|
|
13185
|
+
* @param {string} organisation The organisation ID
|
|
13186
|
+
* @param {string} application The application ID
|
|
13187
|
+
* @param {ProvisionApplicationDatabaseRequest} provisionApplicationDatabaseRequest
|
|
13188
|
+
* @param {*} [options] Override http request option.
|
|
13189
|
+
* @throws {RequiredError}
|
|
13190
|
+
* @memberof ApplicationDatabaseApi
|
|
13191
|
+
*/
|
|
13192
|
+
provisionApplicationDatabase(organisation, application, provisionApplicationDatabaseRequest, options) {
|
|
13193
|
+
return (0, exports.ApplicationDatabaseApiFp)(this.configuration).provisionApplicationDatabase(organisation, application, provisionApplicationDatabaseRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13194
|
+
}
|
|
13195
|
+
/**
|
|
13196
|
+
* Changes the instance class, the storage or Multi-AZ of the active, pending (once ready) or previous database. Only fields that differ change; the class and Multi-AZ compare with the value the instance will have (live, or pending for the maintenance window), so the live value withdraws a pending change. A class change restarts the instance (a few minutes without the database, about a minute of failover with Multi-AZ). Storage only grows, by at least 10 %, and can change again only after 6 hours; to make a database smaller, provision a smaller one and promote it. applyImmediately false leaves the change for the maintenance window. RDS applies every pending change with an immediate one, so an immediate request is a 409 while a pending change it does not name exists. Needs the write_applications permission and the cloud:write scope.
|
|
13197
|
+
* @summary Resize a database of an application
|
|
13198
|
+
* @param {string} organisation The organisation ID
|
|
13199
|
+
* @param {string} application The application ID
|
|
13200
|
+
* @param {string} instanceId The database instance identifier
|
|
13201
|
+
* @param {ResizeApplicationDatabaseRequest} resizeApplicationDatabaseRequest
|
|
13202
|
+
* @param {*} [options] Override http request option.
|
|
13203
|
+
* @throws {RequiredError}
|
|
13204
|
+
* @memberof ApplicationDatabaseApi
|
|
13205
|
+
*/
|
|
13206
|
+
resizeApplicationDatabase(organisation, application, instanceId, resizeApplicationDatabaseRequest, options) {
|
|
13207
|
+
return (0, exports.ApplicationDatabaseApiFp)(this.configuration).resizeApplicationDatabase(organisation, application, instanceId, resizeApplicationDatabaseRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13208
|
+
}
|
|
13209
|
+
}
|
|
13210
|
+
exports.ApplicationDatabaseApi = ApplicationDatabaseApi;
|
|
12600
13211
|
/**
|
|
12601
13212
|
* ApplicationsApi - axios parameter creator
|
|
12602
13213
|
* @export
|