@quantcdn/quant-client 4.39.0 → 4.40.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api.ts +1158 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +839 -1
- package/dist/api.js +605 -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 +839 -1
- package/dist/esm/api.js +591 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.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.
|
|
5
|
+
* The version of the OpenAPI document: 4.40.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1170,6 +1170,148 @@ 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 ApplicationDatabaseEnvironmentCredentialsSecretsInner
|
|
1177
|
+
*/
|
|
1178
|
+
export interface ApplicationDatabaseEnvironmentCredentialsSecretsInner {
|
|
1179
|
+
/**
|
|
1180
|
+
*
|
|
1181
|
+
* @type {string}
|
|
1182
|
+
* @memberof ApplicationDatabaseEnvironmentCredentialsSecretsInner
|
|
1183
|
+
*/
|
|
1184
|
+
'environment'?: string;
|
|
1185
|
+
/**
|
|
1186
|
+
*
|
|
1187
|
+
* @type {string}
|
|
1188
|
+
* @memberof ApplicationDatabaseEnvironmentCredentialsSecretsInner
|
|
1189
|
+
*/
|
|
1190
|
+
'secretName'?: string;
|
|
1191
|
+
}
|
|
1192
|
+
/**
|
|
1193
|
+
*
|
|
1194
|
+
* @export
|
|
1195
|
+
* @interface ApplicationDatabaseError
|
|
1196
|
+
*/
|
|
1197
|
+
export interface ApplicationDatabaseError {
|
|
1198
|
+
/**
|
|
1199
|
+
*
|
|
1200
|
+
* @type {string}
|
|
1201
|
+
* @memberof ApplicationDatabaseError
|
|
1202
|
+
*/
|
|
1203
|
+
'message'?: string;
|
|
1204
|
+
/**
|
|
1205
|
+
* 409 only: the operation that holds the application\'s lock.
|
|
1206
|
+
* @type {string}
|
|
1207
|
+
* @memberof ApplicationDatabaseError
|
|
1208
|
+
*/
|
|
1209
|
+
'operation'?: ApplicationDatabaseErrorOperationEnum;
|
|
1210
|
+
/**
|
|
1211
|
+
* 409 only: the operation that was refused.
|
|
1212
|
+
* @type {string}
|
|
1213
|
+
* @memberof ApplicationDatabaseError
|
|
1214
|
+
*/
|
|
1215
|
+
'requested'?: ApplicationDatabaseErrorRequestedEnum;
|
|
1216
|
+
/**
|
|
1217
|
+
* 409 only: the pending or previous database that blocks the request, or the provision in flight.
|
|
1218
|
+
* @type {string}
|
|
1219
|
+
* @memberof ApplicationDatabaseError
|
|
1220
|
+
*/
|
|
1221
|
+
'instanceId'?: string;
|
|
1222
|
+
/**
|
|
1223
|
+
* 409 only: for a provision in flight, the path to poll on the platform (this API serves it at the database route).
|
|
1224
|
+
* @type {string}
|
|
1225
|
+
* @memberof ApplicationDatabaseError
|
|
1226
|
+
*/
|
|
1227
|
+
'statusUrl'?: string;
|
|
1228
|
+
/**
|
|
1229
|
+
* Promote 409 only: the environments that have no user, or unreadable credentials, on the instance.
|
|
1230
|
+
* @type {Array<string>}
|
|
1231
|
+
* @memberof ApplicationDatabaseError
|
|
1232
|
+
*/
|
|
1233
|
+
'environments'?: Array<string>;
|
|
1234
|
+
/**
|
|
1235
|
+
* Delete 500 only: what could not be cleaned up.
|
|
1236
|
+
* @type {Array<string>}
|
|
1237
|
+
* @memberof ApplicationDatabaseError
|
|
1238
|
+
*/
|
|
1239
|
+
'errors'?: Array<string>;
|
|
1240
|
+
}
|
|
1241
|
+
export declare const ApplicationDatabaseErrorOperationEnum: {
|
|
1242
|
+
readonly Provision: "provision";
|
|
1243
|
+
readonly Promote: "promote";
|
|
1244
|
+
readonly Delete: "delete";
|
|
1245
|
+
};
|
|
1246
|
+
export type ApplicationDatabaseErrorOperationEnum = typeof ApplicationDatabaseErrorOperationEnum[keyof typeof ApplicationDatabaseErrorOperationEnum];
|
|
1247
|
+
export declare const ApplicationDatabaseErrorRequestedEnum: {
|
|
1248
|
+
readonly Provision: "provision";
|
|
1249
|
+
readonly Promote: "promote";
|
|
1250
|
+
readonly Delete: "delete";
|
|
1251
|
+
};
|
|
1252
|
+
export type ApplicationDatabaseErrorRequestedEnum = typeof ApplicationDatabaseErrorRequestedEnum[keyof typeof ApplicationDatabaseErrorRequestedEnum];
|
|
1253
|
+
/**
|
|
1254
|
+
* A resize RDS has accepted but not applied yet. Absent when there is none.
|
|
1255
|
+
* @export
|
|
1256
|
+
* @interface ApplicationDatabasePendingModifications
|
|
1257
|
+
*/
|
|
1258
|
+
export interface ApplicationDatabasePendingModifications {
|
|
1259
|
+
/**
|
|
1260
|
+
*
|
|
1261
|
+
* @type {string}
|
|
1262
|
+
* @memberof ApplicationDatabasePendingModifications
|
|
1263
|
+
*/
|
|
1264
|
+
'instanceClass'?: string;
|
|
1265
|
+
/**
|
|
1266
|
+
*
|
|
1267
|
+
* @type {number}
|
|
1268
|
+
* @memberof ApplicationDatabasePendingModifications
|
|
1269
|
+
*/
|
|
1270
|
+
'storageGb'?: number;
|
|
1271
|
+
/**
|
|
1272
|
+
*
|
|
1273
|
+
* @type {boolean}
|
|
1274
|
+
* @memberof ApplicationDatabasePendingModifications
|
|
1275
|
+
*/
|
|
1276
|
+
'multiAz'?: boolean;
|
|
1277
|
+
}
|
|
1278
|
+
/**
|
|
1279
|
+
*
|
|
1280
|
+
* @export
|
|
1281
|
+
* @interface ApplicationDatabases
|
|
1282
|
+
*/
|
|
1283
|
+
export interface ApplicationDatabases {
|
|
1284
|
+
/**
|
|
1285
|
+
*
|
|
1286
|
+
* @type {string}
|
|
1287
|
+
* @memberof ApplicationDatabases
|
|
1288
|
+
*/
|
|
1289
|
+
'orgName'?: string;
|
|
1290
|
+
/**
|
|
1291
|
+
*
|
|
1292
|
+
* @type {string}
|
|
1293
|
+
* @memberof ApplicationDatabases
|
|
1294
|
+
*/
|
|
1295
|
+
'appName'?: string;
|
|
1296
|
+
/**
|
|
1297
|
+
*
|
|
1298
|
+
* @type {ApplicationDatabase}
|
|
1299
|
+
* @memberof ApplicationDatabases
|
|
1300
|
+
*/
|
|
1301
|
+
'active'?: ApplicationDatabase | null;
|
|
1302
|
+
/**
|
|
1303
|
+
*
|
|
1304
|
+
* @type {ApplicationDatabase}
|
|
1305
|
+
* @memberof ApplicationDatabases
|
|
1306
|
+
*/
|
|
1307
|
+
'next'?: ApplicationDatabase | null;
|
|
1308
|
+
/**
|
|
1309
|
+
*
|
|
1310
|
+
* @type {ApplicationDatabase}
|
|
1311
|
+
* @memberof ApplicationDatabases
|
|
1312
|
+
*/
|
|
1313
|
+
'previous'?: ApplicationDatabase | null;
|
|
1314
|
+
}
|
|
1173
1315
|
/**
|
|
1174
1316
|
*
|
|
1175
1317
|
* @export
|
|
@@ -5365,6 +5507,67 @@ export interface DeleteAgentOverlay200Response {
|
|
|
5365
5507
|
*/
|
|
5366
5508
|
'message'?: string;
|
|
5367
5509
|
}
|
|
5510
|
+
/**
|
|
5511
|
+
*
|
|
5512
|
+
* @export
|
|
5513
|
+
* @interface DeleteApplicationDatabaseRequest
|
|
5514
|
+
*/
|
|
5515
|
+
export interface DeleteApplicationDatabaseRequest {
|
|
5516
|
+
/**
|
|
5517
|
+
* Must be true: the database and its automated backups are deleted with no final snapshot.
|
|
5518
|
+
* @type {boolean}
|
|
5519
|
+
* @memberof DeleteApplicationDatabaseRequest
|
|
5520
|
+
*/
|
|
5521
|
+
'acknowledgeDataloss': boolean;
|
|
5522
|
+
}
|
|
5523
|
+
/**
|
|
5524
|
+
*
|
|
5525
|
+
* @export
|
|
5526
|
+
* @interface DeleteApplicationDatabaseResponse
|
|
5527
|
+
*/
|
|
5528
|
+
export interface DeleteApplicationDatabaseResponse {
|
|
5529
|
+
/**
|
|
5530
|
+
*
|
|
5531
|
+
* @type {string}
|
|
5532
|
+
* @memberof DeleteApplicationDatabaseResponse
|
|
5533
|
+
*/
|
|
5534
|
+
'message'?: string;
|
|
5535
|
+
/**
|
|
5536
|
+
*
|
|
5537
|
+
* @type {string}
|
|
5538
|
+
* @memberof DeleteApplicationDatabaseResponse
|
|
5539
|
+
*/
|
|
5540
|
+
'orgName'?: string;
|
|
5541
|
+
/**
|
|
5542
|
+
*
|
|
5543
|
+
* @type {string}
|
|
5544
|
+
* @memberof DeleteApplicationDatabaseResponse
|
|
5545
|
+
*/
|
|
5546
|
+
'appName'?: string;
|
|
5547
|
+
/**
|
|
5548
|
+
*
|
|
5549
|
+
* @type {string}
|
|
5550
|
+
* @memberof DeleteApplicationDatabaseResponse
|
|
5551
|
+
*/
|
|
5552
|
+
'instanceId'?: string;
|
|
5553
|
+
/**
|
|
5554
|
+
*
|
|
5555
|
+
* @type {string}
|
|
5556
|
+
* @memberof DeleteApplicationDatabaseResponse
|
|
5557
|
+
*/
|
|
5558
|
+
'status'?: DeleteApplicationDatabaseResponseStatusEnum;
|
|
5559
|
+
/**
|
|
5560
|
+
* No final snapshot was taken.
|
|
5561
|
+
* @type {string}
|
|
5562
|
+
* @memberof DeleteApplicationDatabaseResponse
|
|
5563
|
+
*/
|
|
5564
|
+
'note'?: string;
|
|
5565
|
+
}
|
|
5566
|
+
export declare const DeleteApplicationDatabaseResponseStatusEnum: {
|
|
5567
|
+
readonly Deleting: "deleting";
|
|
5568
|
+
readonly Deleted: "deleted";
|
|
5569
|
+
};
|
|
5570
|
+
export type DeleteApplicationDatabaseResponseStatusEnum = typeof DeleteApplicationDatabaseResponseStatusEnum[keyof typeof DeleteApplicationDatabaseResponseStatusEnum];
|
|
5368
5571
|
/**
|
|
5369
5572
|
*
|
|
5370
5573
|
* @export
|
|
@@ -11674,6 +11877,233 @@ export declare const ProjectsDelete503ResponseCodeEnum: {
|
|
|
11674
11877
|
readonly KvStoreDeleteFailed: "KV_STORE_DELETE_FAILED";
|
|
11675
11878
|
};
|
|
11676
11879
|
export type ProjectsDelete503ResponseCodeEnum = typeof ProjectsDelete503ResponseCodeEnum[keyof typeof ProjectsDelete503ResponseCodeEnum];
|
|
11880
|
+
/**
|
|
11881
|
+
*
|
|
11882
|
+
* @export
|
|
11883
|
+
* @interface PromoteApplicationDatabaseResponse
|
|
11884
|
+
*/
|
|
11885
|
+
export interface PromoteApplicationDatabaseResponse {
|
|
11886
|
+
/**
|
|
11887
|
+
*
|
|
11888
|
+
* @type {string}
|
|
11889
|
+
* @memberof PromoteApplicationDatabaseResponse
|
|
11890
|
+
*/
|
|
11891
|
+
'message'?: string;
|
|
11892
|
+
/**
|
|
11893
|
+
*
|
|
11894
|
+
* @type {string}
|
|
11895
|
+
* @memberof PromoteApplicationDatabaseResponse
|
|
11896
|
+
*/
|
|
11897
|
+
'orgName'?: string;
|
|
11898
|
+
/**
|
|
11899
|
+
*
|
|
11900
|
+
* @type {string}
|
|
11901
|
+
* @memberof PromoteApplicationDatabaseResponse
|
|
11902
|
+
*/
|
|
11903
|
+
'appName'?: string;
|
|
11904
|
+
/**
|
|
11905
|
+
* The database now in use.
|
|
11906
|
+
* @type {string}
|
|
11907
|
+
* @memberof PromoteApplicationDatabaseResponse
|
|
11908
|
+
*/
|
|
11909
|
+
'active'?: string;
|
|
11910
|
+
/**
|
|
11911
|
+
* The database kept for rollback. Absent when there was none.
|
|
11912
|
+
* @type {string}
|
|
11913
|
+
* @memberof PromoteApplicationDatabaseResponse
|
|
11914
|
+
*/
|
|
11915
|
+
'previous'?: string;
|
|
11916
|
+
/**
|
|
11917
|
+
* Every environment that uses the database.
|
|
11918
|
+
* @type {Array<string>}
|
|
11919
|
+
* @memberof PromoteApplicationDatabaseResponse
|
|
11920
|
+
*/
|
|
11921
|
+
'environments'?: Array<string>;
|
|
11922
|
+
/**
|
|
11923
|
+
* Environments whose service was updated onto a new task definition revision with a forced new deployment.
|
|
11924
|
+
* @type {Array<string>}
|
|
11925
|
+
* @memberof PromoteApplicationDatabaseResponse
|
|
11926
|
+
*/
|
|
11927
|
+
'redeployed'?: Array<string>;
|
|
11928
|
+
/**
|
|
11929
|
+
* Environments whose redeploy did not fit the request\'s time budget and was queued. Not done yet; a failure is only logged.
|
|
11930
|
+
* @type {Array<string>}
|
|
11931
|
+
* @memberof PromoteApplicationDatabaseResponse
|
|
11932
|
+
*/
|
|
11933
|
+
'redeployQueued'?: Array<string>;
|
|
11934
|
+
/**
|
|
11935
|
+
* Environments whose redeploy could not be started. The switch is done; they still run the previous revision, which still works.
|
|
11936
|
+
* @type {Array<PromoteApplicationDatabaseResponseRedeployFailedInner>}
|
|
11937
|
+
* @memberof PromoteApplicationDatabaseResponse
|
|
11938
|
+
*/
|
|
11939
|
+
'redeployFailed'?: Array<PromoteApplicationDatabaseResponseRedeployFailedInner>;
|
|
11940
|
+
/**
|
|
11941
|
+
* Environments that needed no redeploy: already on the new revision, or without a running service.
|
|
11942
|
+
* @type {Array<string>}
|
|
11943
|
+
* @memberof PromoteApplicationDatabaseResponse
|
|
11944
|
+
*/
|
|
11945
|
+
'upToDate'?: Array<string>;
|
|
11946
|
+
/**
|
|
11947
|
+
* redeployFailed plus redeployQueued: the environments that still run the previous task definition.
|
|
11948
|
+
* @type {Array<string>}
|
|
11949
|
+
* @memberof PromoteApplicationDatabaseResponse
|
|
11950
|
+
*/
|
|
11951
|
+
'redeployRequired'?: Array<string>;
|
|
11952
|
+
/**
|
|
11953
|
+
* Environments whose variables could not be updated. Repeat the request.
|
|
11954
|
+
* @type {Array<string>}
|
|
11955
|
+
* @memberof PromoteApplicationDatabaseResponse
|
|
11956
|
+
*/
|
|
11957
|
+
'warnings'?: Array<string>;
|
|
11958
|
+
/**
|
|
11959
|
+
*
|
|
11960
|
+
* @type {string}
|
|
11961
|
+
* @memberof PromoteApplicationDatabaseResponse
|
|
11962
|
+
*/
|
|
11963
|
+
'note'?: string;
|
|
11964
|
+
}
|
|
11965
|
+
/**
|
|
11966
|
+
*
|
|
11967
|
+
* @export
|
|
11968
|
+
* @interface PromoteApplicationDatabaseResponseRedeployFailedInner
|
|
11969
|
+
*/
|
|
11970
|
+
export interface PromoteApplicationDatabaseResponseRedeployFailedInner {
|
|
11971
|
+
/**
|
|
11972
|
+
*
|
|
11973
|
+
* @type {string}
|
|
11974
|
+
* @memberof PromoteApplicationDatabaseResponseRedeployFailedInner
|
|
11975
|
+
*/
|
|
11976
|
+
'environment'?: string;
|
|
11977
|
+
/**
|
|
11978
|
+
* A short reason. Never a credential.
|
|
11979
|
+
* @type {string}
|
|
11980
|
+
* @memberof PromoteApplicationDatabaseResponseRedeployFailedInner
|
|
11981
|
+
*/
|
|
11982
|
+
'error'?: string;
|
|
11983
|
+
}
|
|
11984
|
+
/**
|
|
11985
|
+
*
|
|
11986
|
+
* @export
|
|
11987
|
+
* @interface ProvisionApplicationDatabaseAccepted
|
|
11988
|
+
*/
|
|
11989
|
+
export interface ProvisionApplicationDatabaseAccepted {
|
|
11990
|
+
/**
|
|
11991
|
+
*
|
|
11992
|
+
* @type {string}
|
|
11993
|
+
* @memberof ProvisionApplicationDatabaseAccepted
|
|
11994
|
+
*/
|
|
11995
|
+
'message'?: string;
|
|
11996
|
+
/**
|
|
11997
|
+
*
|
|
11998
|
+
* @type {string}
|
|
11999
|
+
* @memberof ProvisionApplicationDatabaseAccepted
|
|
12000
|
+
*/
|
|
12001
|
+
'orgName'?: string;
|
|
12002
|
+
/**
|
|
12003
|
+
*
|
|
12004
|
+
* @type {string}
|
|
12005
|
+
* @memberof ProvisionApplicationDatabaseAccepted
|
|
12006
|
+
*/
|
|
12007
|
+
'appName'?: string;
|
|
12008
|
+
/**
|
|
12009
|
+
*
|
|
12010
|
+
* @type {string}
|
|
12011
|
+
* @memberof ProvisionApplicationDatabaseAccepted
|
|
12012
|
+
*/
|
|
12013
|
+
'instanceId'?: string;
|
|
12014
|
+
/**
|
|
12015
|
+
*
|
|
12016
|
+
* @type {string}
|
|
12017
|
+
* @memberof ProvisionApplicationDatabaseAccepted
|
|
12018
|
+
*/
|
|
12019
|
+
'engine'?: ProvisionApplicationDatabaseAcceptedEngineEnum;
|
|
12020
|
+
/**
|
|
12021
|
+
*
|
|
12022
|
+
* @type {string}
|
|
12023
|
+
* @memberof ProvisionApplicationDatabaseAccepted
|
|
12024
|
+
*/
|
|
12025
|
+
'status'?: ProvisionApplicationDatabaseAcceptedStatusEnum;
|
|
12026
|
+
/**
|
|
12027
|
+
* The API path to poll.
|
|
12028
|
+
* @type {string}
|
|
12029
|
+
* @memberof ProvisionApplicationDatabaseAccepted
|
|
12030
|
+
*/
|
|
12031
|
+
'statusUrl'?: string;
|
|
12032
|
+
/**
|
|
12033
|
+
*
|
|
12034
|
+
* @type {Array<string>}
|
|
12035
|
+
* @memberof ProvisionApplicationDatabaseAccepted
|
|
12036
|
+
*/
|
|
12037
|
+
'environmentVariables'?: Array<string>;
|
|
12038
|
+
/**
|
|
12039
|
+
* DB_NEXT_USERNAME and DB_NEXT_PASSWORD: secret references into the new database\'s own credentials. Never values.
|
|
12040
|
+
* @type {Array<string>}
|
|
12041
|
+
* @memberof ProvisionApplicationDatabaseAccepted
|
|
12042
|
+
*/
|
|
12043
|
+
'environmentSecretReferences'?: Array<string>;
|
|
12044
|
+
/**
|
|
12045
|
+
*
|
|
12046
|
+
* @type {string}
|
|
12047
|
+
* @memberof ProvisionApplicationDatabaseAccepted
|
|
12048
|
+
*/
|
|
12049
|
+
'note'?: string;
|
|
12050
|
+
}
|
|
12051
|
+
export declare const ProvisionApplicationDatabaseAcceptedEngineEnum: {
|
|
12052
|
+
readonly Mysql: "mysql";
|
|
12053
|
+
readonly Postgres: "postgres";
|
|
12054
|
+
};
|
|
12055
|
+
export type ProvisionApplicationDatabaseAcceptedEngineEnum = typeof ProvisionApplicationDatabaseAcceptedEngineEnum[keyof typeof ProvisionApplicationDatabaseAcceptedEngineEnum];
|
|
12056
|
+
export declare const ProvisionApplicationDatabaseAcceptedStatusEnum: {
|
|
12057
|
+
readonly Provisioning: "provisioning";
|
|
12058
|
+
readonly Ready: "ready";
|
|
12059
|
+
readonly Failed: "failed";
|
|
12060
|
+
};
|
|
12061
|
+
export type ProvisionApplicationDatabaseAcceptedStatusEnum = typeof ProvisionApplicationDatabaseAcceptedStatusEnum[keyof typeof ProvisionApplicationDatabaseAcceptedStatusEnum];
|
|
12062
|
+
/**
|
|
12063
|
+
*
|
|
12064
|
+
* @export
|
|
12065
|
+
* @interface ProvisionApplicationDatabaseRequest
|
|
12066
|
+
*/
|
|
12067
|
+
export interface ProvisionApplicationDatabaseRequest {
|
|
12068
|
+
/**
|
|
12069
|
+
*
|
|
12070
|
+
* @type {string}
|
|
12071
|
+
* @memberof ProvisionApplicationDatabaseRequest
|
|
12072
|
+
*/
|
|
12073
|
+
'engine': ProvisionApplicationDatabaseRequestEngineEnum;
|
|
12074
|
+
/**
|
|
12075
|
+
*
|
|
12076
|
+
* @type {string}
|
|
12077
|
+
* @memberof ProvisionApplicationDatabaseRequest
|
|
12078
|
+
*/
|
|
12079
|
+
'instanceClass'?: ProvisionApplicationDatabaseRequestInstanceClassEnum;
|
|
12080
|
+
/**
|
|
12081
|
+
* Allocated storage in GiB. Storage autoscaling is on, up to 1000.
|
|
12082
|
+
* @type {number}
|
|
12083
|
+
* @memberof ProvisionApplicationDatabaseRequest
|
|
12084
|
+
*/
|
|
12085
|
+
'storageGb'?: number;
|
|
12086
|
+
/**
|
|
12087
|
+
*
|
|
12088
|
+
* @type {boolean}
|
|
12089
|
+
* @memberof ProvisionApplicationDatabaseRequest
|
|
12090
|
+
*/
|
|
12091
|
+
'multiAz'?: boolean;
|
|
12092
|
+
}
|
|
12093
|
+
export declare const ProvisionApplicationDatabaseRequestEngineEnum: {
|
|
12094
|
+
readonly Mysql: "mysql";
|
|
12095
|
+
readonly Postgres: "postgres";
|
|
12096
|
+
};
|
|
12097
|
+
export type ProvisionApplicationDatabaseRequestEngineEnum = typeof ProvisionApplicationDatabaseRequestEngineEnum[keyof typeof ProvisionApplicationDatabaseRequestEngineEnum];
|
|
12098
|
+
export declare const ProvisionApplicationDatabaseRequestInstanceClassEnum: {
|
|
12099
|
+
readonly DbT4gMicro: "db.t4g.micro";
|
|
12100
|
+
readonly DbT4gSmall: "db.t4g.small";
|
|
12101
|
+
readonly DbT4gMedium: "db.t4g.medium";
|
|
12102
|
+
readonly DbT4gLarge: "db.t4g.large";
|
|
12103
|
+
readonly DbT4gXlarge: "db.t4g.xlarge";
|
|
12104
|
+
readonly DbT4g2xlarge: "db.t4g.2xlarge";
|
|
12105
|
+
};
|
|
12106
|
+
export type ProvisionApplicationDatabaseRequestInstanceClassEnum = typeof ProvisionApplicationDatabaseRequestInstanceClassEnum[keyof typeof ProvisionApplicationDatabaseRequestInstanceClassEnum];
|
|
11677
12107
|
/**
|
|
11678
12108
|
*
|
|
11679
12109
|
* @export
|
|
@@ -12136,6 +12566,138 @@ export interface QueryVectorCollectionRequestFilter {
|
|
|
12136
12566
|
[key: string]: Array<string>;
|
|
12137
12567
|
};
|
|
12138
12568
|
}
|
|
12569
|
+
/**
|
|
12570
|
+
* At least one of instanceClass, storageGb, multiAz.
|
|
12571
|
+
* @export
|
|
12572
|
+
* @interface ResizeApplicationDatabaseRequest
|
|
12573
|
+
*/
|
|
12574
|
+
export interface ResizeApplicationDatabaseRequest {
|
|
12575
|
+
/**
|
|
12576
|
+
*
|
|
12577
|
+
* @type {string}
|
|
12578
|
+
* @memberof ResizeApplicationDatabaseRequest
|
|
12579
|
+
*/
|
|
12580
|
+
'instanceClass'?: ResizeApplicationDatabaseRequestInstanceClassEnum;
|
|
12581
|
+
/**
|
|
12582
|
+
* Grows only, by at least 10 %.
|
|
12583
|
+
* @type {number}
|
|
12584
|
+
* @memberof ResizeApplicationDatabaseRequest
|
|
12585
|
+
*/
|
|
12586
|
+
'storageGb'?: number;
|
|
12587
|
+
/**
|
|
12588
|
+
*
|
|
12589
|
+
* @type {boolean}
|
|
12590
|
+
* @memberof ResizeApplicationDatabaseRequest
|
|
12591
|
+
*/
|
|
12592
|
+
'multiAz'?: boolean;
|
|
12593
|
+
/**
|
|
12594
|
+
* false: in the next maintenance window.
|
|
12595
|
+
* @type {boolean}
|
|
12596
|
+
* @memberof ResizeApplicationDatabaseRequest
|
|
12597
|
+
*/
|
|
12598
|
+
'applyImmediately'?: boolean;
|
|
12599
|
+
}
|
|
12600
|
+
export declare const ResizeApplicationDatabaseRequestInstanceClassEnum: {
|
|
12601
|
+
readonly DbT4gMicro: "db.t4g.micro";
|
|
12602
|
+
readonly DbT4gSmall: "db.t4g.small";
|
|
12603
|
+
readonly DbT4gMedium: "db.t4g.medium";
|
|
12604
|
+
readonly DbT4gLarge: "db.t4g.large";
|
|
12605
|
+
readonly DbT4gXlarge: "db.t4g.xlarge";
|
|
12606
|
+
readonly DbT4g2xlarge: "db.t4g.2xlarge";
|
|
12607
|
+
};
|
|
12608
|
+
export type ResizeApplicationDatabaseRequestInstanceClassEnum = typeof ResizeApplicationDatabaseRequestInstanceClassEnum[keyof typeof ResizeApplicationDatabaseRequestInstanceClassEnum];
|
|
12609
|
+
/**
|
|
12610
|
+
*
|
|
12611
|
+
* @export
|
|
12612
|
+
* @interface ResizeApplicationDatabaseResponse
|
|
12613
|
+
*/
|
|
12614
|
+
export interface ResizeApplicationDatabaseResponse {
|
|
12615
|
+
/**
|
|
12616
|
+
*
|
|
12617
|
+
* @type {string}
|
|
12618
|
+
* @memberof ResizeApplicationDatabaseResponse
|
|
12619
|
+
*/
|
|
12620
|
+
'message'?: string;
|
|
12621
|
+
/**
|
|
12622
|
+
*
|
|
12623
|
+
* @type {string}
|
|
12624
|
+
* @memberof ResizeApplicationDatabaseResponse
|
|
12625
|
+
*/
|
|
12626
|
+
'orgName'?: string;
|
|
12627
|
+
/**
|
|
12628
|
+
*
|
|
12629
|
+
* @type {string}
|
|
12630
|
+
* @memberof ResizeApplicationDatabaseResponse
|
|
12631
|
+
*/
|
|
12632
|
+
'appName'?: string;
|
|
12633
|
+
/**
|
|
12634
|
+
*
|
|
12635
|
+
* @type {string}
|
|
12636
|
+
* @memberof ResizeApplicationDatabaseResponse
|
|
12637
|
+
*/
|
|
12638
|
+
'instanceId'?: string;
|
|
12639
|
+
/**
|
|
12640
|
+
*
|
|
12641
|
+
* @type {string}
|
|
12642
|
+
* @memberof ResizeApplicationDatabaseResponse
|
|
12643
|
+
*/
|
|
12644
|
+
'role'?: ResizeApplicationDatabaseResponseRoleEnum;
|
|
12645
|
+
/**
|
|
12646
|
+
*
|
|
12647
|
+
* @type {boolean}
|
|
12648
|
+
* @memberof ResizeApplicationDatabaseResponse
|
|
12649
|
+
*/
|
|
12650
|
+
'applyImmediately'?: boolean;
|
|
12651
|
+
/**
|
|
12652
|
+
*
|
|
12653
|
+
* @type {ResizeApplicationDatabaseResponseChanges}
|
|
12654
|
+
* @memberof ResizeApplicationDatabaseResponse
|
|
12655
|
+
*/
|
|
12656
|
+
'changes'?: ResizeApplicationDatabaseResponseChanges;
|
|
12657
|
+
/**
|
|
12658
|
+
* The API path to poll.
|
|
12659
|
+
* @type {string}
|
|
12660
|
+
* @memberof ResizeApplicationDatabaseResponse
|
|
12661
|
+
*/
|
|
12662
|
+
'statusUrl'?: string;
|
|
12663
|
+
/**
|
|
12664
|
+
*
|
|
12665
|
+
* @type {string}
|
|
12666
|
+
* @memberof ResizeApplicationDatabaseResponse
|
|
12667
|
+
*/
|
|
12668
|
+
'note'?: string;
|
|
12669
|
+
}
|
|
12670
|
+
export declare const ResizeApplicationDatabaseResponseRoleEnum: {
|
|
12671
|
+
readonly Active: "active";
|
|
12672
|
+
readonly Next: "next";
|
|
12673
|
+
readonly Previous: "previous";
|
|
12674
|
+
};
|
|
12675
|
+
export type ResizeApplicationDatabaseResponseRoleEnum = typeof ResizeApplicationDatabaseResponseRoleEnum[keyof typeof ResizeApplicationDatabaseResponseRoleEnum];
|
|
12676
|
+
/**
|
|
12677
|
+
* The fields that change: only those that differ from the live instance.
|
|
12678
|
+
* @export
|
|
12679
|
+
* @interface ResizeApplicationDatabaseResponseChanges
|
|
12680
|
+
*/
|
|
12681
|
+
export interface ResizeApplicationDatabaseResponseChanges {
|
|
12682
|
+
/**
|
|
12683
|
+
*
|
|
12684
|
+
* @type {string}
|
|
12685
|
+
* @memberof ResizeApplicationDatabaseResponseChanges
|
|
12686
|
+
*/
|
|
12687
|
+
'instanceClass'?: string;
|
|
12688
|
+
/**
|
|
12689
|
+
*
|
|
12690
|
+
* @type {number}
|
|
12691
|
+
* @memberof ResizeApplicationDatabaseResponseChanges
|
|
12692
|
+
*/
|
|
12693
|
+
'storageGb'?: number;
|
|
12694
|
+
/**
|
|
12695
|
+
*
|
|
12696
|
+
* @type {boolean}
|
|
12697
|
+
* @memberof ResizeApplicationDatabaseResponseChanges
|
|
12698
|
+
*/
|
|
12699
|
+
'multiAz'?: boolean;
|
|
12700
|
+
}
|
|
12139
12701
|
/**
|
|
12140
12702
|
*
|
|
12141
12703
|
* @export
|
|
@@ -32822,6 +33384,282 @@ export declare class AlertChannelsApi extends BaseAPI {
|
|
|
32822
33384
|
*/
|
|
32823
33385
|
alertChannelsList(organisation: string, project: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AlertChannelList, any, {}, any>>;
|
|
32824
33386
|
}
|
|
33387
|
+
/**
|
|
33388
|
+
* ApplicationDatabaseApi - axios parameter creator
|
|
33389
|
+
* @export
|
|
33390
|
+
*/
|
|
33391
|
+
export declare const ApplicationDatabaseApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
33392
|
+
/**
|
|
33393
|
+
* 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.
|
|
33394
|
+
* @summary Delete a database of an application
|
|
33395
|
+
* @param {string} organisation The organisation ID
|
|
33396
|
+
* @param {string} application The application ID
|
|
33397
|
+
* @param {string} instanceId The database instance identifier
|
|
33398
|
+
* @param {DeleteApplicationDatabaseRequest} deleteApplicationDatabaseRequest
|
|
33399
|
+
* @param {*} [options] Override http request option.
|
|
33400
|
+
* @throws {RequiredError}
|
|
33401
|
+
*/
|
|
33402
|
+
deleteApplicationDatabase: (organisation: string, application: string, instanceId: string, deleteApplicationDatabaseRequest: DeleteApplicationDatabaseRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
33403
|
+
/**
|
|
33404
|
+
* Poll this for a database being added: status is provisioning, ready or failed.
|
|
33405
|
+
* @summary Get one database of an application
|
|
33406
|
+
* @param {string} organisation The organisation ID
|
|
33407
|
+
* @param {string} application The application ID
|
|
33408
|
+
* @param {string} instanceId The database instance identifier, as returned by the list
|
|
33409
|
+
* @param {*} [options] Override http request option.
|
|
33410
|
+
* @throws {RequiredError}
|
|
33411
|
+
*/
|
|
33412
|
+
getApplicationDatabase: (organisation: string, application: string, instanceId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
33413
|
+
/**
|
|
33414
|
+
* 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).
|
|
33415
|
+
* @summary Get the databases of an application
|
|
33416
|
+
* @param {string} organisation The organisation ID
|
|
33417
|
+
* @param {string} application The application ID
|
|
33418
|
+
* @param {*} [options] Override http request option.
|
|
33419
|
+
* @throws {RequiredError}
|
|
33420
|
+
*/
|
|
33421
|
+
getApplicationDatabases: (organisation: string, application: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
33422
|
+
/**
|
|
33423
|
+
* 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.
|
|
33424
|
+
* @summary Make a database the database of an application
|
|
33425
|
+
* @param {string} organisation The organisation ID
|
|
33426
|
+
* @param {string} application The application ID
|
|
33427
|
+
* @param {string} instanceId The database instance identifier
|
|
33428
|
+
* @param {*} [options] Override http request option.
|
|
33429
|
+
* @throws {RequiredError}
|
|
33430
|
+
*/
|
|
33431
|
+
promoteApplicationDatabase: (organisation: string, application: string, instanceId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
33432
|
+
/**
|
|
33433
|
+
* 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.
|
|
33434
|
+
* @summary Add a database to an application
|
|
33435
|
+
* @param {string} organisation The organisation ID
|
|
33436
|
+
* @param {string} application The application ID
|
|
33437
|
+
* @param {ProvisionApplicationDatabaseRequest} provisionApplicationDatabaseRequest
|
|
33438
|
+
* @param {*} [options] Override http request option.
|
|
33439
|
+
* @throws {RequiredError}
|
|
33440
|
+
*/
|
|
33441
|
+
provisionApplicationDatabase: (organisation: string, application: string, provisionApplicationDatabaseRequest: ProvisionApplicationDatabaseRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
33442
|
+
/**
|
|
33443
|
+
* 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.
|
|
33444
|
+
* @summary Resize a database of an application
|
|
33445
|
+
* @param {string} organisation The organisation ID
|
|
33446
|
+
* @param {string} application The application ID
|
|
33447
|
+
* @param {string} instanceId The database instance identifier
|
|
33448
|
+
* @param {ResizeApplicationDatabaseRequest} resizeApplicationDatabaseRequest
|
|
33449
|
+
* @param {*} [options] Override http request option.
|
|
33450
|
+
* @throws {RequiredError}
|
|
33451
|
+
*/
|
|
33452
|
+
resizeApplicationDatabase: (organisation: string, application: string, instanceId: string, resizeApplicationDatabaseRequest: ResizeApplicationDatabaseRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
33453
|
+
};
|
|
33454
|
+
/**
|
|
33455
|
+
* ApplicationDatabaseApi - functional programming interface
|
|
33456
|
+
* @export
|
|
33457
|
+
*/
|
|
33458
|
+
export declare const ApplicationDatabaseApiFp: (configuration?: Configuration) => {
|
|
33459
|
+
/**
|
|
33460
|
+
* 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.
|
|
33461
|
+
* @summary Delete a database of an application
|
|
33462
|
+
* @param {string} organisation The organisation ID
|
|
33463
|
+
* @param {string} application The application ID
|
|
33464
|
+
* @param {string} instanceId The database instance identifier
|
|
33465
|
+
* @param {DeleteApplicationDatabaseRequest} deleteApplicationDatabaseRequest
|
|
33466
|
+
* @param {*} [options] Override http request option.
|
|
33467
|
+
* @throws {RequiredError}
|
|
33468
|
+
*/
|
|
33469
|
+
deleteApplicationDatabase(organisation: string, application: string, instanceId: string, deleteApplicationDatabaseRequest: DeleteApplicationDatabaseRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteApplicationDatabaseResponse>>;
|
|
33470
|
+
/**
|
|
33471
|
+
* Poll this for a database being added: status is provisioning, ready or failed.
|
|
33472
|
+
* @summary Get one database of an application
|
|
33473
|
+
* @param {string} organisation The organisation ID
|
|
33474
|
+
* @param {string} application The application ID
|
|
33475
|
+
* @param {string} instanceId The database instance identifier, as returned by the list
|
|
33476
|
+
* @param {*} [options] Override http request option.
|
|
33477
|
+
* @throws {RequiredError}
|
|
33478
|
+
*/
|
|
33479
|
+
getApplicationDatabase(organisation: string, application: string, instanceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApplicationDatabase>>;
|
|
33480
|
+
/**
|
|
33481
|
+
* 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).
|
|
33482
|
+
* @summary Get the databases of an application
|
|
33483
|
+
* @param {string} organisation The organisation ID
|
|
33484
|
+
* @param {string} application The application ID
|
|
33485
|
+
* @param {*} [options] Override http request option.
|
|
33486
|
+
* @throws {RequiredError}
|
|
33487
|
+
*/
|
|
33488
|
+
getApplicationDatabases(organisation: string, application: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApplicationDatabases>>;
|
|
33489
|
+
/**
|
|
33490
|
+
* 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.
|
|
33491
|
+
* @summary Make a database the database of an application
|
|
33492
|
+
* @param {string} organisation The organisation ID
|
|
33493
|
+
* @param {string} application The application ID
|
|
33494
|
+
* @param {string} instanceId The database instance identifier
|
|
33495
|
+
* @param {*} [options] Override http request option.
|
|
33496
|
+
* @throws {RequiredError}
|
|
33497
|
+
*/
|
|
33498
|
+
promoteApplicationDatabase(organisation: string, application: string, instanceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PromoteApplicationDatabaseResponse>>;
|
|
33499
|
+
/**
|
|
33500
|
+
* 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.
|
|
33501
|
+
* @summary Add a database to an application
|
|
33502
|
+
* @param {string} organisation The organisation ID
|
|
33503
|
+
* @param {string} application The application ID
|
|
33504
|
+
* @param {ProvisionApplicationDatabaseRequest} provisionApplicationDatabaseRequest
|
|
33505
|
+
* @param {*} [options] Override http request option.
|
|
33506
|
+
* @throws {RequiredError}
|
|
33507
|
+
*/
|
|
33508
|
+
provisionApplicationDatabase(organisation: string, application: string, provisionApplicationDatabaseRequest: ProvisionApplicationDatabaseRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProvisionApplicationDatabaseAccepted>>;
|
|
33509
|
+
/**
|
|
33510
|
+
* 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.
|
|
33511
|
+
* @summary Resize a database of an application
|
|
33512
|
+
* @param {string} organisation The organisation ID
|
|
33513
|
+
* @param {string} application The application ID
|
|
33514
|
+
* @param {string} instanceId The database instance identifier
|
|
33515
|
+
* @param {ResizeApplicationDatabaseRequest} resizeApplicationDatabaseRequest
|
|
33516
|
+
* @param {*} [options] Override http request option.
|
|
33517
|
+
* @throws {RequiredError}
|
|
33518
|
+
*/
|
|
33519
|
+
resizeApplicationDatabase(organisation: string, application: string, instanceId: string, resizeApplicationDatabaseRequest: ResizeApplicationDatabaseRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ResizeApplicationDatabaseResponse>>;
|
|
33520
|
+
};
|
|
33521
|
+
/**
|
|
33522
|
+
* ApplicationDatabaseApi - factory interface
|
|
33523
|
+
* @export
|
|
33524
|
+
*/
|
|
33525
|
+
export declare const ApplicationDatabaseApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
33526
|
+
/**
|
|
33527
|
+
* 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.
|
|
33528
|
+
* @summary Delete a database of an application
|
|
33529
|
+
* @param {string} organisation The organisation ID
|
|
33530
|
+
* @param {string} application The application ID
|
|
33531
|
+
* @param {string} instanceId The database instance identifier
|
|
33532
|
+
* @param {DeleteApplicationDatabaseRequest} deleteApplicationDatabaseRequest
|
|
33533
|
+
* @param {*} [options] Override http request option.
|
|
33534
|
+
* @throws {RequiredError}
|
|
33535
|
+
*/
|
|
33536
|
+
deleteApplicationDatabase(organisation: string, application: string, instanceId: string, deleteApplicationDatabaseRequest: DeleteApplicationDatabaseRequest, options?: RawAxiosRequestConfig): AxiosPromise<DeleteApplicationDatabaseResponse>;
|
|
33537
|
+
/**
|
|
33538
|
+
* Poll this for a database being added: status is provisioning, ready or failed.
|
|
33539
|
+
* @summary Get one database of an application
|
|
33540
|
+
* @param {string} organisation The organisation ID
|
|
33541
|
+
* @param {string} application The application ID
|
|
33542
|
+
* @param {string} instanceId The database instance identifier, as returned by the list
|
|
33543
|
+
* @param {*} [options] Override http request option.
|
|
33544
|
+
* @throws {RequiredError}
|
|
33545
|
+
*/
|
|
33546
|
+
getApplicationDatabase(organisation: string, application: string, instanceId: string, options?: RawAxiosRequestConfig): AxiosPromise<ApplicationDatabase>;
|
|
33547
|
+
/**
|
|
33548
|
+
* 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).
|
|
33549
|
+
* @summary Get the databases of an application
|
|
33550
|
+
* @param {string} organisation The organisation ID
|
|
33551
|
+
* @param {string} application The application ID
|
|
33552
|
+
* @param {*} [options] Override http request option.
|
|
33553
|
+
* @throws {RequiredError}
|
|
33554
|
+
*/
|
|
33555
|
+
getApplicationDatabases(organisation: string, application: string, options?: RawAxiosRequestConfig): AxiosPromise<ApplicationDatabases>;
|
|
33556
|
+
/**
|
|
33557
|
+
* 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.
|
|
33558
|
+
* @summary Make a database the database of an application
|
|
33559
|
+
* @param {string} organisation The organisation ID
|
|
33560
|
+
* @param {string} application The application ID
|
|
33561
|
+
* @param {string} instanceId The database instance identifier
|
|
33562
|
+
* @param {*} [options] Override http request option.
|
|
33563
|
+
* @throws {RequiredError}
|
|
33564
|
+
*/
|
|
33565
|
+
promoteApplicationDatabase(organisation: string, application: string, instanceId: string, options?: RawAxiosRequestConfig): AxiosPromise<PromoteApplicationDatabaseResponse>;
|
|
33566
|
+
/**
|
|
33567
|
+
* 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.
|
|
33568
|
+
* @summary Add a database to an application
|
|
33569
|
+
* @param {string} organisation The organisation ID
|
|
33570
|
+
* @param {string} application The application ID
|
|
33571
|
+
* @param {ProvisionApplicationDatabaseRequest} provisionApplicationDatabaseRequest
|
|
33572
|
+
* @param {*} [options] Override http request option.
|
|
33573
|
+
* @throws {RequiredError}
|
|
33574
|
+
*/
|
|
33575
|
+
provisionApplicationDatabase(organisation: string, application: string, provisionApplicationDatabaseRequest: ProvisionApplicationDatabaseRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProvisionApplicationDatabaseAccepted>;
|
|
33576
|
+
/**
|
|
33577
|
+
* 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.
|
|
33578
|
+
* @summary Resize a database of an application
|
|
33579
|
+
* @param {string} organisation The organisation ID
|
|
33580
|
+
* @param {string} application The application ID
|
|
33581
|
+
* @param {string} instanceId The database instance identifier
|
|
33582
|
+
* @param {ResizeApplicationDatabaseRequest} resizeApplicationDatabaseRequest
|
|
33583
|
+
* @param {*} [options] Override http request option.
|
|
33584
|
+
* @throws {RequiredError}
|
|
33585
|
+
*/
|
|
33586
|
+
resizeApplicationDatabase(organisation: string, application: string, instanceId: string, resizeApplicationDatabaseRequest: ResizeApplicationDatabaseRequest, options?: RawAxiosRequestConfig): AxiosPromise<ResizeApplicationDatabaseResponse>;
|
|
33587
|
+
};
|
|
33588
|
+
/**
|
|
33589
|
+
* ApplicationDatabaseApi - object-oriented interface
|
|
33590
|
+
* @export
|
|
33591
|
+
* @class ApplicationDatabaseApi
|
|
33592
|
+
* @extends {BaseAPI}
|
|
33593
|
+
*/
|
|
33594
|
+
export declare class ApplicationDatabaseApi extends BaseAPI {
|
|
33595
|
+
/**
|
|
33596
|
+
* 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.
|
|
33597
|
+
* @summary Delete a database of an application
|
|
33598
|
+
* @param {string} organisation The organisation ID
|
|
33599
|
+
* @param {string} application The application ID
|
|
33600
|
+
* @param {string} instanceId The database instance identifier
|
|
33601
|
+
* @param {DeleteApplicationDatabaseRequest} deleteApplicationDatabaseRequest
|
|
33602
|
+
* @param {*} [options] Override http request option.
|
|
33603
|
+
* @throws {RequiredError}
|
|
33604
|
+
* @memberof ApplicationDatabaseApi
|
|
33605
|
+
*/
|
|
33606
|
+
deleteApplicationDatabase(organisation: string, application: string, instanceId: string, deleteApplicationDatabaseRequest: DeleteApplicationDatabaseRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteApplicationDatabaseResponse, any, {}, any>>;
|
|
33607
|
+
/**
|
|
33608
|
+
* Poll this for a database being added: status is provisioning, ready or failed.
|
|
33609
|
+
* @summary Get one database of an application
|
|
33610
|
+
* @param {string} organisation The organisation ID
|
|
33611
|
+
* @param {string} application The application ID
|
|
33612
|
+
* @param {string} instanceId The database instance identifier, as returned by the list
|
|
33613
|
+
* @param {*} [options] Override http request option.
|
|
33614
|
+
* @throws {RequiredError}
|
|
33615
|
+
* @memberof ApplicationDatabaseApi
|
|
33616
|
+
*/
|
|
33617
|
+
getApplicationDatabase(organisation: string, application: string, instanceId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ApplicationDatabase, any, {}, any>>;
|
|
33618
|
+
/**
|
|
33619
|
+
* 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).
|
|
33620
|
+
* @summary Get the databases of an application
|
|
33621
|
+
* @param {string} organisation The organisation ID
|
|
33622
|
+
* @param {string} application The application ID
|
|
33623
|
+
* @param {*} [options] Override http request option.
|
|
33624
|
+
* @throws {RequiredError}
|
|
33625
|
+
* @memberof ApplicationDatabaseApi
|
|
33626
|
+
*/
|
|
33627
|
+
getApplicationDatabases(organisation: string, application: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ApplicationDatabases, any, {}, any>>;
|
|
33628
|
+
/**
|
|
33629
|
+
* 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.
|
|
33630
|
+
* @summary Make a database the database of an application
|
|
33631
|
+
* @param {string} organisation The organisation ID
|
|
33632
|
+
* @param {string} application The application ID
|
|
33633
|
+
* @param {string} instanceId The database instance identifier
|
|
33634
|
+
* @param {*} [options] Override http request option.
|
|
33635
|
+
* @throws {RequiredError}
|
|
33636
|
+
* @memberof ApplicationDatabaseApi
|
|
33637
|
+
*/
|
|
33638
|
+
promoteApplicationDatabase(organisation: string, application: string, instanceId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PromoteApplicationDatabaseResponse, any, {}, any>>;
|
|
33639
|
+
/**
|
|
33640
|
+
* 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.
|
|
33641
|
+
* @summary Add a database to an application
|
|
33642
|
+
* @param {string} organisation The organisation ID
|
|
33643
|
+
* @param {string} application The application ID
|
|
33644
|
+
* @param {ProvisionApplicationDatabaseRequest} provisionApplicationDatabaseRequest
|
|
33645
|
+
* @param {*} [options] Override http request option.
|
|
33646
|
+
* @throws {RequiredError}
|
|
33647
|
+
* @memberof ApplicationDatabaseApi
|
|
33648
|
+
*/
|
|
33649
|
+
provisionApplicationDatabase(organisation: string, application: string, provisionApplicationDatabaseRequest: ProvisionApplicationDatabaseRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProvisionApplicationDatabaseAccepted, any, {}, any>>;
|
|
33650
|
+
/**
|
|
33651
|
+
* 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.
|
|
33652
|
+
* @summary Resize a database of an application
|
|
33653
|
+
* @param {string} organisation The organisation ID
|
|
33654
|
+
* @param {string} application The application ID
|
|
33655
|
+
* @param {string} instanceId The database instance identifier
|
|
33656
|
+
* @param {ResizeApplicationDatabaseRequest} resizeApplicationDatabaseRequest
|
|
33657
|
+
* @param {*} [options] Override http request option.
|
|
33658
|
+
* @throws {RequiredError}
|
|
33659
|
+
* @memberof ApplicationDatabaseApi
|
|
33660
|
+
*/
|
|
33661
|
+
resizeApplicationDatabase(organisation: string, application: string, instanceId: string, resizeApplicationDatabaseRequest: ResizeApplicationDatabaseRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ResizeApplicationDatabaseResponse, any, {}, any>>;
|
|
33662
|
+
}
|
|
32825
33663
|
/**
|
|
32826
33664
|
* ApplicationsApi - axios parameter creator
|
|
32827
33665
|
* @export
|