@alicloud/gpdb20160503 3.8.0 → 3.9.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 +84 -0
- package/dist/client.js +237 -0
- package/dist/client.js.map +1 -1
- package/dist/models/ResetBranchRequest.d.ts +41 -0
- package/dist/models/ResetBranchRequest.js +62 -0
- package/dist/models/ResetBranchRequest.js.map +1 -0
- package/dist/models/ResetBranchResponse.d.ts +19 -0
- package/dist/models/ResetBranchResponse.js +69 -0
- package/dist/models/ResetBranchResponse.js.map +1 -0
- package/dist/models/ResetBranchResponseBody.d.ts +21 -0
- package/dist/models/ResetBranchResponseBody.js +58 -0
- package/dist/models/ResetBranchResponseBody.js.map +1 -0
- package/dist/models/RestoreBranchRequest.d.ts +83 -0
- package/dist/models/RestoreBranchRequest.js +72 -0
- package/dist/models/RestoreBranchRequest.js.map +1 -0
- package/dist/models/RestoreBranchResponse.d.ts +19 -0
- package/dist/models/RestoreBranchResponse.js +69 -0
- package/dist/models/RestoreBranchResponse.js.map +1 -0
- package/dist/models/RestoreBranchResponseBody.d.ts +29 -0
- package/dist/models/RestoreBranchResponseBody.js +60 -0
- package/dist/models/RestoreBranchResponseBody.js.map +1 -0
- package/dist/models/SetAsDefaultBranchRequest.d.ts +41 -0
- package/dist/models/SetAsDefaultBranchRequest.js +62 -0
- package/dist/models/SetAsDefaultBranchRequest.js.map +1 -0
- package/dist/models/SetAsDefaultBranchResponse.d.ts +19 -0
- package/dist/models/SetAsDefaultBranchResponse.js +69 -0
- package/dist/models/SetAsDefaultBranchResponse.js.map +1 -0
- package/dist/models/SetAsDefaultBranchResponseBody.d.ts +21 -0
- package/dist/models/SetAsDefaultBranchResponseBody.js +58 -0
- package/dist/models/SetAsDefaultBranchResponseBody.js.map +1 -0
- package/dist/models/UpdateBranchRequest.d.ts +126 -0
- package/dist/models/UpdateBranchRequest.js +98 -0
- package/dist/models/UpdateBranchRequest.js.map +1 -0
- package/dist/models/UpdateBranchResponse.d.ts +19 -0
- package/dist/models/UpdateBranchResponse.js +69 -0
- package/dist/models/UpdateBranchResponse.js.map +1 -0
- package/dist/models/UpdateBranchResponseBody.d.ts +21 -0
- package/dist/models/UpdateBranchResponseBody.js +58 -0
- package/dist/models/UpdateBranchResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +13 -0
- package/dist/models/model.js +44 -18
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +268 -0
- package/src/models/ResetBranchRequest.ts +58 -0
- package/src/models/ResetBranchResponse.ts +40 -0
- package/src/models/ResetBranchResponseBody.ts +34 -0
- package/src/models/RestoreBranchRequest.ts +110 -0
- package/src/models/RestoreBranchResponse.ts +40 -0
- package/src/models/RestoreBranchResponseBody.ts +44 -0
- package/src/models/SetAsDefaultBranchRequest.ts +58 -0
- package/src/models/SetAsDefaultBranchResponse.ts +40 -0
- package/src/models/SetAsDefaultBranchResponseBody.ts +34 -0
- package/src/models/UpdateBranchRequest.ts +170 -0
- package/src/models/UpdateBranchResponse.ts +40 -0
- package/src/models/UpdateBranchResponseBody.ts +34 -0
- package/src/models/model.ts +13 -0
package/src/client.ts
CHANGED
|
@@ -16199,6 +16199,62 @@ export default class Client extends OpenApi {
|
|
|
16199
16199
|
return await this.resetAccountPasswordWithOptions(request, runtime);
|
|
16200
16200
|
}
|
|
16201
16201
|
|
|
16202
|
+
/**
|
|
16203
|
+
* Resets a Supabase branch.
|
|
16204
|
+
*
|
|
16205
|
+
* @remarks
|
|
16206
|
+
* Resets a child branch to the latest data of its parent branch. The main branch, branches without a parent branch, branches with child branches, and protected branches cannot be reset.
|
|
16207
|
+
*
|
|
16208
|
+
* @param request - ResetBranchRequest
|
|
16209
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
16210
|
+
* @returns ResetBranchResponse
|
|
16211
|
+
*/
|
|
16212
|
+
async resetBranchWithOptions(request: $_model.ResetBranchRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ResetBranchResponse> {
|
|
16213
|
+
request.validate();
|
|
16214
|
+
let query = { };
|
|
16215
|
+
if (!$dara.isNull(request.branchId)) {
|
|
16216
|
+
query["BranchId"] = request.branchId;
|
|
16217
|
+
}
|
|
16218
|
+
|
|
16219
|
+
if (!$dara.isNull(request.projectId)) {
|
|
16220
|
+
query["ProjectId"] = request.projectId;
|
|
16221
|
+
}
|
|
16222
|
+
|
|
16223
|
+
if (!$dara.isNull(request.regionId)) {
|
|
16224
|
+
query["RegionId"] = request.regionId;
|
|
16225
|
+
}
|
|
16226
|
+
|
|
16227
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
16228
|
+
query: OpenApiUtil.query(query),
|
|
16229
|
+
});
|
|
16230
|
+
let params = new $OpenApiUtil.Params({
|
|
16231
|
+
action: "ResetBranch",
|
|
16232
|
+
version: "2016-05-03",
|
|
16233
|
+
protocol: "HTTPS",
|
|
16234
|
+
pathname: "/",
|
|
16235
|
+
method: "POST",
|
|
16236
|
+
authType: "AK",
|
|
16237
|
+
style: "RPC",
|
|
16238
|
+
reqBodyType: "formData",
|
|
16239
|
+
bodyType: "json",
|
|
16240
|
+
});
|
|
16241
|
+
return $dara.cast<$_model.ResetBranchResponse>(await this.callApi(params, req, runtime), new $_model.ResetBranchResponse({}));
|
|
16242
|
+
}
|
|
16243
|
+
|
|
16244
|
+
/**
|
|
16245
|
+
* Resets a Supabase branch.
|
|
16246
|
+
*
|
|
16247
|
+
* @remarks
|
|
16248
|
+
* Resets a child branch to the latest data of its parent branch. The main branch, branches without a parent branch, branches with child branches, and protected branches cannot be reset.
|
|
16249
|
+
*
|
|
16250
|
+
* @param request - ResetBranchRequest
|
|
16251
|
+
* @returns ResetBranchResponse
|
|
16252
|
+
*/
|
|
16253
|
+
async resetBranch(request: $_model.ResetBranchRequest): Promise<$_model.ResetBranchResponse> {
|
|
16254
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
16255
|
+
return await this.resetBranchWithOptions(request, runtime);
|
|
16256
|
+
}
|
|
16257
|
+
|
|
16202
16258
|
/**
|
|
16203
16259
|
* Resets the IMV statistics.
|
|
16204
16260
|
*
|
|
@@ -16409,6 +16465,82 @@ export default class Client extends OpenApi {
|
|
|
16409
16465
|
return await this.restartSupabaseProjectWithOptions(request, runtime);
|
|
16410
16466
|
}
|
|
16411
16467
|
|
|
16468
|
+
/**
|
|
16469
|
+
* Recovers a Supabase branch.
|
|
16470
|
+
*
|
|
16471
|
+
* @remarks
|
|
16472
|
+
* Recovers a target branch to a specified point in time or LSN of the source branch. Before recovery, you can specify a backup branch name to preserve the original target branch.
|
|
16473
|
+
*
|
|
16474
|
+
* @param request - RestoreBranchRequest
|
|
16475
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
16476
|
+
* @returns RestoreBranchResponse
|
|
16477
|
+
*/
|
|
16478
|
+
async restoreBranchWithOptions(request: $_model.RestoreBranchRequest, runtime: $dara.RuntimeOptions): Promise<$_model.RestoreBranchResponse> {
|
|
16479
|
+
request.validate();
|
|
16480
|
+
let query = { };
|
|
16481
|
+
if (!$dara.isNull(request.branchId)) {
|
|
16482
|
+
query["BranchId"] = request.branchId;
|
|
16483
|
+
}
|
|
16484
|
+
|
|
16485
|
+
if (!$dara.isNull(request.clientToken)) {
|
|
16486
|
+
query["ClientToken"] = request.clientToken;
|
|
16487
|
+
}
|
|
16488
|
+
|
|
16489
|
+
if (!$dara.isNull(request.preserveUnderName)) {
|
|
16490
|
+
query["PreserveUnderName"] = request.preserveUnderName;
|
|
16491
|
+
}
|
|
16492
|
+
|
|
16493
|
+
if (!$dara.isNull(request.projectId)) {
|
|
16494
|
+
query["ProjectId"] = request.projectId;
|
|
16495
|
+
}
|
|
16496
|
+
|
|
16497
|
+
if (!$dara.isNull(request.regionId)) {
|
|
16498
|
+
query["RegionId"] = request.regionId;
|
|
16499
|
+
}
|
|
16500
|
+
|
|
16501
|
+
if (!$dara.isNull(request.sourceBranchId)) {
|
|
16502
|
+
query["SourceBranchId"] = request.sourceBranchId;
|
|
16503
|
+
}
|
|
16504
|
+
|
|
16505
|
+
if (!$dara.isNull(request.sourceBranchLsn)) {
|
|
16506
|
+
query["SourceBranchLsn"] = request.sourceBranchLsn;
|
|
16507
|
+
}
|
|
16508
|
+
|
|
16509
|
+
if (!$dara.isNull(request.sourceBranchTimestamp)) {
|
|
16510
|
+
query["SourceBranchTimestamp"] = request.sourceBranchTimestamp;
|
|
16511
|
+
}
|
|
16512
|
+
|
|
16513
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
16514
|
+
query: OpenApiUtil.query(query),
|
|
16515
|
+
});
|
|
16516
|
+
let params = new $OpenApiUtil.Params({
|
|
16517
|
+
action: "RestoreBranch",
|
|
16518
|
+
version: "2016-05-03",
|
|
16519
|
+
protocol: "HTTPS",
|
|
16520
|
+
pathname: "/",
|
|
16521
|
+
method: "POST",
|
|
16522
|
+
authType: "AK",
|
|
16523
|
+
style: "RPC",
|
|
16524
|
+
reqBodyType: "formData",
|
|
16525
|
+
bodyType: "json",
|
|
16526
|
+
});
|
|
16527
|
+
return $dara.cast<$_model.RestoreBranchResponse>(await this.callApi(params, req, runtime), new $_model.RestoreBranchResponse({}));
|
|
16528
|
+
}
|
|
16529
|
+
|
|
16530
|
+
/**
|
|
16531
|
+
* Recovers a Supabase branch.
|
|
16532
|
+
*
|
|
16533
|
+
* @remarks
|
|
16534
|
+
* Recovers a target branch to a specified point in time or LSN of the source branch. Before recovery, you can specify a backup branch name to preserve the original target branch.
|
|
16535
|
+
*
|
|
16536
|
+
* @param request - RestoreBranchRequest
|
|
16537
|
+
* @returns RestoreBranchResponse
|
|
16538
|
+
*/
|
|
16539
|
+
async restoreBranch(request: $_model.RestoreBranchRequest): Promise<$_model.RestoreBranchResponse> {
|
|
16540
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
16541
|
+
return await this.restoreBranchWithOptions(request, runtime);
|
|
16542
|
+
}
|
|
16543
|
+
|
|
16412
16544
|
/**
|
|
16413
16545
|
* Restores a Supabase project from a snapshot.
|
|
16414
16546
|
*
|
|
@@ -16691,6 +16823,62 @@ export default class Client extends OpenApi {
|
|
|
16691
16823
|
return await this.resumeSupabaseProjectWithOptions(request, runtime);
|
|
16692
16824
|
}
|
|
16693
16825
|
|
|
16826
|
+
/**
|
|
16827
|
+
* Sets the default branch for a Supabase project.
|
|
16828
|
+
*
|
|
16829
|
+
* @remarks
|
|
16830
|
+
* Sets a specified branch as the default branch for a Supabase project.
|
|
16831
|
+
*
|
|
16832
|
+
* @param request - SetAsDefaultBranchRequest
|
|
16833
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
16834
|
+
* @returns SetAsDefaultBranchResponse
|
|
16835
|
+
*/
|
|
16836
|
+
async setAsDefaultBranchWithOptions(request: $_model.SetAsDefaultBranchRequest, runtime: $dara.RuntimeOptions): Promise<$_model.SetAsDefaultBranchResponse> {
|
|
16837
|
+
request.validate();
|
|
16838
|
+
let query = { };
|
|
16839
|
+
if (!$dara.isNull(request.branchId)) {
|
|
16840
|
+
query["BranchId"] = request.branchId;
|
|
16841
|
+
}
|
|
16842
|
+
|
|
16843
|
+
if (!$dara.isNull(request.projectId)) {
|
|
16844
|
+
query["ProjectId"] = request.projectId;
|
|
16845
|
+
}
|
|
16846
|
+
|
|
16847
|
+
if (!$dara.isNull(request.regionId)) {
|
|
16848
|
+
query["RegionId"] = request.regionId;
|
|
16849
|
+
}
|
|
16850
|
+
|
|
16851
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
16852
|
+
query: OpenApiUtil.query(query),
|
|
16853
|
+
});
|
|
16854
|
+
let params = new $OpenApiUtil.Params({
|
|
16855
|
+
action: "SetAsDefaultBranch",
|
|
16856
|
+
version: "2016-05-03",
|
|
16857
|
+
protocol: "HTTPS",
|
|
16858
|
+
pathname: "/",
|
|
16859
|
+
method: "POST",
|
|
16860
|
+
authType: "AK",
|
|
16861
|
+
style: "RPC",
|
|
16862
|
+
reqBodyType: "formData",
|
|
16863
|
+
bodyType: "json",
|
|
16864
|
+
});
|
|
16865
|
+
return $dara.cast<$_model.SetAsDefaultBranchResponse>(await this.callApi(params, req, runtime), new $_model.SetAsDefaultBranchResponse({}));
|
|
16866
|
+
}
|
|
16867
|
+
|
|
16868
|
+
/**
|
|
16869
|
+
* Sets the default branch for a Supabase project.
|
|
16870
|
+
*
|
|
16871
|
+
* @remarks
|
|
16872
|
+
* Sets a specified branch as the default branch for a Supabase project.
|
|
16873
|
+
*
|
|
16874
|
+
* @param request - SetAsDefaultBranchRequest
|
|
16875
|
+
* @returns SetAsDefaultBranchResponse
|
|
16876
|
+
*/
|
|
16877
|
+
async setAsDefaultBranch(request: $_model.SetAsDefaultBranchRequest): Promise<$_model.SetAsDefaultBranchResponse> {
|
|
16878
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
16879
|
+
return await this.setAsDefaultBranchWithOptions(request, runtime);
|
|
16880
|
+
}
|
|
16881
|
+
|
|
16694
16882
|
/**
|
|
16695
16883
|
* Enables or disables a plan for an AnalyticDB for PostgreSQL instance.
|
|
16696
16884
|
*
|
|
@@ -17331,6 +17519,86 @@ export default class Client extends OpenApi {
|
|
|
17331
17519
|
return await this.untagSupabaseProjectWithOptions(request, runtime);
|
|
17332
17520
|
}
|
|
17333
17521
|
|
|
17522
|
+
/**
|
|
17523
|
+
* Updates Supabase branch information.
|
|
17524
|
+
*
|
|
17525
|
+
* @remarks
|
|
17526
|
+
* This operation modifies the branch name, description, tags, protection status, and automatic deletion time upon expiration.
|
|
17527
|
+
*
|
|
17528
|
+
* @param request - UpdateBranchRequest
|
|
17529
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
17530
|
+
* @returns UpdateBranchResponse
|
|
17531
|
+
*/
|
|
17532
|
+
async updateBranchWithOptions(request: $_model.UpdateBranchRequest, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateBranchResponse> {
|
|
17533
|
+
request.validate();
|
|
17534
|
+
let query = { };
|
|
17535
|
+
if (!$dara.isNull(request.branchId)) {
|
|
17536
|
+
query["BranchId"] = request.branchId;
|
|
17537
|
+
}
|
|
17538
|
+
|
|
17539
|
+
if (!$dara.isNull(request.branchName)) {
|
|
17540
|
+
query["BranchName"] = request.branchName;
|
|
17541
|
+
}
|
|
17542
|
+
|
|
17543
|
+
if (!$dara.isNull(request.clearExpiresAt)) {
|
|
17544
|
+
query["ClearExpiresAt"] = request.clearExpiresAt;
|
|
17545
|
+
}
|
|
17546
|
+
|
|
17547
|
+
if (!$dara.isNull(request.description)) {
|
|
17548
|
+
query["Description"] = request.description;
|
|
17549
|
+
}
|
|
17550
|
+
|
|
17551
|
+
if (!$dara.isNull(request.expiresAt)) {
|
|
17552
|
+
query["ExpiresAt"] = request.expiresAt;
|
|
17553
|
+
}
|
|
17554
|
+
|
|
17555
|
+
if (!$dara.isNull(request.projectId)) {
|
|
17556
|
+
query["ProjectId"] = request.projectId;
|
|
17557
|
+
}
|
|
17558
|
+
|
|
17559
|
+
if (!$dara.isNull(request.protected)) {
|
|
17560
|
+
query["Protected"] = request.protected;
|
|
17561
|
+
}
|
|
17562
|
+
|
|
17563
|
+
if (!$dara.isNull(request.regionId)) {
|
|
17564
|
+
query["RegionId"] = request.regionId;
|
|
17565
|
+
}
|
|
17566
|
+
|
|
17567
|
+
if (!$dara.isNull(request.tag)) {
|
|
17568
|
+
query["Tag"] = request.tag;
|
|
17569
|
+
}
|
|
17570
|
+
|
|
17571
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
17572
|
+
query: OpenApiUtil.query(query),
|
|
17573
|
+
});
|
|
17574
|
+
let params = new $OpenApiUtil.Params({
|
|
17575
|
+
action: "UpdateBranch",
|
|
17576
|
+
version: "2016-05-03",
|
|
17577
|
+
protocol: "HTTPS",
|
|
17578
|
+
pathname: "/",
|
|
17579
|
+
method: "POST",
|
|
17580
|
+
authType: "AK",
|
|
17581
|
+
style: "RPC",
|
|
17582
|
+
reqBodyType: "formData",
|
|
17583
|
+
bodyType: "json",
|
|
17584
|
+
});
|
|
17585
|
+
return $dara.cast<$_model.UpdateBranchResponse>(await this.callApi(params, req, runtime), new $_model.UpdateBranchResponse({}));
|
|
17586
|
+
}
|
|
17587
|
+
|
|
17588
|
+
/**
|
|
17589
|
+
* Updates Supabase branch information.
|
|
17590
|
+
*
|
|
17591
|
+
* @remarks
|
|
17592
|
+
* This operation modifies the branch name, description, tags, protection status, and automatic deletion time upon expiration.
|
|
17593
|
+
*
|
|
17594
|
+
* @param request - UpdateBranchRequest
|
|
17595
|
+
* @returns UpdateBranchResponse
|
|
17596
|
+
*/
|
|
17597
|
+
async updateBranch(request: $_model.UpdateBranchRequest): Promise<$_model.UpdateBranchResponse> {
|
|
17598
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
17599
|
+
return await this.updateBranchWithOptions(request, runtime);
|
|
17600
|
+
}
|
|
17601
|
+
|
|
17334
17602
|
/**
|
|
17335
17603
|
* Update Metadata of Collection Data
|
|
17336
17604
|
*
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ResetBranchRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The branch ID that uniquely identifies a Supabase branch.
|
|
9
|
+
*
|
|
10
|
+
* This parameter is required.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* br-xxxx
|
|
14
|
+
*/
|
|
15
|
+
branchId?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @remarks
|
|
18
|
+
* The Supabase project ID that corresponds to the main branch.
|
|
19
|
+
*
|
|
20
|
+
* This parameter is required.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* spb-xxxx
|
|
24
|
+
*/
|
|
25
|
+
projectId?: string;
|
|
26
|
+
/**
|
|
27
|
+
* @remarks
|
|
28
|
+
* The region ID. This parameter is required when you create a main branch. When you create a child branch, the region is inherited from the main branch by default.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* cn-beijing
|
|
32
|
+
*/
|
|
33
|
+
regionId?: string;
|
|
34
|
+
static names(): { [key: string]: string } {
|
|
35
|
+
return {
|
|
36
|
+
branchId: 'BranchId',
|
|
37
|
+
projectId: 'ProjectId',
|
|
38
|
+
regionId: 'RegionId',
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
static types(): { [key: string]: any } {
|
|
43
|
+
return {
|
|
44
|
+
branchId: 'string',
|
|
45
|
+
projectId: 'string',
|
|
46
|
+
regionId: 'string',
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
validate() {
|
|
51
|
+
super.validate();
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
constructor(map?: { [key: string]: any }) {
|
|
55
|
+
super(map);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { ResetBranchResponseBody } from "./ResetBranchResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class ResetBranchResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: ResetBranchResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: ResetBranchResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ResetBranchResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The request ID.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ABB39CC3-4488-4857-905D-2E4A051D****
|
|
12
|
+
*/
|
|
13
|
+
requestId?: string;
|
|
14
|
+
static names(): { [key: string]: string } {
|
|
15
|
+
return {
|
|
16
|
+
requestId: 'RequestId',
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
static types(): { [key: string]: any } {
|
|
21
|
+
return {
|
|
22
|
+
requestId: 'string',
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
super.validate();
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
constructor(map?: { [key: string]: any }) {
|
|
31
|
+
super(map);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class RestoreBranchRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The branch ID that uniquely identifies a Supabase branch.
|
|
9
|
+
*
|
|
10
|
+
* This parameter is required.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* br-xxxx
|
|
14
|
+
*/
|
|
15
|
+
branchId?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @remarks
|
|
18
|
+
* The client idempotency token that ensures the idempotence of retry requests.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* 123e4567-e89b-12d3-a456-426614174000
|
|
22
|
+
*/
|
|
23
|
+
clientToken?: string;
|
|
24
|
+
/**
|
|
25
|
+
* @remarks
|
|
26
|
+
* The backup branch name. If specified, automatic creation of a backup branch is performed before recovery.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* backup-main
|
|
30
|
+
*/
|
|
31
|
+
preserveUnderName?: string;
|
|
32
|
+
/**
|
|
33
|
+
* @remarks
|
|
34
|
+
* The Supabase project ID associated with the primary branch.
|
|
35
|
+
*
|
|
36
|
+
* This parameter is required.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* spb-xxxx
|
|
40
|
+
*/
|
|
41
|
+
projectId?: string;
|
|
42
|
+
/**
|
|
43
|
+
* @remarks
|
|
44
|
+
* The region ID. This parameter is required when you create a primary branch. When you create a sub-branch, the region is inherited from the primary branch by default.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* cn-beijing
|
|
48
|
+
*/
|
|
49
|
+
regionId?: string;
|
|
50
|
+
/**
|
|
51
|
+
* @remarks
|
|
52
|
+
* The ID of the source branch from which to recover.
|
|
53
|
+
*
|
|
54
|
+
* This parameter is required.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* br-main
|
|
58
|
+
*/
|
|
59
|
+
sourceBranchId?: string;
|
|
60
|
+
/**
|
|
61
|
+
* @remarks
|
|
62
|
+
* The LSN of the source branch to recover to.
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* 0/3522648
|
|
66
|
+
*/
|
|
67
|
+
sourceBranchLsn?: string;
|
|
68
|
+
/**
|
|
69
|
+
* @remarks
|
|
70
|
+
* The point in time of the source branch to recover to. The value must be within the recoverable time window.
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* 2026-04-08T09:11:12Z
|
|
74
|
+
*/
|
|
75
|
+
sourceBranchTimestamp?: string;
|
|
76
|
+
static names(): { [key: string]: string } {
|
|
77
|
+
return {
|
|
78
|
+
branchId: 'BranchId',
|
|
79
|
+
clientToken: 'ClientToken',
|
|
80
|
+
preserveUnderName: 'PreserveUnderName',
|
|
81
|
+
projectId: 'ProjectId',
|
|
82
|
+
regionId: 'RegionId',
|
|
83
|
+
sourceBranchId: 'SourceBranchId',
|
|
84
|
+
sourceBranchLsn: 'SourceBranchLsn',
|
|
85
|
+
sourceBranchTimestamp: 'SourceBranchTimestamp',
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
static types(): { [key: string]: any } {
|
|
90
|
+
return {
|
|
91
|
+
branchId: 'string',
|
|
92
|
+
clientToken: 'string',
|
|
93
|
+
preserveUnderName: 'string',
|
|
94
|
+
projectId: 'string',
|
|
95
|
+
regionId: 'string',
|
|
96
|
+
sourceBranchId: 'string',
|
|
97
|
+
sourceBranchLsn: 'string',
|
|
98
|
+
sourceBranchTimestamp: 'string',
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
validate() {
|
|
103
|
+
super.validate();
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
constructor(map?: { [key: string]: any }) {
|
|
107
|
+
super(map);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { RestoreBranchResponseBody } from "./RestoreBranchResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class RestoreBranchResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: RestoreBranchResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: RestoreBranchResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class RestoreBranchResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The branch ID that uniquely identifies a Supabase branch.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* br-xxxx
|
|
12
|
+
*/
|
|
13
|
+
branchId?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The request ID.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ABB39CC3-4488-4857-905D-2E4A051D****
|
|
20
|
+
*/
|
|
21
|
+
requestId?: string;
|
|
22
|
+
static names(): { [key: string]: string } {
|
|
23
|
+
return {
|
|
24
|
+
branchId: 'BranchId',
|
|
25
|
+
requestId: 'RequestId',
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
static types(): { [key: string]: any } {
|
|
30
|
+
return {
|
|
31
|
+
branchId: 'string',
|
|
32
|
+
requestId: 'string',
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
validate() {
|
|
37
|
+
super.validate();
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
constructor(map?: { [key: string]: any }) {
|
|
41
|
+
super(map);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class SetAsDefaultBranchRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The branch ID that uniquely identifies a Supabase branch.
|
|
9
|
+
*
|
|
10
|
+
* This parameter is required.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* br-xxxx
|
|
14
|
+
*/
|
|
15
|
+
branchId?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @remarks
|
|
18
|
+
* The ID of the Supabase project that corresponds to the primary branch.
|
|
19
|
+
*
|
|
20
|
+
* This parameter is required.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* spb-xxxx
|
|
24
|
+
*/
|
|
25
|
+
projectId?: string;
|
|
26
|
+
/**
|
|
27
|
+
* @remarks
|
|
28
|
+
* The region ID. This parameter is required when you create a primary branch. When you create a sub-branch, this parameter inherits the region of the primary branch by default.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* cn-beijing
|
|
32
|
+
*/
|
|
33
|
+
regionId?: string;
|
|
34
|
+
static names(): { [key: string]: string } {
|
|
35
|
+
return {
|
|
36
|
+
branchId: 'BranchId',
|
|
37
|
+
projectId: 'ProjectId',
|
|
38
|
+
regionId: 'RegionId',
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
static types(): { [key: string]: any } {
|
|
43
|
+
return {
|
|
44
|
+
branchId: 'string',
|
|
45
|
+
projectId: 'string',
|
|
46
|
+
regionId: 'string',
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
validate() {
|
|
51
|
+
super.validate();
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
constructor(map?: { [key: string]: any }) {
|
|
55
|
+
super(map);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|