@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/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.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1198,6 +1198,291 @@ export const ApplicationDatabaseRdsInstanceEngineEnum = {
|
|
|
1198
1198
|
|
|
1199
1199
|
export type ApplicationDatabaseRdsInstanceEngineEnum = typeof ApplicationDatabaseRdsInstanceEngineEnum[keyof typeof ApplicationDatabaseRdsInstanceEngineEnum];
|
|
1200
1200
|
|
|
1201
|
+
/**
|
|
1202
|
+
*
|
|
1203
|
+
* @export
|
|
1204
|
+
* @interface ApplicationDatabaseError
|
|
1205
|
+
*/
|
|
1206
|
+
export interface ApplicationDatabaseError {
|
|
1207
|
+
/**
|
|
1208
|
+
*
|
|
1209
|
+
* @type {string}
|
|
1210
|
+
* @memberof ApplicationDatabaseError
|
|
1211
|
+
*/
|
|
1212
|
+
'message'?: string;
|
|
1213
|
+
/**
|
|
1214
|
+
* 409 only: the operation that holds the application\'s lock.
|
|
1215
|
+
* @type {string}
|
|
1216
|
+
* @memberof ApplicationDatabaseError
|
|
1217
|
+
*/
|
|
1218
|
+
'operation'?: ApplicationDatabaseErrorOperationEnum;
|
|
1219
|
+
/**
|
|
1220
|
+
* 409 only: the operation that was refused.
|
|
1221
|
+
* @type {string}
|
|
1222
|
+
* @memberof ApplicationDatabaseError
|
|
1223
|
+
*/
|
|
1224
|
+
'requested'?: ApplicationDatabaseErrorRequestedEnum;
|
|
1225
|
+
/**
|
|
1226
|
+
* 409 only: the pending or previous database that blocks the request, or the provision in flight.
|
|
1227
|
+
* @type {string}
|
|
1228
|
+
* @memberof ApplicationDatabaseError
|
|
1229
|
+
*/
|
|
1230
|
+
'instanceId'?: string;
|
|
1231
|
+
/**
|
|
1232
|
+
* 409 only: for a provision in flight, the path to poll on the platform (this API serves it at the database route).
|
|
1233
|
+
* @type {string}
|
|
1234
|
+
* @memberof ApplicationDatabaseError
|
|
1235
|
+
*/
|
|
1236
|
+
'statusUrl'?: string;
|
|
1237
|
+
/**
|
|
1238
|
+
* Promote 409 only: the environments that have no user, or unreadable credentials, on the instance.
|
|
1239
|
+
* @type {Array<string>}
|
|
1240
|
+
* @memberof ApplicationDatabaseError
|
|
1241
|
+
*/
|
|
1242
|
+
'environments'?: Array<string>;
|
|
1243
|
+
/**
|
|
1244
|
+
* Delete 500 only: what could not be cleaned up.
|
|
1245
|
+
* @type {Array<string>}
|
|
1246
|
+
* @memberof ApplicationDatabaseError
|
|
1247
|
+
*/
|
|
1248
|
+
'errors'?: Array<string>;
|
|
1249
|
+
}
|
|
1250
|
+
|
|
1251
|
+
export const ApplicationDatabaseErrorOperationEnum = {
|
|
1252
|
+
Provision: 'provision',
|
|
1253
|
+
Promote: 'promote',
|
|
1254
|
+
Delete: 'delete'
|
|
1255
|
+
} as const;
|
|
1256
|
+
|
|
1257
|
+
export type ApplicationDatabaseErrorOperationEnum = typeof ApplicationDatabaseErrorOperationEnum[keyof typeof ApplicationDatabaseErrorOperationEnum];
|
|
1258
|
+
export const ApplicationDatabaseErrorRequestedEnum = {
|
|
1259
|
+
Provision: 'provision',
|
|
1260
|
+
Promote: 'promote',
|
|
1261
|
+
Delete: 'delete'
|
|
1262
|
+
} as const;
|
|
1263
|
+
|
|
1264
|
+
export type ApplicationDatabaseErrorRequestedEnum = typeof ApplicationDatabaseErrorRequestedEnum[keyof typeof ApplicationDatabaseErrorRequestedEnum];
|
|
1265
|
+
|
|
1266
|
+
/**
|
|
1267
|
+
*
|
|
1268
|
+
* @export
|
|
1269
|
+
* @interface ApplicationDatabaseInstance
|
|
1270
|
+
*/
|
|
1271
|
+
export interface ApplicationDatabaseInstance {
|
|
1272
|
+
/**
|
|
1273
|
+
*
|
|
1274
|
+
* @type {string}
|
|
1275
|
+
* @memberof ApplicationDatabaseInstance
|
|
1276
|
+
*/
|
|
1277
|
+
'instanceId'?: string;
|
|
1278
|
+
/**
|
|
1279
|
+
*
|
|
1280
|
+
* @type {string}
|
|
1281
|
+
* @memberof ApplicationDatabaseInstance
|
|
1282
|
+
*/
|
|
1283
|
+
'role'?: ApplicationDatabaseInstanceRoleEnum;
|
|
1284
|
+
/**
|
|
1285
|
+
* Poll this for a database being added.
|
|
1286
|
+
* @type {string}
|
|
1287
|
+
* @memberof ApplicationDatabaseInstance
|
|
1288
|
+
*/
|
|
1289
|
+
'status'?: ApplicationDatabaseInstanceStatusEnum;
|
|
1290
|
+
/**
|
|
1291
|
+
* Why a database failed.
|
|
1292
|
+
* @type {string}
|
|
1293
|
+
* @memberof ApplicationDatabaseInstance
|
|
1294
|
+
*/
|
|
1295
|
+
'statusMessage'?: string;
|
|
1296
|
+
/**
|
|
1297
|
+
*
|
|
1298
|
+
* @type {string}
|
|
1299
|
+
* @memberof ApplicationDatabaseInstance
|
|
1300
|
+
*/
|
|
1301
|
+
'engine'?: ApplicationDatabaseInstanceEngineEnum;
|
|
1302
|
+
/**
|
|
1303
|
+
* The live instance status. Absent when it could not be read.
|
|
1304
|
+
* @type {string}
|
|
1305
|
+
* @memberof ApplicationDatabaseInstance
|
|
1306
|
+
*/
|
|
1307
|
+
'rdsStatus'?: string;
|
|
1308
|
+
/**
|
|
1309
|
+
*
|
|
1310
|
+
* @type {string}
|
|
1311
|
+
* @memberof ApplicationDatabaseInstance
|
|
1312
|
+
*/
|
|
1313
|
+
'endpoint'?: string;
|
|
1314
|
+
/**
|
|
1315
|
+
*
|
|
1316
|
+
* @type {number}
|
|
1317
|
+
* @memberof ApplicationDatabaseInstance
|
|
1318
|
+
*/
|
|
1319
|
+
'port'?: number;
|
|
1320
|
+
/**
|
|
1321
|
+
*
|
|
1322
|
+
* @type {string}
|
|
1323
|
+
* @memberof ApplicationDatabaseInstance
|
|
1324
|
+
*/
|
|
1325
|
+
'instanceClass'?: string;
|
|
1326
|
+
/**
|
|
1327
|
+
*
|
|
1328
|
+
* @type {number}
|
|
1329
|
+
* @memberof ApplicationDatabaseInstance
|
|
1330
|
+
*/
|
|
1331
|
+
'storageGb'?: number;
|
|
1332
|
+
/**
|
|
1333
|
+
*
|
|
1334
|
+
* @type {boolean}
|
|
1335
|
+
* @memberof ApplicationDatabaseInstance
|
|
1336
|
+
*/
|
|
1337
|
+
'multiAz'?: boolean;
|
|
1338
|
+
/**
|
|
1339
|
+
*
|
|
1340
|
+
* @type {ApplicationDatabaseInstancePendingModifications}
|
|
1341
|
+
* @memberof ApplicationDatabaseInstance
|
|
1342
|
+
*/
|
|
1343
|
+
'pendingModifications'?: ApplicationDatabaseInstancePendingModifications;
|
|
1344
|
+
/**
|
|
1345
|
+
* Unix epoch milliseconds.
|
|
1346
|
+
* @type {number}
|
|
1347
|
+
* @memberof ApplicationDatabaseInstance
|
|
1348
|
+
*/
|
|
1349
|
+
'createdAt'?: number;
|
|
1350
|
+
/**
|
|
1351
|
+
* previous only: when it stopped being the active database.
|
|
1352
|
+
* @type {number}
|
|
1353
|
+
* @memberof ApplicationDatabaseInstance
|
|
1354
|
+
*/
|
|
1355
|
+
'retiredAt'?: number;
|
|
1356
|
+
/**
|
|
1357
|
+
* next only: the environments that have a user on this instance.
|
|
1358
|
+
* @type {Array<string>}
|
|
1359
|
+
* @memberof ApplicationDatabaseInstance
|
|
1360
|
+
*/
|
|
1361
|
+
'environments'?: Array<string>;
|
|
1362
|
+
/**
|
|
1363
|
+
* next only: the names of the secrets that hold each environment\'s credentials for this instance. Names, never values.
|
|
1364
|
+
* @type {Array<ApplicationDatabaseInstanceEnvironmentCredentialsSecretsInner>}
|
|
1365
|
+
* @memberof ApplicationDatabaseInstance
|
|
1366
|
+
*/
|
|
1367
|
+
'environmentCredentialsSecrets'?: Array<ApplicationDatabaseInstanceEnvironmentCredentialsSecretsInner>;
|
|
1368
|
+
/**
|
|
1369
|
+
* next only: DB_NEXT_HOST, DB_NEXT_PORT, DB_NEXT_DATABASE, DB_NEXT_ENGINE.
|
|
1370
|
+
* @type {Array<string>}
|
|
1371
|
+
* @memberof ApplicationDatabaseInstance
|
|
1372
|
+
*/
|
|
1373
|
+
'environmentVariables'?: Array<string>;
|
|
1374
|
+
/**
|
|
1375
|
+
* next only: DB_NEXT_USERNAME and DB_NEXT_PASSWORD, secret references to the per-environment secrets above. Never values.
|
|
1376
|
+
* @type {Array<string>}
|
|
1377
|
+
* @memberof ApplicationDatabaseInstance
|
|
1378
|
+
*/
|
|
1379
|
+
'environmentSecretReferences'?: Array<string>;
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1382
|
+
export const ApplicationDatabaseInstanceRoleEnum = {
|
|
1383
|
+
Active: 'active',
|
|
1384
|
+
Next: 'next',
|
|
1385
|
+
Previous: 'previous'
|
|
1386
|
+
} as const;
|
|
1387
|
+
|
|
1388
|
+
export type ApplicationDatabaseInstanceRoleEnum = typeof ApplicationDatabaseInstanceRoleEnum[keyof typeof ApplicationDatabaseInstanceRoleEnum];
|
|
1389
|
+
export const ApplicationDatabaseInstanceStatusEnum = {
|
|
1390
|
+
Active: 'active',
|
|
1391
|
+
Provisioning: 'provisioning',
|
|
1392
|
+
Ready: 'ready',
|
|
1393
|
+
Failed: 'failed',
|
|
1394
|
+
Previous: 'previous'
|
|
1395
|
+
} as const;
|
|
1396
|
+
|
|
1397
|
+
export type ApplicationDatabaseInstanceStatusEnum = typeof ApplicationDatabaseInstanceStatusEnum[keyof typeof ApplicationDatabaseInstanceStatusEnum];
|
|
1398
|
+
export const ApplicationDatabaseInstanceEngineEnum = {
|
|
1399
|
+
Mysql: 'mysql',
|
|
1400
|
+
Postgres: 'postgres'
|
|
1401
|
+
} as const;
|
|
1402
|
+
|
|
1403
|
+
export type ApplicationDatabaseInstanceEngineEnum = typeof ApplicationDatabaseInstanceEngineEnum[keyof typeof ApplicationDatabaseInstanceEngineEnum];
|
|
1404
|
+
|
|
1405
|
+
/**
|
|
1406
|
+
*
|
|
1407
|
+
* @export
|
|
1408
|
+
* @interface ApplicationDatabaseInstanceEnvironmentCredentialsSecretsInner
|
|
1409
|
+
*/
|
|
1410
|
+
export interface ApplicationDatabaseInstanceEnvironmentCredentialsSecretsInner {
|
|
1411
|
+
/**
|
|
1412
|
+
*
|
|
1413
|
+
* @type {string}
|
|
1414
|
+
* @memberof ApplicationDatabaseInstanceEnvironmentCredentialsSecretsInner
|
|
1415
|
+
*/
|
|
1416
|
+
'environment'?: string;
|
|
1417
|
+
/**
|
|
1418
|
+
*
|
|
1419
|
+
* @type {string}
|
|
1420
|
+
* @memberof ApplicationDatabaseInstanceEnvironmentCredentialsSecretsInner
|
|
1421
|
+
*/
|
|
1422
|
+
'secretName'?: string;
|
|
1423
|
+
}
|
|
1424
|
+
/**
|
|
1425
|
+
* A resize RDS has accepted but not applied yet. Absent when there is none.
|
|
1426
|
+
* @export
|
|
1427
|
+
* @interface ApplicationDatabaseInstancePendingModifications
|
|
1428
|
+
*/
|
|
1429
|
+
export interface ApplicationDatabaseInstancePendingModifications {
|
|
1430
|
+
/**
|
|
1431
|
+
*
|
|
1432
|
+
* @type {string}
|
|
1433
|
+
* @memberof ApplicationDatabaseInstancePendingModifications
|
|
1434
|
+
*/
|
|
1435
|
+
'instanceClass'?: string;
|
|
1436
|
+
/**
|
|
1437
|
+
*
|
|
1438
|
+
* @type {number}
|
|
1439
|
+
* @memberof ApplicationDatabaseInstancePendingModifications
|
|
1440
|
+
*/
|
|
1441
|
+
'storageGb'?: number;
|
|
1442
|
+
/**
|
|
1443
|
+
*
|
|
1444
|
+
* @type {boolean}
|
|
1445
|
+
* @memberof ApplicationDatabaseInstancePendingModifications
|
|
1446
|
+
*/
|
|
1447
|
+
'multiAz'?: boolean;
|
|
1448
|
+
}
|
|
1449
|
+
/**
|
|
1450
|
+
*
|
|
1451
|
+
* @export
|
|
1452
|
+
* @interface ApplicationDatabases
|
|
1453
|
+
*/
|
|
1454
|
+
export interface ApplicationDatabases {
|
|
1455
|
+
/**
|
|
1456
|
+
*
|
|
1457
|
+
* @type {string}
|
|
1458
|
+
* @memberof ApplicationDatabases
|
|
1459
|
+
*/
|
|
1460
|
+
'orgName'?: string;
|
|
1461
|
+
/**
|
|
1462
|
+
*
|
|
1463
|
+
* @type {string}
|
|
1464
|
+
* @memberof ApplicationDatabases
|
|
1465
|
+
*/
|
|
1466
|
+
'appName'?: string;
|
|
1467
|
+
/**
|
|
1468
|
+
*
|
|
1469
|
+
* @type {ApplicationDatabaseInstance}
|
|
1470
|
+
* @memberof ApplicationDatabases
|
|
1471
|
+
*/
|
|
1472
|
+
'active'?: ApplicationDatabaseInstance | null;
|
|
1473
|
+
/**
|
|
1474
|
+
*
|
|
1475
|
+
* @type {ApplicationDatabaseInstance}
|
|
1476
|
+
* @memberof ApplicationDatabases
|
|
1477
|
+
*/
|
|
1478
|
+
'next'?: ApplicationDatabaseInstance | null;
|
|
1479
|
+
/**
|
|
1480
|
+
*
|
|
1481
|
+
* @type {ApplicationDatabaseInstance}
|
|
1482
|
+
* @memberof ApplicationDatabases
|
|
1483
|
+
*/
|
|
1484
|
+
'previous'?: ApplicationDatabaseInstance | null;
|
|
1485
|
+
}
|
|
1201
1486
|
/**
|
|
1202
1487
|
*
|
|
1203
1488
|
* @export
|
|
@@ -4253,6 +4538,44 @@ export interface CreateEnvironmentRequest {
|
|
|
4253
4538
|
* @memberof CreateEnvironmentRequest
|
|
4254
4539
|
*/
|
|
4255
4540
|
'mergeEnvironment'?: boolean;
|
|
4541
|
+
/**
|
|
4542
|
+
*
|
|
4543
|
+
* @type {CreateEnvironmentRequestDatabase}
|
|
4544
|
+
* @memberof CreateEnvironmentRequest
|
|
4545
|
+
*/
|
|
4546
|
+
'database'?: CreateEnvironmentRequestDatabase | null;
|
|
4547
|
+
}
|
|
4548
|
+
/**
|
|
4549
|
+
* Optional database settings for the new environment
|
|
4550
|
+
* @export
|
|
4551
|
+
* @interface CreateEnvironmentRequestDatabase
|
|
4552
|
+
*/
|
|
4553
|
+
export interface CreateEnvironmentRequestDatabase {
|
|
4554
|
+
/**
|
|
4555
|
+
*
|
|
4556
|
+
* @type {CreateEnvironmentRequestDatabaseCopyFrom}
|
|
4557
|
+
* @memberof CreateEnvironmentRequestDatabase
|
|
4558
|
+
*/
|
|
4559
|
+
'copyFrom'?: CreateEnvironmentRequestDatabaseCopyFrom | null;
|
|
4560
|
+
}
|
|
4561
|
+
/**
|
|
4562
|
+
* Optional. Copy an existing environment\'s database into the new environment\'s database. The copy is a database sync that starts once the new database exists; follow it with GET .../sync/database. Needs the trigger_sync permission (and trigger_prod_sync with a write token when the new environment is production), else 403.
|
|
4563
|
+
* @export
|
|
4564
|
+
* @interface CreateEnvironmentRequestDatabaseCopyFrom
|
|
4565
|
+
*/
|
|
4566
|
+
export interface CreateEnvironmentRequestDatabaseCopyFrom {
|
|
4567
|
+
/**
|
|
4568
|
+
* The environment to copy the database from. Must exist and must not be the new environment.
|
|
4569
|
+
* @type {string}
|
|
4570
|
+
* @memberof CreateEnvironmentRequestDatabaseCopyFrom
|
|
4571
|
+
*/
|
|
4572
|
+
'sourceEnvironment': string;
|
|
4573
|
+
/**
|
|
4574
|
+
* Optional. Base64 MTK YAML, as the database sync endpoint takes.
|
|
4575
|
+
* @type {string}
|
|
4576
|
+
* @memberof CreateEnvironmentRequestDatabaseCopyFrom
|
|
4577
|
+
*/
|
|
4578
|
+
'mtkConfig'?: string;
|
|
4256
4579
|
}
|
|
4257
4580
|
/**
|
|
4258
4581
|
*
|
|
@@ -5517,6 +5840,70 @@ export interface DeleteAgentOverlay200Response {
|
|
|
5517
5840
|
*/
|
|
5518
5841
|
'message'?: string;
|
|
5519
5842
|
}
|
|
5843
|
+
/**
|
|
5844
|
+
*
|
|
5845
|
+
* @export
|
|
5846
|
+
* @interface DeleteApplicationDatabaseRequest
|
|
5847
|
+
*/
|
|
5848
|
+
export interface DeleteApplicationDatabaseRequest {
|
|
5849
|
+
/**
|
|
5850
|
+
* Must be true: the database and its automated backups are deleted with no final snapshot.
|
|
5851
|
+
* @type {boolean}
|
|
5852
|
+
* @memberof DeleteApplicationDatabaseRequest
|
|
5853
|
+
*/
|
|
5854
|
+
'acknowledgeDataloss': boolean;
|
|
5855
|
+
}
|
|
5856
|
+
/**
|
|
5857
|
+
*
|
|
5858
|
+
* @export
|
|
5859
|
+
* @interface DeleteApplicationDatabaseResponse
|
|
5860
|
+
*/
|
|
5861
|
+
export interface DeleteApplicationDatabaseResponse {
|
|
5862
|
+
/**
|
|
5863
|
+
*
|
|
5864
|
+
* @type {string}
|
|
5865
|
+
* @memberof DeleteApplicationDatabaseResponse
|
|
5866
|
+
*/
|
|
5867
|
+
'message'?: string;
|
|
5868
|
+
/**
|
|
5869
|
+
*
|
|
5870
|
+
* @type {string}
|
|
5871
|
+
* @memberof DeleteApplicationDatabaseResponse
|
|
5872
|
+
*/
|
|
5873
|
+
'orgName'?: string;
|
|
5874
|
+
/**
|
|
5875
|
+
*
|
|
5876
|
+
* @type {string}
|
|
5877
|
+
* @memberof DeleteApplicationDatabaseResponse
|
|
5878
|
+
*/
|
|
5879
|
+
'appName'?: string;
|
|
5880
|
+
/**
|
|
5881
|
+
*
|
|
5882
|
+
* @type {string}
|
|
5883
|
+
* @memberof DeleteApplicationDatabaseResponse
|
|
5884
|
+
*/
|
|
5885
|
+
'instanceId'?: string;
|
|
5886
|
+
/**
|
|
5887
|
+
*
|
|
5888
|
+
* @type {string}
|
|
5889
|
+
* @memberof DeleteApplicationDatabaseResponse
|
|
5890
|
+
*/
|
|
5891
|
+
'status'?: DeleteApplicationDatabaseResponseStatusEnum;
|
|
5892
|
+
/**
|
|
5893
|
+
* No final snapshot was taken.
|
|
5894
|
+
* @type {string}
|
|
5895
|
+
* @memberof DeleteApplicationDatabaseResponse
|
|
5896
|
+
*/
|
|
5897
|
+
'note'?: string;
|
|
5898
|
+
}
|
|
5899
|
+
|
|
5900
|
+
export const DeleteApplicationDatabaseResponseStatusEnum = {
|
|
5901
|
+
Deleting: 'deleting',
|
|
5902
|
+
Deleted: 'deleted'
|
|
5903
|
+
} as const;
|
|
5904
|
+
|
|
5905
|
+
export type DeleteApplicationDatabaseResponseStatusEnum = typeof DeleteApplicationDatabaseResponseStatusEnum[keyof typeof DeleteApplicationDatabaseResponseStatusEnum];
|
|
5906
|
+
|
|
5520
5907
|
/**
|
|
5521
5908
|
*
|
|
5522
5909
|
* @export
|
|
@@ -11927,6 +12314,241 @@ export const ProjectsDelete503ResponseCodeEnum = {
|
|
|
11927
12314
|
|
|
11928
12315
|
export type ProjectsDelete503ResponseCodeEnum = typeof ProjectsDelete503ResponseCodeEnum[keyof typeof ProjectsDelete503ResponseCodeEnum];
|
|
11929
12316
|
|
|
12317
|
+
/**
|
|
12318
|
+
*
|
|
12319
|
+
* @export
|
|
12320
|
+
* @interface PromoteApplicationDatabaseResponse
|
|
12321
|
+
*/
|
|
12322
|
+
export interface PromoteApplicationDatabaseResponse {
|
|
12323
|
+
/**
|
|
12324
|
+
*
|
|
12325
|
+
* @type {string}
|
|
12326
|
+
* @memberof PromoteApplicationDatabaseResponse
|
|
12327
|
+
*/
|
|
12328
|
+
'message'?: string;
|
|
12329
|
+
/**
|
|
12330
|
+
*
|
|
12331
|
+
* @type {string}
|
|
12332
|
+
* @memberof PromoteApplicationDatabaseResponse
|
|
12333
|
+
*/
|
|
12334
|
+
'orgName'?: string;
|
|
12335
|
+
/**
|
|
12336
|
+
*
|
|
12337
|
+
* @type {string}
|
|
12338
|
+
* @memberof PromoteApplicationDatabaseResponse
|
|
12339
|
+
*/
|
|
12340
|
+
'appName'?: string;
|
|
12341
|
+
/**
|
|
12342
|
+
* The database now in use.
|
|
12343
|
+
* @type {string}
|
|
12344
|
+
* @memberof PromoteApplicationDatabaseResponse
|
|
12345
|
+
*/
|
|
12346
|
+
'active'?: string;
|
|
12347
|
+
/**
|
|
12348
|
+
* The database kept for rollback. Absent when there was none.
|
|
12349
|
+
* @type {string}
|
|
12350
|
+
* @memberof PromoteApplicationDatabaseResponse
|
|
12351
|
+
*/
|
|
12352
|
+
'previous'?: string;
|
|
12353
|
+
/**
|
|
12354
|
+
* Every environment that uses the database.
|
|
12355
|
+
* @type {Array<string>}
|
|
12356
|
+
* @memberof PromoteApplicationDatabaseResponse
|
|
12357
|
+
*/
|
|
12358
|
+
'environments'?: Array<string>;
|
|
12359
|
+
/**
|
|
12360
|
+
* Environments whose service was updated onto a new task definition revision with a forced new deployment.
|
|
12361
|
+
* @type {Array<string>}
|
|
12362
|
+
* @memberof PromoteApplicationDatabaseResponse
|
|
12363
|
+
*/
|
|
12364
|
+
'redeployed'?: Array<string>;
|
|
12365
|
+
/**
|
|
12366
|
+
* Environments whose redeploy did not fit the request\'s time budget and was queued. Not done yet; a failure is only logged.
|
|
12367
|
+
* @type {Array<string>}
|
|
12368
|
+
* @memberof PromoteApplicationDatabaseResponse
|
|
12369
|
+
*/
|
|
12370
|
+
'redeployQueued'?: Array<string>;
|
|
12371
|
+
/**
|
|
12372
|
+
* Environments whose redeploy could not be started. The switch is done; they still run the previous revision, which still works.
|
|
12373
|
+
* @type {Array<PromoteApplicationDatabaseResponseRedeployFailedInner>}
|
|
12374
|
+
* @memberof PromoteApplicationDatabaseResponse
|
|
12375
|
+
*/
|
|
12376
|
+
'redeployFailed'?: Array<PromoteApplicationDatabaseResponseRedeployFailedInner>;
|
|
12377
|
+
/**
|
|
12378
|
+
* Environments that needed no redeploy: already on the new revision, or without a running service.
|
|
12379
|
+
* @type {Array<string>}
|
|
12380
|
+
* @memberof PromoteApplicationDatabaseResponse
|
|
12381
|
+
*/
|
|
12382
|
+
'upToDate'?: Array<string>;
|
|
12383
|
+
/**
|
|
12384
|
+
* redeployFailed plus redeployQueued: the environments that still run the previous task definition.
|
|
12385
|
+
* @type {Array<string>}
|
|
12386
|
+
* @memberof PromoteApplicationDatabaseResponse
|
|
12387
|
+
*/
|
|
12388
|
+
'redeployRequired'?: Array<string>;
|
|
12389
|
+
/**
|
|
12390
|
+
* Environments whose variables could not be updated. Repeat the request.
|
|
12391
|
+
* @type {Array<string>}
|
|
12392
|
+
* @memberof PromoteApplicationDatabaseResponse
|
|
12393
|
+
*/
|
|
12394
|
+
'warnings'?: Array<string>;
|
|
12395
|
+
/**
|
|
12396
|
+
*
|
|
12397
|
+
* @type {string}
|
|
12398
|
+
* @memberof PromoteApplicationDatabaseResponse
|
|
12399
|
+
*/
|
|
12400
|
+
'note'?: string;
|
|
12401
|
+
}
|
|
12402
|
+
/**
|
|
12403
|
+
*
|
|
12404
|
+
* @export
|
|
12405
|
+
* @interface PromoteApplicationDatabaseResponseRedeployFailedInner
|
|
12406
|
+
*/
|
|
12407
|
+
export interface PromoteApplicationDatabaseResponseRedeployFailedInner {
|
|
12408
|
+
/**
|
|
12409
|
+
*
|
|
12410
|
+
* @type {string}
|
|
12411
|
+
* @memberof PromoteApplicationDatabaseResponseRedeployFailedInner
|
|
12412
|
+
*/
|
|
12413
|
+
'environment'?: string;
|
|
12414
|
+
/**
|
|
12415
|
+
* A short reason. Never a credential.
|
|
12416
|
+
* @type {string}
|
|
12417
|
+
* @memberof PromoteApplicationDatabaseResponseRedeployFailedInner
|
|
12418
|
+
*/
|
|
12419
|
+
'error'?: string;
|
|
12420
|
+
}
|
|
12421
|
+
/**
|
|
12422
|
+
*
|
|
12423
|
+
* @export
|
|
12424
|
+
* @interface ProvisionApplicationDatabaseAccepted
|
|
12425
|
+
*/
|
|
12426
|
+
export interface ProvisionApplicationDatabaseAccepted {
|
|
12427
|
+
/**
|
|
12428
|
+
*
|
|
12429
|
+
* @type {string}
|
|
12430
|
+
* @memberof ProvisionApplicationDatabaseAccepted
|
|
12431
|
+
*/
|
|
12432
|
+
'message'?: string;
|
|
12433
|
+
/**
|
|
12434
|
+
*
|
|
12435
|
+
* @type {string}
|
|
12436
|
+
* @memberof ProvisionApplicationDatabaseAccepted
|
|
12437
|
+
*/
|
|
12438
|
+
'orgName'?: string;
|
|
12439
|
+
/**
|
|
12440
|
+
*
|
|
12441
|
+
* @type {string}
|
|
12442
|
+
* @memberof ProvisionApplicationDatabaseAccepted
|
|
12443
|
+
*/
|
|
12444
|
+
'appName'?: string;
|
|
12445
|
+
/**
|
|
12446
|
+
*
|
|
12447
|
+
* @type {string}
|
|
12448
|
+
* @memberof ProvisionApplicationDatabaseAccepted
|
|
12449
|
+
*/
|
|
12450
|
+
'instanceId'?: string;
|
|
12451
|
+
/**
|
|
12452
|
+
*
|
|
12453
|
+
* @type {string}
|
|
12454
|
+
* @memberof ProvisionApplicationDatabaseAccepted
|
|
12455
|
+
*/
|
|
12456
|
+
'engine'?: ProvisionApplicationDatabaseAcceptedEngineEnum;
|
|
12457
|
+
/**
|
|
12458
|
+
*
|
|
12459
|
+
* @type {string}
|
|
12460
|
+
* @memberof ProvisionApplicationDatabaseAccepted
|
|
12461
|
+
*/
|
|
12462
|
+
'status'?: ProvisionApplicationDatabaseAcceptedStatusEnum;
|
|
12463
|
+
/**
|
|
12464
|
+
* The API path to poll.
|
|
12465
|
+
* @type {string}
|
|
12466
|
+
* @memberof ProvisionApplicationDatabaseAccepted
|
|
12467
|
+
*/
|
|
12468
|
+
'statusUrl'?: string;
|
|
12469
|
+
/**
|
|
12470
|
+
*
|
|
12471
|
+
* @type {Array<string>}
|
|
12472
|
+
* @memberof ProvisionApplicationDatabaseAccepted
|
|
12473
|
+
*/
|
|
12474
|
+
'environmentVariables'?: Array<string>;
|
|
12475
|
+
/**
|
|
12476
|
+
* DB_NEXT_USERNAME and DB_NEXT_PASSWORD: secret references into the new database\'s own credentials. Never values.
|
|
12477
|
+
* @type {Array<string>}
|
|
12478
|
+
* @memberof ProvisionApplicationDatabaseAccepted
|
|
12479
|
+
*/
|
|
12480
|
+
'environmentSecretReferences'?: Array<string>;
|
|
12481
|
+
/**
|
|
12482
|
+
*
|
|
12483
|
+
* @type {string}
|
|
12484
|
+
* @memberof ProvisionApplicationDatabaseAccepted
|
|
12485
|
+
*/
|
|
12486
|
+
'note'?: string;
|
|
12487
|
+
}
|
|
12488
|
+
|
|
12489
|
+
export const ProvisionApplicationDatabaseAcceptedEngineEnum = {
|
|
12490
|
+
Mysql: 'mysql',
|
|
12491
|
+
Postgres: 'postgres'
|
|
12492
|
+
} as const;
|
|
12493
|
+
|
|
12494
|
+
export type ProvisionApplicationDatabaseAcceptedEngineEnum = typeof ProvisionApplicationDatabaseAcceptedEngineEnum[keyof typeof ProvisionApplicationDatabaseAcceptedEngineEnum];
|
|
12495
|
+
export const ProvisionApplicationDatabaseAcceptedStatusEnum = {
|
|
12496
|
+
Provisioning: 'provisioning',
|
|
12497
|
+
Ready: 'ready',
|
|
12498
|
+
Failed: 'failed'
|
|
12499
|
+
} as const;
|
|
12500
|
+
|
|
12501
|
+
export type ProvisionApplicationDatabaseAcceptedStatusEnum = typeof ProvisionApplicationDatabaseAcceptedStatusEnum[keyof typeof ProvisionApplicationDatabaseAcceptedStatusEnum];
|
|
12502
|
+
|
|
12503
|
+
/**
|
|
12504
|
+
*
|
|
12505
|
+
* @export
|
|
12506
|
+
* @interface ProvisionApplicationDatabaseRequest
|
|
12507
|
+
*/
|
|
12508
|
+
export interface ProvisionApplicationDatabaseRequest {
|
|
12509
|
+
/**
|
|
12510
|
+
*
|
|
12511
|
+
* @type {string}
|
|
12512
|
+
* @memberof ProvisionApplicationDatabaseRequest
|
|
12513
|
+
*/
|
|
12514
|
+
'engine': ProvisionApplicationDatabaseRequestEngineEnum;
|
|
12515
|
+
/**
|
|
12516
|
+
*
|
|
12517
|
+
* @type {string}
|
|
12518
|
+
* @memberof ProvisionApplicationDatabaseRequest
|
|
12519
|
+
*/
|
|
12520
|
+
'instanceClass'?: ProvisionApplicationDatabaseRequestInstanceClassEnum;
|
|
12521
|
+
/**
|
|
12522
|
+
* Allocated storage in GiB. Storage autoscaling is on, up to 1000.
|
|
12523
|
+
* @type {number}
|
|
12524
|
+
* @memberof ProvisionApplicationDatabaseRequest
|
|
12525
|
+
*/
|
|
12526
|
+
'storageGb'?: number;
|
|
12527
|
+
/**
|
|
12528
|
+
*
|
|
12529
|
+
* @type {boolean}
|
|
12530
|
+
* @memberof ProvisionApplicationDatabaseRequest
|
|
12531
|
+
*/
|
|
12532
|
+
'multiAz'?: boolean;
|
|
12533
|
+
}
|
|
12534
|
+
|
|
12535
|
+
export const ProvisionApplicationDatabaseRequestEngineEnum = {
|
|
12536
|
+
Mysql: 'mysql',
|
|
12537
|
+
Postgres: 'postgres'
|
|
12538
|
+
} as const;
|
|
12539
|
+
|
|
12540
|
+
export type ProvisionApplicationDatabaseRequestEngineEnum = typeof ProvisionApplicationDatabaseRequestEngineEnum[keyof typeof ProvisionApplicationDatabaseRequestEngineEnum];
|
|
12541
|
+
export const ProvisionApplicationDatabaseRequestInstanceClassEnum = {
|
|
12542
|
+
DbT4gMicro: 'db.t4g.micro',
|
|
12543
|
+
DbT4gSmall: 'db.t4g.small',
|
|
12544
|
+
DbT4gMedium: 'db.t4g.medium',
|
|
12545
|
+
DbT4gLarge: 'db.t4g.large',
|
|
12546
|
+
DbT4gXlarge: 'db.t4g.xlarge',
|
|
12547
|
+
DbT4g2xlarge: 'db.t4g.2xlarge'
|
|
12548
|
+
} as const;
|
|
12549
|
+
|
|
12550
|
+
export type ProvisionApplicationDatabaseRequestInstanceClassEnum = typeof ProvisionApplicationDatabaseRequestInstanceClassEnum[keyof typeof ProvisionApplicationDatabaseRequestInstanceClassEnum];
|
|
12551
|
+
|
|
11930
12552
|
/**
|
|
11931
12553
|
*
|
|
11932
12554
|
* @export
|
|
@@ -12403,6 +13025,144 @@ export interface QueryVectorCollectionRequestFilter {
|
|
|
12403
13025
|
*/
|
|
12404
13026
|
'contains'?: { [key: string]: Array<string>; };
|
|
12405
13027
|
}
|
|
13028
|
+
/**
|
|
13029
|
+
* At least one of instanceClass, storageGb, multiAz.
|
|
13030
|
+
* @export
|
|
13031
|
+
* @interface ResizeApplicationDatabaseRequest
|
|
13032
|
+
*/
|
|
13033
|
+
export interface ResizeApplicationDatabaseRequest {
|
|
13034
|
+
/**
|
|
13035
|
+
*
|
|
13036
|
+
* @type {string}
|
|
13037
|
+
* @memberof ResizeApplicationDatabaseRequest
|
|
13038
|
+
*/
|
|
13039
|
+
'instanceClass'?: ResizeApplicationDatabaseRequestInstanceClassEnum;
|
|
13040
|
+
/**
|
|
13041
|
+
* Grows only, by at least 10 %.
|
|
13042
|
+
* @type {number}
|
|
13043
|
+
* @memberof ResizeApplicationDatabaseRequest
|
|
13044
|
+
*/
|
|
13045
|
+
'storageGb'?: number;
|
|
13046
|
+
/**
|
|
13047
|
+
*
|
|
13048
|
+
* @type {boolean}
|
|
13049
|
+
* @memberof ResizeApplicationDatabaseRequest
|
|
13050
|
+
*/
|
|
13051
|
+
'multiAz'?: boolean;
|
|
13052
|
+
/**
|
|
13053
|
+
* false: in the next maintenance window.
|
|
13054
|
+
* @type {boolean}
|
|
13055
|
+
* @memberof ResizeApplicationDatabaseRequest
|
|
13056
|
+
*/
|
|
13057
|
+
'applyImmediately'?: boolean;
|
|
13058
|
+
}
|
|
13059
|
+
|
|
13060
|
+
export const ResizeApplicationDatabaseRequestInstanceClassEnum = {
|
|
13061
|
+
DbT4gMicro: 'db.t4g.micro',
|
|
13062
|
+
DbT4gSmall: 'db.t4g.small',
|
|
13063
|
+
DbT4gMedium: 'db.t4g.medium',
|
|
13064
|
+
DbT4gLarge: 'db.t4g.large',
|
|
13065
|
+
DbT4gXlarge: 'db.t4g.xlarge',
|
|
13066
|
+
DbT4g2xlarge: 'db.t4g.2xlarge'
|
|
13067
|
+
} as const;
|
|
13068
|
+
|
|
13069
|
+
export type ResizeApplicationDatabaseRequestInstanceClassEnum = typeof ResizeApplicationDatabaseRequestInstanceClassEnum[keyof typeof ResizeApplicationDatabaseRequestInstanceClassEnum];
|
|
13070
|
+
|
|
13071
|
+
/**
|
|
13072
|
+
*
|
|
13073
|
+
* @export
|
|
13074
|
+
* @interface ResizeApplicationDatabaseResponse
|
|
13075
|
+
*/
|
|
13076
|
+
export interface ResizeApplicationDatabaseResponse {
|
|
13077
|
+
/**
|
|
13078
|
+
*
|
|
13079
|
+
* @type {string}
|
|
13080
|
+
* @memberof ResizeApplicationDatabaseResponse
|
|
13081
|
+
*/
|
|
13082
|
+
'message'?: string;
|
|
13083
|
+
/**
|
|
13084
|
+
*
|
|
13085
|
+
* @type {string}
|
|
13086
|
+
* @memberof ResizeApplicationDatabaseResponse
|
|
13087
|
+
*/
|
|
13088
|
+
'orgName'?: string;
|
|
13089
|
+
/**
|
|
13090
|
+
*
|
|
13091
|
+
* @type {string}
|
|
13092
|
+
* @memberof ResizeApplicationDatabaseResponse
|
|
13093
|
+
*/
|
|
13094
|
+
'appName'?: string;
|
|
13095
|
+
/**
|
|
13096
|
+
*
|
|
13097
|
+
* @type {string}
|
|
13098
|
+
* @memberof ResizeApplicationDatabaseResponse
|
|
13099
|
+
*/
|
|
13100
|
+
'instanceId'?: string;
|
|
13101
|
+
/**
|
|
13102
|
+
*
|
|
13103
|
+
* @type {string}
|
|
13104
|
+
* @memberof ResizeApplicationDatabaseResponse
|
|
13105
|
+
*/
|
|
13106
|
+
'role'?: ResizeApplicationDatabaseResponseRoleEnum;
|
|
13107
|
+
/**
|
|
13108
|
+
*
|
|
13109
|
+
* @type {boolean}
|
|
13110
|
+
* @memberof ResizeApplicationDatabaseResponse
|
|
13111
|
+
*/
|
|
13112
|
+
'applyImmediately'?: boolean;
|
|
13113
|
+
/**
|
|
13114
|
+
*
|
|
13115
|
+
* @type {ResizeApplicationDatabaseResponseChanges}
|
|
13116
|
+
* @memberof ResizeApplicationDatabaseResponse
|
|
13117
|
+
*/
|
|
13118
|
+
'changes'?: ResizeApplicationDatabaseResponseChanges;
|
|
13119
|
+
/**
|
|
13120
|
+
* The API path to poll.
|
|
13121
|
+
* @type {string}
|
|
13122
|
+
* @memberof ResizeApplicationDatabaseResponse
|
|
13123
|
+
*/
|
|
13124
|
+
'statusUrl'?: string;
|
|
13125
|
+
/**
|
|
13126
|
+
*
|
|
13127
|
+
* @type {string}
|
|
13128
|
+
* @memberof ResizeApplicationDatabaseResponse
|
|
13129
|
+
*/
|
|
13130
|
+
'note'?: string;
|
|
13131
|
+
}
|
|
13132
|
+
|
|
13133
|
+
export const ResizeApplicationDatabaseResponseRoleEnum = {
|
|
13134
|
+
Active: 'active',
|
|
13135
|
+
Next: 'next',
|
|
13136
|
+
Previous: 'previous'
|
|
13137
|
+
} as const;
|
|
13138
|
+
|
|
13139
|
+
export type ResizeApplicationDatabaseResponseRoleEnum = typeof ResizeApplicationDatabaseResponseRoleEnum[keyof typeof ResizeApplicationDatabaseResponseRoleEnum];
|
|
13140
|
+
|
|
13141
|
+
/**
|
|
13142
|
+
* The fields that change: only those that differ from the live instance.
|
|
13143
|
+
* @export
|
|
13144
|
+
* @interface ResizeApplicationDatabaseResponseChanges
|
|
13145
|
+
*/
|
|
13146
|
+
export interface ResizeApplicationDatabaseResponseChanges {
|
|
13147
|
+
/**
|
|
13148
|
+
*
|
|
13149
|
+
* @type {string}
|
|
13150
|
+
* @memberof ResizeApplicationDatabaseResponseChanges
|
|
13151
|
+
*/
|
|
13152
|
+
'instanceClass'?: string;
|
|
13153
|
+
/**
|
|
13154
|
+
*
|
|
13155
|
+
* @type {number}
|
|
13156
|
+
* @memberof ResizeApplicationDatabaseResponseChanges
|
|
13157
|
+
*/
|
|
13158
|
+
'storageGb'?: number;
|
|
13159
|
+
/**
|
|
13160
|
+
*
|
|
13161
|
+
* @type {boolean}
|
|
13162
|
+
* @memberof ResizeApplicationDatabaseResponseChanges
|
|
13163
|
+
*/
|
|
13164
|
+
'multiAz'?: boolean;
|
|
13165
|
+
}
|
|
12406
13166
|
/**
|
|
12407
13167
|
*
|
|
12408
13168
|
* @export
|
|
@@ -39546,6 +40306,580 @@ export class AlertChannelsApi extends BaseAPI {
|
|
|
39546
40306
|
|
|
39547
40307
|
|
|
39548
40308
|
|
|
40309
|
+
/**
|
|
40310
|
+
* ApplicationDatabaseApi - axios parameter creator
|
|
40311
|
+
* @export
|
|
40312
|
+
*/
|
|
40313
|
+
export const ApplicationDatabaseApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
40314
|
+
return {
|
|
40315
|
+
/**
|
|
40316
|
+
* 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.
|
|
40317
|
+
* @summary Delete a database of an application
|
|
40318
|
+
* @param {string} organisation The organisation ID
|
|
40319
|
+
* @param {string} application The application ID
|
|
40320
|
+
* @param {string} instanceId The database instance identifier
|
|
40321
|
+
* @param {DeleteApplicationDatabaseRequest} deleteApplicationDatabaseRequest
|
|
40322
|
+
* @param {*} [options] Override http request option.
|
|
40323
|
+
* @throws {RequiredError}
|
|
40324
|
+
*/
|
|
40325
|
+
deleteApplicationDatabase: async (organisation: string, application: string, instanceId: string, deleteApplicationDatabaseRequest: DeleteApplicationDatabaseRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
40326
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
40327
|
+
assertParamExists('deleteApplicationDatabase', 'organisation', organisation)
|
|
40328
|
+
// verify required parameter 'application' is not null or undefined
|
|
40329
|
+
assertParamExists('deleteApplicationDatabase', 'application', application)
|
|
40330
|
+
// verify required parameter 'instanceId' is not null or undefined
|
|
40331
|
+
assertParamExists('deleteApplicationDatabase', 'instanceId', instanceId)
|
|
40332
|
+
// verify required parameter 'deleteApplicationDatabaseRequest' is not null or undefined
|
|
40333
|
+
assertParamExists('deleteApplicationDatabase', 'deleteApplicationDatabaseRequest', deleteApplicationDatabaseRequest)
|
|
40334
|
+
const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/database/{instanceId}`
|
|
40335
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
40336
|
+
.replace(`{${"application"}}`, encodeURIComponent(String(application)))
|
|
40337
|
+
.replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)));
|
|
40338
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
40339
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
40340
|
+
let baseOptions;
|
|
40341
|
+
if (configuration) {
|
|
40342
|
+
baseOptions = configuration.baseOptions;
|
|
40343
|
+
}
|
|
40344
|
+
|
|
40345
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
40346
|
+
const localVarHeaderParameter = {} as any;
|
|
40347
|
+
const localVarQueryParameter = {} as any;
|
|
40348
|
+
|
|
40349
|
+
// authentication BearerAuth required
|
|
40350
|
+
// http bearer authentication required
|
|
40351
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
40352
|
+
|
|
40353
|
+
|
|
40354
|
+
|
|
40355
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
40356
|
+
|
|
40357
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
40358
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
40359
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
40360
|
+
localVarRequestOptions.data = serializeDataIfNeeded(deleteApplicationDatabaseRequest, localVarRequestOptions, configuration)
|
|
40361
|
+
|
|
40362
|
+
return {
|
|
40363
|
+
url: toPathString(localVarUrlObj),
|
|
40364
|
+
options: localVarRequestOptions,
|
|
40365
|
+
};
|
|
40366
|
+
},
|
|
40367
|
+
/**
|
|
40368
|
+
* Poll this for a database being added: status is provisioning, ready or failed.
|
|
40369
|
+
* @summary Get one database of an application
|
|
40370
|
+
* @param {string} organisation The organisation ID
|
|
40371
|
+
* @param {string} application The application ID
|
|
40372
|
+
* @param {string} instanceId The database instance identifier, as returned by the list
|
|
40373
|
+
* @param {*} [options] Override http request option.
|
|
40374
|
+
* @throws {RequiredError}
|
|
40375
|
+
*/
|
|
40376
|
+
getApplicationDatabase: async (organisation: string, application: string, instanceId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
40377
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
40378
|
+
assertParamExists('getApplicationDatabase', 'organisation', organisation)
|
|
40379
|
+
// verify required parameter 'application' is not null or undefined
|
|
40380
|
+
assertParamExists('getApplicationDatabase', 'application', application)
|
|
40381
|
+
// verify required parameter 'instanceId' is not null or undefined
|
|
40382
|
+
assertParamExists('getApplicationDatabase', 'instanceId', instanceId)
|
|
40383
|
+
const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/database/{instanceId}`
|
|
40384
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
40385
|
+
.replace(`{${"application"}}`, encodeURIComponent(String(application)))
|
|
40386
|
+
.replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)));
|
|
40387
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
40388
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
40389
|
+
let baseOptions;
|
|
40390
|
+
if (configuration) {
|
|
40391
|
+
baseOptions = configuration.baseOptions;
|
|
40392
|
+
}
|
|
40393
|
+
|
|
40394
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
40395
|
+
const localVarHeaderParameter = {} as any;
|
|
40396
|
+
const localVarQueryParameter = {} as any;
|
|
40397
|
+
|
|
40398
|
+
// authentication BearerAuth required
|
|
40399
|
+
// http bearer authentication required
|
|
40400
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
40401
|
+
|
|
40402
|
+
|
|
40403
|
+
|
|
40404
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
40405
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
40406
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
40407
|
+
|
|
40408
|
+
return {
|
|
40409
|
+
url: toPathString(localVarUrlObj),
|
|
40410
|
+
options: localVarRequestOptions,
|
|
40411
|
+
};
|
|
40412
|
+
},
|
|
40413
|
+
/**
|
|
40414
|
+
* 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).
|
|
40415
|
+
* @summary Get the databases of an application
|
|
40416
|
+
* @param {string} organisation The organisation ID
|
|
40417
|
+
* @param {string} application The application ID
|
|
40418
|
+
* @param {*} [options] Override http request option.
|
|
40419
|
+
* @throws {RequiredError}
|
|
40420
|
+
*/
|
|
40421
|
+
getApplicationDatabases: async (organisation: string, application: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
40422
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
40423
|
+
assertParamExists('getApplicationDatabases', 'organisation', organisation)
|
|
40424
|
+
// verify required parameter 'application' is not null or undefined
|
|
40425
|
+
assertParamExists('getApplicationDatabases', 'application', application)
|
|
40426
|
+
const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/database`
|
|
40427
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
40428
|
+
.replace(`{${"application"}}`, encodeURIComponent(String(application)));
|
|
40429
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
40430
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
40431
|
+
let baseOptions;
|
|
40432
|
+
if (configuration) {
|
|
40433
|
+
baseOptions = configuration.baseOptions;
|
|
40434
|
+
}
|
|
40435
|
+
|
|
40436
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
40437
|
+
const localVarHeaderParameter = {} as any;
|
|
40438
|
+
const localVarQueryParameter = {} as any;
|
|
40439
|
+
|
|
40440
|
+
// authentication BearerAuth required
|
|
40441
|
+
// http bearer authentication required
|
|
40442
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
40443
|
+
|
|
40444
|
+
|
|
40445
|
+
|
|
40446
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
40447
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
40448
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
40449
|
+
|
|
40450
|
+
return {
|
|
40451
|
+
url: toPathString(localVarUrlObj),
|
|
40452
|
+
options: localVarRequestOptions,
|
|
40453
|
+
};
|
|
40454
|
+
},
|
|
40455
|
+
/**
|
|
40456
|
+
* 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.
|
|
40457
|
+
* @summary Make a database the database of an application
|
|
40458
|
+
* @param {string} organisation The organisation ID
|
|
40459
|
+
* @param {string} application The application ID
|
|
40460
|
+
* @param {string} instanceId The database instance identifier
|
|
40461
|
+
* @param {*} [options] Override http request option.
|
|
40462
|
+
* @throws {RequiredError}
|
|
40463
|
+
*/
|
|
40464
|
+
promoteApplicationDatabase: async (organisation: string, application: string, instanceId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
40465
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
40466
|
+
assertParamExists('promoteApplicationDatabase', 'organisation', organisation)
|
|
40467
|
+
// verify required parameter 'application' is not null or undefined
|
|
40468
|
+
assertParamExists('promoteApplicationDatabase', 'application', application)
|
|
40469
|
+
// verify required parameter 'instanceId' is not null or undefined
|
|
40470
|
+
assertParamExists('promoteApplicationDatabase', 'instanceId', instanceId)
|
|
40471
|
+
const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/database/{instanceId}/promote`
|
|
40472
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
40473
|
+
.replace(`{${"application"}}`, encodeURIComponent(String(application)))
|
|
40474
|
+
.replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)));
|
|
40475
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
40476
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
40477
|
+
let baseOptions;
|
|
40478
|
+
if (configuration) {
|
|
40479
|
+
baseOptions = configuration.baseOptions;
|
|
40480
|
+
}
|
|
40481
|
+
|
|
40482
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
40483
|
+
const localVarHeaderParameter = {} as any;
|
|
40484
|
+
const localVarQueryParameter = {} as any;
|
|
40485
|
+
|
|
40486
|
+
// authentication BearerAuth required
|
|
40487
|
+
// http bearer authentication required
|
|
40488
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
40489
|
+
|
|
40490
|
+
|
|
40491
|
+
|
|
40492
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
40493
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
40494
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
40495
|
+
|
|
40496
|
+
return {
|
|
40497
|
+
url: toPathString(localVarUrlObj),
|
|
40498
|
+
options: localVarRequestOptions,
|
|
40499
|
+
};
|
|
40500
|
+
},
|
|
40501
|
+
/**
|
|
40502
|
+
* 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.
|
|
40503
|
+
* @summary Add a database to an application
|
|
40504
|
+
* @param {string} organisation The organisation ID
|
|
40505
|
+
* @param {string} application The application ID
|
|
40506
|
+
* @param {ProvisionApplicationDatabaseRequest} provisionApplicationDatabaseRequest
|
|
40507
|
+
* @param {*} [options] Override http request option.
|
|
40508
|
+
* @throws {RequiredError}
|
|
40509
|
+
*/
|
|
40510
|
+
provisionApplicationDatabase: async (organisation: string, application: string, provisionApplicationDatabaseRequest: ProvisionApplicationDatabaseRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
40511
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
40512
|
+
assertParamExists('provisionApplicationDatabase', 'organisation', organisation)
|
|
40513
|
+
// verify required parameter 'application' is not null or undefined
|
|
40514
|
+
assertParamExists('provisionApplicationDatabase', 'application', application)
|
|
40515
|
+
// verify required parameter 'provisionApplicationDatabaseRequest' is not null or undefined
|
|
40516
|
+
assertParamExists('provisionApplicationDatabase', 'provisionApplicationDatabaseRequest', provisionApplicationDatabaseRequest)
|
|
40517
|
+
const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/database`
|
|
40518
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
40519
|
+
.replace(`{${"application"}}`, encodeURIComponent(String(application)));
|
|
40520
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
40521
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
40522
|
+
let baseOptions;
|
|
40523
|
+
if (configuration) {
|
|
40524
|
+
baseOptions = configuration.baseOptions;
|
|
40525
|
+
}
|
|
40526
|
+
|
|
40527
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
40528
|
+
const localVarHeaderParameter = {} as any;
|
|
40529
|
+
const localVarQueryParameter = {} as any;
|
|
40530
|
+
|
|
40531
|
+
// authentication BearerAuth required
|
|
40532
|
+
// http bearer authentication required
|
|
40533
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
40534
|
+
|
|
40535
|
+
|
|
40536
|
+
|
|
40537
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
40538
|
+
|
|
40539
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
40540
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
40541
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
40542
|
+
localVarRequestOptions.data = serializeDataIfNeeded(provisionApplicationDatabaseRequest, localVarRequestOptions, configuration)
|
|
40543
|
+
|
|
40544
|
+
return {
|
|
40545
|
+
url: toPathString(localVarUrlObj),
|
|
40546
|
+
options: localVarRequestOptions,
|
|
40547
|
+
};
|
|
40548
|
+
},
|
|
40549
|
+
/**
|
|
40550
|
+
* 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.
|
|
40551
|
+
* @summary Resize a database of an application
|
|
40552
|
+
* @param {string} organisation The organisation ID
|
|
40553
|
+
* @param {string} application The application ID
|
|
40554
|
+
* @param {string} instanceId The database instance identifier
|
|
40555
|
+
* @param {ResizeApplicationDatabaseRequest} resizeApplicationDatabaseRequest
|
|
40556
|
+
* @param {*} [options] Override http request option.
|
|
40557
|
+
* @throws {RequiredError}
|
|
40558
|
+
*/
|
|
40559
|
+
resizeApplicationDatabase: async (organisation: string, application: string, instanceId: string, resizeApplicationDatabaseRequest: ResizeApplicationDatabaseRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
40560
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
40561
|
+
assertParamExists('resizeApplicationDatabase', 'organisation', organisation)
|
|
40562
|
+
// verify required parameter 'application' is not null or undefined
|
|
40563
|
+
assertParamExists('resizeApplicationDatabase', 'application', application)
|
|
40564
|
+
// verify required parameter 'instanceId' is not null or undefined
|
|
40565
|
+
assertParamExists('resizeApplicationDatabase', 'instanceId', instanceId)
|
|
40566
|
+
// verify required parameter 'resizeApplicationDatabaseRequest' is not null or undefined
|
|
40567
|
+
assertParamExists('resizeApplicationDatabase', 'resizeApplicationDatabaseRequest', resizeApplicationDatabaseRequest)
|
|
40568
|
+
const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/database/{instanceId}`
|
|
40569
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
40570
|
+
.replace(`{${"application"}}`, encodeURIComponent(String(application)))
|
|
40571
|
+
.replace(`{${"instanceId"}}`, encodeURIComponent(String(instanceId)));
|
|
40572
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
40573
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
40574
|
+
let baseOptions;
|
|
40575
|
+
if (configuration) {
|
|
40576
|
+
baseOptions = configuration.baseOptions;
|
|
40577
|
+
}
|
|
40578
|
+
|
|
40579
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
40580
|
+
const localVarHeaderParameter = {} as any;
|
|
40581
|
+
const localVarQueryParameter = {} as any;
|
|
40582
|
+
|
|
40583
|
+
// authentication BearerAuth required
|
|
40584
|
+
// http bearer authentication required
|
|
40585
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
40586
|
+
|
|
40587
|
+
|
|
40588
|
+
|
|
40589
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
40590
|
+
|
|
40591
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
40592
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
40593
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
40594
|
+
localVarRequestOptions.data = serializeDataIfNeeded(resizeApplicationDatabaseRequest, localVarRequestOptions, configuration)
|
|
40595
|
+
|
|
40596
|
+
return {
|
|
40597
|
+
url: toPathString(localVarUrlObj),
|
|
40598
|
+
options: localVarRequestOptions,
|
|
40599
|
+
};
|
|
40600
|
+
},
|
|
40601
|
+
}
|
|
40602
|
+
};
|
|
40603
|
+
|
|
40604
|
+
/**
|
|
40605
|
+
* ApplicationDatabaseApi - functional programming interface
|
|
40606
|
+
* @export
|
|
40607
|
+
*/
|
|
40608
|
+
export const ApplicationDatabaseApiFp = function(configuration?: Configuration) {
|
|
40609
|
+
const localVarAxiosParamCreator = ApplicationDatabaseApiAxiosParamCreator(configuration)
|
|
40610
|
+
return {
|
|
40611
|
+
/**
|
|
40612
|
+
* 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.
|
|
40613
|
+
* @summary Delete a database of an application
|
|
40614
|
+
* @param {string} organisation The organisation ID
|
|
40615
|
+
* @param {string} application The application ID
|
|
40616
|
+
* @param {string} instanceId The database instance identifier
|
|
40617
|
+
* @param {DeleteApplicationDatabaseRequest} deleteApplicationDatabaseRequest
|
|
40618
|
+
* @param {*} [options] Override http request option.
|
|
40619
|
+
* @throws {RequiredError}
|
|
40620
|
+
*/
|
|
40621
|
+
async deleteApplicationDatabase(organisation: string, application: string, instanceId: string, deleteApplicationDatabaseRequest: DeleteApplicationDatabaseRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteApplicationDatabaseResponse>> {
|
|
40622
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteApplicationDatabase(organisation, application, instanceId, deleteApplicationDatabaseRequest, options);
|
|
40623
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
40624
|
+
const localVarOperationServerBasePath = operationServerMap['ApplicationDatabaseApi.deleteApplicationDatabase']?.[localVarOperationServerIndex]?.url;
|
|
40625
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
40626
|
+
},
|
|
40627
|
+
/**
|
|
40628
|
+
* Poll this for a database being added: status is provisioning, ready or failed.
|
|
40629
|
+
* @summary Get one database of an application
|
|
40630
|
+
* @param {string} organisation The organisation ID
|
|
40631
|
+
* @param {string} application The application ID
|
|
40632
|
+
* @param {string} instanceId The database instance identifier, as returned by the list
|
|
40633
|
+
* @param {*} [options] Override http request option.
|
|
40634
|
+
* @throws {RequiredError}
|
|
40635
|
+
*/
|
|
40636
|
+
async getApplicationDatabase(organisation: string, application: string, instanceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApplicationDatabaseInstance>> {
|
|
40637
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getApplicationDatabase(organisation, application, instanceId, options);
|
|
40638
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
40639
|
+
const localVarOperationServerBasePath = operationServerMap['ApplicationDatabaseApi.getApplicationDatabase']?.[localVarOperationServerIndex]?.url;
|
|
40640
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
40641
|
+
},
|
|
40642
|
+
/**
|
|
40643
|
+
* 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).
|
|
40644
|
+
* @summary Get the databases of an application
|
|
40645
|
+
* @param {string} organisation The organisation ID
|
|
40646
|
+
* @param {string} application The application ID
|
|
40647
|
+
* @param {*} [options] Override http request option.
|
|
40648
|
+
* @throws {RequiredError}
|
|
40649
|
+
*/
|
|
40650
|
+
async getApplicationDatabases(organisation: string, application: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApplicationDatabases>> {
|
|
40651
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getApplicationDatabases(organisation, application, options);
|
|
40652
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
40653
|
+
const localVarOperationServerBasePath = operationServerMap['ApplicationDatabaseApi.getApplicationDatabases']?.[localVarOperationServerIndex]?.url;
|
|
40654
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
40655
|
+
},
|
|
40656
|
+
/**
|
|
40657
|
+
* 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.
|
|
40658
|
+
* @summary Make a database the database of an application
|
|
40659
|
+
* @param {string} organisation The organisation ID
|
|
40660
|
+
* @param {string} application The application ID
|
|
40661
|
+
* @param {string} instanceId The database instance identifier
|
|
40662
|
+
* @param {*} [options] Override http request option.
|
|
40663
|
+
* @throws {RequiredError}
|
|
40664
|
+
*/
|
|
40665
|
+
async promoteApplicationDatabase(organisation: string, application: string, instanceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromoteApplicationDatabaseResponse>> {
|
|
40666
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.promoteApplicationDatabase(organisation, application, instanceId, options);
|
|
40667
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
40668
|
+
const localVarOperationServerBasePath = operationServerMap['ApplicationDatabaseApi.promoteApplicationDatabase']?.[localVarOperationServerIndex]?.url;
|
|
40669
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
40670
|
+
},
|
|
40671
|
+
/**
|
|
40672
|
+
* 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.
|
|
40673
|
+
* @summary Add a database to an application
|
|
40674
|
+
* @param {string} organisation The organisation ID
|
|
40675
|
+
* @param {string} application The application ID
|
|
40676
|
+
* @param {ProvisionApplicationDatabaseRequest} provisionApplicationDatabaseRequest
|
|
40677
|
+
* @param {*} [options] Override http request option.
|
|
40678
|
+
* @throws {RequiredError}
|
|
40679
|
+
*/
|
|
40680
|
+
async provisionApplicationDatabase(organisation: string, application: string, provisionApplicationDatabaseRequest: ProvisionApplicationDatabaseRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProvisionApplicationDatabaseAccepted>> {
|
|
40681
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.provisionApplicationDatabase(organisation, application, provisionApplicationDatabaseRequest, options);
|
|
40682
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
40683
|
+
const localVarOperationServerBasePath = operationServerMap['ApplicationDatabaseApi.provisionApplicationDatabase']?.[localVarOperationServerIndex]?.url;
|
|
40684
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
40685
|
+
},
|
|
40686
|
+
/**
|
|
40687
|
+
* 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.
|
|
40688
|
+
* @summary Resize a database of an application
|
|
40689
|
+
* @param {string} organisation The organisation ID
|
|
40690
|
+
* @param {string} application The application ID
|
|
40691
|
+
* @param {string} instanceId The database instance identifier
|
|
40692
|
+
* @param {ResizeApplicationDatabaseRequest} resizeApplicationDatabaseRequest
|
|
40693
|
+
* @param {*} [options] Override http request option.
|
|
40694
|
+
* @throws {RequiredError}
|
|
40695
|
+
*/
|
|
40696
|
+
async resizeApplicationDatabase(organisation: string, application: string, instanceId: string, resizeApplicationDatabaseRequest: ResizeApplicationDatabaseRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ResizeApplicationDatabaseResponse>> {
|
|
40697
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.resizeApplicationDatabase(organisation, application, instanceId, resizeApplicationDatabaseRequest, options);
|
|
40698
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
40699
|
+
const localVarOperationServerBasePath = operationServerMap['ApplicationDatabaseApi.resizeApplicationDatabase']?.[localVarOperationServerIndex]?.url;
|
|
40700
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
40701
|
+
},
|
|
40702
|
+
}
|
|
40703
|
+
};
|
|
40704
|
+
|
|
40705
|
+
/**
|
|
40706
|
+
* ApplicationDatabaseApi - factory interface
|
|
40707
|
+
* @export
|
|
40708
|
+
*/
|
|
40709
|
+
export const ApplicationDatabaseApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
40710
|
+
const localVarFp = ApplicationDatabaseApiFp(configuration)
|
|
40711
|
+
return {
|
|
40712
|
+
/**
|
|
40713
|
+
* 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.
|
|
40714
|
+
* @summary Delete a database of an application
|
|
40715
|
+
* @param {string} organisation The organisation ID
|
|
40716
|
+
* @param {string} application The application ID
|
|
40717
|
+
* @param {string} instanceId The database instance identifier
|
|
40718
|
+
* @param {DeleteApplicationDatabaseRequest} deleteApplicationDatabaseRequest
|
|
40719
|
+
* @param {*} [options] Override http request option.
|
|
40720
|
+
* @throws {RequiredError}
|
|
40721
|
+
*/
|
|
40722
|
+
deleteApplicationDatabase(organisation: string, application: string, instanceId: string, deleteApplicationDatabaseRequest: DeleteApplicationDatabaseRequest, options?: RawAxiosRequestConfig): AxiosPromise<DeleteApplicationDatabaseResponse> {
|
|
40723
|
+
return localVarFp.deleteApplicationDatabase(organisation, application, instanceId, deleteApplicationDatabaseRequest, options).then((request) => request(axios, basePath));
|
|
40724
|
+
},
|
|
40725
|
+
/**
|
|
40726
|
+
* Poll this for a database being added: status is provisioning, ready or failed.
|
|
40727
|
+
* @summary Get one database of an application
|
|
40728
|
+
* @param {string} organisation The organisation ID
|
|
40729
|
+
* @param {string} application The application ID
|
|
40730
|
+
* @param {string} instanceId The database instance identifier, as returned by the list
|
|
40731
|
+
* @param {*} [options] Override http request option.
|
|
40732
|
+
* @throws {RequiredError}
|
|
40733
|
+
*/
|
|
40734
|
+
getApplicationDatabase(organisation: string, application: string, instanceId: string, options?: RawAxiosRequestConfig): AxiosPromise<ApplicationDatabaseInstance> {
|
|
40735
|
+
return localVarFp.getApplicationDatabase(organisation, application, instanceId, options).then((request) => request(axios, basePath));
|
|
40736
|
+
},
|
|
40737
|
+
/**
|
|
40738
|
+
* 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).
|
|
40739
|
+
* @summary Get the databases of an application
|
|
40740
|
+
* @param {string} organisation The organisation ID
|
|
40741
|
+
* @param {string} application The application ID
|
|
40742
|
+
* @param {*} [options] Override http request option.
|
|
40743
|
+
* @throws {RequiredError}
|
|
40744
|
+
*/
|
|
40745
|
+
getApplicationDatabases(organisation: string, application: string, options?: RawAxiosRequestConfig): AxiosPromise<ApplicationDatabases> {
|
|
40746
|
+
return localVarFp.getApplicationDatabases(organisation, application, options).then((request) => request(axios, basePath));
|
|
40747
|
+
},
|
|
40748
|
+
/**
|
|
40749
|
+
* 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.
|
|
40750
|
+
* @summary Make a database the database of an application
|
|
40751
|
+
* @param {string} organisation The organisation ID
|
|
40752
|
+
* @param {string} application The application ID
|
|
40753
|
+
* @param {string} instanceId The database instance identifier
|
|
40754
|
+
* @param {*} [options] Override http request option.
|
|
40755
|
+
* @throws {RequiredError}
|
|
40756
|
+
*/
|
|
40757
|
+
promoteApplicationDatabase(organisation: string, application: string, instanceId: string, options?: RawAxiosRequestConfig): AxiosPromise<PromoteApplicationDatabaseResponse> {
|
|
40758
|
+
return localVarFp.promoteApplicationDatabase(organisation, application, instanceId, options).then((request) => request(axios, basePath));
|
|
40759
|
+
},
|
|
40760
|
+
/**
|
|
40761
|
+
* 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.
|
|
40762
|
+
* @summary Add a database to an application
|
|
40763
|
+
* @param {string} organisation The organisation ID
|
|
40764
|
+
* @param {string} application The application ID
|
|
40765
|
+
* @param {ProvisionApplicationDatabaseRequest} provisionApplicationDatabaseRequest
|
|
40766
|
+
* @param {*} [options] Override http request option.
|
|
40767
|
+
* @throws {RequiredError}
|
|
40768
|
+
*/
|
|
40769
|
+
provisionApplicationDatabase(organisation: string, application: string, provisionApplicationDatabaseRequest: ProvisionApplicationDatabaseRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProvisionApplicationDatabaseAccepted> {
|
|
40770
|
+
return localVarFp.provisionApplicationDatabase(organisation, application, provisionApplicationDatabaseRequest, options).then((request) => request(axios, basePath));
|
|
40771
|
+
},
|
|
40772
|
+
/**
|
|
40773
|
+
* 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.
|
|
40774
|
+
* @summary Resize a database of an application
|
|
40775
|
+
* @param {string} organisation The organisation ID
|
|
40776
|
+
* @param {string} application The application ID
|
|
40777
|
+
* @param {string} instanceId The database instance identifier
|
|
40778
|
+
* @param {ResizeApplicationDatabaseRequest} resizeApplicationDatabaseRequest
|
|
40779
|
+
* @param {*} [options] Override http request option.
|
|
40780
|
+
* @throws {RequiredError}
|
|
40781
|
+
*/
|
|
40782
|
+
resizeApplicationDatabase(organisation: string, application: string, instanceId: string, resizeApplicationDatabaseRequest: ResizeApplicationDatabaseRequest, options?: RawAxiosRequestConfig): AxiosPromise<ResizeApplicationDatabaseResponse> {
|
|
40783
|
+
return localVarFp.resizeApplicationDatabase(organisation, application, instanceId, resizeApplicationDatabaseRequest, options).then((request) => request(axios, basePath));
|
|
40784
|
+
},
|
|
40785
|
+
};
|
|
40786
|
+
};
|
|
40787
|
+
|
|
40788
|
+
/**
|
|
40789
|
+
* ApplicationDatabaseApi - object-oriented interface
|
|
40790
|
+
* @export
|
|
40791
|
+
* @class ApplicationDatabaseApi
|
|
40792
|
+
* @extends {BaseAPI}
|
|
40793
|
+
*/
|
|
40794
|
+
export class ApplicationDatabaseApi extends BaseAPI {
|
|
40795
|
+
/**
|
|
40796
|
+
* 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.
|
|
40797
|
+
* @summary Delete a database of an application
|
|
40798
|
+
* @param {string} organisation The organisation ID
|
|
40799
|
+
* @param {string} application The application ID
|
|
40800
|
+
* @param {string} instanceId The database instance identifier
|
|
40801
|
+
* @param {DeleteApplicationDatabaseRequest} deleteApplicationDatabaseRequest
|
|
40802
|
+
* @param {*} [options] Override http request option.
|
|
40803
|
+
* @throws {RequiredError}
|
|
40804
|
+
* @memberof ApplicationDatabaseApi
|
|
40805
|
+
*/
|
|
40806
|
+
public deleteApplicationDatabase(organisation: string, application: string, instanceId: string, deleteApplicationDatabaseRequest: DeleteApplicationDatabaseRequest, options?: RawAxiosRequestConfig) {
|
|
40807
|
+
return ApplicationDatabaseApiFp(this.configuration).deleteApplicationDatabase(organisation, application, instanceId, deleteApplicationDatabaseRequest, options).then((request) => request(this.axios, this.basePath));
|
|
40808
|
+
}
|
|
40809
|
+
|
|
40810
|
+
/**
|
|
40811
|
+
* Poll this for a database being added: status is provisioning, ready or failed.
|
|
40812
|
+
* @summary Get one database of an application
|
|
40813
|
+
* @param {string} organisation The organisation ID
|
|
40814
|
+
* @param {string} application The application ID
|
|
40815
|
+
* @param {string} instanceId The database instance identifier, as returned by the list
|
|
40816
|
+
* @param {*} [options] Override http request option.
|
|
40817
|
+
* @throws {RequiredError}
|
|
40818
|
+
* @memberof ApplicationDatabaseApi
|
|
40819
|
+
*/
|
|
40820
|
+
public getApplicationDatabase(organisation: string, application: string, instanceId: string, options?: RawAxiosRequestConfig) {
|
|
40821
|
+
return ApplicationDatabaseApiFp(this.configuration).getApplicationDatabase(organisation, application, instanceId, options).then((request) => request(this.axios, this.basePath));
|
|
40822
|
+
}
|
|
40823
|
+
|
|
40824
|
+
/**
|
|
40825
|
+
* 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).
|
|
40826
|
+
* @summary Get the databases of an application
|
|
40827
|
+
* @param {string} organisation The organisation ID
|
|
40828
|
+
* @param {string} application The application ID
|
|
40829
|
+
* @param {*} [options] Override http request option.
|
|
40830
|
+
* @throws {RequiredError}
|
|
40831
|
+
* @memberof ApplicationDatabaseApi
|
|
40832
|
+
*/
|
|
40833
|
+
public getApplicationDatabases(organisation: string, application: string, options?: RawAxiosRequestConfig) {
|
|
40834
|
+
return ApplicationDatabaseApiFp(this.configuration).getApplicationDatabases(organisation, application, options).then((request) => request(this.axios, this.basePath));
|
|
40835
|
+
}
|
|
40836
|
+
|
|
40837
|
+
/**
|
|
40838
|
+
* 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.
|
|
40839
|
+
* @summary Make a database the database of an application
|
|
40840
|
+
* @param {string} organisation The organisation ID
|
|
40841
|
+
* @param {string} application The application ID
|
|
40842
|
+
* @param {string} instanceId The database instance identifier
|
|
40843
|
+
* @param {*} [options] Override http request option.
|
|
40844
|
+
* @throws {RequiredError}
|
|
40845
|
+
* @memberof ApplicationDatabaseApi
|
|
40846
|
+
*/
|
|
40847
|
+
public promoteApplicationDatabase(organisation: string, application: string, instanceId: string, options?: RawAxiosRequestConfig) {
|
|
40848
|
+
return ApplicationDatabaseApiFp(this.configuration).promoteApplicationDatabase(organisation, application, instanceId, options).then((request) => request(this.axios, this.basePath));
|
|
40849
|
+
}
|
|
40850
|
+
|
|
40851
|
+
/**
|
|
40852
|
+
* 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.
|
|
40853
|
+
* @summary Add a database to an application
|
|
40854
|
+
* @param {string} organisation The organisation ID
|
|
40855
|
+
* @param {string} application The application ID
|
|
40856
|
+
* @param {ProvisionApplicationDatabaseRequest} provisionApplicationDatabaseRequest
|
|
40857
|
+
* @param {*} [options] Override http request option.
|
|
40858
|
+
* @throws {RequiredError}
|
|
40859
|
+
* @memberof ApplicationDatabaseApi
|
|
40860
|
+
*/
|
|
40861
|
+
public provisionApplicationDatabase(organisation: string, application: string, provisionApplicationDatabaseRequest: ProvisionApplicationDatabaseRequest, options?: RawAxiosRequestConfig) {
|
|
40862
|
+
return ApplicationDatabaseApiFp(this.configuration).provisionApplicationDatabase(organisation, application, provisionApplicationDatabaseRequest, options).then((request) => request(this.axios, this.basePath));
|
|
40863
|
+
}
|
|
40864
|
+
|
|
40865
|
+
/**
|
|
40866
|
+
* 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.
|
|
40867
|
+
* @summary Resize a database of an application
|
|
40868
|
+
* @param {string} organisation The organisation ID
|
|
40869
|
+
* @param {string} application The application ID
|
|
40870
|
+
* @param {string} instanceId The database instance identifier
|
|
40871
|
+
* @param {ResizeApplicationDatabaseRequest} resizeApplicationDatabaseRequest
|
|
40872
|
+
* @param {*} [options] Override http request option.
|
|
40873
|
+
* @throws {RequiredError}
|
|
40874
|
+
* @memberof ApplicationDatabaseApi
|
|
40875
|
+
*/
|
|
40876
|
+
public resizeApplicationDatabase(organisation: string, application: string, instanceId: string, resizeApplicationDatabaseRequest: ResizeApplicationDatabaseRequest, options?: RawAxiosRequestConfig) {
|
|
40877
|
+
return ApplicationDatabaseApiFp(this.configuration).resizeApplicationDatabase(organisation, application, instanceId, resizeApplicationDatabaseRequest, options).then((request) => request(this.axios, this.basePath));
|
|
40878
|
+
}
|
|
40879
|
+
}
|
|
40880
|
+
|
|
40881
|
+
|
|
40882
|
+
|
|
39549
40883
|
/**
|
|
39550
40884
|
* ApplicationsApi - axios parameter creator
|
|
39551
40885
|
* @export
|