@alicloud/gpdb20160503 3.8.0 → 3.10.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 +159 -0
- package/dist/client.js +467 -0
- package/dist/client.js.map +1 -1
- package/dist/models/CreateModelOperatorApiKeyRequest.d.ts +21 -0
- package/dist/models/CreateModelOperatorApiKeyRequest.js +58 -0
- package/dist/models/CreateModelOperatorApiKeyRequest.js.map +1 -0
- package/dist/models/CreateModelOperatorApiKeyResponse.d.ts +19 -0
- package/dist/models/CreateModelOperatorApiKeyResponse.js +69 -0
- package/dist/models/CreateModelOperatorApiKeyResponse.js.map +1 -0
- package/dist/models/CreateModelOperatorApiKeyResponseBody.d.ts +23 -0
- package/dist/models/CreateModelOperatorApiKeyResponseBody.js +60 -0
- package/dist/models/CreateModelOperatorApiKeyResponseBody.js.map +1 -0
- package/dist/models/DescribeModelOperatorApiKeyRequest.d.ts +18 -0
- package/dist/models/DescribeModelOperatorApiKeyRequest.js +58 -0
- package/dist/models/DescribeModelOperatorApiKeyRequest.js.map +1 -0
- package/dist/models/DescribeModelOperatorApiKeyResponse.d.ts +19 -0
- package/dist/models/DescribeModelOperatorApiKeyResponse.js +69 -0
- package/dist/models/DescribeModelOperatorApiKeyResponse.js.map +1 -0
- package/dist/models/DescribeModelOperatorApiKeyResponseBody.d.ts +43 -0
- package/dist/models/DescribeModelOperatorApiKeyResponseBody.js +68 -0
- package/dist/models/DescribeModelOperatorApiKeyResponseBody.js.map +1 -0
- package/dist/models/DescribeModelOperatorUsageRequest.d.ts +36 -0
- package/dist/models/DescribeModelOperatorUsageRequest.js +79 -0
- package/dist/models/DescribeModelOperatorUsageRequest.js.map +1 -0
- package/dist/models/DescribeModelOperatorUsageResponse.d.ts +19 -0
- package/dist/models/DescribeModelOperatorUsageResponse.js +69 -0
- package/dist/models/DescribeModelOperatorUsageResponse.js.map +1 -0
- package/dist/models/DescribeModelOperatorUsageResponseBody.d.ts +98 -0
- package/dist/models/DescribeModelOperatorUsageResponseBody.js +145 -0
- package/dist/models/DescribeModelOperatorUsageResponseBody.js.map +1 -0
- package/dist/models/DescribeModelOperatorUsageShrinkRequest.d.ts +36 -0
- package/dist/models/DescribeModelOperatorUsageShrinkRequest.js +70 -0
- package/dist/models/DescribeModelOperatorUsageShrinkRequest.js.map +1 -0
- package/dist/models/ListModelOperatorApiKeysRequest.d.ts +23 -0
- package/dist/models/ListModelOperatorApiKeysRequest.js +60 -0
- package/dist/models/ListModelOperatorApiKeysRequest.js.map +1 -0
- package/dist/models/ListModelOperatorApiKeysResponse.d.ts +19 -0
- package/dist/models/ListModelOperatorApiKeysResponse.js +69 -0
- package/dist/models/ListModelOperatorApiKeysResponse.js.map +1 -0
- package/dist/models/ListModelOperatorApiKeysResponseBody.d.ts +66 -0
- package/dist/models/ListModelOperatorApiKeysResponseBody.js +94 -0
- package/dist/models/ListModelOperatorApiKeysResponseBody.js.map +1 -0
- package/dist/models/ListModelOperatorServicesRequest.d.ts +23 -0
- package/dist/models/ListModelOperatorServicesRequest.js +60 -0
- package/dist/models/ListModelOperatorServicesRequest.js.map +1 -0
- package/dist/models/ListModelOperatorServicesResponse.d.ts +19 -0
- package/dist/models/ListModelOperatorServicesResponse.js +69 -0
- package/dist/models/ListModelOperatorServicesResponse.js.map +1 -0
- package/dist/models/ListModelOperatorServicesResponseBody.d.ts +51 -0
- package/dist/models/ListModelOperatorServicesResponseBody.js +88 -0
- package/dist/models/ListModelOperatorServicesResponseBody.js.map +1 -0
- 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 +34 -0
- package/dist/models/model.js +89 -21
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +524 -0
- package/src/models/CreateModelOperatorApiKeyRequest.ts +34 -0
- package/src/models/CreateModelOperatorApiKeyResponse.ts +40 -0
- package/src/models/CreateModelOperatorApiKeyResponseBody.ts +38 -0
- package/src/models/DescribeModelOperatorApiKeyRequest.ts +31 -0
- package/src/models/DescribeModelOperatorApiKeyResponse.ts +40 -0
- package/src/models/DescribeModelOperatorApiKeyResponseBody.ts +66 -0
- package/src/models/DescribeModelOperatorUsageRequest.ts +70 -0
- package/src/models/DescribeModelOperatorUsageResponse.ts +40 -0
- package/src/models/DescribeModelOperatorUsageResponseBody.ts +171 -0
- package/src/models/DescribeModelOperatorUsageShrinkRequest.ts +61 -0
- package/src/models/ListModelOperatorApiKeysRequest.ts +38 -0
- package/src/models/ListModelOperatorApiKeysResponse.ts +40 -0
- package/src/models/ListModelOperatorApiKeysResponseBody.ts +106 -0
- package/src/models/ListModelOperatorServicesRequest.ts +38 -0
- package/src/models/ListModelOperatorServicesResponse.ts +40 -0
- package/src/models/ListModelOperatorServicesResponseBody.ts +85 -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 +34 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { ListModelOperatorServicesResponseBody } from "./ListModelOperatorServicesResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class ListModelOperatorServicesResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: ListModelOperatorServicesResponseBody;
|
|
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: ListModelOperatorServicesResponseBody,
|
|
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,85 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ListModelOperatorServicesResponseBodyServices extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* agdb-xxx
|
|
9
|
+
*/
|
|
10
|
+
serviceId?: string;
|
|
11
|
+
static names(): { [key: string]: string } {
|
|
12
|
+
return {
|
|
13
|
+
serviceId: 'ServiceId',
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
static types(): { [key: string]: any } {
|
|
18
|
+
return {
|
|
19
|
+
serviceId: 'string',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
validate() {
|
|
24
|
+
super.validate();
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
constructor(map?: { [key: string]: any }) {
|
|
28
|
+
super(map);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export class ListModelOperatorServicesResponseBody extends $dara.Model {
|
|
33
|
+
/**
|
|
34
|
+
* @example
|
|
35
|
+
* 1
|
|
36
|
+
*/
|
|
37
|
+
pageNumber?: number;
|
|
38
|
+
/**
|
|
39
|
+
* @example
|
|
40
|
+
* 1
|
|
41
|
+
*/
|
|
42
|
+
pageRecordCount?: number;
|
|
43
|
+
/**
|
|
44
|
+
* @example
|
|
45
|
+
* ABB39CC3-4488-4857-905D-2E4A051D0521
|
|
46
|
+
*/
|
|
47
|
+
requestId?: string;
|
|
48
|
+
services?: ListModelOperatorServicesResponseBodyServices[];
|
|
49
|
+
/**
|
|
50
|
+
* @example
|
|
51
|
+
* 2
|
|
52
|
+
*/
|
|
53
|
+
totalRecordCount?: number;
|
|
54
|
+
static names(): { [key: string]: string } {
|
|
55
|
+
return {
|
|
56
|
+
pageNumber: 'PageNumber',
|
|
57
|
+
pageRecordCount: 'PageRecordCount',
|
|
58
|
+
requestId: 'RequestId',
|
|
59
|
+
services: 'Services',
|
|
60
|
+
totalRecordCount: 'TotalRecordCount',
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
static types(): { [key: string]: any } {
|
|
65
|
+
return {
|
|
66
|
+
pageNumber: 'number',
|
|
67
|
+
pageRecordCount: 'number',
|
|
68
|
+
requestId: 'string',
|
|
69
|
+
services: { 'type': 'array', 'itemType': ListModelOperatorServicesResponseBodyServices },
|
|
70
|
+
totalRecordCount: 'number',
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
validate() {
|
|
75
|
+
if(Array.isArray(this.services)) {
|
|
76
|
+
$dara.Model.validateArray(this.services);
|
|
77
|
+
}
|
|
78
|
+
super.validate();
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
constructor(map?: { [key: string]: any }) {
|
|
82
|
+
super(map);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
@@ -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
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { SetAsDefaultBranchResponseBody } from "./SetAsDefaultBranchResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class SetAsDefaultBranchResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: SetAsDefaultBranchResponseBody;
|
|
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: SetAsDefaultBranchResponseBody,
|
|
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 SetAsDefaultBranchResponseBody 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
|
+
|