@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/dist/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * QuantCDN API
3
3
  * 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.
4
4
  *
5
- * The version of the OpenAPI document: 4.39.0
5
+ * The version of the OpenAPI document: 4.40.1
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1170,6 +1170,282 @@ export declare const ApplicationDatabaseRdsInstanceEngineEnum: {
1170
1170
  readonly Postgres: "postgres";
1171
1171
  };
1172
1172
  export type ApplicationDatabaseRdsInstanceEngineEnum = typeof ApplicationDatabaseRdsInstanceEngineEnum[keyof typeof ApplicationDatabaseRdsInstanceEngineEnum];
1173
+ /**
1174
+ *
1175
+ * @export
1176
+ * @interface ApplicationDatabaseError
1177
+ */
1178
+ export interface ApplicationDatabaseError {
1179
+ /**
1180
+ *
1181
+ * @type {string}
1182
+ * @memberof ApplicationDatabaseError
1183
+ */
1184
+ 'message'?: string;
1185
+ /**
1186
+ * 409 only: the operation that holds the application\'s lock.
1187
+ * @type {string}
1188
+ * @memberof ApplicationDatabaseError
1189
+ */
1190
+ 'operation'?: ApplicationDatabaseErrorOperationEnum;
1191
+ /**
1192
+ * 409 only: the operation that was refused.
1193
+ * @type {string}
1194
+ * @memberof ApplicationDatabaseError
1195
+ */
1196
+ 'requested'?: ApplicationDatabaseErrorRequestedEnum;
1197
+ /**
1198
+ * 409 only: the pending or previous database that blocks the request, or the provision in flight.
1199
+ * @type {string}
1200
+ * @memberof ApplicationDatabaseError
1201
+ */
1202
+ 'instanceId'?: string;
1203
+ /**
1204
+ * 409 only: for a provision in flight, the path to poll on the platform (this API serves it at the database route).
1205
+ * @type {string}
1206
+ * @memberof ApplicationDatabaseError
1207
+ */
1208
+ 'statusUrl'?: string;
1209
+ /**
1210
+ * Promote 409 only: the environments that have no user, or unreadable credentials, on the instance.
1211
+ * @type {Array<string>}
1212
+ * @memberof ApplicationDatabaseError
1213
+ */
1214
+ 'environments'?: Array<string>;
1215
+ /**
1216
+ * Delete 500 only: what could not be cleaned up.
1217
+ * @type {Array<string>}
1218
+ * @memberof ApplicationDatabaseError
1219
+ */
1220
+ 'errors'?: Array<string>;
1221
+ }
1222
+ export declare const ApplicationDatabaseErrorOperationEnum: {
1223
+ readonly Provision: "provision";
1224
+ readonly Promote: "promote";
1225
+ readonly Delete: "delete";
1226
+ };
1227
+ export type ApplicationDatabaseErrorOperationEnum = typeof ApplicationDatabaseErrorOperationEnum[keyof typeof ApplicationDatabaseErrorOperationEnum];
1228
+ export declare const ApplicationDatabaseErrorRequestedEnum: {
1229
+ readonly Provision: "provision";
1230
+ readonly Promote: "promote";
1231
+ readonly Delete: "delete";
1232
+ };
1233
+ export type ApplicationDatabaseErrorRequestedEnum = typeof ApplicationDatabaseErrorRequestedEnum[keyof typeof ApplicationDatabaseErrorRequestedEnum];
1234
+ /**
1235
+ *
1236
+ * @export
1237
+ * @interface ApplicationDatabaseInstance
1238
+ */
1239
+ export interface ApplicationDatabaseInstance {
1240
+ /**
1241
+ *
1242
+ * @type {string}
1243
+ * @memberof ApplicationDatabaseInstance
1244
+ */
1245
+ 'instanceId'?: string;
1246
+ /**
1247
+ *
1248
+ * @type {string}
1249
+ * @memberof ApplicationDatabaseInstance
1250
+ */
1251
+ 'role'?: ApplicationDatabaseInstanceRoleEnum;
1252
+ /**
1253
+ * Poll this for a database being added.
1254
+ * @type {string}
1255
+ * @memberof ApplicationDatabaseInstance
1256
+ */
1257
+ 'status'?: ApplicationDatabaseInstanceStatusEnum;
1258
+ /**
1259
+ * Why a database failed.
1260
+ * @type {string}
1261
+ * @memberof ApplicationDatabaseInstance
1262
+ */
1263
+ 'statusMessage'?: string;
1264
+ /**
1265
+ *
1266
+ * @type {string}
1267
+ * @memberof ApplicationDatabaseInstance
1268
+ */
1269
+ 'engine'?: ApplicationDatabaseInstanceEngineEnum;
1270
+ /**
1271
+ * The live instance status. Absent when it could not be read.
1272
+ * @type {string}
1273
+ * @memberof ApplicationDatabaseInstance
1274
+ */
1275
+ 'rdsStatus'?: string;
1276
+ /**
1277
+ *
1278
+ * @type {string}
1279
+ * @memberof ApplicationDatabaseInstance
1280
+ */
1281
+ 'endpoint'?: string;
1282
+ /**
1283
+ *
1284
+ * @type {number}
1285
+ * @memberof ApplicationDatabaseInstance
1286
+ */
1287
+ 'port'?: number;
1288
+ /**
1289
+ *
1290
+ * @type {string}
1291
+ * @memberof ApplicationDatabaseInstance
1292
+ */
1293
+ 'instanceClass'?: string;
1294
+ /**
1295
+ *
1296
+ * @type {number}
1297
+ * @memberof ApplicationDatabaseInstance
1298
+ */
1299
+ 'storageGb'?: number;
1300
+ /**
1301
+ *
1302
+ * @type {boolean}
1303
+ * @memberof ApplicationDatabaseInstance
1304
+ */
1305
+ 'multiAz'?: boolean;
1306
+ /**
1307
+ *
1308
+ * @type {ApplicationDatabaseInstancePendingModifications}
1309
+ * @memberof ApplicationDatabaseInstance
1310
+ */
1311
+ 'pendingModifications'?: ApplicationDatabaseInstancePendingModifications;
1312
+ /**
1313
+ * Unix epoch milliseconds.
1314
+ * @type {number}
1315
+ * @memberof ApplicationDatabaseInstance
1316
+ */
1317
+ 'createdAt'?: number;
1318
+ /**
1319
+ * previous only: when it stopped being the active database.
1320
+ * @type {number}
1321
+ * @memberof ApplicationDatabaseInstance
1322
+ */
1323
+ 'retiredAt'?: number;
1324
+ /**
1325
+ * next only: the environments that have a user on this instance.
1326
+ * @type {Array<string>}
1327
+ * @memberof ApplicationDatabaseInstance
1328
+ */
1329
+ 'environments'?: Array<string>;
1330
+ /**
1331
+ * next only: the names of the secrets that hold each environment\'s credentials for this instance. Names, never values.
1332
+ * @type {Array<ApplicationDatabaseInstanceEnvironmentCredentialsSecretsInner>}
1333
+ * @memberof ApplicationDatabaseInstance
1334
+ */
1335
+ 'environmentCredentialsSecrets'?: Array<ApplicationDatabaseInstanceEnvironmentCredentialsSecretsInner>;
1336
+ /**
1337
+ * next only: DB_NEXT_HOST, DB_NEXT_PORT, DB_NEXT_DATABASE, DB_NEXT_ENGINE.
1338
+ * @type {Array<string>}
1339
+ * @memberof ApplicationDatabaseInstance
1340
+ */
1341
+ 'environmentVariables'?: Array<string>;
1342
+ /**
1343
+ * next only: DB_NEXT_USERNAME and DB_NEXT_PASSWORD, secret references to the per-environment secrets above. Never values.
1344
+ * @type {Array<string>}
1345
+ * @memberof ApplicationDatabaseInstance
1346
+ */
1347
+ 'environmentSecretReferences'?: Array<string>;
1348
+ }
1349
+ export declare const ApplicationDatabaseInstanceRoleEnum: {
1350
+ readonly Active: "active";
1351
+ readonly Next: "next";
1352
+ readonly Previous: "previous";
1353
+ };
1354
+ export type ApplicationDatabaseInstanceRoleEnum = typeof ApplicationDatabaseInstanceRoleEnum[keyof typeof ApplicationDatabaseInstanceRoleEnum];
1355
+ export declare const ApplicationDatabaseInstanceStatusEnum: {
1356
+ readonly Active: "active";
1357
+ readonly Provisioning: "provisioning";
1358
+ readonly Ready: "ready";
1359
+ readonly Failed: "failed";
1360
+ readonly Previous: "previous";
1361
+ };
1362
+ export type ApplicationDatabaseInstanceStatusEnum = typeof ApplicationDatabaseInstanceStatusEnum[keyof typeof ApplicationDatabaseInstanceStatusEnum];
1363
+ export declare const ApplicationDatabaseInstanceEngineEnum: {
1364
+ readonly Mysql: "mysql";
1365
+ readonly Postgres: "postgres";
1366
+ };
1367
+ export type ApplicationDatabaseInstanceEngineEnum = typeof ApplicationDatabaseInstanceEngineEnum[keyof typeof ApplicationDatabaseInstanceEngineEnum];
1368
+ /**
1369
+ *
1370
+ * @export
1371
+ * @interface ApplicationDatabaseInstanceEnvironmentCredentialsSecretsInner
1372
+ */
1373
+ export interface ApplicationDatabaseInstanceEnvironmentCredentialsSecretsInner {
1374
+ /**
1375
+ *
1376
+ * @type {string}
1377
+ * @memberof ApplicationDatabaseInstanceEnvironmentCredentialsSecretsInner
1378
+ */
1379
+ 'environment'?: string;
1380
+ /**
1381
+ *
1382
+ * @type {string}
1383
+ * @memberof ApplicationDatabaseInstanceEnvironmentCredentialsSecretsInner
1384
+ */
1385
+ 'secretName'?: string;
1386
+ }
1387
+ /**
1388
+ * A resize RDS has accepted but not applied yet. Absent when there is none.
1389
+ * @export
1390
+ * @interface ApplicationDatabaseInstancePendingModifications
1391
+ */
1392
+ export interface ApplicationDatabaseInstancePendingModifications {
1393
+ /**
1394
+ *
1395
+ * @type {string}
1396
+ * @memberof ApplicationDatabaseInstancePendingModifications
1397
+ */
1398
+ 'instanceClass'?: string;
1399
+ /**
1400
+ *
1401
+ * @type {number}
1402
+ * @memberof ApplicationDatabaseInstancePendingModifications
1403
+ */
1404
+ 'storageGb'?: number;
1405
+ /**
1406
+ *
1407
+ * @type {boolean}
1408
+ * @memberof ApplicationDatabaseInstancePendingModifications
1409
+ */
1410
+ 'multiAz'?: boolean;
1411
+ }
1412
+ /**
1413
+ *
1414
+ * @export
1415
+ * @interface ApplicationDatabases
1416
+ */
1417
+ export interface ApplicationDatabases {
1418
+ /**
1419
+ *
1420
+ * @type {string}
1421
+ * @memberof ApplicationDatabases
1422
+ */
1423
+ 'orgName'?: string;
1424
+ /**
1425
+ *
1426
+ * @type {string}
1427
+ * @memberof ApplicationDatabases
1428
+ */
1429
+ 'appName'?: string;
1430
+ /**
1431
+ *
1432
+ * @type {ApplicationDatabaseInstance}
1433
+ * @memberof ApplicationDatabases
1434
+ */
1435
+ 'active'?: ApplicationDatabaseInstance | null;
1436
+ /**
1437
+ *
1438
+ * @type {ApplicationDatabaseInstance}
1439
+ * @memberof ApplicationDatabases
1440
+ */
1441
+ 'next'?: ApplicationDatabaseInstance | null;
1442
+ /**
1443
+ *
1444
+ * @type {ApplicationDatabaseInstance}
1445
+ * @memberof ApplicationDatabases
1446
+ */
1447
+ 'previous'?: ApplicationDatabaseInstance | null;
1448
+ }
1173
1449
  /**
1174
1450
  *
1175
1451
  * @export
@@ -4144,6 +4420,44 @@ export interface CreateEnvironmentRequest {
4144
4420
  * @memberof CreateEnvironmentRequest
4145
4421
  */
4146
4422
  'mergeEnvironment'?: boolean;
4423
+ /**
4424
+ *
4425
+ * @type {CreateEnvironmentRequestDatabase}
4426
+ * @memberof CreateEnvironmentRequest
4427
+ */
4428
+ 'database'?: CreateEnvironmentRequestDatabase | null;
4429
+ }
4430
+ /**
4431
+ * Optional database settings for the new environment
4432
+ * @export
4433
+ * @interface CreateEnvironmentRequestDatabase
4434
+ */
4435
+ export interface CreateEnvironmentRequestDatabase {
4436
+ /**
4437
+ *
4438
+ * @type {CreateEnvironmentRequestDatabaseCopyFrom}
4439
+ * @memberof CreateEnvironmentRequestDatabase
4440
+ */
4441
+ 'copyFrom'?: CreateEnvironmentRequestDatabaseCopyFrom | null;
4442
+ }
4443
+ /**
4444
+ * 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.
4445
+ * @export
4446
+ * @interface CreateEnvironmentRequestDatabaseCopyFrom
4447
+ */
4448
+ export interface CreateEnvironmentRequestDatabaseCopyFrom {
4449
+ /**
4450
+ * The environment to copy the database from. Must exist and must not be the new environment.
4451
+ * @type {string}
4452
+ * @memberof CreateEnvironmentRequestDatabaseCopyFrom
4453
+ */
4454
+ 'sourceEnvironment': string;
4455
+ /**
4456
+ * Optional. Base64 MTK YAML, as the database sync endpoint takes.
4457
+ * @type {string}
4458
+ * @memberof CreateEnvironmentRequestDatabaseCopyFrom
4459
+ */
4460
+ 'mtkConfig'?: string;
4147
4461
  }
4148
4462
  /**
4149
4463
  *
@@ -5365,6 +5679,67 @@ export interface DeleteAgentOverlay200Response {
5365
5679
  */
5366
5680
  'message'?: string;
5367
5681
  }
5682
+ /**
5683
+ *
5684
+ * @export
5685
+ * @interface DeleteApplicationDatabaseRequest
5686
+ */
5687
+ export interface DeleteApplicationDatabaseRequest {
5688
+ /**
5689
+ * Must be true: the database and its automated backups are deleted with no final snapshot.
5690
+ * @type {boolean}
5691
+ * @memberof DeleteApplicationDatabaseRequest
5692
+ */
5693
+ 'acknowledgeDataloss': boolean;
5694
+ }
5695
+ /**
5696
+ *
5697
+ * @export
5698
+ * @interface DeleteApplicationDatabaseResponse
5699
+ */
5700
+ export interface DeleteApplicationDatabaseResponse {
5701
+ /**
5702
+ *
5703
+ * @type {string}
5704
+ * @memberof DeleteApplicationDatabaseResponse
5705
+ */
5706
+ 'message'?: string;
5707
+ /**
5708
+ *
5709
+ * @type {string}
5710
+ * @memberof DeleteApplicationDatabaseResponse
5711
+ */
5712
+ 'orgName'?: string;
5713
+ /**
5714
+ *
5715
+ * @type {string}
5716
+ * @memberof DeleteApplicationDatabaseResponse
5717
+ */
5718
+ 'appName'?: string;
5719
+ /**
5720
+ *
5721
+ * @type {string}
5722
+ * @memberof DeleteApplicationDatabaseResponse
5723
+ */
5724
+ 'instanceId'?: string;
5725
+ /**
5726
+ *
5727
+ * @type {string}
5728
+ * @memberof DeleteApplicationDatabaseResponse
5729
+ */
5730
+ 'status'?: DeleteApplicationDatabaseResponseStatusEnum;
5731
+ /**
5732
+ * No final snapshot was taken.
5733
+ * @type {string}
5734
+ * @memberof DeleteApplicationDatabaseResponse
5735
+ */
5736
+ 'note'?: string;
5737
+ }
5738
+ export declare const DeleteApplicationDatabaseResponseStatusEnum: {
5739
+ readonly Deleting: "deleting";
5740
+ readonly Deleted: "deleted";
5741
+ };
5742
+ export type DeleteApplicationDatabaseResponseStatusEnum = typeof DeleteApplicationDatabaseResponseStatusEnum[keyof typeof DeleteApplicationDatabaseResponseStatusEnum];
5368
5743
  /**
5369
5744
  *
5370
5745
  * @export
@@ -11674,6 +12049,233 @@ export declare const ProjectsDelete503ResponseCodeEnum: {
11674
12049
  readonly KvStoreDeleteFailed: "KV_STORE_DELETE_FAILED";
11675
12050
  };
11676
12051
  export type ProjectsDelete503ResponseCodeEnum = typeof ProjectsDelete503ResponseCodeEnum[keyof typeof ProjectsDelete503ResponseCodeEnum];
12052
+ /**
12053
+ *
12054
+ * @export
12055
+ * @interface PromoteApplicationDatabaseResponse
12056
+ */
12057
+ export interface PromoteApplicationDatabaseResponse {
12058
+ /**
12059
+ *
12060
+ * @type {string}
12061
+ * @memberof PromoteApplicationDatabaseResponse
12062
+ */
12063
+ 'message'?: string;
12064
+ /**
12065
+ *
12066
+ * @type {string}
12067
+ * @memberof PromoteApplicationDatabaseResponse
12068
+ */
12069
+ 'orgName'?: string;
12070
+ /**
12071
+ *
12072
+ * @type {string}
12073
+ * @memberof PromoteApplicationDatabaseResponse
12074
+ */
12075
+ 'appName'?: string;
12076
+ /**
12077
+ * The database now in use.
12078
+ * @type {string}
12079
+ * @memberof PromoteApplicationDatabaseResponse
12080
+ */
12081
+ 'active'?: string;
12082
+ /**
12083
+ * The database kept for rollback. Absent when there was none.
12084
+ * @type {string}
12085
+ * @memberof PromoteApplicationDatabaseResponse
12086
+ */
12087
+ 'previous'?: string;
12088
+ /**
12089
+ * Every environment that uses the database.
12090
+ * @type {Array<string>}
12091
+ * @memberof PromoteApplicationDatabaseResponse
12092
+ */
12093
+ 'environments'?: Array<string>;
12094
+ /**
12095
+ * Environments whose service was updated onto a new task definition revision with a forced new deployment.
12096
+ * @type {Array<string>}
12097
+ * @memberof PromoteApplicationDatabaseResponse
12098
+ */
12099
+ 'redeployed'?: Array<string>;
12100
+ /**
12101
+ * Environments whose redeploy did not fit the request\'s time budget and was queued. Not done yet; a failure is only logged.
12102
+ * @type {Array<string>}
12103
+ * @memberof PromoteApplicationDatabaseResponse
12104
+ */
12105
+ 'redeployQueued'?: Array<string>;
12106
+ /**
12107
+ * Environments whose redeploy could not be started. The switch is done; they still run the previous revision, which still works.
12108
+ * @type {Array<PromoteApplicationDatabaseResponseRedeployFailedInner>}
12109
+ * @memberof PromoteApplicationDatabaseResponse
12110
+ */
12111
+ 'redeployFailed'?: Array<PromoteApplicationDatabaseResponseRedeployFailedInner>;
12112
+ /**
12113
+ * Environments that needed no redeploy: already on the new revision, or without a running service.
12114
+ * @type {Array<string>}
12115
+ * @memberof PromoteApplicationDatabaseResponse
12116
+ */
12117
+ 'upToDate'?: Array<string>;
12118
+ /**
12119
+ * redeployFailed plus redeployQueued: the environments that still run the previous task definition.
12120
+ * @type {Array<string>}
12121
+ * @memberof PromoteApplicationDatabaseResponse
12122
+ */
12123
+ 'redeployRequired'?: Array<string>;
12124
+ /**
12125
+ * Environments whose variables could not be updated. Repeat the request.
12126
+ * @type {Array<string>}
12127
+ * @memberof PromoteApplicationDatabaseResponse
12128
+ */
12129
+ 'warnings'?: Array<string>;
12130
+ /**
12131
+ *
12132
+ * @type {string}
12133
+ * @memberof PromoteApplicationDatabaseResponse
12134
+ */
12135
+ 'note'?: string;
12136
+ }
12137
+ /**
12138
+ *
12139
+ * @export
12140
+ * @interface PromoteApplicationDatabaseResponseRedeployFailedInner
12141
+ */
12142
+ export interface PromoteApplicationDatabaseResponseRedeployFailedInner {
12143
+ /**
12144
+ *
12145
+ * @type {string}
12146
+ * @memberof PromoteApplicationDatabaseResponseRedeployFailedInner
12147
+ */
12148
+ 'environment'?: string;
12149
+ /**
12150
+ * A short reason. Never a credential.
12151
+ * @type {string}
12152
+ * @memberof PromoteApplicationDatabaseResponseRedeployFailedInner
12153
+ */
12154
+ 'error'?: string;
12155
+ }
12156
+ /**
12157
+ *
12158
+ * @export
12159
+ * @interface ProvisionApplicationDatabaseAccepted
12160
+ */
12161
+ export interface ProvisionApplicationDatabaseAccepted {
12162
+ /**
12163
+ *
12164
+ * @type {string}
12165
+ * @memberof ProvisionApplicationDatabaseAccepted
12166
+ */
12167
+ 'message'?: string;
12168
+ /**
12169
+ *
12170
+ * @type {string}
12171
+ * @memberof ProvisionApplicationDatabaseAccepted
12172
+ */
12173
+ 'orgName'?: string;
12174
+ /**
12175
+ *
12176
+ * @type {string}
12177
+ * @memberof ProvisionApplicationDatabaseAccepted
12178
+ */
12179
+ 'appName'?: string;
12180
+ /**
12181
+ *
12182
+ * @type {string}
12183
+ * @memberof ProvisionApplicationDatabaseAccepted
12184
+ */
12185
+ 'instanceId'?: string;
12186
+ /**
12187
+ *
12188
+ * @type {string}
12189
+ * @memberof ProvisionApplicationDatabaseAccepted
12190
+ */
12191
+ 'engine'?: ProvisionApplicationDatabaseAcceptedEngineEnum;
12192
+ /**
12193
+ *
12194
+ * @type {string}
12195
+ * @memberof ProvisionApplicationDatabaseAccepted
12196
+ */
12197
+ 'status'?: ProvisionApplicationDatabaseAcceptedStatusEnum;
12198
+ /**
12199
+ * The API path to poll.
12200
+ * @type {string}
12201
+ * @memberof ProvisionApplicationDatabaseAccepted
12202
+ */
12203
+ 'statusUrl'?: string;
12204
+ /**
12205
+ *
12206
+ * @type {Array<string>}
12207
+ * @memberof ProvisionApplicationDatabaseAccepted
12208
+ */
12209
+ 'environmentVariables'?: Array<string>;
12210
+ /**
12211
+ * DB_NEXT_USERNAME and DB_NEXT_PASSWORD: secret references into the new database\'s own credentials. Never values.
12212
+ * @type {Array<string>}
12213
+ * @memberof ProvisionApplicationDatabaseAccepted
12214
+ */
12215
+ 'environmentSecretReferences'?: Array<string>;
12216
+ /**
12217
+ *
12218
+ * @type {string}
12219
+ * @memberof ProvisionApplicationDatabaseAccepted
12220
+ */
12221
+ 'note'?: string;
12222
+ }
12223
+ export declare const ProvisionApplicationDatabaseAcceptedEngineEnum: {
12224
+ readonly Mysql: "mysql";
12225
+ readonly Postgres: "postgres";
12226
+ };
12227
+ export type ProvisionApplicationDatabaseAcceptedEngineEnum = typeof ProvisionApplicationDatabaseAcceptedEngineEnum[keyof typeof ProvisionApplicationDatabaseAcceptedEngineEnum];
12228
+ export declare const ProvisionApplicationDatabaseAcceptedStatusEnum: {
12229
+ readonly Provisioning: "provisioning";
12230
+ readonly Ready: "ready";
12231
+ readonly Failed: "failed";
12232
+ };
12233
+ export type ProvisionApplicationDatabaseAcceptedStatusEnum = typeof ProvisionApplicationDatabaseAcceptedStatusEnum[keyof typeof ProvisionApplicationDatabaseAcceptedStatusEnum];
12234
+ /**
12235
+ *
12236
+ * @export
12237
+ * @interface ProvisionApplicationDatabaseRequest
12238
+ */
12239
+ export interface ProvisionApplicationDatabaseRequest {
12240
+ /**
12241
+ *
12242
+ * @type {string}
12243
+ * @memberof ProvisionApplicationDatabaseRequest
12244
+ */
12245
+ 'engine': ProvisionApplicationDatabaseRequestEngineEnum;
12246
+ /**
12247
+ *
12248
+ * @type {string}
12249
+ * @memberof ProvisionApplicationDatabaseRequest
12250
+ */
12251
+ 'instanceClass'?: ProvisionApplicationDatabaseRequestInstanceClassEnum;
12252
+ /**
12253
+ * Allocated storage in GiB. Storage autoscaling is on, up to 1000.
12254
+ * @type {number}
12255
+ * @memberof ProvisionApplicationDatabaseRequest
12256
+ */
12257
+ 'storageGb'?: number;
12258
+ /**
12259
+ *
12260
+ * @type {boolean}
12261
+ * @memberof ProvisionApplicationDatabaseRequest
12262
+ */
12263
+ 'multiAz'?: boolean;
12264
+ }
12265
+ export declare const ProvisionApplicationDatabaseRequestEngineEnum: {
12266
+ readonly Mysql: "mysql";
12267
+ readonly Postgres: "postgres";
12268
+ };
12269
+ export type ProvisionApplicationDatabaseRequestEngineEnum = typeof ProvisionApplicationDatabaseRequestEngineEnum[keyof typeof ProvisionApplicationDatabaseRequestEngineEnum];
12270
+ export declare const ProvisionApplicationDatabaseRequestInstanceClassEnum: {
12271
+ readonly DbT4gMicro: "db.t4g.micro";
12272
+ readonly DbT4gSmall: "db.t4g.small";
12273
+ readonly DbT4gMedium: "db.t4g.medium";
12274
+ readonly DbT4gLarge: "db.t4g.large";
12275
+ readonly DbT4gXlarge: "db.t4g.xlarge";
12276
+ readonly DbT4g2xlarge: "db.t4g.2xlarge";
12277
+ };
12278
+ export type ProvisionApplicationDatabaseRequestInstanceClassEnum = typeof ProvisionApplicationDatabaseRequestInstanceClassEnum[keyof typeof ProvisionApplicationDatabaseRequestInstanceClassEnum];
11677
12279
  /**
11678
12280
  *
11679
12281
  * @export
@@ -12136,6 +12738,138 @@ export interface QueryVectorCollectionRequestFilter {
12136
12738
  [key: string]: Array<string>;
12137
12739
  };
12138
12740
  }
12741
+ /**
12742
+ * At least one of instanceClass, storageGb, multiAz.
12743
+ * @export
12744
+ * @interface ResizeApplicationDatabaseRequest
12745
+ */
12746
+ export interface ResizeApplicationDatabaseRequest {
12747
+ /**
12748
+ *
12749
+ * @type {string}
12750
+ * @memberof ResizeApplicationDatabaseRequest
12751
+ */
12752
+ 'instanceClass'?: ResizeApplicationDatabaseRequestInstanceClassEnum;
12753
+ /**
12754
+ * Grows only, by at least 10 %.
12755
+ * @type {number}
12756
+ * @memberof ResizeApplicationDatabaseRequest
12757
+ */
12758
+ 'storageGb'?: number;
12759
+ /**
12760
+ *
12761
+ * @type {boolean}
12762
+ * @memberof ResizeApplicationDatabaseRequest
12763
+ */
12764
+ 'multiAz'?: boolean;
12765
+ /**
12766
+ * false: in the next maintenance window.
12767
+ * @type {boolean}
12768
+ * @memberof ResizeApplicationDatabaseRequest
12769
+ */
12770
+ 'applyImmediately'?: boolean;
12771
+ }
12772
+ export declare const ResizeApplicationDatabaseRequestInstanceClassEnum: {
12773
+ readonly DbT4gMicro: "db.t4g.micro";
12774
+ readonly DbT4gSmall: "db.t4g.small";
12775
+ readonly DbT4gMedium: "db.t4g.medium";
12776
+ readonly DbT4gLarge: "db.t4g.large";
12777
+ readonly DbT4gXlarge: "db.t4g.xlarge";
12778
+ readonly DbT4g2xlarge: "db.t4g.2xlarge";
12779
+ };
12780
+ export type ResizeApplicationDatabaseRequestInstanceClassEnum = typeof ResizeApplicationDatabaseRequestInstanceClassEnum[keyof typeof ResizeApplicationDatabaseRequestInstanceClassEnum];
12781
+ /**
12782
+ *
12783
+ * @export
12784
+ * @interface ResizeApplicationDatabaseResponse
12785
+ */
12786
+ export interface ResizeApplicationDatabaseResponse {
12787
+ /**
12788
+ *
12789
+ * @type {string}
12790
+ * @memberof ResizeApplicationDatabaseResponse
12791
+ */
12792
+ 'message'?: string;
12793
+ /**
12794
+ *
12795
+ * @type {string}
12796
+ * @memberof ResizeApplicationDatabaseResponse
12797
+ */
12798
+ 'orgName'?: string;
12799
+ /**
12800
+ *
12801
+ * @type {string}
12802
+ * @memberof ResizeApplicationDatabaseResponse
12803
+ */
12804
+ 'appName'?: string;
12805
+ /**
12806
+ *
12807
+ * @type {string}
12808
+ * @memberof ResizeApplicationDatabaseResponse
12809
+ */
12810
+ 'instanceId'?: string;
12811
+ /**
12812
+ *
12813
+ * @type {string}
12814
+ * @memberof ResizeApplicationDatabaseResponse
12815
+ */
12816
+ 'role'?: ResizeApplicationDatabaseResponseRoleEnum;
12817
+ /**
12818
+ *
12819
+ * @type {boolean}
12820
+ * @memberof ResizeApplicationDatabaseResponse
12821
+ */
12822
+ 'applyImmediately'?: boolean;
12823
+ /**
12824
+ *
12825
+ * @type {ResizeApplicationDatabaseResponseChanges}
12826
+ * @memberof ResizeApplicationDatabaseResponse
12827
+ */
12828
+ 'changes'?: ResizeApplicationDatabaseResponseChanges;
12829
+ /**
12830
+ * The API path to poll.
12831
+ * @type {string}
12832
+ * @memberof ResizeApplicationDatabaseResponse
12833
+ */
12834
+ 'statusUrl'?: string;
12835
+ /**
12836
+ *
12837
+ * @type {string}
12838
+ * @memberof ResizeApplicationDatabaseResponse
12839
+ */
12840
+ 'note'?: string;
12841
+ }
12842
+ export declare const ResizeApplicationDatabaseResponseRoleEnum: {
12843
+ readonly Active: "active";
12844
+ readonly Next: "next";
12845
+ readonly Previous: "previous";
12846
+ };
12847
+ export type ResizeApplicationDatabaseResponseRoleEnum = typeof ResizeApplicationDatabaseResponseRoleEnum[keyof typeof ResizeApplicationDatabaseResponseRoleEnum];
12848
+ /**
12849
+ * The fields that change: only those that differ from the live instance.
12850
+ * @export
12851
+ * @interface ResizeApplicationDatabaseResponseChanges
12852
+ */
12853
+ export interface ResizeApplicationDatabaseResponseChanges {
12854
+ /**
12855
+ *
12856
+ * @type {string}
12857
+ * @memberof ResizeApplicationDatabaseResponseChanges
12858
+ */
12859
+ 'instanceClass'?: string;
12860
+ /**
12861
+ *
12862
+ * @type {number}
12863
+ * @memberof ResizeApplicationDatabaseResponseChanges
12864
+ */
12865
+ 'storageGb'?: number;
12866
+ /**
12867
+ *
12868
+ * @type {boolean}
12869
+ * @memberof ResizeApplicationDatabaseResponseChanges
12870
+ */
12871
+ 'multiAz'?: boolean;
12872
+ }
12139
12873
  /**
12140
12874
  *
12141
12875
  * @export
@@ -32822,6 +33556,282 @@ export declare class AlertChannelsApi extends BaseAPI {
32822
33556
  */
32823
33557
  alertChannelsList(organisation: string, project: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AlertChannelList, any, {}, any>>;
32824
33558
  }
33559
+ /**
33560
+ * ApplicationDatabaseApi - axios parameter creator
33561
+ * @export
33562
+ */
33563
+ export declare const ApplicationDatabaseApiAxiosParamCreator: (configuration?: Configuration) => {
33564
+ /**
33565
+ * 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.
33566
+ * @summary Delete a database of an application
33567
+ * @param {string} organisation The organisation ID
33568
+ * @param {string} application The application ID
33569
+ * @param {string} instanceId The database instance identifier
33570
+ * @param {DeleteApplicationDatabaseRequest} deleteApplicationDatabaseRequest
33571
+ * @param {*} [options] Override http request option.
33572
+ * @throws {RequiredError}
33573
+ */
33574
+ deleteApplicationDatabase: (organisation: string, application: string, instanceId: string, deleteApplicationDatabaseRequest: DeleteApplicationDatabaseRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
33575
+ /**
33576
+ * Poll this for a database being added: status is provisioning, ready or failed.
33577
+ * @summary Get one database of an application
33578
+ * @param {string} organisation The organisation ID
33579
+ * @param {string} application The application ID
33580
+ * @param {string} instanceId The database instance identifier, as returned by the list
33581
+ * @param {*} [options] Override http request option.
33582
+ * @throws {RequiredError}
33583
+ */
33584
+ getApplicationDatabase: (organisation: string, application: string, instanceId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
33585
+ /**
33586
+ * 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).
33587
+ * @summary Get the databases of an application
33588
+ * @param {string} organisation The organisation ID
33589
+ * @param {string} application The application ID
33590
+ * @param {*} [options] Override http request option.
33591
+ * @throws {RequiredError}
33592
+ */
33593
+ getApplicationDatabases: (organisation: string, application: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
33594
+ /**
33595
+ * 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.
33596
+ * @summary Make a database the database of an application
33597
+ * @param {string} organisation The organisation ID
33598
+ * @param {string} application The application ID
33599
+ * @param {string} instanceId The database instance identifier
33600
+ * @param {*} [options] Override http request option.
33601
+ * @throws {RequiredError}
33602
+ */
33603
+ promoteApplicationDatabase: (organisation: string, application: string, instanceId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
33604
+ /**
33605
+ * 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.
33606
+ * @summary Add a database to an application
33607
+ * @param {string} organisation The organisation ID
33608
+ * @param {string} application The application ID
33609
+ * @param {ProvisionApplicationDatabaseRequest} provisionApplicationDatabaseRequest
33610
+ * @param {*} [options] Override http request option.
33611
+ * @throws {RequiredError}
33612
+ */
33613
+ provisionApplicationDatabase: (organisation: string, application: string, provisionApplicationDatabaseRequest: ProvisionApplicationDatabaseRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
33614
+ /**
33615
+ * 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.
33616
+ * @summary Resize a database of an application
33617
+ * @param {string} organisation The organisation ID
33618
+ * @param {string} application The application ID
33619
+ * @param {string} instanceId The database instance identifier
33620
+ * @param {ResizeApplicationDatabaseRequest} resizeApplicationDatabaseRequest
33621
+ * @param {*} [options] Override http request option.
33622
+ * @throws {RequiredError}
33623
+ */
33624
+ resizeApplicationDatabase: (organisation: string, application: string, instanceId: string, resizeApplicationDatabaseRequest: ResizeApplicationDatabaseRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
33625
+ };
33626
+ /**
33627
+ * ApplicationDatabaseApi - functional programming interface
33628
+ * @export
33629
+ */
33630
+ export declare const ApplicationDatabaseApiFp: (configuration?: Configuration) => {
33631
+ /**
33632
+ * 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.
33633
+ * @summary Delete a database of an application
33634
+ * @param {string} organisation The organisation ID
33635
+ * @param {string} application The application ID
33636
+ * @param {string} instanceId The database instance identifier
33637
+ * @param {DeleteApplicationDatabaseRequest} deleteApplicationDatabaseRequest
33638
+ * @param {*} [options] Override http request option.
33639
+ * @throws {RequiredError}
33640
+ */
33641
+ deleteApplicationDatabase(organisation: string, application: string, instanceId: string, deleteApplicationDatabaseRequest: DeleteApplicationDatabaseRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteApplicationDatabaseResponse>>;
33642
+ /**
33643
+ * Poll this for a database being added: status is provisioning, ready or failed.
33644
+ * @summary Get one database of an application
33645
+ * @param {string} organisation The organisation ID
33646
+ * @param {string} application The application ID
33647
+ * @param {string} instanceId The database instance identifier, as returned by the list
33648
+ * @param {*} [options] Override http request option.
33649
+ * @throws {RequiredError}
33650
+ */
33651
+ getApplicationDatabase(organisation: string, application: string, instanceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApplicationDatabaseInstance>>;
33652
+ /**
33653
+ * 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).
33654
+ * @summary Get the databases of an application
33655
+ * @param {string} organisation The organisation ID
33656
+ * @param {string} application The application ID
33657
+ * @param {*} [options] Override http request option.
33658
+ * @throws {RequiredError}
33659
+ */
33660
+ getApplicationDatabases(organisation: string, application: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApplicationDatabases>>;
33661
+ /**
33662
+ * 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.
33663
+ * @summary Make a database the database of an application
33664
+ * @param {string} organisation The organisation ID
33665
+ * @param {string} application The application ID
33666
+ * @param {string} instanceId The database instance identifier
33667
+ * @param {*} [options] Override http request option.
33668
+ * @throws {RequiredError}
33669
+ */
33670
+ promoteApplicationDatabase(organisation: string, application: string, instanceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromoteApplicationDatabaseResponse>>;
33671
+ /**
33672
+ * 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.
33673
+ * @summary Add a database to an application
33674
+ * @param {string} organisation The organisation ID
33675
+ * @param {string} application The application ID
33676
+ * @param {ProvisionApplicationDatabaseRequest} provisionApplicationDatabaseRequest
33677
+ * @param {*} [options] Override http request option.
33678
+ * @throws {RequiredError}
33679
+ */
33680
+ provisionApplicationDatabase(organisation: string, application: string, provisionApplicationDatabaseRequest: ProvisionApplicationDatabaseRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProvisionApplicationDatabaseAccepted>>;
33681
+ /**
33682
+ * 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.
33683
+ * @summary Resize a database of an application
33684
+ * @param {string} organisation The organisation ID
33685
+ * @param {string} application The application ID
33686
+ * @param {string} instanceId The database instance identifier
33687
+ * @param {ResizeApplicationDatabaseRequest} resizeApplicationDatabaseRequest
33688
+ * @param {*} [options] Override http request option.
33689
+ * @throws {RequiredError}
33690
+ */
33691
+ resizeApplicationDatabase(organisation: string, application: string, instanceId: string, resizeApplicationDatabaseRequest: ResizeApplicationDatabaseRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ResizeApplicationDatabaseResponse>>;
33692
+ };
33693
+ /**
33694
+ * ApplicationDatabaseApi - factory interface
33695
+ * @export
33696
+ */
33697
+ export declare const ApplicationDatabaseApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
33698
+ /**
33699
+ * 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.
33700
+ * @summary Delete a database of an application
33701
+ * @param {string} organisation The organisation ID
33702
+ * @param {string} application The application ID
33703
+ * @param {string} instanceId The database instance identifier
33704
+ * @param {DeleteApplicationDatabaseRequest} deleteApplicationDatabaseRequest
33705
+ * @param {*} [options] Override http request option.
33706
+ * @throws {RequiredError}
33707
+ */
33708
+ deleteApplicationDatabase(organisation: string, application: string, instanceId: string, deleteApplicationDatabaseRequest: DeleteApplicationDatabaseRequest, options?: RawAxiosRequestConfig): AxiosPromise<DeleteApplicationDatabaseResponse>;
33709
+ /**
33710
+ * Poll this for a database being added: status is provisioning, ready or failed.
33711
+ * @summary Get one database of an application
33712
+ * @param {string} organisation The organisation ID
33713
+ * @param {string} application The application ID
33714
+ * @param {string} instanceId The database instance identifier, as returned by the list
33715
+ * @param {*} [options] Override http request option.
33716
+ * @throws {RequiredError}
33717
+ */
33718
+ getApplicationDatabase(organisation: string, application: string, instanceId: string, options?: RawAxiosRequestConfig): AxiosPromise<ApplicationDatabaseInstance>;
33719
+ /**
33720
+ * 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).
33721
+ * @summary Get the databases of an application
33722
+ * @param {string} organisation The organisation ID
33723
+ * @param {string} application The application ID
33724
+ * @param {*} [options] Override http request option.
33725
+ * @throws {RequiredError}
33726
+ */
33727
+ getApplicationDatabases(organisation: string, application: string, options?: RawAxiosRequestConfig): AxiosPromise<ApplicationDatabases>;
33728
+ /**
33729
+ * 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.
33730
+ * @summary Make a database the database of an application
33731
+ * @param {string} organisation The organisation ID
33732
+ * @param {string} application The application ID
33733
+ * @param {string} instanceId The database instance identifier
33734
+ * @param {*} [options] Override http request option.
33735
+ * @throws {RequiredError}
33736
+ */
33737
+ promoteApplicationDatabase(organisation: string, application: string, instanceId: string, options?: RawAxiosRequestConfig): AxiosPromise<PromoteApplicationDatabaseResponse>;
33738
+ /**
33739
+ * 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.
33740
+ * @summary Add a database to an application
33741
+ * @param {string} organisation The organisation ID
33742
+ * @param {string} application The application ID
33743
+ * @param {ProvisionApplicationDatabaseRequest} provisionApplicationDatabaseRequest
33744
+ * @param {*} [options] Override http request option.
33745
+ * @throws {RequiredError}
33746
+ */
33747
+ provisionApplicationDatabase(organisation: string, application: string, provisionApplicationDatabaseRequest: ProvisionApplicationDatabaseRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProvisionApplicationDatabaseAccepted>;
33748
+ /**
33749
+ * 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.
33750
+ * @summary Resize a database of an application
33751
+ * @param {string} organisation The organisation ID
33752
+ * @param {string} application The application ID
33753
+ * @param {string} instanceId The database instance identifier
33754
+ * @param {ResizeApplicationDatabaseRequest} resizeApplicationDatabaseRequest
33755
+ * @param {*} [options] Override http request option.
33756
+ * @throws {RequiredError}
33757
+ */
33758
+ resizeApplicationDatabase(organisation: string, application: string, instanceId: string, resizeApplicationDatabaseRequest: ResizeApplicationDatabaseRequest, options?: RawAxiosRequestConfig): AxiosPromise<ResizeApplicationDatabaseResponse>;
33759
+ };
33760
+ /**
33761
+ * ApplicationDatabaseApi - object-oriented interface
33762
+ * @export
33763
+ * @class ApplicationDatabaseApi
33764
+ * @extends {BaseAPI}
33765
+ */
33766
+ export declare class ApplicationDatabaseApi extends BaseAPI {
33767
+ /**
33768
+ * 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.
33769
+ * @summary Delete a database of an application
33770
+ * @param {string} organisation The organisation ID
33771
+ * @param {string} application The application ID
33772
+ * @param {string} instanceId The database instance identifier
33773
+ * @param {DeleteApplicationDatabaseRequest} deleteApplicationDatabaseRequest
33774
+ * @param {*} [options] Override http request option.
33775
+ * @throws {RequiredError}
33776
+ * @memberof ApplicationDatabaseApi
33777
+ */
33778
+ deleteApplicationDatabase(organisation: string, application: string, instanceId: string, deleteApplicationDatabaseRequest: DeleteApplicationDatabaseRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteApplicationDatabaseResponse, any, {}, any>>;
33779
+ /**
33780
+ * Poll this for a database being added: status is provisioning, ready or failed.
33781
+ * @summary Get one database of an application
33782
+ * @param {string} organisation The organisation ID
33783
+ * @param {string} application The application ID
33784
+ * @param {string} instanceId The database instance identifier, as returned by the list
33785
+ * @param {*} [options] Override http request option.
33786
+ * @throws {RequiredError}
33787
+ * @memberof ApplicationDatabaseApi
33788
+ */
33789
+ getApplicationDatabase(organisation: string, application: string, instanceId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ApplicationDatabaseInstance, any, {}, any>>;
33790
+ /**
33791
+ * 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).
33792
+ * @summary Get the databases of an application
33793
+ * @param {string} organisation The organisation ID
33794
+ * @param {string} application The application ID
33795
+ * @param {*} [options] Override http request option.
33796
+ * @throws {RequiredError}
33797
+ * @memberof ApplicationDatabaseApi
33798
+ */
33799
+ getApplicationDatabases(organisation: string, application: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ApplicationDatabases, any, {}, any>>;
33800
+ /**
33801
+ * 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.
33802
+ * @summary Make a database the database of an application
33803
+ * @param {string} organisation The organisation ID
33804
+ * @param {string} application The application ID
33805
+ * @param {string} instanceId The database instance identifier
33806
+ * @param {*} [options] Override http request option.
33807
+ * @throws {RequiredError}
33808
+ * @memberof ApplicationDatabaseApi
33809
+ */
33810
+ promoteApplicationDatabase(organisation: string, application: string, instanceId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PromoteApplicationDatabaseResponse, any, {}, any>>;
33811
+ /**
33812
+ * 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.
33813
+ * @summary Add a database to an application
33814
+ * @param {string} organisation The organisation ID
33815
+ * @param {string} application The application ID
33816
+ * @param {ProvisionApplicationDatabaseRequest} provisionApplicationDatabaseRequest
33817
+ * @param {*} [options] Override http request option.
33818
+ * @throws {RequiredError}
33819
+ * @memberof ApplicationDatabaseApi
33820
+ */
33821
+ provisionApplicationDatabase(organisation: string, application: string, provisionApplicationDatabaseRequest: ProvisionApplicationDatabaseRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProvisionApplicationDatabaseAccepted, any, {}, any>>;
33822
+ /**
33823
+ * 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.
33824
+ * @summary Resize a database of an application
33825
+ * @param {string} organisation The organisation ID
33826
+ * @param {string} application The application ID
33827
+ * @param {string} instanceId The database instance identifier
33828
+ * @param {ResizeApplicationDatabaseRequest} resizeApplicationDatabaseRequest
33829
+ * @param {*} [options] Override http request option.
33830
+ * @throws {RequiredError}
33831
+ * @memberof ApplicationDatabaseApi
33832
+ */
33833
+ resizeApplicationDatabase(organisation: string, application: string, instanceId: string, resizeApplicationDatabaseRequest: ResizeApplicationDatabaseRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ResizeApplicationDatabaseResponse, any, {}, any>>;
33834
+ }
32825
33835
  /**
32826
33836
  * ApplicationsApi - axios parameter creator
32827
33837
  * @export