@quantcdn/quant-client 4.38.0 → 4.40.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/api.ts +1264 -8
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +937 -7
- package/dist/api.js +636 -16
- 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 +937 -7
- package/dist/esm/api.js +622 -6
- 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/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* QuantCDN API
|
|
5
5
|
* 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.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 4.
|
|
7
|
+
* The version of the OpenAPI document: 4.40.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1198,6 +1198,152 @@ export const ApplicationDatabaseRdsInstanceEngineEnum = {
|
|
|
1198
1198
|
|
|
1199
1199
|
export type ApplicationDatabaseRdsInstanceEngineEnum = typeof ApplicationDatabaseRdsInstanceEngineEnum[keyof typeof ApplicationDatabaseRdsInstanceEngineEnum];
|
|
1200
1200
|
|
|
1201
|
+
/**
|
|
1202
|
+
*
|
|
1203
|
+
* @export
|
|
1204
|
+
* @interface ApplicationDatabaseEnvironmentCredentialsSecretsInner
|
|
1205
|
+
*/
|
|
1206
|
+
export interface ApplicationDatabaseEnvironmentCredentialsSecretsInner {
|
|
1207
|
+
/**
|
|
1208
|
+
*
|
|
1209
|
+
* @type {string}
|
|
1210
|
+
* @memberof ApplicationDatabaseEnvironmentCredentialsSecretsInner
|
|
1211
|
+
*/
|
|
1212
|
+
'environment'?: string;
|
|
1213
|
+
/**
|
|
1214
|
+
*
|
|
1215
|
+
* @type {string}
|
|
1216
|
+
* @memberof ApplicationDatabaseEnvironmentCredentialsSecretsInner
|
|
1217
|
+
*/
|
|
1218
|
+
'secretName'?: string;
|
|
1219
|
+
}
|
|
1220
|
+
/**
|
|
1221
|
+
*
|
|
1222
|
+
* @export
|
|
1223
|
+
* @interface ApplicationDatabaseError
|
|
1224
|
+
*/
|
|
1225
|
+
export interface ApplicationDatabaseError {
|
|
1226
|
+
/**
|
|
1227
|
+
*
|
|
1228
|
+
* @type {string}
|
|
1229
|
+
* @memberof ApplicationDatabaseError
|
|
1230
|
+
*/
|
|
1231
|
+
'message'?: string;
|
|
1232
|
+
/**
|
|
1233
|
+
* 409 only: the operation that holds the application\'s lock.
|
|
1234
|
+
* @type {string}
|
|
1235
|
+
* @memberof ApplicationDatabaseError
|
|
1236
|
+
*/
|
|
1237
|
+
'operation'?: ApplicationDatabaseErrorOperationEnum;
|
|
1238
|
+
/**
|
|
1239
|
+
* 409 only: the operation that was refused.
|
|
1240
|
+
* @type {string}
|
|
1241
|
+
* @memberof ApplicationDatabaseError
|
|
1242
|
+
*/
|
|
1243
|
+
'requested'?: ApplicationDatabaseErrorRequestedEnum;
|
|
1244
|
+
/**
|
|
1245
|
+
* 409 only: the pending or previous database that blocks the request, or the provision in flight.
|
|
1246
|
+
* @type {string}
|
|
1247
|
+
* @memberof ApplicationDatabaseError
|
|
1248
|
+
*/
|
|
1249
|
+
'instanceId'?: string;
|
|
1250
|
+
/**
|
|
1251
|
+
* 409 only: for a provision in flight, the path to poll on the platform (this API serves it at the database route).
|
|
1252
|
+
* @type {string}
|
|
1253
|
+
* @memberof ApplicationDatabaseError
|
|
1254
|
+
*/
|
|
1255
|
+
'statusUrl'?: string;
|
|
1256
|
+
/**
|
|
1257
|
+
* Promote 409 only: the environments that have no user, or unreadable credentials, on the instance.
|
|
1258
|
+
* @type {Array<string>}
|
|
1259
|
+
* @memberof ApplicationDatabaseError
|
|
1260
|
+
*/
|
|
1261
|
+
'environments'?: Array<string>;
|
|
1262
|
+
/**
|
|
1263
|
+
* Delete 500 only: what could not be cleaned up.
|
|
1264
|
+
* @type {Array<string>}
|
|
1265
|
+
* @memberof ApplicationDatabaseError
|
|
1266
|
+
*/
|
|
1267
|
+
'errors'?: Array<string>;
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
export const ApplicationDatabaseErrorOperationEnum = {
|
|
1271
|
+
Provision: 'provision',
|
|
1272
|
+
Promote: 'promote',
|
|
1273
|
+
Delete: 'delete'
|
|
1274
|
+
} as const;
|
|
1275
|
+
|
|
1276
|
+
export type ApplicationDatabaseErrorOperationEnum = typeof ApplicationDatabaseErrorOperationEnum[keyof typeof ApplicationDatabaseErrorOperationEnum];
|
|
1277
|
+
export const ApplicationDatabaseErrorRequestedEnum = {
|
|
1278
|
+
Provision: 'provision',
|
|
1279
|
+
Promote: 'promote',
|
|
1280
|
+
Delete: 'delete'
|
|
1281
|
+
} as const;
|
|
1282
|
+
|
|
1283
|
+
export type ApplicationDatabaseErrorRequestedEnum = typeof ApplicationDatabaseErrorRequestedEnum[keyof typeof ApplicationDatabaseErrorRequestedEnum];
|
|
1284
|
+
|
|
1285
|
+
/**
|
|
1286
|
+
* A resize RDS has accepted but not applied yet. Absent when there is none.
|
|
1287
|
+
* @export
|
|
1288
|
+
* @interface ApplicationDatabasePendingModifications
|
|
1289
|
+
*/
|
|
1290
|
+
export interface ApplicationDatabasePendingModifications {
|
|
1291
|
+
/**
|
|
1292
|
+
*
|
|
1293
|
+
* @type {string}
|
|
1294
|
+
* @memberof ApplicationDatabasePendingModifications
|
|
1295
|
+
*/
|
|
1296
|
+
'instanceClass'?: string;
|
|
1297
|
+
/**
|
|
1298
|
+
*
|
|
1299
|
+
* @type {number}
|
|
1300
|
+
* @memberof ApplicationDatabasePendingModifications
|
|
1301
|
+
*/
|
|
1302
|
+
'storageGb'?: number;
|
|
1303
|
+
/**
|
|
1304
|
+
*
|
|
1305
|
+
* @type {boolean}
|
|
1306
|
+
* @memberof ApplicationDatabasePendingModifications
|
|
1307
|
+
*/
|
|
1308
|
+
'multiAz'?: boolean;
|
|
1309
|
+
}
|
|
1310
|
+
/**
|
|
1311
|
+
*
|
|
1312
|
+
* @export
|
|
1313
|
+
* @interface ApplicationDatabases
|
|
1314
|
+
*/
|
|
1315
|
+
export interface ApplicationDatabases {
|
|
1316
|
+
/**
|
|
1317
|
+
*
|
|
1318
|
+
* @type {string}
|
|
1319
|
+
* @memberof ApplicationDatabases
|
|
1320
|
+
*/
|
|
1321
|
+
'orgName'?: string;
|
|
1322
|
+
/**
|
|
1323
|
+
*
|
|
1324
|
+
* @type {string}
|
|
1325
|
+
* @memberof ApplicationDatabases
|
|
1326
|
+
*/
|
|
1327
|
+
'appName'?: string;
|
|
1328
|
+
/**
|
|
1329
|
+
*
|
|
1330
|
+
* @type {ApplicationDatabase}
|
|
1331
|
+
* @memberof ApplicationDatabases
|
|
1332
|
+
*/
|
|
1333
|
+
'active'?: ApplicationDatabase | null;
|
|
1334
|
+
/**
|
|
1335
|
+
*
|
|
1336
|
+
* @type {ApplicationDatabase}
|
|
1337
|
+
* @memberof ApplicationDatabases
|
|
1338
|
+
*/
|
|
1339
|
+
'next'?: ApplicationDatabase | null;
|
|
1340
|
+
/**
|
|
1341
|
+
*
|
|
1342
|
+
* @type {ApplicationDatabase}
|
|
1343
|
+
* @memberof ApplicationDatabases
|
|
1344
|
+
*/
|
|
1345
|
+
'previous'?: ApplicationDatabase | null;
|
|
1346
|
+
}
|
|
1201
1347
|
/**
|
|
1202
1348
|
*
|
|
1203
1349
|
* @export
|
|
@@ -2707,7 +2853,7 @@ export interface CiRunnerPoolConfig {
|
|
|
2707
2853
|
*/
|
|
2708
2854
|
'egressAllowlist'?: Array<string>;
|
|
2709
2855
|
/**
|
|
2710
|
-
*
|
|
2856
|
+
* A VM stops when the pool has not needed it (on that architecture) for this many minutes, also while other VMs of the pool run jobs. A stopped VM starts again from the warm pool in about 20 s. The default was 15 before 2026-11-30; pools keep the value they have.
|
|
2711
2857
|
* @type {number}
|
|
2712
2858
|
* @memberof CiRunnerPoolConfig
|
|
2713
2859
|
*/
|
|
@@ -2771,7 +2917,7 @@ export type CiRunnerPoolConfigCacheResidencyEnum = typeof CiRunnerPoolConfigCach
|
|
|
2771
2917
|
*/
|
|
2772
2918
|
export interface CiRunnerPoolConfigAlertsInner {
|
|
2773
2919
|
/**
|
|
2774
|
-
* pool_error: runner VMs failed to start, VMs reported themselves unhealthy, or a job never reached this pool\'s runners (detail says which). labels_unfit: a job asked for labels or an architecture this pool\'s runners do not have, so the pool did not take it.
|
|
2920
|
+
* pool_error: runner VMs failed to start, VMs reported themselves unhealthy, or a job never reached this pool\'s runners (detail says which). labels_unfit: a job asked for labels or an architecture this pool\'s runners do not have, so the pool did not take it. vm_hours_included: the pool used 80% (then 100%) of its included VM-hours this month; jobs keep running and VM-hours over the allowance are billed.
|
|
2775
2921
|
* @type {string}
|
|
2776
2922
|
* @memberof CiRunnerPoolConfigAlertsInner
|
|
2777
2923
|
*/
|
|
@@ -2794,7 +2940,8 @@ export const CiRunnerPoolConfigAlertsInnerTypeEnum = {
|
|
|
2794
2940
|
QueueWait: 'queue_wait',
|
|
2795
2941
|
AtCapacity: 'at_capacity',
|
|
2796
2942
|
PoolError: 'pool_error',
|
|
2797
|
-
LabelsUnfit: 'labels_unfit'
|
|
2943
|
+
LabelsUnfit: 'labels_unfit',
|
|
2944
|
+
VmHoursIncluded: 'vm_hours_included'
|
|
2798
2945
|
} as const;
|
|
2799
2946
|
|
|
2800
2947
|
export type CiRunnerPoolConfigAlertsInnerTypeEnum = typeof CiRunnerPoolConfigAlertsInnerTypeEnum[keyof typeof CiRunnerPoolConfigAlertsInnerTypeEnum];
|
|
@@ -5516,6 +5663,70 @@ export interface DeleteAgentOverlay200Response {
|
|
|
5516
5663
|
*/
|
|
5517
5664
|
'message'?: string;
|
|
5518
5665
|
}
|
|
5666
|
+
/**
|
|
5667
|
+
*
|
|
5668
|
+
* @export
|
|
5669
|
+
* @interface DeleteApplicationDatabaseRequest
|
|
5670
|
+
*/
|
|
5671
|
+
export interface DeleteApplicationDatabaseRequest {
|
|
5672
|
+
/**
|
|
5673
|
+
* Must be true: the database and its automated backups are deleted with no final snapshot.
|
|
5674
|
+
* @type {boolean}
|
|
5675
|
+
* @memberof DeleteApplicationDatabaseRequest
|
|
5676
|
+
*/
|
|
5677
|
+
'acknowledgeDataloss': boolean;
|
|
5678
|
+
}
|
|
5679
|
+
/**
|
|
5680
|
+
*
|
|
5681
|
+
* @export
|
|
5682
|
+
* @interface DeleteApplicationDatabaseResponse
|
|
5683
|
+
*/
|
|
5684
|
+
export interface DeleteApplicationDatabaseResponse {
|
|
5685
|
+
/**
|
|
5686
|
+
*
|
|
5687
|
+
* @type {string}
|
|
5688
|
+
* @memberof DeleteApplicationDatabaseResponse
|
|
5689
|
+
*/
|
|
5690
|
+
'message'?: string;
|
|
5691
|
+
/**
|
|
5692
|
+
*
|
|
5693
|
+
* @type {string}
|
|
5694
|
+
* @memberof DeleteApplicationDatabaseResponse
|
|
5695
|
+
*/
|
|
5696
|
+
'orgName'?: string;
|
|
5697
|
+
/**
|
|
5698
|
+
*
|
|
5699
|
+
* @type {string}
|
|
5700
|
+
* @memberof DeleteApplicationDatabaseResponse
|
|
5701
|
+
*/
|
|
5702
|
+
'appName'?: string;
|
|
5703
|
+
/**
|
|
5704
|
+
*
|
|
5705
|
+
* @type {string}
|
|
5706
|
+
* @memberof DeleteApplicationDatabaseResponse
|
|
5707
|
+
*/
|
|
5708
|
+
'instanceId'?: string;
|
|
5709
|
+
/**
|
|
5710
|
+
*
|
|
5711
|
+
* @type {string}
|
|
5712
|
+
* @memberof DeleteApplicationDatabaseResponse
|
|
5713
|
+
*/
|
|
5714
|
+
'status'?: DeleteApplicationDatabaseResponseStatusEnum;
|
|
5715
|
+
/**
|
|
5716
|
+
* No final snapshot was taken.
|
|
5717
|
+
* @type {string}
|
|
5718
|
+
* @memberof DeleteApplicationDatabaseResponse
|
|
5719
|
+
*/
|
|
5720
|
+
'note'?: string;
|
|
5721
|
+
}
|
|
5722
|
+
|
|
5723
|
+
export const DeleteApplicationDatabaseResponseStatusEnum = {
|
|
5724
|
+
Deleting: 'deleting',
|
|
5725
|
+
Deleted: 'deleted'
|
|
5726
|
+
} as const;
|
|
5727
|
+
|
|
5728
|
+
export type DeleteApplicationDatabaseResponseStatusEnum = typeof DeleteApplicationDatabaseResponseStatusEnum[keyof typeof DeleteApplicationDatabaseResponseStatusEnum];
|
|
5729
|
+
|
|
5519
5730
|
/**
|
|
5520
5731
|
*
|
|
5521
5732
|
* @export
|
|
@@ -11926,6 +12137,241 @@ export const ProjectsDelete503ResponseCodeEnum = {
|
|
|
11926
12137
|
|
|
11927
12138
|
export type ProjectsDelete503ResponseCodeEnum = typeof ProjectsDelete503ResponseCodeEnum[keyof typeof ProjectsDelete503ResponseCodeEnum];
|
|
11928
12139
|
|
|
12140
|
+
/**
|
|
12141
|
+
*
|
|
12142
|
+
* @export
|
|
12143
|
+
* @interface PromoteApplicationDatabaseResponse
|
|
12144
|
+
*/
|
|
12145
|
+
export interface PromoteApplicationDatabaseResponse {
|
|
12146
|
+
/**
|
|
12147
|
+
*
|
|
12148
|
+
* @type {string}
|
|
12149
|
+
* @memberof PromoteApplicationDatabaseResponse
|
|
12150
|
+
*/
|
|
12151
|
+
'message'?: string;
|
|
12152
|
+
/**
|
|
12153
|
+
*
|
|
12154
|
+
* @type {string}
|
|
12155
|
+
* @memberof PromoteApplicationDatabaseResponse
|
|
12156
|
+
*/
|
|
12157
|
+
'orgName'?: string;
|
|
12158
|
+
/**
|
|
12159
|
+
*
|
|
12160
|
+
* @type {string}
|
|
12161
|
+
* @memberof PromoteApplicationDatabaseResponse
|
|
12162
|
+
*/
|
|
12163
|
+
'appName'?: string;
|
|
12164
|
+
/**
|
|
12165
|
+
* The database now in use.
|
|
12166
|
+
* @type {string}
|
|
12167
|
+
* @memberof PromoteApplicationDatabaseResponse
|
|
12168
|
+
*/
|
|
12169
|
+
'active'?: string;
|
|
12170
|
+
/**
|
|
12171
|
+
* The database kept for rollback. Absent when there was none.
|
|
12172
|
+
* @type {string}
|
|
12173
|
+
* @memberof PromoteApplicationDatabaseResponse
|
|
12174
|
+
*/
|
|
12175
|
+
'previous'?: string;
|
|
12176
|
+
/**
|
|
12177
|
+
* Every environment that uses the database.
|
|
12178
|
+
* @type {Array<string>}
|
|
12179
|
+
* @memberof PromoteApplicationDatabaseResponse
|
|
12180
|
+
*/
|
|
12181
|
+
'environments'?: Array<string>;
|
|
12182
|
+
/**
|
|
12183
|
+
* Environments whose service was updated onto a new task definition revision with a forced new deployment.
|
|
12184
|
+
* @type {Array<string>}
|
|
12185
|
+
* @memberof PromoteApplicationDatabaseResponse
|
|
12186
|
+
*/
|
|
12187
|
+
'redeployed'?: Array<string>;
|
|
12188
|
+
/**
|
|
12189
|
+
* Environments whose redeploy did not fit the request\'s time budget and was queued. Not done yet; a failure is only logged.
|
|
12190
|
+
* @type {Array<string>}
|
|
12191
|
+
* @memberof PromoteApplicationDatabaseResponse
|
|
12192
|
+
*/
|
|
12193
|
+
'redeployQueued'?: Array<string>;
|
|
12194
|
+
/**
|
|
12195
|
+
* Environments whose redeploy could not be started. The switch is done; they still run the previous revision, which still works.
|
|
12196
|
+
* @type {Array<PromoteApplicationDatabaseResponseRedeployFailedInner>}
|
|
12197
|
+
* @memberof PromoteApplicationDatabaseResponse
|
|
12198
|
+
*/
|
|
12199
|
+
'redeployFailed'?: Array<PromoteApplicationDatabaseResponseRedeployFailedInner>;
|
|
12200
|
+
/**
|
|
12201
|
+
* Environments that needed no redeploy: already on the new revision, or without a running service.
|
|
12202
|
+
* @type {Array<string>}
|
|
12203
|
+
* @memberof PromoteApplicationDatabaseResponse
|
|
12204
|
+
*/
|
|
12205
|
+
'upToDate'?: Array<string>;
|
|
12206
|
+
/**
|
|
12207
|
+
* redeployFailed plus redeployQueued: the environments that still run the previous task definition.
|
|
12208
|
+
* @type {Array<string>}
|
|
12209
|
+
* @memberof PromoteApplicationDatabaseResponse
|
|
12210
|
+
*/
|
|
12211
|
+
'redeployRequired'?: Array<string>;
|
|
12212
|
+
/**
|
|
12213
|
+
* Environments whose variables could not be updated. Repeat the request.
|
|
12214
|
+
* @type {Array<string>}
|
|
12215
|
+
* @memberof PromoteApplicationDatabaseResponse
|
|
12216
|
+
*/
|
|
12217
|
+
'warnings'?: Array<string>;
|
|
12218
|
+
/**
|
|
12219
|
+
*
|
|
12220
|
+
* @type {string}
|
|
12221
|
+
* @memberof PromoteApplicationDatabaseResponse
|
|
12222
|
+
*/
|
|
12223
|
+
'note'?: string;
|
|
12224
|
+
}
|
|
12225
|
+
/**
|
|
12226
|
+
*
|
|
12227
|
+
* @export
|
|
12228
|
+
* @interface PromoteApplicationDatabaseResponseRedeployFailedInner
|
|
12229
|
+
*/
|
|
12230
|
+
export interface PromoteApplicationDatabaseResponseRedeployFailedInner {
|
|
12231
|
+
/**
|
|
12232
|
+
*
|
|
12233
|
+
* @type {string}
|
|
12234
|
+
* @memberof PromoteApplicationDatabaseResponseRedeployFailedInner
|
|
12235
|
+
*/
|
|
12236
|
+
'environment'?: string;
|
|
12237
|
+
/**
|
|
12238
|
+
* A short reason. Never a credential.
|
|
12239
|
+
* @type {string}
|
|
12240
|
+
* @memberof PromoteApplicationDatabaseResponseRedeployFailedInner
|
|
12241
|
+
*/
|
|
12242
|
+
'error'?: string;
|
|
12243
|
+
}
|
|
12244
|
+
/**
|
|
12245
|
+
*
|
|
12246
|
+
* @export
|
|
12247
|
+
* @interface ProvisionApplicationDatabaseAccepted
|
|
12248
|
+
*/
|
|
12249
|
+
export interface ProvisionApplicationDatabaseAccepted {
|
|
12250
|
+
/**
|
|
12251
|
+
*
|
|
12252
|
+
* @type {string}
|
|
12253
|
+
* @memberof ProvisionApplicationDatabaseAccepted
|
|
12254
|
+
*/
|
|
12255
|
+
'message'?: string;
|
|
12256
|
+
/**
|
|
12257
|
+
*
|
|
12258
|
+
* @type {string}
|
|
12259
|
+
* @memberof ProvisionApplicationDatabaseAccepted
|
|
12260
|
+
*/
|
|
12261
|
+
'orgName'?: string;
|
|
12262
|
+
/**
|
|
12263
|
+
*
|
|
12264
|
+
* @type {string}
|
|
12265
|
+
* @memberof ProvisionApplicationDatabaseAccepted
|
|
12266
|
+
*/
|
|
12267
|
+
'appName'?: string;
|
|
12268
|
+
/**
|
|
12269
|
+
*
|
|
12270
|
+
* @type {string}
|
|
12271
|
+
* @memberof ProvisionApplicationDatabaseAccepted
|
|
12272
|
+
*/
|
|
12273
|
+
'instanceId'?: string;
|
|
12274
|
+
/**
|
|
12275
|
+
*
|
|
12276
|
+
* @type {string}
|
|
12277
|
+
* @memberof ProvisionApplicationDatabaseAccepted
|
|
12278
|
+
*/
|
|
12279
|
+
'engine'?: ProvisionApplicationDatabaseAcceptedEngineEnum;
|
|
12280
|
+
/**
|
|
12281
|
+
*
|
|
12282
|
+
* @type {string}
|
|
12283
|
+
* @memberof ProvisionApplicationDatabaseAccepted
|
|
12284
|
+
*/
|
|
12285
|
+
'status'?: ProvisionApplicationDatabaseAcceptedStatusEnum;
|
|
12286
|
+
/**
|
|
12287
|
+
* The API path to poll.
|
|
12288
|
+
* @type {string}
|
|
12289
|
+
* @memberof ProvisionApplicationDatabaseAccepted
|
|
12290
|
+
*/
|
|
12291
|
+
'statusUrl'?: string;
|
|
12292
|
+
/**
|
|
12293
|
+
*
|
|
12294
|
+
* @type {Array<string>}
|
|
12295
|
+
* @memberof ProvisionApplicationDatabaseAccepted
|
|
12296
|
+
*/
|
|
12297
|
+
'environmentVariables'?: Array<string>;
|
|
12298
|
+
/**
|
|
12299
|
+
* DB_NEXT_USERNAME and DB_NEXT_PASSWORD: secret references into the new database\'s own credentials. Never values.
|
|
12300
|
+
* @type {Array<string>}
|
|
12301
|
+
* @memberof ProvisionApplicationDatabaseAccepted
|
|
12302
|
+
*/
|
|
12303
|
+
'environmentSecretReferences'?: Array<string>;
|
|
12304
|
+
/**
|
|
12305
|
+
*
|
|
12306
|
+
* @type {string}
|
|
12307
|
+
* @memberof ProvisionApplicationDatabaseAccepted
|
|
12308
|
+
*/
|
|
12309
|
+
'note'?: string;
|
|
12310
|
+
}
|
|
12311
|
+
|
|
12312
|
+
export const ProvisionApplicationDatabaseAcceptedEngineEnum = {
|
|
12313
|
+
Mysql: 'mysql',
|
|
12314
|
+
Postgres: 'postgres'
|
|
12315
|
+
} as const;
|
|
12316
|
+
|
|
12317
|
+
export type ProvisionApplicationDatabaseAcceptedEngineEnum = typeof ProvisionApplicationDatabaseAcceptedEngineEnum[keyof typeof ProvisionApplicationDatabaseAcceptedEngineEnum];
|
|
12318
|
+
export const ProvisionApplicationDatabaseAcceptedStatusEnum = {
|
|
12319
|
+
Provisioning: 'provisioning',
|
|
12320
|
+
Ready: 'ready',
|
|
12321
|
+
Failed: 'failed'
|
|
12322
|
+
} as const;
|
|
12323
|
+
|
|
12324
|
+
export type ProvisionApplicationDatabaseAcceptedStatusEnum = typeof ProvisionApplicationDatabaseAcceptedStatusEnum[keyof typeof ProvisionApplicationDatabaseAcceptedStatusEnum];
|
|
12325
|
+
|
|
12326
|
+
/**
|
|
12327
|
+
*
|
|
12328
|
+
* @export
|
|
12329
|
+
* @interface ProvisionApplicationDatabaseRequest
|
|
12330
|
+
*/
|
|
12331
|
+
export interface ProvisionApplicationDatabaseRequest {
|
|
12332
|
+
/**
|
|
12333
|
+
*
|
|
12334
|
+
* @type {string}
|
|
12335
|
+
* @memberof ProvisionApplicationDatabaseRequest
|
|
12336
|
+
*/
|
|
12337
|
+
'engine': ProvisionApplicationDatabaseRequestEngineEnum;
|
|
12338
|
+
/**
|
|
12339
|
+
*
|
|
12340
|
+
* @type {string}
|
|
12341
|
+
* @memberof ProvisionApplicationDatabaseRequest
|
|
12342
|
+
*/
|
|
12343
|
+
'instanceClass'?: ProvisionApplicationDatabaseRequestInstanceClassEnum;
|
|
12344
|
+
/**
|
|
12345
|
+
* Allocated storage in GiB. Storage autoscaling is on, up to 1000.
|
|
12346
|
+
* @type {number}
|
|
12347
|
+
* @memberof ProvisionApplicationDatabaseRequest
|
|
12348
|
+
*/
|
|
12349
|
+
'storageGb'?: number;
|
|
12350
|
+
/**
|
|
12351
|
+
*
|
|
12352
|
+
* @type {boolean}
|
|
12353
|
+
* @memberof ProvisionApplicationDatabaseRequest
|
|
12354
|
+
*/
|
|
12355
|
+
'multiAz'?: boolean;
|
|
12356
|
+
}
|
|
12357
|
+
|
|
12358
|
+
export const ProvisionApplicationDatabaseRequestEngineEnum = {
|
|
12359
|
+
Mysql: 'mysql',
|
|
12360
|
+
Postgres: 'postgres'
|
|
12361
|
+
} as const;
|
|
12362
|
+
|
|
12363
|
+
export type ProvisionApplicationDatabaseRequestEngineEnum = typeof ProvisionApplicationDatabaseRequestEngineEnum[keyof typeof ProvisionApplicationDatabaseRequestEngineEnum];
|
|
12364
|
+
export const ProvisionApplicationDatabaseRequestInstanceClassEnum = {
|
|
12365
|
+
DbT4gMicro: 'db.t4g.micro',
|
|
12366
|
+
DbT4gSmall: 'db.t4g.small',
|
|
12367
|
+
DbT4gMedium: 'db.t4g.medium',
|
|
12368
|
+
DbT4gLarge: 'db.t4g.large',
|
|
12369
|
+
DbT4gXlarge: 'db.t4g.xlarge',
|
|
12370
|
+
DbT4g2xlarge: 'db.t4g.2xlarge'
|
|
12371
|
+
} as const;
|
|
12372
|
+
|
|
12373
|
+
export type ProvisionApplicationDatabaseRequestInstanceClassEnum = typeof ProvisionApplicationDatabaseRequestInstanceClassEnum[keyof typeof ProvisionApplicationDatabaseRequestInstanceClassEnum];
|
|
12374
|
+
|
|
11929
12375
|
/**
|
|
11930
12376
|
*
|
|
11931
12377
|
* @export
|
|
@@ -12402,6 +12848,144 @@ export interface QueryVectorCollectionRequestFilter {
|
|
|
12402
12848
|
*/
|
|
12403
12849
|
'contains'?: { [key: string]: Array<string>; };
|
|
12404
12850
|
}
|
|
12851
|
+
/**
|
|
12852
|
+
* At least one of instanceClass, storageGb, multiAz.
|
|
12853
|
+
* @export
|
|
12854
|
+
* @interface ResizeApplicationDatabaseRequest
|
|
12855
|
+
*/
|
|
12856
|
+
export interface ResizeApplicationDatabaseRequest {
|
|
12857
|
+
/**
|
|
12858
|
+
*
|
|
12859
|
+
* @type {string}
|
|
12860
|
+
* @memberof ResizeApplicationDatabaseRequest
|
|
12861
|
+
*/
|
|
12862
|
+
'instanceClass'?: ResizeApplicationDatabaseRequestInstanceClassEnum;
|
|
12863
|
+
/**
|
|
12864
|
+
* Grows only, by at least 10 %.
|
|
12865
|
+
* @type {number}
|
|
12866
|
+
* @memberof ResizeApplicationDatabaseRequest
|
|
12867
|
+
*/
|
|
12868
|
+
'storageGb'?: number;
|
|
12869
|
+
/**
|
|
12870
|
+
*
|
|
12871
|
+
* @type {boolean}
|
|
12872
|
+
* @memberof ResizeApplicationDatabaseRequest
|
|
12873
|
+
*/
|
|
12874
|
+
'multiAz'?: boolean;
|
|
12875
|
+
/**
|
|
12876
|
+
* false: in the next maintenance window.
|
|
12877
|
+
* @type {boolean}
|
|
12878
|
+
* @memberof ResizeApplicationDatabaseRequest
|
|
12879
|
+
*/
|
|
12880
|
+
'applyImmediately'?: boolean;
|
|
12881
|
+
}
|
|
12882
|
+
|
|
12883
|
+
export const ResizeApplicationDatabaseRequestInstanceClassEnum = {
|
|
12884
|
+
DbT4gMicro: 'db.t4g.micro',
|
|
12885
|
+
DbT4gSmall: 'db.t4g.small',
|
|
12886
|
+
DbT4gMedium: 'db.t4g.medium',
|
|
12887
|
+
DbT4gLarge: 'db.t4g.large',
|
|
12888
|
+
DbT4gXlarge: 'db.t4g.xlarge',
|
|
12889
|
+
DbT4g2xlarge: 'db.t4g.2xlarge'
|
|
12890
|
+
} as const;
|
|
12891
|
+
|
|
12892
|
+
export type ResizeApplicationDatabaseRequestInstanceClassEnum = typeof ResizeApplicationDatabaseRequestInstanceClassEnum[keyof typeof ResizeApplicationDatabaseRequestInstanceClassEnum];
|
|
12893
|
+
|
|
12894
|
+
/**
|
|
12895
|
+
*
|
|
12896
|
+
* @export
|
|
12897
|
+
* @interface ResizeApplicationDatabaseResponse
|
|
12898
|
+
*/
|
|
12899
|
+
export interface ResizeApplicationDatabaseResponse {
|
|
12900
|
+
/**
|
|
12901
|
+
*
|
|
12902
|
+
* @type {string}
|
|
12903
|
+
* @memberof ResizeApplicationDatabaseResponse
|
|
12904
|
+
*/
|
|
12905
|
+
'message'?: string;
|
|
12906
|
+
/**
|
|
12907
|
+
*
|
|
12908
|
+
* @type {string}
|
|
12909
|
+
* @memberof ResizeApplicationDatabaseResponse
|
|
12910
|
+
*/
|
|
12911
|
+
'orgName'?: string;
|
|
12912
|
+
/**
|
|
12913
|
+
*
|
|
12914
|
+
* @type {string}
|
|
12915
|
+
* @memberof ResizeApplicationDatabaseResponse
|
|
12916
|
+
*/
|
|
12917
|
+
'appName'?: string;
|
|
12918
|
+
/**
|
|
12919
|
+
*
|
|
12920
|
+
* @type {string}
|
|
12921
|
+
* @memberof ResizeApplicationDatabaseResponse
|
|
12922
|
+
*/
|
|
12923
|
+
'instanceId'?: string;
|
|
12924
|
+
/**
|
|
12925
|
+
*
|
|
12926
|
+
* @type {string}
|
|
12927
|
+
* @memberof ResizeApplicationDatabaseResponse
|
|
12928
|
+
*/
|
|
12929
|
+
'role'?: ResizeApplicationDatabaseResponseRoleEnum;
|
|
12930
|
+
/**
|
|
12931
|
+
*
|
|
12932
|
+
* @type {boolean}
|
|
12933
|
+
* @memberof ResizeApplicationDatabaseResponse
|
|
12934
|
+
*/
|
|
12935
|
+
'applyImmediately'?: boolean;
|
|
12936
|
+
/**
|
|
12937
|
+
*
|
|
12938
|
+
* @type {ResizeApplicationDatabaseResponseChanges}
|
|
12939
|
+
* @memberof ResizeApplicationDatabaseResponse
|
|
12940
|
+
*/
|
|
12941
|
+
'changes'?: ResizeApplicationDatabaseResponseChanges;
|
|
12942
|
+
/**
|
|
12943
|
+
* The API path to poll.
|
|
12944
|
+
* @type {string}
|
|
12945
|
+
* @memberof ResizeApplicationDatabaseResponse
|
|
12946
|
+
*/
|
|
12947
|
+
'statusUrl'?: string;
|
|
12948
|
+
/**
|
|
12949
|
+
*
|
|
12950
|
+
* @type {string}
|
|
12951
|
+
* @memberof ResizeApplicationDatabaseResponse
|
|
12952
|
+
*/
|
|
12953
|
+
'note'?: string;
|
|
12954
|
+
}
|
|
12955
|
+
|
|
12956
|
+
export const ResizeApplicationDatabaseResponseRoleEnum = {
|
|
12957
|
+
Active: 'active',
|
|
12958
|
+
Next: 'next',
|
|
12959
|
+
Previous: 'previous'
|
|
12960
|
+
} as const;
|
|
12961
|
+
|
|
12962
|
+
export type ResizeApplicationDatabaseResponseRoleEnum = typeof ResizeApplicationDatabaseResponseRoleEnum[keyof typeof ResizeApplicationDatabaseResponseRoleEnum];
|
|
12963
|
+
|
|
12964
|
+
/**
|
|
12965
|
+
* The fields that change: only those that differ from the live instance.
|
|
12966
|
+
* @export
|
|
12967
|
+
* @interface ResizeApplicationDatabaseResponseChanges
|
|
12968
|
+
*/
|
|
12969
|
+
export interface ResizeApplicationDatabaseResponseChanges {
|
|
12970
|
+
/**
|
|
12971
|
+
*
|
|
12972
|
+
* @type {string}
|
|
12973
|
+
* @memberof ResizeApplicationDatabaseResponseChanges
|
|
12974
|
+
*/
|
|
12975
|
+
'instanceClass'?: string;
|
|
12976
|
+
/**
|
|
12977
|
+
*
|
|
12978
|
+
* @type {number}
|
|
12979
|
+
* @memberof ResizeApplicationDatabaseResponseChanges
|
|
12980
|
+
*/
|
|
12981
|
+
'storageGb'?: number;
|
|
12982
|
+
/**
|
|
12983
|
+
*
|
|
12984
|
+
* @type {boolean}
|
|
12985
|
+
* @memberof ResizeApplicationDatabaseResponseChanges
|
|
12986
|
+
*/
|
|
12987
|
+
'multiAz'?: boolean;
|
|
12988
|
+
}
|
|
12405
12989
|
/**
|
|
12406
12990
|
*
|
|
12407
12991
|
* @export
|
|
@@ -13025,6 +13609,12 @@ export interface TokensCreate201Response {
|
|
|
13025
13609
|
* @memberof TokensCreate201Response
|
|
13026
13610
|
*/
|
|
13027
13611
|
'projects'?: Array<number> | null;
|
|
13612
|
+
/**
|
|
13613
|
+
*
|
|
13614
|
+
* @type {Array<string>}
|
|
13615
|
+
* @memberof TokensCreate201Response
|
|
13616
|
+
*/
|
|
13617
|
+
'applications'?: Array<string> | null;
|
|
13028
13618
|
/**
|
|
13029
13619
|
*
|
|
13030
13620
|
* @type {string}
|
|
@@ -13080,6 +13670,12 @@ export interface TokensCreateRequest {
|
|
|
13080
13670
|
* @memberof TokensCreateRequest
|
|
13081
13671
|
*/
|
|
13082
13672
|
'projects'?: Array<number> | null;
|
|
13673
|
+
/**
|
|
13674
|
+
* Quant Cloud application names to restrict this token to. The token can then reach only these applications and their environments. Each application must exist in the organization.
|
|
13675
|
+
* @type {Array<string>}
|
|
13676
|
+
* @memberof TokensCreateRequest
|
|
13677
|
+
*/
|
|
13678
|
+
'applications'?: Array<string> | null;
|
|
13083
13679
|
/**
|
|
13084
13680
|
* Token expiration period
|
|
13085
13681
|
* @type {string}
|
|
@@ -22796,7 +23392,87 @@ export interface V2RuleBotChallengeAction {
|
|
|
22796
23392
|
* @memberof V2RuleBotChallengeAction
|
|
22797
23393
|
*/
|
|
22798
23394
|
'robot_challenge_challenge_ttl'?: number;
|
|
23395
|
+
/**
|
|
23396
|
+
*
|
|
23397
|
+
* @type {V2RuleBotChallengeActionRobotChallengeVerifiedBots}
|
|
23398
|
+
* @memberof V2RuleBotChallengeAction
|
|
23399
|
+
*/
|
|
23400
|
+
'robot_challenge_verified_bots'?: V2RuleBotChallengeActionRobotChallengeVerifiedBots;
|
|
22799
23401
|
}
|
|
23402
|
+
/**
|
|
23403
|
+
* What a verified bot of each category gets on this rule: allow (skip the challenge), challenge (as any visitor) or block (403). An omitted category is allow. On PATCH, only the supplied categories change. Applies only to bots Quant verifies; AI training crawlers are never verified and are always challenged.
|
|
23404
|
+
* @export
|
|
23405
|
+
* @interface V2RuleBotChallengeActionRobotChallengeVerifiedBots
|
|
23406
|
+
*/
|
|
23407
|
+
export interface V2RuleBotChallengeActionRobotChallengeVerifiedBots {
|
|
23408
|
+
/**
|
|
23409
|
+
* Search crawlers: Googlebot, Bingbot, Applebot, DuckDuckBot, Yandex, Baidu
|
|
23410
|
+
* @type {string}
|
|
23411
|
+
* @memberof V2RuleBotChallengeActionRobotChallengeVerifiedBots
|
|
23412
|
+
*/
|
|
23413
|
+
'search'?: V2RuleBotChallengeActionRobotChallengeVerifiedBotsSearchEnum;
|
|
23414
|
+
/**
|
|
23415
|
+
* AI search and user fetchers: OAI-SearchBot, ChatGPT-User, PerplexityBot, Meta-ExternalFetcher
|
|
23416
|
+
* @type {string}
|
|
23417
|
+
* @memberof V2RuleBotChallengeActionRobotChallengeVerifiedBots
|
|
23418
|
+
*/
|
|
23419
|
+
'ai_search'?: V2RuleBotChallengeActionRobotChallengeVerifiedBotsAiSearchEnum;
|
|
23420
|
+
/**
|
|
23421
|
+
* Link previews: Facebook, WhatsApp, LinkedIn, X, Telegram, BingPreview
|
|
23422
|
+
* @type {string}
|
|
23423
|
+
* @memberof V2RuleBotChallengeActionRobotChallengeVerifiedBots
|
|
23424
|
+
*/
|
|
23425
|
+
'preview'?: V2RuleBotChallengeActionRobotChallengeVerifiedBotsPreviewEnum;
|
|
23426
|
+
/**
|
|
23427
|
+
* Uptime monitors: UptimeRobot, Pingdom
|
|
23428
|
+
* @type {string}
|
|
23429
|
+
* @memberof V2RuleBotChallengeActionRobotChallengeVerifiedBots
|
|
23430
|
+
*/
|
|
23431
|
+
'monitor'?: V2RuleBotChallengeActionRobotChallengeVerifiedBotsMonitorEnum;
|
|
23432
|
+
/**
|
|
23433
|
+
* Other verified bots: AdsBot-Google, Mediapartners-Google, GoogleOther, adidxbot
|
|
23434
|
+
* @type {string}
|
|
23435
|
+
* @memberof V2RuleBotChallengeActionRobotChallengeVerifiedBots
|
|
23436
|
+
*/
|
|
23437
|
+
'other'?: V2RuleBotChallengeActionRobotChallengeVerifiedBotsOtherEnum;
|
|
23438
|
+
}
|
|
23439
|
+
|
|
23440
|
+
export const V2RuleBotChallengeActionRobotChallengeVerifiedBotsSearchEnum = {
|
|
23441
|
+
Allow: 'allow',
|
|
23442
|
+
Challenge: 'challenge',
|
|
23443
|
+
Block: 'block'
|
|
23444
|
+
} as const;
|
|
23445
|
+
|
|
23446
|
+
export type V2RuleBotChallengeActionRobotChallengeVerifiedBotsSearchEnum = typeof V2RuleBotChallengeActionRobotChallengeVerifiedBotsSearchEnum[keyof typeof V2RuleBotChallengeActionRobotChallengeVerifiedBotsSearchEnum];
|
|
23447
|
+
export const V2RuleBotChallengeActionRobotChallengeVerifiedBotsAiSearchEnum = {
|
|
23448
|
+
Allow: 'allow',
|
|
23449
|
+
Challenge: 'challenge',
|
|
23450
|
+
Block: 'block'
|
|
23451
|
+
} as const;
|
|
23452
|
+
|
|
23453
|
+
export type V2RuleBotChallengeActionRobotChallengeVerifiedBotsAiSearchEnum = typeof V2RuleBotChallengeActionRobotChallengeVerifiedBotsAiSearchEnum[keyof typeof V2RuleBotChallengeActionRobotChallengeVerifiedBotsAiSearchEnum];
|
|
23454
|
+
export const V2RuleBotChallengeActionRobotChallengeVerifiedBotsPreviewEnum = {
|
|
23455
|
+
Allow: 'allow',
|
|
23456
|
+
Challenge: 'challenge',
|
|
23457
|
+
Block: 'block'
|
|
23458
|
+
} as const;
|
|
23459
|
+
|
|
23460
|
+
export type V2RuleBotChallengeActionRobotChallengeVerifiedBotsPreviewEnum = typeof V2RuleBotChallengeActionRobotChallengeVerifiedBotsPreviewEnum[keyof typeof V2RuleBotChallengeActionRobotChallengeVerifiedBotsPreviewEnum];
|
|
23461
|
+
export const V2RuleBotChallengeActionRobotChallengeVerifiedBotsMonitorEnum = {
|
|
23462
|
+
Allow: 'allow',
|
|
23463
|
+
Challenge: 'challenge',
|
|
23464
|
+
Block: 'block'
|
|
23465
|
+
} as const;
|
|
23466
|
+
|
|
23467
|
+
export type V2RuleBotChallengeActionRobotChallengeVerifiedBotsMonitorEnum = typeof V2RuleBotChallengeActionRobotChallengeVerifiedBotsMonitorEnum[keyof typeof V2RuleBotChallengeActionRobotChallengeVerifiedBotsMonitorEnum];
|
|
23468
|
+
export const V2RuleBotChallengeActionRobotChallengeVerifiedBotsOtherEnum = {
|
|
23469
|
+
Allow: 'allow',
|
|
23470
|
+
Challenge: 'challenge',
|
|
23471
|
+
Block: 'block'
|
|
23472
|
+
} as const;
|
|
23473
|
+
|
|
23474
|
+
export type V2RuleBotChallengeActionRobotChallengeVerifiedBotsOtherEnum = typeof V2RuleBotChallengeActionRobotChallengeVerifiedBotsOtherEnum[keyof typeof V2RuleBotChallengeActionRobotChallengeVerifiedBotsOtherEnum];
|
|
23475
|
+
|
|
22800
23476
|
/**
|
|
22801
23477
|
*
|
|
22802
23478
|
* @export
|
|
@@ -22977,6 +23653,12 @@ export interface V2RuleBotChallengeRequest {
|
|
|
22977
23653
|
* @memberof V2RuleBotChallengeRequest
|
|
22978
23654
|
*/
|
|
22979
23655
|
'robot_challenge_challenge_ttl'?: number;
|
|
23656
|
+
/**
|
|
23657
|
+
*
|
|
23658
|
+
* @type {V2RuleBotChallengeActionRobotChallengeVerifiedBots}
|
|
23659
|
+
* @memberof V2RuleBotChallengeRequest
|
|
23660
|
+
*/
|
|
23661
|
+
'robot_challenge_verified_bots'?: V2RuleBotChallengeActionRobotChallengeVerifiedBots;
|
|
22980
23662
|
}
|
|
22981
23663
|
|
|
22982
23664
|
export const V2RuleBotChallengeRequestAsnEnum = {
|
|
@@ -39447,6 +40129,580 @@ export class AlertChannelsApi extends BaseAPI {
|
|
|
39447
40129
|
|
|
39448
40130
|
|
|
39449
40131
|
|
|
40132
|
+
/**
|
|
40133
|
+
* ApplicationDatabaseApi - axios parameter creator
|
|
40134
|
+
* @export
|
|
40135
|
+
*/
|
|
40136
|
+
export const ApplicationDatabaseApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
40137
|
+
return {
|
|
40138
|
+
/**
|
|
40139
|
+
* 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.
|
|
40140
|
+
* @summary Delete a database of an application
|
|
40141
|
+
* @param {string} organisation The organisation ID
|
|
40142
|
+
* @param {string} application The application ID
|
|
40143
|
+
* @param {string} instanceId The database instance identifier
|
|
40144
|
+
* @param {DeleteApplicationDatabaseRequest} deleteApplicationDatabaseRequest
|
|
40145
|
+
* @param {*} [options] Override http request option.
|
|
40146
|
+
* @throws {RequiredError}
|
|
40147
|
+
*/
|
|
40148
|
+
deleteApplicationDatabase: async (organisation: string, application: string, instanceId: string, deleteApplicationDatabaseRequest: DeleteApplicationDatabaseRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
40149
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
40150
|
+
assertParamExists('deleteApplicationDatabase', 'organisation', organisation)
|
|
40151
|
+
// verify required parameter 'application' is not null or undefined
|
|
40152
|
+
assertParamExists('deleteApplicationDatabase', 'application', application)
|
|
40153
|
+
// verify required parameter 'instanceId' is not null or undefined
|
|
40154
|
+
assertParamExists('deleteApplicationDatabase', 'instanceId', instanceId)
|
|
40155
|
+
// verify required parameter 'deleteApplicationDatabaseRequest' is not null or undefined
|
|
40156
|
+
assertParamExists('deleteApplicationDatabase', 'deleteApplicationDatabaseRequest', deleteApplicationDatabaseRequest)
|
|
40157
|
+
const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/database/{instanceId}`
|
|
40158
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
40159
|
+
.replace(`{${"application"}}`, encodeURIComponent(String(application)))
|
|
40160
|
+
.replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)));
|
|
40161
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
40162
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
40163
|
+
let baseOptions;
|
|
40164
|
+
if (configuration) {
|
|
40165
|
+
baseOptions = configuration.baseOptions;
|
|
40166
|
+
}
|
|
40167
|
+
|
|
40168
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
40169
|
+
const localVarHeaderParameter = {} as any;
|
|
40170
|
+
const localVarQueryParameter = {} as any;
|
|
40171
|
+
|
|
40172
|
+
// authentication BearerAuth required
|
|
40173
|
+
// http bearer authentication required
|
|
40174
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
40175
|
+
|
|
40176
|
+
|
|
40177
|
+
|
|
40178
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
40179
|
+
|
|
40180
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
40181
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
40182
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
40183
|
+
localVarRequestOptions.data = serializeDataIfNeeded(deleteApplicationDatabaseRequest, localVarRequestOptions, configuration)
|
|
40184
|
+
|
|
40185
|
+
return {
|
|
40186
|
+
url: toPathString(localVarUrlObj),
|
|
40187
|
+
options: localVarRequestOptions,
|
|
40188
|
+
};
|
|
40189
|
+
},
|
|
40190
|
+
/**
|
|
40191
|
+
* Poll this for a database being added: status is provisioning, ready or failed.
|
|
40192
|
+
* @summary Get one database of an application
|
|
40193
|
+
* @param {string} organisation The organisation ID
|
|
40194
|
+
* @param {string} application The application ID
|
|
40195
|
+
* @param {string} instanceId The database instance identifier, as returned by the list
|
|
40196
|
+
* @param {*} [options] Override http request option.
|
|
40197
|
+
* @throws {RequiredError}
|
|
40198
|
+
*/
|
|
40199
|
+
getApplicationDatabase: async (organisation: string, application: string, instanceId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
40200
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
40201
|
+
assertParamExists('getApplicationDatabase', 'organisation', organisation)
|
|
40202
|
+
// verify required parameter 'application' is not null or undefined
|
|
40203
|
+
assertParamExists('getApplicationDatabase', 'application', application)
|
|
40204
|
+
// verify required parameter 'instanceId' is not null or undefined
|
|
40205
|
+
assertParamExists('getApplicationDatabase', 'instanceId', instanceId)
|
|
40206
|
+
const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/database/{instanceId}`
|
|
40207
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
40208
|
+
.replace(`{${"application"}}`, encodeURIComponent(String(application)))
|
|
40209
|
+
.replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)));
|
|
40210
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
40211
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
40212
|
+
let baseOptions;
|
|
40213
|
+
if (configuration) {
|
|
40214
|
+
baseOptions = configuration.baseOptions;
|
|
40215
|
+
}
|
|
40216
|
+
|
|
40217
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
40218
|
+
const localVarHeaderParameter = {} as any;
|
|
40219
|
+
const localVarQueryParameter = {} as any;
|
|
40220
|
+
|
|
40221
|
+
// authentication BearerAuth required
|
|
40222
|
+
// http bearer authentication required
|
|
40223
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
40224
|
+
|
|
40225
|
+
|
|
40226
|
+
|
|
40227
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
40228
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
40229
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
40230
|
+
|
|
40231
|
+
return {
|
|
40232
|
+
url: toPathString(localVarUrlObj),
|
|
40233
|
+
options: localVarRequestOptions,
|
|
40234
|
+
};
|
|
40235
|
+
},
|
|
40236
|
+
/**
|
|
40237
|
+
* 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).
|
|
40238
|
+
* @summary Get the databases of an application
|
|
40239
|
+
* @param {string} organisation The organisation ID
|
|
40240
|
+
* @param {string} application The application ID
|
|
40241
|
+
* @param {*} [options] Override http request option.
|
|
40242
|
+
* @throws {RequiredError}
|
|
40243
|
+
*/
|
|
40244
|
+
getApplicationDatabases: async (organisation: string, application: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
40245
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
40246
|
+
assertParamExists('getApplicationDatabases', 'organisation', organisation)
|
|
40247
|
+
// verify required parameter 'application' is not null or undefined
|
|
40248
|
+
assertParamExists('getApplicationDatabases', 'application', application)
|
|
40249
|
+
const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/database`
|
|
40250
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
40251
|
+
.replace(`{${"application"}}`, encodeURIComponent(String(application)));
|
|
40252
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
40253
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
40254
|
+
let baseOptions;
|
|
40255
|
+
if (configuration) {
|
|
40256
|
+
baseOptions = configuration.baseOptions;
|
|
40257
|
+
}
|
|
40258
|
+
|
|
40259
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
40260
|
+
const localVarHeaderParameter = {} as any;
|
|
40261
|
+
const localVarQueryParameter = {} as any;
|
|
40262
|
+
|
|
40263
|
+
// authentication BearerAuth required
|
|
40264
|
+
// http bearer authentication required
|
|
40265
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
40266
|
+
|
|
40267
|
+
|
|
40268
|
+
|
|
40269
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
40270
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
40271
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
40272
|
+
|
|
40273
|
+
return {
|
|
40274
|
+
url: toPathString(localVarUrlObj),
|
|
40275
|
+
options: localVarRequestOptions,
|
|
40276
|
+
};
|
|
40277
|
+
},
|
|
40278
|
+
/**
|
|
40279
|
+
* 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.
|
|
40280
|
+
* @summary Make a database the database of an application
|
|
40281
|
+
* @param {string} organisation The organisation ID
|
|
40282
|
+
* @param {string} application The application ID
|
|
40283
|
+
* @param {string} instanceId The database instance identifier
|
|
40284
|
+
* @param {*} [options] Override http request option.
|
|
40285
|
+
* @throws {RequiredError}
|
|
40286
|
+
*/
|
|
40287
|
+
promoteApplicationDatabase: async (organisation: string, application: string, instanceId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
40288
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
40289
|
+
assertParamExists('promoteApplicationDatabase', 'organisation', organisation)
|
|
40290
|
+
// verify required parameter 'application' is not null or undefined
|
|
40291
|
+
assertParamExists('promoteApplicationDatabase', 'application', application)
|
|
40292
|
+
// verify required parameter 'instanceId' is not null or undefined
|
|
40293
|
+
assertParamExists('promoteApplicationDatabase', 'instanceId', instanceId)
|
|
40294
|
+
const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/database/{instanceId}/promote`
|
|
40295
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
40296
|
+
.replace(`{${"application"}}`, encodeURIComponent(String(application)))
|
|
40297
|
+
.replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)));
|
|
40298
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
40299
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
40300
|
+
let baseOptions;
|
|
40301
|
+
if (configuration) {
|
|
40302
|
+
baseOptions = configuration.baseOptions;
|
|
40303
|
+
}
|
|
40304
|
+
|
|
40305
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
40306
|
+
const localVarHeaderParameter = {} as any;
|
|
40307
|
+
const localVarQueryParameter = {} as any;
|
|
40308
|
+
|
|
40309
|
+
// authentication BearerAuth required
|
|
40310
|
+
// http bearer authentication required
|
|
40311
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
40312
|
+
|
|
40313
|
+
|
|
40314
|
+
|
|
40315
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
40316
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
40317
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
40318
|
+
|
|
40319
|
+
return {
|
|
40320
|
+
url: toPathString(localVarUrlObj),
|
|
40321
|
+
options: localVarRequestOptions,
|
|
40322
|
+
};
|
|
40323
|
+
},
|
|
40324
|
+
/**
|
|
40325
|
+
* 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.
|
|
40326
|
+
* @summary Add a database to an application
|
|
40327
|
+
* @param {string} organisation The organisation ID
|
|
40328
|
+
* @param {string} application The application ID
|
|
40329
|
+
* @param {ProvisionApplicationDatabaseRequest} provisionApplicationDatabaseRequest
|
|
40330
|
+
* @param {*} [options] Override http request option.
|
|
40331
|
+
* @throws {RequiredError}
|
|
40332
|
+
*/
|
|
40333
|
+
provisionApplicationDatabase: async (organisation: string, application: string, provisionApplicationDatabaseRequest: ProvisionApplicationDatabaseRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
40334
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
40335
|
+
assertParamExists('provisionApplicationDatabase', 'organisation', organisation)
|
|
40336
|
+
// verify required parameter 'application' is not null or undefined
|
|
40337
|
+
assertParamExists('provisionApplicationDatabase', 'application', application)
|
|
40338
|
+
// verify required parameter 'provisionApplicationDatabaseRequest' is not null or undefined
|
|
40339
|
+
assertParamExists('provisionApplicationDatabase', 'provisionApplicationDatabaseRequest', provisionApplicationDatabaseRequest)
|
|
40340
|
+
const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/database`
|
|
40341
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
40342
|
+
.replace(`{${"application"}}`, encodeURIComponent(String(application)));
|
|
40343
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
40344
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
40345
|
+
let baseOptions;
|
|
40346
|
+
if (configuration) {
|
|
40347
|
+
baseOptions = configuration.baseOptions;
|
|
40348
|
+
}
|
|
40349
|
+
|
|
40350
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
40351
|
+
const localVarHeaderParameter = {} as any;
|
|
40352
|
+
const localVarQueryParameter = {} as any;
|
|
40353
|
+
|
|
40354
|
+
// authentication BearerAuth required
|
|
40355
|
+
// http bearer authentication required
|
|
40356
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
40357
|
+
|
|
40358
|
+
|
|
40359
|
+
|
|
40360
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
40361
|
+
|
|
40362
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
40363
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
40364
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
40365
|
+
localVarRequestOptions.data = serializeDataIfNeeded(provisionApplicationDatabaseRequest, localVarRequestOptions, configuration)
|
|
40366
|
+
|
|
40367
|
+
return {
|
|
40368
|
+
url: toPathString(localVarUrlObj),
|
|
40369
|
+
options: localVarRequestOptions,
|
|
40370
|
+
};
|
|
40371
|
+
},
|
|
40372
|
+
/**
|
|
40373
|
+
* 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.
|
|
40374
|
+
* @summary Resize a database of an application
|
|
40375
|
+
* @param {string} organisation The organisation ID
|
|
40376
|
+
* @param {string} application The application ID
|
|
40377
|
+
* @param {string} instanceId The database instance identifier
|
|
40378
|
+
* @param {ResizeApplicationDatabaseRequest} resizeApplicationDatabaseRequest
|
|
40379
|
+
* @param {*} [options] Override http request option.
|
|
40380
|
+
* @throws {RequiredError}
|
|
40381
|
+
*/
|
|
40382
|
+
resizeApplicationDatabase: async (organisation: string, application: string, instanceId: string, resizeApplicationDatabaseRequest: ResizeApplicationDatabaseRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
40383
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
40384
|
+
assertParamExists('resizeApplicationDatabase', 'organisation', organisation)
|
|
40385
|
+
// verify required parameter 'application' is not null or undefined
|
|
40386
|
+
assertParamExists('resizeApplicationDatabase', 'application', application)
|
|
40387
|
+
// verify required parameter 'instanceId' is not null or undefined
|
|
40388
|
+
assertParamExists('resizeApplicationDatabase', 'instanceId', instanceId)
|
|
40389
|
+
// verify required parameter 'resizeApplicationDatabaseRequest' is not null or undefined
|
|
40390
|
+
assertParamExists('resizeApplicationDatabase', 'resizeApplicationDatabaseRequest', resizeApplicationDatabaseRequest)
|
|
40391
|
+
const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/database/{instanceId}`
|
|
40392
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
40393
|
+
.replace(`{${"application"}}`, encodeURIComponent(String(application)))
|
|
40394
|
+
.replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)));
|
|
40395
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
40396
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
40397
|
+
let baseOptions;
|
|
40398
|
+
if (configuration) {
|
|
40399
|
+
baseOptions = configuration.baseOptions;
|
|
40400
|
+
}
|
|
40401
|
+
|
|
40402
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
40403
|
+
const localVarHeaderParameter = {} as any;
|
|
40404
|
+
const localVarQueryParameter = {} as any;
|
|
40405
|
+
|
|
40406
|
+
// authentication BearerAuth required
|
|
40407
|
+
// http bearer authentication required
|
|
40408
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
40409
|
+
|
|
40410
|
+
|
|
40411
|
+
|
|
40412
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
40413
|
+
|
|
40414
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
40415
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
40416
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
40417
|
+
localVarRequestOptions.data = serializeDataIfNeeded(resizeApplicationDatabaseRequest, localVarRequestOptions, configuration)
|
|
40418
|
+
|
|
40419
|
+
return {
|
|
40420
|
+
url: toPathString(localVarUrlObj),
|
|
40421
|
+
options: localVarRequestOptions,
|
|
40422
|
+
};
|
|
40423
|
+
},
|
|
40424
|
+
}
|
|
40425
|
+
};
|
|
40426
|
+
|
|
40427
|
+
/**
|
|
40428
|
+
* ApplicationDatabaseApi - functional programming interface
|
|
40429
|
+
* @export
|
|
40430
|
+
*/
|
|
40431
|
+
export const ApplicationDatabaseApiFp = function(configuration?: Configuration) {
|
|
40432
|
+
const localVarAxiosParamCreator = ApplicationDatabaseApiAxiosParamCreator(configuration)
|
|
40433
|
+
return {
|
|
40434
|
+
/**
|
|
40435
|
+
* 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.
|
|
40436
|
+
* @summary Delete a database of an application
|
|
40437
|
+
* @param {string} organisation The organisation ID
|
|
40438
|
+
* @param {string} application The application ID
|
|
40439
|
+
* @param {string} instanceId The database instance identifier
|
|
40440
|
+
* @param {DeleteApplicationDatabaseRequest} deleteApplicationDatabaseRequest
|
|
40441
|
+
* @param {*} [options] Override http request option.
|
|
40442
|
+
* @throws {RequiredError}
|
|
40443
|
+
*/
|
|
40444
|
+
async deleteApplicationDatabase(organisation: string, application: string, instanceId: string, deleteApplicationDatabaseRequest: DeleteApplicationDatabaseRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteApplicationDatabaseResponse>> {
|
|
40445
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteApplicationDatabase(organisation, application, instanceId, deleteApplicationDatabaseRequest, options);
|
|
40446
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
40447
|
+
const localVarOperationServerBasePath = operationServerMap['ApplicationDatabaseApi.deleteApplicationDatabase']?.[localVarOperationServerIndex]?.url;
|
|
40448
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
40449
|
+
},
|
|
40450
|
+
/**
|
|
40451
|
+
* Poll this for a database being added: status is provisioning, ready or failed.
|
|
40452
|
+
* @summary Get one database of an application
|
|
40453
|
+
* @param {string} organisation The organisation ID
|
|
40454
|
+
* @param {string} application The application ID
|
|
40455
|
+
* @param {string} instanceId The database instance identifier, as returned by the list
|
|
40456
|
+
* @param {*} [options] Override http request option.
|
|
40457
|
+
* @throws {RequiredError}
|
|
40458
|
+
*/
|
|
40459
|
+
async getApplicationDatabase(organisation: string, application: string, instanceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApplicationDatabase>> {
|
|
40460
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getApplicationDatabase(organisation, application, instanceId, options);
|
|
40461
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
40462
|
+
const localVarOperationServerBasePath = operationServerMap['ApplicationDatabaseApi.getApplicationDatabase']?.[localVarOperationServerIndex]?.url;
|
|
40463
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
40464
|
+
},
|
|
40465
|
+
/**
|
|
40466
|
+
* 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).
|
|
40467
|
+
* @summary Get the databases of an application
|
|
40468
|
+
* @param {string} organisation The organisation ID
|
|
40469
|
+
* @param {string} application The application ID
|
|
40470
|
+
* @param {*} [options] Override http request option.
|
|
40471
|
+
* @throws {RequiredError}
|
|
40472
|
+
*/
|
|
40473
|
+
async getApplicationDatabases(organisation: string, application: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApplicationDatabases>> {
|
|
40474
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getApplicationDatabases(organisation, application, options);
|
|
40475
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
40476
|
+
const localVarOperationServerBasePath = operationServerMap['ApplicationDatabaseApi.getApplicationDatabases']?.[localVarOperationServerIndex]?.url;
|
|
40477
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
40478
|
+
},
|
|
40479
|
+
/**
|
|
40480
|
+
* 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.
|
|
40481
|
+
* @summary Make a database the database of an application
|
|
40482
|
+
* @param {string} organisation The organisation ID
|
|
40483
|
+
* @param {string} application The application ID
|
|
40484
|
+
* @param {string} instanceId The database instance identifier
|
|
40485
|
+
* @param {*} [options] Override http request option.
|
|
40486
|
+
* @throws {RequiredError}
|
|
40487
|
+
*/
|
|
40488
|
+
async promoteApplicationDatabase(organisation: string, application: string, instanceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromoteApplicationDatabaseResponse>> {
|
|
40489
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.promoteApplicationDatabase(organisation, application, instanceId, options);
|
|
40490
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
40491
|
+
const localVarOperationServerBasePath = operationServerMap['ApplicationDatabaseApi.promoteApplicationDatabase']?.[localVarOperationServerIndex]?.url;
|
|
40492
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
40493
|
+
},
|
|
40494
|
+
/**
|
|
40495
|
+
* 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.
|
|
40496
|
+
* @summary Add a database to an application
|
|
40497
|
+
* @param {string} organisation The organisation ID
|
|
40498
|
+
* @param {string} application The application ID
|
|
40499
|
+
* @param {ProvisionApplicationDatabaseRequest} provisionApplicationDatabaseRequest
|
|
40500
|
+
* @param {*} [options] Override http request option.
|
|
40501
|
+
* @throws {RequiredError}
|
|
40502
|
+
*/
|
|
40503
|
+
async provisionApplicationDatabase(organisation: string, application: string, provisionApplicationDatabaseRequest: ProvisionApplicationDatabaseRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProvisionApplicationDatabaseAccepted>> {
|
|
40504
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.provisionApplicationDatabase(organisation, application, provisionApplicationDatabaseRequest, options);
|
|
40505
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
40506
|
+
const localVarOperationServerBasePath = operationServerMap['ApplicationDatabaseApi.provisionApplicationDatabase']?.[localVarOperationServerIndex]?.url;
|
|
40507
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
40508
|
+
},
|
|
40509
|
+
/**
|
|
40510
|
+
* 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.
|
|
40511
|
+
* @summary Resize a database of an application
|
|
40512
|
+
* @param {string} organisation The organisation ID
|
|
40513
|
+
* @param {string} application The application ID
|
|
40514
|
+
* @param {string} instanceId The database instance identifier
|
|
40515
|
+
* @param {ResizeApplicationDatabaseRequest} resizeApplicationDatabaseRequest
|
|
40516
|
+
* @param {*} [options] Override http request option.
|
|
40517
|
+
* @throws {RequiredError}
|
|
40518
|
+
*/
|
|
40519
|
+
async resizeApplicationDatabase(organisation: string, application: string, instanceId: string, resizeApplicationDatabaseRequest: ResizeApplicationDatabaseRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ResizeApplicationDatabaseResponse>> {
|
|
40520
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.resizeApplicationDatabase(organisation, application, instanceId, resizeApplicationDatabaseRequest, options);
|
|
40521
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
40522
|
+
const localVarOperationServerBasePath = operationServerMap['ApplicationDatabaseApi.resizeApplicationDatabase']?.[localVarOperationServerIndex]?.url;
|
|
40523
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
40524
|
+
},
|
|
40525
|
+
}
|
|
40526
|
+
};
|
|
40527
|
+
|
|
40528
|
+
/**
|
|
40529
|
+
* ApplicationDatabaseApi - factory interface
|
|
40530
|
+
* @export
|
|
40531
|
+
*/
|
|
40532
|
+
export const ApplicationDatabaseApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
40533
|
+
const localVarFp = ApplicationDatabaseApiFp(configuration)
|
|
40534
|
+
return {
|
|
40535
|
+
/**
|
|
40536
|
+
* 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.
|
|
40537
|
+
* @summary Delete a database of an application
|
|
40538
|
+
* @param {string} organisation The organisation ID
|
|
40539
|
+
* @param {string} application The application ID
|
|
40540
|
+
* @param {string} instanceId The database instance identifier
|
|
40541
|
+
* @param {DeleteApplicationDatabaseRequest} deleteApplicationDatabaseRequest
|
|
40542
|
+
* @param {*} [options] Override http request option.
|
|
40543
|
+
* @throws {RequiredError}
|
|
40544
|
+
*/
|
|
40545
|
+
deleteApplicationDatabase(organisation: string, application: string, instanceId: string, deleteApplicationDatabaseRequest: DeleteApplicationDatabaseRequest, options?: RawAxiosRequestConfig): AxiosPromise<DeleteApplicationDatabaseResponse> {
|
|
40546
|
+
return localVarFp.deleteApplicationDatabase(organisation, application, instanceId, deleteApplicationDatabaseRequest, options).then((request) => request(axios, basePath));
|
|
40547
|
+
},
|
|
40548
|
+
/**
|
|
40549
|
+
* Poll this for a database being added: status is provisioning, ready or failed.
|
|
40550
|
+
* @summary Get one database of an application
|
|
40551
|
+
* @param {string} organisation The organisation ID
|
|
40552
|
+
* @param {string} application The application ID
|
|
40553
|
+
* @param {string} instanceId The database instance identifier, as returned by the list
|
|
40554
|
+
* @param {*} [options] Override http request option.
|
|
40555
|
+
* @throws {RequiredError}
|
|
40556
|
+
*/
|
|
40557
|
+
getApplicationDatabase(organisation: string, application: string, instanceId: string, options?: RawAxiosRequestConfig): AxiosPromise<ApplicationDatabase> {
|
|
40558
|
+
return localVarFp.getApplicationDatabase(organisation, application, instanceId, options).then((request) => request(axios, basePath));
|
|
40559
|
+
},
|
|
40560
|
+
/**
|
|
40561
|
+
* 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).
|
|
40562
|
+
* @summary Get the databases of an application
|
|
40563
|
+
* @param {string} organisation The organisation ID
|
|
40564
|
+
* @param {string} application The application ID
|
|
40565
|
+
* @param {*} [options] Override http request option.
|
|
40566
|
+
* @throws {RequiredError}
|
|
40567
|
+
*/
|
|
40568
|
+
getApplicationDatabases(organisation: string, application: string, options?: RawAxiosRequestConfig): AxiosPromise<ApplicationDatabases> {
|
|
40569
|
+
return localVarFp.getApplicationDatabases(organisation, application, options).then((request) => request(axios, basePath));
|
|
40570
|
+
},
|
|
40571
|
+
/**
|
|
40572
|
+
* 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.
|
|
40573
|
+
* @summary Make a database the database of an application
|
|
40574
|
+
* @param {string} organisation The organisation ID
|
|
40575
|
+
* @param {string} application The application ID
|
|
40576
|
+
* @param {string} instanceId The database instance identifier
|
|
40577
|
+
* @param {*} [options] Override http request option.
|
|
40578
|
+
* @throws {RequiredError}
|
|
40579
|
+
*/
|
|
40580
|
+
promoteApplicationDatabase(organisation: string, application: string, instanceId: string, options?: RawAxiosRequestConfig): AxiosPromise<PromoteApplicationDatabaseResponse> {
|
|
40581
|
+
return localVarFp.promoteApplicationDatabase(organisation, application, instanceId, options).then((request) => request(axios, basePath));
|
|
40582
|
+
},
|
|
40583
|
+
/**
|
|
40584
|
+
* 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.
|
|
40585
|
+
* @summary Add a database to an application
|
|
40586
|
+
* @param {string} organisation The organisation ID
|
|
40587
|
+
* @param {string} application The application ID
|
|
40588
|
+
* @param {ProvisionApplicationDatabaseRequest} provisionApplicationDatabaseRequest
|
|
40589
|
+
* @param {*} [options] Override http request option.
|
|
40590
|
+
* @throws {RequiredError}
|
|
40591
|
+
*/
|
|
40592
|
+
provisionApplicationDatabase(organisation: string, application: string, provisionApplicationDatabaseRequest: ProvisionApplicationDatabaseRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProvisionApplicationDatabaseAccepted> {
|
|
40593
|
+
return localVarFp.provisionApplicationDatabase(organisation, application, provisionApplicationDatabaseRequest, options).then((request) => request(axios, basePath));
|
|
40594
|
+
},
|
|
40595
|
+
/**
|
|
40596
|
+
* 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.
|
|
40597
|
+
* @summary Resize a database of an application
|
|
40598
|
+
* @param {string} organisation The organisation ID
|
|
40599
|
+
* @param {string} application The application ID
|
|
40600
|
+
* @param {string} instanceId The database instance identifier
|
|
40601
|
+
* @param {ResizeApplicationDatabaseRequest} resizeApplicationDatabaseRequest
|
|
40602
|
+
* @param {*} [options] Override http request option.
|
|
40603
|
+
* @throws {RequiredError}
|
|
40604
|
+
*/
|
|
40605
|
+
resizeApplicationDatabase(organisation: string, application: string, instanceId: string, resizeApplicationDatabaseRequest: ResizeApplicationDatabaseRequest, options?: RawAxiosRequestConfig): AxiosPromise<ResizeApplicationDatabaseResponse> {
|
|
40606
|
+
return localVarFp.resizeApplicationDatabase(organisation, application, instanceId, resizeApplicationDatabaseRequest, options).then((request) => request(axios, basePath));
|
|
40607
|
+
},
|
|
40608
|
+
};
|
|
40609
|
+
};
|
|
40610
|
+
|
|
40611
|
+
/**
|
|
40612
|
+
* ApplicationDatabaseApi - object-oriented interface
|
|
40613
|
+
* @export
|
|
40614
|
+
* @class ApplicationDatabaseApi
|
|
40615
|
+
* @extends {BaseAPI}
|
|
40616
|
+
*/
|
|
40617
|
+
export class ApplicationDatabaseApi extends BaseAPI {
|
|
40618
|
+
/**
|
|
40619
|
+
* 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.
|
|
40620
|
+
* @summary Delete a database of an application
|
|
40621
|
+
* @param {string} organisation The organisation ID
|
|
40622
|
+
* @param {string} application The application ID
|
|
40623
|
+
* @param {string} instanceId The database instance identifier
|
|
40624
|
+
* @param {DeleteApplicationDatabaseRequest} deleteApplicationDatabaseRequest
|
|
40625
|
+
* @param {*} [options] Override http request option.
|
|
40626
|
+
* @throws {RequiredError}
|
|
40627
|
+
* @memberof ApplicationDatabaseApi
|
|
40628
|
+
*/
|
|
40629
|
+
public deleteApplicationDatabase(organisation: string, application: string, instanceId: string, deleteApplicationDatabaseRequest: DeleteApplicationDatabaseRequest, options?: RawAxiosRequestConfig) {
|
|
40630
|
+
return ApplicationDatabaseApiFp(this.configuration).deleteApplicationDatabase(organisation, application, instanceId, deleteApplicationDatabaseRequest, options).then((request) => request(this.axios, this.basePath));
|
|
40631
|
+
}
|
|
40632
|
+
|
|
40633
|
+
/**
|
|
40634
|
+
* Poll this for a database being added: status is provisioning, ready or failed.
|
|
40635
|
+
* @summary Get one database of an application
|
|
40636
|
+
* @param {string} organisation The organisation ID
|
|
40637
|
+
* @param {string} application The application ID
|
|
40638
|
+
* @param {string} instanceId The database instance identifier, as returned by the list
|
|
40639
|
+
* @param {*} [options] Override http request option.
|
|
40640
|
+
* @throws {RequiredError}
|
|
40641
|
+
* @memberof ApplicationDatabaseApi
|
|
40642
|
+
*/
|
|
40643
|
+
public getApplicationDatabase(organisation: string, application: string, instanceId: string, options?: RawAxiosRequestConfig) {
|
|
40644
|
+
return ApplicationDatabaseApiFp(this.configuration).getApplicationDatabase(organisation, application, instanceId, options).then((request) => request(this.axios, this.basePath));
|
|
40645
|
+
}
|
|
40646
|
+
|
|
40647
|
+
/**
|
|
40648
|
+
* 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).
|
|
40649
|
+
* @summary Get the databases of an application
|
|
40650
|
+
* @param {string} organisation The organisation ID
|
|
40651
|
+
* @param {string} application The application ID
|
|
40652
|
+
* @param {*} [options] Override http request option.
|
|
40653
|
+
* @throws {RequiredError}
|
|
40654
|
+
* @memberof ApplicationDatabaseApi
|
|
40655
|
+
*/
|
|
40656
|
+
public getApplicationDatabases(organisation: string, application: string, options?: RawAxiosRequestConfig) {
|
|
40657
|
+
return ApplicationDatabaseApiFp(this.configuration).getApplicationDatabases(organisation, application, options).then((request) => request(this.axios, this.basePath));
|
|
40658
|
+
}
|
|
40659
|
+
|
|
40660
|
+
/**
|
|
40661
|
+
* 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.
|
|
40662
|
+
* @summary Make a database the database of an application
|
|
40663
|
+
* @param {string} organisation The organisation ID
|
|
40664
|
+
* @param {string} application The application ID
|
|
40665
|
+
* @param {string} instanceId The database instance identifier
|
|
40666
|
+
* @param {*} [options] Override http request option.
|
|
40667
|
+
* @throws {RequiredError}
|
|
40668
|
+
* @memberof ApplicationDatabaseApi
|
|
40669
|
+
*/
|
|
40670
|
+
public promoteApplicationDatabase(organisation: string, application: string, instanceId: string, options?: RawAxiosRequestConfig) {
|
|
40671
|
+
return ApplicationDatabaseApiFp(this.configuration).promoteApplicationDatabase(organisation, application, instanceId, options).then((request) => request(this.axios, this.basePath));
|
|
40672
|
+
}
|
|
40673
|
+
|
|
40674
|
+
/**
|
|
40675
|
+
* 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.
|
|
40676
|
+
* @summary Add a database to an application
|
|
40677
|
+
* @param {string} organisation The organisation ID
|
|
40678
|
+
* @param {string} application The application ID
|
|
40679
|
+
* @param {ProvisionApplicationDatabaseRequest} provisionApplicationDatabaseRequest
|
|
40680
|
+
* @param {*} [options] Override http request option.
|
|
40681
|
+
* @throws {RequiredError}
|
|
40682
|
+
* @memberof ApplicationDatabaseApi
|
|
40683
|
+
*/
|
|
40684
|
+
public provisionApplicationDatabase(organisation: string, application: string, provisionApplicationDatabaseRequest: ProvisionApplicationDatabaseRequest, options?: RawAxiosRequestConfig) {
|
|
40685
|
+
return ApplicationDatabaseApiFp(this.configuration).provisionApplicationDatabase(organisation, application, provisionApplicationDatabaseRequest, options).then((request) => request(this.axios, this.basePath));
|
|
40686
|
+
}
|
|
40687
|
+
|
|
40688
|
+
/**
|
|
40689
|
+
* 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.
|
|
40690
|
+
* @summary Resize a database of an application
|
|
40691
|
+
* @param {string} organisation The organisation ID
|
|
40692
|
+
* @param {string} application The application ID
|
|
40693
|
+
* @param {string} instanceId The database instance identifier
|
|
40694
|
+
* @param {ResizeApplicationDatabaseRequest} resizeApplicationDatabaseRequest
|
|
40695
|
+
* @param {*} [options] Override http request option.
|
|
40696
|
+
* @throws {RequiredError}
|
|
40697
|
+
* @memberof ApplicationDatabaseApi
|
|
40698
|
+
*/
|
|
40699
|
+
public resizeApplicationDatabase(organisation: string, application: string, instanceId: string, resizeApplicationDatabaseRequest: ResizeApplicationDatabaseRequest, options?: RawAxiosRequestConfig) {
|
|
40700
|
+
return ApplicationDatabaseApiFp(this.configuration).resizeApplicationDatabase(organisation, application, instanceId, resizeApplicationDatabaseRequest, options).then((request) => request(this.axios, this.basePath));
|
|
40701
|
+
}
|
|
40702
|
+
}
|
|
40703
|
+
|
|
40704
|
+
|
|
40705
|
+
|
|
39450
40706
|
/**
|
|
39451
40707
|
* ApplicationsApi - axios parameter creator
|
|
39452
40708
|
* @export
|
|
@@ -46243,7 +47499,7 @@ export type SyncToEnvironmentTypeEnum = typeof SyncToEnvironmentTypeEnum[keyof t
|
|
|
46243
47499
|
export const HeadersApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
46244
47500
|
return {
|
|
46245
47501
|
/**
|
|
46246
|
-
*
|
|
47502
|
+
* Replaces the custom headers of the project. On a project that Security > CSP manages, the CSP header names in the request are ignored and their stored values stay; the response header X-Quant-Warning then names them. The status is still 200.
|
|
46247
47503
|
* @summary Create or update custom headers
|
|
46248
47504
|
* @param {string} organization Organization identifier
|
|
46249
47505
|
* @param {string} project Project identifier
|
|
@@ -46391,7 +47647,7 @@ export const HeadersApiFp = function(configuration?: Configuration) {
|
|
|
46391
47647
|
const localVarAxiosParamCreator = HeadersApiAxiosParamCreator(configuration)
|
|
46392
47648
|
return {
|
|
46393
47649
|
/**
|
|
46394
|
-
*
|
|
47650
|
+
* Replaces the custom headers of the project. On a project that Security > CSP manages, the CSP header names in the request are ignored and their stored values stay; the response header X-Quant-Warning then names them. The status is still 200.
|
|
46395
47651
|
* @summary Create or update custom headers
|
|
46396
47652
|
* @param {string} organization Organization identifier
|
|
46397
47653
|
* @param {string} project Project identifier
|
|
@@ -46445,7 +47701,7 @@ export const HeadersApiFactory = function (configuration?: Configuration, basePa
|
|
|
46445
47701
|
const localVarFp = HeadersApiFp(configuration)
|
|
46446
47702
|
return {
|
|
46447
47703
|
/**
|
|
46448
|
-
*
|
|
47704
|
+
* Replaces the custom headers of the project. On a project that Security > CSP manages, the CSP header names in the request are ignored and their stored values stay; the response header X-Quant-Warning then names them. The status is still 200.
|
|
46449
47705
|
* @summary Create or update custom headers
|
|
46450
47706
|
* @param {string} organization Organization identifier
|
|
46451
47707
|
* @param {string} project Project identifier
|
|
@@ -46490,7 +47746,7 @@ export const HeadersApiFactory = function (configuration?: Configuration, basePa
|
|
|
46490
47746
|
*/
|
|
46491
47747
|
export class HeadersApi extends BaseAPI {
|
|
46492
47748
|
/**
|
|
46493
|
-
*
|
|
47749
|
+
* Replaces the custom headers of the project. On a project that Security > CSP manages, the CSP header names in the request are ignored and their stored values stay; the response header X-Quant-Warning then names them. The status is still 200.
|
|
46494
47750
|
* @summary Create or update custom headers
|
|
46495
47751
|
* @param {string} organization Organization identifier
|
|
46496
47752
|
* @param {string} project Project identifier
|