@alicloud/gpdb20160503 3.6.0 → 3.7.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/dist/client.d.ts +191 -2
- package/dist/client.js +518 -2
- package/dist/client.js.map +1 -1
- package/dist/models/CreateBranchRequest.d.ts +150 -0
- package/dist/models/CreateBranchRequest.js +104 -0
- package/dist/models/CreateBranchRequest.js.map +1 -0
- package/dist/models/CreateBranchResponse.d.ts +19 -0
- package/dist/models/CreateBranchResponse.js +69 -0
- package/dist/models/CreateBranchResponse.js.map +1 -0
- package/dist/models/CreateBranchResponseBody.d.ts +37 -0
- package/dist/models/CreateBranchResponseBody.js +62 -0
- package/dist/models/CreateBranchResponseBody.js.map +1 -0
- package/dist/models/CreateSnapshotRequest.d.ts +55 -0
- package/dist/models/CreateSnapshotRequest.js +66 -0
- package/dist/models/CreateSnapshotRequest.js.map +1 -0
- package/dist/models/CreateSnapshotResponse.d.ts +19 -0
- package/dist/models/CreateSnapshotResponse.js +69 -0
- package/dist/models/CreateSnapshotResponse.js.map +1 -0
- package/dist/models/CreateSnapshotResponseBody.d.ts +45 -0
- package/dist/models/CreateSnapshotResponseBody.js +64 -0
- package/dist/models/CreateSnapshotResponseBody.js.map +1 -0
- package/dist/models/CreateSupabaseProjectRequest.d.ts +62 -48
- package/dist/models/CreateSupabaseProjectRequest.js.map +1 -1
- package/dist/models/CreateSupabaseProjectResponseBody.d.ts +4 -4
- package/dist/models/DeleteBranchRequest.d.ts +31 -0
- package/dist/models/DeleteBranchRequest.js +60 -0
- package/dist/models/DeleteBranchRequest.js.map +1 -0
- package/dist/models/DeleteBranchResponse.d.ts +19 -0
- package/dist/models/DeleteBranchResponse.js +69 -0
- package/dist/models/DeleteBranchResponse.js.map +1 -0
- package/dist/models/DeleteBranchResponseBody.d.ts +21 -0
- package/dist/models/DeleteBranchResponseBody.js +58 -0
- package/dist/models/DeleteBranchResponseBody.js.map +1 -0
- package/dist/models/DeleteSnapshotRequest.d.ts +34 -0
- package/dist/models/DeleteSnapshotRequest.js +62 -0
- package/dist/models/DeleteSnapshotRequest.js.map +1 -0
- package/dist/models/DeleteSnapshotResponse.d.ts +19 -0
- package/dist/models/DeleteSnapshotResponse.js +69 -0
- package/dist/models/DeleteSnapshotResponse.js.map +1 -0
- package/dist/models/DeleteSnapshotResponseBody.d.ts +18 -0
- package/dist/models/DeleteSnapshotResponseBody.js +58 -0
- package/dist/models/DeleteSnapshotResponseBody.js.map +1 -0
- package/dist/models/DescribeBranchRequest.d.ts +31 -0
- package/dist/models/DescribeBranchRequest.js +60 -0
- package/dist/models/DescribeBranchRequest.js.map +1 -0
- package/dist/models/DescribeBranchResponse.d.ts +19 -0
- package/dist/models/DescribeBranchResponse.js +69 -0
- package/dist/models/DescribeBranchResponse.js.map +1 -0
- package/dist/models/DescribeBranchResponseBody.d.ts +211 -0
- package/dist/models/DescribeBranchResponseBody.js +138 -0
- package/dist/models/DescribeBranchResponseBody.js.map +1 -0
- package/dist/models/GetBranchSchemaRequest.d.ts +51 -0
- package/dist/models/GetBranchSchemaRequest.js +64 -0
- package/dist/models/GetBranchSchemaRequest.js.map +1 -0
- package/dist/models/GetBranchSchemaResponse.d.ts +19 -0
- package/dist/models/GetBranchSchemaResponse.js +69 -0
- package/dist/models/GetBranchSchemaResponse.js.map +1 -0
- package/dist/models/GetBranchSchemaResponseBody.d.ts +29 -0
- package/dist/models/GetBranchSchemaResponseBody.js +60 -0
- package/dist/models/GetBranchSchemaResponseBody.js.map +1 -0
- package/dist/models/ListBranchesRequest.d.ts +106 -0
- package/dist/models/ListBranchesRequest.js +74 -0
- package/dist/models/ListBranchesRequest.js.map +1 -0
- package/dist/models/ListBranchesResponse.d.ts +19 -0
- package/dist/models/ListBranchesResponse.js +69 -0
- package/dist/models/ListBranchesResponse.js.map +1 -0
- package/dist/models/ListBranchesResponseBody.d.ts +138 -0
- package/dist/models/ListBranchesResponseBody.js +190 -0
- package/dist/models/ListBranchesResponseBody.js.map +1 -0
- package/dist/models/RestartSupabaseProjectRequest.d.ts +31 -0
- package/dist/models/RestartSupabaseProjectRequest.js +60 -0
- package/dist/models/RestartSupabaseProjectRequest.js.map +1 -0
- package/dist/models/RestartSupabaseProjectResponse.d.ts +19 -0
- package/dist/models/RestartSupabaseProjectResponse.js +69 -0
- package/dist/models/RestartSupabaseProjectResponse.js.map +1 -0
- package/dist/models/RestartSupabaseProjectResponseBody.d.ts +21 -0
- package/dist/models/RestartSupabaseProjectResponseBody.js +58 -0
- package/dist/models/RestartSupabaseProjectResponseBody.js.map +1 -0
- package/dist/models/RestoreSnapshotRequest.d.ts +73 -0
- package/dist/models/RestoreSnapshotRequest.js +70 -0
- package/dist/models/RestoreSnapshotRequest.js.map +1 -0
- package/dist/models/RestoreSnapshotResponse.d.ts +19 -0
- package/dist/models/RestoreSnapshotResponse.js +69 -0
- package/dist/models/RestoreSnapshotResponse.js.map +1 -0
- package/dist/models/RestoreSnapshotResponseBody.d.ts +37 -0
- package/dist/models/RestoreSnapshotResponseBody.js +62 -0
- package/dist/models/RestoreSnapshotResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +34 -0
- package/dist/models/model.js +91 -22
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +582 -2
- package/src/models/CreateBranchRequest.ts +200 -0
- package/src/models/CreateBranchResponse.ts +40 -0
- package/src/models/CreateBranchResponseBody.ts +54 -0
- package/src/models/CreateSnapshotRequest.ts +76 -0
- package/src/models/CreateSnapshotResponse.ts +40 -0
- package/src/models/CreateSnapshotResponseBody.ts +64 -0
- package/src/models/CreateSupabaseProjectRequest.ts +62 -48
- package/src/models/CreateSupabaseProjectResponseBody.ts +4 -4
- package/src/models/DeleteBranchRequest.ts +46 -0
- package/src/models/DeleteBranchResponse.ts +40 -0
- package/src/models/DeleteBranchResponseBody.ts +34 -0
- package/src/models/DeleteSnapshotRequest.ts +51 -0
- package/src/models/DeleteSnapshotResponse.ts +40 -0
- package/src/models/DeleteSnapshotResponseBody.ts +31 -0
- package/src/models/DescribeBranchRequest.ts +46 -0
- package/src/models/DescribeBranchResponse.ts +40 -0
- package/src/models/DescribeBranchResponseBody.ts +286 -0
- package/src/models/GetBranchSchemaRequest.ts +70 -0
- package/src/models/GetBranchSchemaResponse.ts +40 -0
- package/src/models/GetBranchSchemaResponseBody.ts +44 -0
- package/src/models/ListBranchesRequest.ts +135 -0
- package/src/models/ListBranchesResponse.ts +40 -0
- package/src/models/ListBranchesResponseBody.ts +247 -0
- package/src/models/RestartSupabaseProjectRequest.ts +46 -0
- package/src/models/RestartSupabaseProjectResponse.ts +40 -0
- package/src/models/RestartSupabaseProjectResponseBody.ts +34 -0
- package/src/models/RestoreSnapshotRequest.ts +98 -0
- package/src/models/RestoreSnapshotResponse.ts +40 -0
- package/src/models/RestoreSnapshotResponseBody.ts +54 -0
- package/src/models/model.ts +34 -0
package/src/client.ts
CHANGED
|
@@ -1269,6 +1269,98 @@ export default class Client extends OpenApi {
|
|
|
1269
1269
|
return await this.createBackupWithOptions(request, runtime);
|
|
1270
1270
|
}
|
|
1271
1271
|
|
|
1272
|
+
/**
|
|
1273
|
+
* Creates a Supabase project branch.
|
|
1274
|
+
*
|
|
1275
|
+
* @remarks
|
|
1276
|
+
* Creates a new Supabase branch based on a specified parent branch. By default, a child branch inherits the region, network, storage, and other resource configurations from the primary branch.
|
|
1277
|
+
*
|
|
1278
|
+
* @param request - CreateBranchRequest
|
|
1279
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1280
|
+
* @returns CreateBranchResponse
|
|
1281
|
+
*/
|
|
1282
|
+
async createBranchWithOptions(request: $_model.CreateBranchRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateBranchResponse> {
|
|
1283
|
+
request.validate();
|
|
1284
|
+
let query = { };
|
|
1285
|
+
if (!$dara.isNull(request.branchName)) {
|
|
1286
|
+
query["BranchName"] = request.branchName;
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
if (!$dara.isNull(request.clientToken)) {
|
|
1290
|
+
query["ClientToken"] = request.clientToken;
|
|
1291
|
+
}
|
|
1292
|
+
|
|
1293
|
+
if (!$dara.isNull(request.description)) {
|
|
1294
|
+
query["Description"] = request.description;
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1297
|
+
if (!$dara.isNull(request.expiresAt)) {
|
|
1298
|
+
query["ExpiresAt"] = request.expiresAt;
|
|
1299
|
+
}
|
|
1300
|
+
|
|
1301
|
+
if (!$dara.isNull(request.initSource)) {
|
|
1302
|
+
query["InitSource"] = request.initSource;
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
if (!$dara.isNull(request.parentBranchId)) {
|
|
1306
|
+
query["ParentBranchId"] = request.parentBranchId;
|
|
1307
|
+
}
|
|
1308
|
+
|
|
1309
|
+
if (!$dara.isNull(request.parentLsn)) {
|
|
1310
|
+
query["ParentLsn"] = request.parentLsn;
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1313
|
+
if (!$dara.isNull(request.parentTimestamp)) {
|
|
1314
|
+
query["ParentTimestamp"] = request.parentTimestamp;
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1317
|
+
if (!$dara.isNull(request.projectId)) {
|
|
1318
|
+
query["ProjectId"] = request.projectId;
|
|
1319
|
+
}
|
|
1320
|
+
|
|
1321
|
+
if (!$dara.isNull(request.protected)) {
|
|
1322
|
+
query["Protected"] = request.protected;
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1325
|
+
if (!$dara.isNull(request.regionId)) {
|
|
1326
|
+
query["RegionId"] = request.regionId;
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
if (!$dara.isNull(request.tag)) {
|
|
1330
|
+
query["Tag"] = request.tag;
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1334
|
+
query: OpenApiUtil.query(query),
|
|
1335
|
+
});
|
|
1336
|
+
let params = new $OpenApiUtil.Params({
|
|
1337
|
+
action: "CreateBranch",
|
|
1338
|
+
version: "2016-05-03",
|
|
1339
|
+
protocol: "HTTPS",
|
|
1340
|
+
pathname: "/",
|
|
1341
|
+
method: "POST",
|
|
1342
|
+
authType: "AK",
|
|
1343
|
+
style: "RPC",
|
|
1344
|
+
reqBodyType: "formData",
|
|
1345
|
+
bodyType: "json",
|
|
1346
|
+
});
|
|
1347
|
+
return $dara.cast<$_model.CreateBranchResponse>(await this.callApi(params, req, runtime), new $_model.CreateBranchResponse({}));
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1350
|
+
/**
|
|
1351
|
+
* Creates a Supabase project branch.
|
|
1352
|
+
*
|
|
1353
|
+
* @remarks
|
|
1354
|
+
* Creates a new Supabase branch based on a specified parent branch. By default, a child branch inherits the region, network, storage, and other resource configurations from the primary branch.
|
|
1355
|
+
*
|
|
1356
|
+
* @param request - CreateBranchRequest
|
|
1357
|
+
* @returns CreateBranchResponse
|
|
1358
|
+
*/
|
|
1359
|
+
async createBranch(request: $_model.CreateBranchRequest): Promise<$_model.CreateBranchResponse> {
|
|
1360
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1361
|
+
return await this.createBranchWithOptions(request, runtime);
|
|
1362
|
+
}
|
|
1363
|
+
|
|
1272
1364
|
/**
|
|
1273
1365
|
* Create a vector dataset.
|
|
1274
1366
|
*
|
|
@@ -2915,6 +3007,70 @@ export default class Client extends OpenApi {
|
|
|
2915
3007
|
return await this.createServiceLinkedRoleWithOptions(request, runtime);
|
|
2916
3008
|
}
|
|
2917
3009
|
|
|
3010
|
+
/**
|
|
3011
|
+
* Creates a snapshot for a Supabase project.
|
|
3012
|
+
*
|
|
3013
|
+
* @remarks
|
|
3014
|
+
* Creates a snapshot for a Supabase project based on a specified point in time or Log Sequence Number (LSN). You must specify either SnapshotTimestamp or Lsn. ClientToken is used to ensure idempotence of the request.
|
|
3015
|
+
*
|
|
3016
|
+
* @param request - CreateSnapshotRequest
|
|
3017
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3018
|
+
* @returns CreateSnapshotResponse
|
|
3019
|
+
*/
|
|
3020
|
+
async createSnapshotWithOptions(request: $_model.CreateSnapshotRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateSnapshotResponse> {
|
|
3021
|
+
request.validate();
|
|
3022
|
+
let query = { };
|
|
3023
|
+
if (!$dara.isNull(request.clientToken)) {
|
|
3024
|
+
query["ClientToken"] = request.clientToken;
|
|
3025
|
+
}
|
|
3026
|
+
|
|
3027
|
+
if (!$dara.isNull(request.lsn)) {
|
|
3028
|
+
query["Lsn"] = request.lsn;
|
|
3029
|
+
}
|
|
3030
|
+
|
|
3031
|
+
if (!$dara.isNull(request.projectId)) {
|
|
3032
|
+
query["ProjectId"] = request.projectId;
|
|
3033
|
+
}
|
|
3034
|
+
|
|
3035
|
+
if (!$dara.isNull(request.regionId)) {
|
|
3036
|
+
query["RegionId"] = request.regionId;
|
|
3037
|
+
}
|
|
3038
|
+
|
|
3039
|
+
if (!$dara.isNull(request.snapshotTimestamp)) {
|
|
3040
|
+
query["SnapshotTimestamp"] = request.snapshotTimestamp;
|
|
3041
|
+
}
|
|
3042
|
+
|
|
3043
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
3044
|
+
query: OpenApiUtil.query(query),
|
|
3045
|
+
});
|
|
3046
|
+
let params = new $OpenApiUtil.Params({
|
|
3047
|
+
action: "CreateSnapshot",
|
|
3048
|
+
version: "2016-05-03",
|
|
3049
|
+
protocol: "HTTPS",
|
|
3050
|
+
pathname: "/",
|
|
3051
|
+
method: "POST",
|
|
3052
|
+
authType: "AK",
|
|
3053
|
+
style: "RPC",
|
|
3054
|
+
reqBodyType: "formData",
|
|
3055
|
+
bodyType: "json",
|
|
3056
|
+
});
|
|
3057
|
+
return $dara.cast<$_model.CreateSnapshotResponse>(await this.callApi(params, req, runtime), new $_model.CreateSnapshotResponse({}));
|
|
3058
|
+
}
|
|
3059
|
+
|
|
3060
|
+
/**
|
|
3061
|
+
* Creates a snapshot for a Supabase project.
|
|
3062
|
+
*
|
|
3063
|
+
* @remarks
|
|
3064
|
+
* Creates a snapshot for a Supabase project based on a specified point in time or Log Sequence Number (LSN). You must specify either SnapshotTimestamp or Lsn. ClientToken is used to ensure idempotence of the request.
|
|
3065
|
+
*
|
|
3066
|
+
* @param request - CreateSnapshotRequest
|
|
3067
|
+
* @returns CreateSnapshotResponse
|
|
3068
|
+
*/
|
|
3069
|
+
async createSnapshot(request: $_model.CreateSnapshotRequest): Promise<$_model.CreateSnapshotResponse> {
|
|
3070
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
3071
|
+
return await this.createSnapshotWithOptions(request, runtime);
|
|
3072
|
+
}
|
|
3073
|
+
|
|
2918
3074
|
/**
|
|
2919
3075
|
* Create External Data Source Configuration
|
|
2920
3076
|
*
|
|
@@ -3187,7 +3343,7 @@ export default class Client extends OpenApi {
|
|
|
3187
3343
|
* Creates a Supabase project.
|
|
3188
3344
|
*
|
|
3189
3345
|
* @remarks
|
|
3190
|
-
*
|
|
3346
|
+
* Creates a Supabase project in a specified region and zone. This operation supports Free, pay-as-you-go, and subscription billing methods. You can specify the network, specifications, storage, access IP address whitelist, DPI engine version, and auto start/stop configurations.
|
|
3191
3347
|
*
|
|
3192
3348
|
* @param request - CreateSupabaseProjectRequest
|
|
3193
3349
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -3281,7 +3437,7 @@ export default class Client extends OpenApi {
|
|
|
3281
3437
|
* Creates a Supabase project.
|
|
3282
3438
|
*
|
|
3283
3439
|
* @remarks
|
|
3284
|
-
*
|
|
3440
|
+
* Creates a Supabase project in a specified region and zone. This operation supports Free, pay-as-you-go, and subscription billing methods. You can specify the network, specifications, storage, access IP address whitelist, DPI engine version, and auto start/stop configurations.
|
|
3285
3441
|
*
|
|
3286
3442
|
* @param request - CreateSupabaseProjectRequest
|
|
3287
3443
|
* @returns CreateSupabaseProjectResponse
|
|
@@ -3653,6 +3809,58 @@ export default class Client extends OpenApi {
|
|
|
3653
3809
|
return await this.deleteBackupWithOptions(request, runtime);
|
|
3654
3810
|
}
|
|
3655
3811
|
|
|
3812
|
+
/**
|
|
3813
|
+
* Deletes a Supabase branch.
|
|
3814
|
+
*
|
|
3815
|
+
* @remarks
|
|
3816
|
+
* Deletes a specified Supabase branch. The default branch or branches that still have child branches cannot be deleted.
|
|
3817
|
+
*
|
|
3818
|
+
* @param request - DeleteBranchRequest
|
|
3819
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3820
|
+
* @returns DeleteBranchResponse
|
|
3821
|
+
*/
|
|
3822
|
+
async deleteBranchWithOptions(request: $_model.DeleteBranchRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteBranchResponse> {
|
|
3823
|
+
request.validate();
|
|
3824
|
+
let query = { };
|
|
3825
|
+
if (!$dara.isNull(request.branchId)) {
|
|
3826
|
+
query["BranchId"] = request.branchId;
|
|
3827
|
+
}
|
|
3828
|
+
|
|
3829
|
+
if (!$dara.isNull(request.regionId)) {
|
|
3830
|
+
query["RegionId"] = request.regionId;
|
|
3831
|
+
}
|
|
3832
|
+
|
|
3833
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
3834
|
+
query: OpenApiUtil.query(query),
|
|
3835
|
+
});
|
|
3836
|
+
let params = new $OpenApiUtil.Params({
|
|
3837
|
+
action: "DeleteBranch",
|
|
3838
|
+
version: "2016-05-03",
|
|
3839
|
+
protocol: "HTTPS",
|
|
3840
|
+
pathname: "/",
|
|
3841
|
+
method: "POST",
|
|
3842
|
+
authType: "AK",
|
|
3843
|
+
style: "RPC",
|
|
3844
|
+
reqBodyType: "formData",
|
|
3845
|
+
bodyType: "json",
|
|
3846
|
+
});
|
|
3847
|
+
return $dara.cast<$_model.DeleteBranchResponse>(await this.callApi(params, req, runtime), new $_model.DeleteBranchResponse({}));
|
|
3848
|
+
}
|
|
3849
|
+
|
|
3850
|
+
/**
|
|
3851
|
+
* Deletes a Supabase branch.
|
|
3852
|
+
*
|
|
3853
|
+
* @remarks
|
|
3854
|
+
* Deletes a specified Supabase branch. The default branch or branches that still have child branches cannot be deleted.
|
|
3855
|
+
*
|
|
3856
|
+
* @param request - DeleteBranchRequest
|
|
3857
|
+
* @returns DeleteBranchResponse
|
|
3858
|
+
*/
|
|
3859
|
+
async deleteBranch(request: $_model.DeleteBranchRequest): Promise<$_model.DeleteBranchResponse> {
|
|
3860
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
3861
|
+
return await this.deleteBranchWithOptions(request, runtime);
|
|
3862
|
+
}
|
|
3863
|
+
|
|
3656
3864
|
/**
|
|
3657
3865
|
* Deletes chunks from a document collection.
|
|
3658
3866
|
*
|
|
@@ -4855,6 +5063,62 @@ export default class Client extends OpenApi {
|
|
|
4855
5063
|
return await this.deleteSecretWithOptions(request, runtime);
|
|
4856
5064
|
}
|
|
4857
5065
|
|
|
5066
|
+
/**
|
|
5067
|
+
* 删除恢复点
|
|
5068
|
+
*
|
|
5069
|
+
* @remarks
|
|
5070
|
+
* 该接口用于按 ProjectId 和 Lsn 删除指定 Supabase 项目中的快照。
|
|
5071
|
+
*
|
|
5072
|
+
* @param request - DeleteSnapshotRequest
|
|
5073
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
5074
|
+
* @returns DeleteSnapshotResponse
|
|
5075
|
+
*/
|
|
5076
|
+
async deleteSnapshotWithOptions(request: $_model.DeleteSnapshotRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteSnapshotResponse> {
|
|
5077
|
+
request.validate();
|
|
5078
|
+
let query = { };
|
|
5079
|
+
if (!$dara.isNull(request.lsn)) {
|
|
5080
|
+
query["Lsn"] = request.lsn;
|
|
5081
|
+
}
|
|
5082
|
+
|
|
5083
|
+
if (!$dara.isNull(request.projectId)) {
|
|
5084
|
+
query["ProjectId"] = request.projectId;
|
|
5085
|
+
}
|
|
5086
|
+
|
|
5087
|
+
if (!$dara.isNull(request.regionId)) {
|
|
5088
|
+
query["RegionId"] = request.regionId;
|
|
5089
|
+
}
|
|
5090
|
+
|
|
5091
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
5092
|
+
query: OpenApiUtil.query(query),
|
|
5093
|
+
});
|
|
5094
|
+
let params = new $OpenApiUtil.Params({
|
|
5095
|
+
action: "DeleteSnapshot",
|
|
5096
|
+
version: "2016-05-03",
|
|
5097
|
+
protocol: "HTTPS",
|
|
5098
|
+
pathname: "/",
|
|
5099
|
+
method: "POST",
|
|
5100
|
+
authType: "AK",
|
|
5101
|
+
style: "RPC",
|
|
5102
|
+
reqBodyType: "formData",
|
|
5103
|
+
bodyType: "json",
|
|
5104
|
+
});
|
|
5105
|
+
return $dara.cast<$_model.DeleteSnapshotResponse>(await this.callApi(params, req, runtime), new $_model.DeleteSnapshotResponse({}));
|
|
5106
|
+
}
|
|
5107
|
+
|
|
5108
|
+
/**
|
|
5109
|
+
* 删除恢复点
|
|
5110
|
+
*
|
|
5111
|
+
* @remarks
|
|
5112
|
+
* 该接口用于按 ProjectId 和 Lsn 删除指定 Supabase 项目中的快照。
|
|
5113
|
+
*
|
|
5114
|
+
* @param request - DeleteSnapshotRequest
|
|
5115
|
+
* @returns DeleteSnapshotResponse
|
|
5116
|
+
*/
|
|
5117
|
+
async deleteSnapshot(request: $_model.DeleteSnapshotRequest): Promise<$_model.DeleteSnapshotResponse> {
|
|
5118
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
5119
|
+
return await this.deleteSnapshotWithOptions(request, runtime);
|
|
5120
|
+
}
|
|
5121
|
+
|
|
4858
5122
|
/**
|
|
4859
5123
|
* Delete a real-time data service.
|
|
4860
5124
|
*
|
|
@@ -5575,6 +5839,58 @@ export default class Client extends OpenApi {
|
|
|
5575
5839
|
return await this.describeBackupPolicyWithOptions(request, runtime);
|
|
5576
5840
|
}
|
|
5577
5841
|
|
|
5842
|
+
/**
|
|
5843
|
+
* Queries the details of a Supabase branch.
|
|
5844
|
+
*
|
|
5845
|
+
* @remarks
|
|
5846
|
+
* Queries the detailed information of a specified Supabase branch, including basic branch attributes, parent branch information, protection status, and connection information.
|
|
5847
|
+
*
|
|
5848
|
+
* @param request - DescribeBranchRequest
|
|
5849
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
5850
|
+
* @returns DescribeBranchResponse
|
|
5851
|
+
*/
|
|
5852
|
+
async describeBranchWithOptions(request: $_model.DescribeBranchRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeBranchResponse> {
|
|
5853
|
+
request.validate();
|
|
5854
|
+
let query = { };
|
|
5855
|
+
if (!$dara.isNull(request.branchId)) {
|
|
5856
|
+
query["BranchId"] = request.branchId;
|
|
5857
|
+
}
|
|
5858
|
+
|
|
5859
|
+
if (!$dara.isNull(request.regionId)) {
|
|
5860
|
+
query["RegionId"] = request.regionId;
|
|
5861
|
+
}
|
|
5862
|
+
|
|
5863
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
5864
|
+
query: OpenApiUtil.query(query),
|
|
5865
|
+
});
|
|
5866
|
+
let params = new $OpenApiUtil.Params({
|
|
5867
|
+
action: "DescribeBranch",
|
|
5868
|
+
version: "2016-05-03",
|
|
5869
|
+
protocol: "HTTPS",
|
|
5870
|
+
pathname: "/",
|
|
5871
|
+
method: "POST",
|
|
5872
|
+
authType: "AK",
|
|
5873
|
+
style: "RPC",
|
|
5874
|
+
reqBodyType: "formData",
|
|
5875
|
+
bodyType: "json",
|
|
5876
|
+
});
|
|
5877
|
+
return $dara.cast<$_model.DescribeBranchResponse>(await this.callApi(params, req, runtime), new $_model.DescribeBranchResponse({}));
|
|
5878
|
+
}
|
|
5879
|
+
|
|
5880
|
+
/**
|
|
5881
|
+
* Queries the details of a Supabase branch.
|
|
5882
|
+
*
|
|
5883
|
+
* @remarks
|
|
5884
|
+
* Queries the detailed information of a specified Supabase branch, including basic branch attributes, parent branch information, protection status, and connection information.
|
|
5885
|
+
*
|
|
5886
|
+
* @param request - DescribeBranchRequest
|
|
5887
|
+
* @returns DescribeBranchResponse
|
|
5888
|
+
*/
|
|
5889
|
+
async describeBranch(request: $_model.DescribeBranchRequest): Promise<$_model.DescribeBranchResponse> {
|
|
5890
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
5891
|
+
return await this.describeBranchWithOptions(request, runtime);
|
|
5892
|
+
}
|
|
5893
|
+
|
|
5578
5894
|
/**
|
|
5579
5895
|
* Queries the information about a vector collection.
|
|
5580
5896
|
*
|
|
@@ -10269,6 +10585,66 @@ export default class Client extends OpenApi {
|
|
|
10269
10585
|
return await this.getAccountWithOptions(request, runtime);
|
|
10270
10586
|
}
|
|
10271
10587
|
|
|
10588
|
+
/**
|
|
10589
|
+
* Retrieves the database schema of a Supabase branch.
|
|
10590
|
+
*
|
|
10591
|
+
* @remarks
|
|
10592
|
+
* Queries the schema SQL content of a specified database in a specified branch. The system databases postgres, template0, and template1 are not supported.
|
|
10593
|
+
*
|
|
10594
|
+
* @param request - GetBranchSchemaRequest
|
|
10595
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
10596
|
+
* @returns GetBranchSchemaResponse
|
|
10597
|
+
*/
|
|
10598
|
+
async getBranchSchemaWithOptions(request: $_model.GetBranchSchemaRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetBranchSchemaResponse> {
|
|
10599
|
+
request.validate();
|
|
10600
|
+
let query = { };
|
|
10601
|
+
if (!$dara.isNull(request.branchId)) {
|
|
10602
|
+
query["BranchId"] = request.branchId;
|
|
10603
|
+
}
|
|
10604
|
+
|
|
10605
|
+
if (!$dara.isNull(request.DBName)) {
|
|
10606
|
+
query["DBName"] = request.DBName;
|
|
10607
|
+
}
|
|
10608
|
+
|
|
10609
|
+
if (!$dara.isNull(request.projectId)) {
|
|
10610
|
+
query["ProjectId"] = request.projectId;
|
|
10611
|
+
}
|
|
10612
|
+
|
|
10613
|
+
if (!$dara.isNull(request.regionId)) {
|
|
10614
|
+
query["RegionId"] = request.regionId;
|
|
10615
|
+
}
|
|
10616
|
+
|
|
10617
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
10618
|
+
query: OpenApiUtil.query(query),
|
|
10619
|
+
});
|
|
10620
|
+
let params = new $OpenApiUtil.Params({
|
|
10621
|
+
action: "GetBranchSchema",
|
|
10622
|
+
version: "2016-05-03",
|
|
10623
|
+
protocol: "HTTPS",
|
|
10624
|
+
pathname: "/",
|
|
10625
|
+
method: "POST",
|
|
10626
|
+
authType: "AK",
|
|
10627
|
+
style: "RPC",
|
|
10628
|
+
reqBodyType: "formData",
|
|
10629
|
+
bodyType: "json",
|
|
10630
|
+
});
|
|
10631
|
+
return $dara.cast<$_model.GetBranchSchemaResponse>(await this.callApi(params, req, runtime), new $_model.GetBranchSchemaResponse({}));
|
|
10632
|
+
}
|
|
10633
|
+
|
|
10634
|
+
/**
|
|
10635
|
+
* Retrieves the database schema of a Supabase branch.
|
|
10636
|
+
*
|
|
10637
|
+
* @remarks
|
|
10638
|
+
* Queries the schema SQL content of a specified database in a specified branch. The system databases postgres, template0, and template1 are not supported.
|
|
10639
|
+
*
|
|
10640
|
+
* @param request - GetBranchSchemaRequest
|
|
10641
|
+
* @returns GetBranchSchemaResponse
|
|
10642
|
+
*/
|
|
10643
|
+
async getBranchSchema(request: $_model.GetBranchSchemaRequest): Promise<$_model.GetBranchSchemaResponse> {
|
|
10644
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
10645
|
+
return await this.getBranchSchemaWithOptions(request, runtime);
|
|
10646
|
+
}
|
|
10647
|
+
|
|
10272
10648
|
/**
|
|
10273
10649
|
* Retrieves a task to build a knowledge graph.
|
|
10274
10650
|
*
|
|
@@ -11221,6 +11597,86 @@ export default class Client extends OpenApi {
|
|
|
11221
11597
|
return await this.listBackupJobsWithOptions(request, runtime);
|
|
11222
11598
|
}
|
|
11223
11599
|
|
|
11600
|
+
/**
|
|
11601
|
+
* Query the branch list of a Supabase project.
|
|
11602
|
+
*
|
|
11603
|
+
* @remarks
|
|
11604
|
+
* This API is used to query all branches under a specified Supabase project with pagination, supporting filtering by parent branch, keyword, and sorting conditions.
|
|
11605
|
+
*
|
|
11606
|
+
* @param request - ListBranchesRequest
|
|
11607
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
11608
|
+
* @returns ListBranchesResponse
|
|
11609
|
+
*/
|
|
11610
|
+
async listBranchesWithOptions(request: $_model.ListBranchesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListBranchesResponse> {
|
|
11611
|
+
request.validate();
|
|
11612
|
+
let query = { };
|
|
11613
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
11614
|
+
query["MaxResults"] = request.maxResults;
|
|
11615
|
+
}
|
|
11616
|
+
|
|
11617
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
11618
|
+
query["NextToken"] = request.nextToken;
|
|
11619
|
+
}
|
|
11620
|
+
|
|
11621
|
+
if (!$dara.isNull(request.pageNumber)) {
|
|
11622
|
+
query["PageNumber"] = request.pageNumber;
|
|
11623
|
+
}
|
|
11624
|
+
|
|
11625
|
+
if (!$dara.isNull(request.pageSize)) {
|
|
11626
|
+
query["PageSize"] = request.pageSize;
|
|
11627
|
+
}
|
|
11628
|
+
|
|
11629
|
+
if (!$dara.isNull(request.parentBranchId)) {
|
|
11630
|
+
query["ParentBranchId"] = request.parentBranchId;
|
|
11631
|
+
}
|
|
11632
|
+
|
|
11633
|
+
if (!$dara.isNull(request.regionId)) {
|
|
11634
|
+
query["RegionId"] = request.regionId;
|
|
11635
|
+
}
|
|
11636
|
+
|
|
11637
|
+
if (!$dara.isNull(request.search)) {
|
|
11638
|
+
query["Search"] = request.search;
|
|
11639
|
+
}
|
|
11640
|
+
|
|
11641
|
+
if (!$dara.isNull(request.sortBy)) {
|
|
11642
|
+
query["SortBy"] = request.sortBy;
|
|
11643
|
+
}
|
|
11644
|
+
|
|
11645
|
+
if (!$dara.isNull(request.sortOrder)) {
|
|
11646
|
+
query["SortOrder"] = request.sortOrder;
|
|
11647
|
+
}
|
|
11648
|
+
|
|
11649
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
11650
|
+
query: OpenApiUtil.query(query),
|
|
11651
|
+
});
|
|
11652
|
+
let params = new $OpenApiUtil.Params({
|
|
11653
|
+
action: "ListBranches",
|
|
11654
|
+
version: "2016-05-03",
|
|
11655
|
+
protocol: "HTTPS",
|
|
11656
|
+
pathname: "/",
|
|
11657
|
+
method: "POST",
|
|
11658
|
+
authType: "AK",
|
|
11659
|
+
style: "RPC",
|
|
11660
|
+
reqBodyType: "formData",
|
|
11661
|
+
bodyType: "json",
|
|
11662
|
+
});
|
|
11663
|
+
return $dara.cast<$_model.ListBranchesResponse>(await this.callApi(params, req, runtime), new $_model.ListBranchesResponse({}));
|
|
11664
|
+
}
|
|
11665
|
+
|
|
11666
|
+
/**
|
|
11667
|
+
* Query the branch list of a Supabase project.
|
|
11668
|
+
*
|
|
11669
|
+
* @remarks
|
|
11670
|
+
* This API is used to query all branches under a specified Supabase project with pagination, supporting filtering by parent branch, keyword, and sorting conditions.
|
|
11671
|
+
*
|
|
11672
|
+
* @param request - ListBranchesRequest
|
|
11673
|
+
* @returns ListBranchesResponse
|
|
11674
|
+
*/
|
|
11675
|
+
async listBranches(request: $_model.ListBranchesRequest): Promise<$_model.ListBranchesResponse> {
|
|
11676
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
11677
|
+
return await this.listBranchesWithOptions(request, runtime);
|
|
11678
|
+
}
|
|
11679
|
+
|
|
11224
11680
|
/**
|
|
11225
11681
|
* Get document chunk details
|
|
11226
11682
|
*
|
|
@@ -15849,6 +16305,130 @@ export default class Client extends OpenApi {
|
|
|
15849
16305
|
return await this.restartDBInstanceWithOptions(request, runtime);
|
|
15850
16306
|
}
|
|
15851
16307
|
|
|
16308
|
+
/**
|
|
16309
|
+
* Restarts a Supabase project.
|
|
16310
|
+
*
|
|
16311
|
+
* @remarks
|
|
16312
|
+
* Restarts a specified Supabase project. After a successful call, a request ID is returned, and the restart process is executed asynchronously in the backend.
|
|
16313
|
+
*
|
|
16314
|
+
* @param request - RestartSupabaseProjectRequest
|
|
16315
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
16316
|
+
* @returns RestartSupabaseProjectResponse
|
|
16317
|
+
*/
|
|
16318
|
+
async restartSupabaseProjectWithOptions(request: $_model.RestartSupabaseProjectRequest, runtime: $dara.RuntimeOptions): Promise<$_model.RestartSupabaseProjectResponse> {
|
|
16319
|
+
request.validate();
|
|
16320
|
+
let query = { };
|
|
16321
|
+
if (!$dara.isNull(request.projectId)) {
|
|
16322
|
+
query["ProjectId"] = request.projectId;
|
|
16323
|
+
}
|
|
16324
|
+
|
|
16325
|
+
if (!$dara.isNull(request.regionId)) {
|
|
16326
|
+
query["RegionId"] = request.regionId;
|
|
16327
|
+
}
|
|
16328
|
+
|
|
16329
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
16330
|
+
query: OpenApiUtil.query(query),
|
|
16331
|
+
});
|
|
16332
|
+
let params = new $OpenApiUtil.Params({
|
|
16333
|
+
action: "RestartSupabaseProject",
|
|
16334
|
+
version: "2016-05-03",
|
|
16335
|
+
protocol: "HTTPS",
|
|
16336
|
+
pathname: "/",
|
|
16337
|
+
method: "POST",
|
|
16338
|
+
authType: "AK",
|
|
16339
|
+
style: "RPC",
|
|
16340
|
+
reqBodyType: "formData",
|
|
16341
|
+
bodyType: "json",
|
|
16342
|
+
});
|
|
16343
|
+
return $dara.cast<$_model.RestartSupabaseProjectResponse>(await this.callApi(params, req, runtime), new $_model.RestartSupabaseProjectResponse({}));
|
|
16344
|
+
}
|
|
16345
|
+
|
|
16346
|
+
/**
|
|
16347
|
+
* Restarts a Supabase project.
|
|
16348
|
+
*
|
|
16349
|
+
* @remarks
|
|
16350
|
+
* Restarts a specified Supabase project. After a successful call, a request ID is returned, and the restart process is executed asynchronously in the backend.
|
|
16351
|
+
*
|
|
16352
|
+
* @param request - RestartSupabaseProjectRequest
|
|
16353
|
+
* @returns RestartSupabaseProjectResponse
|
|
16354
|
+
*/
|
|
16355
|
+
async restartSupabaseProject(request: $_model.RestartSupabaseProjectRequest): Promise<$_model.RestartSupabaseProjectResponse> {
|
|
16356
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
16357
|
+
return await this.restartSupabaseProjectWithOptions(request, runtime);
|
|
16358
|
+
}
|
|
16359
|
+
|
|
16360
|
+
/**
|
|
16361
|
+
* Restores a Supabase project from a snapshot.
|
|
16362
|
+
*
|
|
16363
|
+
* @remarks
|
|
16364
|
+
* Restores to a target branch based on a snapshot LSN. You can specify the restored branch name and target branch. FinalizeRestore controls whether to complete the restoration immediately.
|
|
16365
|
+
*
|
|
16366
|
+
* @param request - RestoreSnapshotRequest
|
|
16367
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
16368
|
+
* @returns RestoreSnapshotResponse
|
|
16369
|
+
*/
|
|
16370
|
+
async restoreSnapshotWithOptions(request: $_model.RestoreSnapshotRequest, runtime: $dara.RuntimeOptions): Promise<$_model.RestoreSnapshotResponse> {
|
|
16371
|
+
request.validate();
|
|
16372
|
+
let query = { };
|
|
16373
|
+
if (!$dara.isNull(request.clientToken)) {
|
|
16374
|
+
query["ClientToken"] = request.clientToken;
|
|
16375
|
+
}
|
|
16376
|
+
|
|
16377
|
+
if (!$dara.isNull(request.finalizeRestore)) {
|
|
16378
|
+
query["FinalizeRestore"] = request.finalizeRestore;
|
|
16379
|
+
}
|
|
16380
|
+
|
|
16381
|
+
if (!$dara.isNull(request.projectId)) {
|
|
16382
|
+
query["ProjectId"] = request.projectId;
|
|
16383
|
+
}
|
|
16384
|
+
|
|
16385
|
+
if (!$dara.isNull(request.regionId)) {
|
|
16386
|
+
query["RegionId"] = request.regionId;
|
|
16387
|
+
}
|
|
16388
|
+
|
|
16389
|
+
if (!$dara.isNull(request.restoredBranchName)) {
|
|
16390
|
+
query["RestoredBranchName"] = request.restoredBranchName;
|
|
16391
|
+
}
|
|
16392
|
+
|
|
16393
|
+
if (!$dara.isNull(request.restoredLsn)) {
|
|
16394
|
+
query["RestoredLsn"] = request.restoredLsn;
|
|
16395
|
+
}
|
|
16396
|
+
|
|
16397
|
+
if (!$dara.isNull(request.targetBranchId)) {
|
|
16398
|
+
query["TargetBranchId"] = request.targetBranchId;
|
|
16399
|
+
}
|
|
16400
|
+
|
|
16401
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
16402
|
+
query: OpenApiUtil.query(query),
|
|
16403
|
+
});
|
|
16404
|
+
let params = new $OpenApiUtil.Params({
|
|
16405
|
+
action: "RestoreSnapshot",
|
|
16406
|
+
version: "2016-05-03",
|
|
16407
|
+
protocol: "HTTPS",
|
|
16408
|
+
pathname: "/",
|
|
16409
|
+
method: "POST",
|
|
16410
|
+
authType: "AK",
|
|
16411
|
+
style: "RPC",
|
|
16412
|
+
reqBodyType: "formData",
|
|
16413
|
+
bodyType: "json",
|
|
16414
|
+
});
|
|
16415
|
+
return $dara.cast<$_model.RestoreSnapshotResponse>(await this.callApi(params, req, runtime), new $_model.RestoreSnapshotResponse({}));
|
|
16416
|
+
}
|
|
16417
|
+
|
|
16418
|
+
/**
|
|
16419
|
+
* Restores a Supabase project from a snapshot.
|
|
16420
|
+
*
|
|
16421
|
+
* @remarks
|
|
16422
|
+
* Restores to a target branch based on a snapshot LSN. You can specify the restored branch name and target branch. FinalizeRestore controls whether to complete the restoration immediately.
|
|
16423
|
+
*
|
|
16424
|
+
* @param request - RestoreSnapshotRequest
|
|
16425
|
+
* @returns RestoreSnapshotResponse
|
|
16426
|
+
*/
|
|
16427
|
+
async restoreSnapshot(request: $_model.RestoreSnapshotRequest): Promise<$_model.RestoreSnapshotResponse> {
|
|
16428
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
16429
|
+
return await this.restoreSnapshotWithOptions(request, runtime);
|
|
16430
|
+
}
|
|
16431
|
+
|
|
15852
16432
|
/**
|
|
15853
16433
|
* Resumes data redistribution.
|
|
15854
16434
|
*
|