@alicloud/gpdb20160503 3.12.1 → 3.13.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.
Files changed (40) hide show
  1. package/dist/client.d.ts +23 -8
  2. package/dist/client.js +98 -20
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateSupabaseProjectRequest.d.ts +4 -3
  5. package/dist/models/CreateSupabaseProjectRequest.js +2 -0
  6. package/dist/models/CreateSupabaseProjectRequest.js.map +1 -1
  7. package/dist/models/CreateSupabaseProjectResponseBody.d.ts +1 -1
  8. package/dist/models/DescribeBranchRequest.d.ts +1 -1
  9. package/dist/models/DescribeBranchResponseBody.d.ts +11 -4
  10. package/dist/models/DescribeBranchResponseBody.js.map +1 -1
  11. package/dist/models/DescribeDbversionRequest.d.ts +24 -0
  12. package/dist/models/DescribeDbversionRequest.js +60 -0
  13. package/dist/models/DescribeDbversionRequest.js.map +1 -0
  14. package/dist/models/DescribeDbversionResponse.d.ts +19 -0
  15. package/dist/models/DescribeDbversionResponse.js +69 -0
  16. package/dist/models/DescribeDbversionResponse.js.map +1 -0
  17. package/dist/models/DescribeDbversionResponseBody.d.ts +29 -0
  18. package/dist/models/DescribeDbversionResponseBody.js +60 -0
  19. package/dist/models/DescribeDbversionResponseBody.js.map +1 -0
  20. package/dist/models/GetSupabaseProjectRequest.d.ts +2 -2
  21. package/dist/models/GetSupabaseProjectResponseBody.d.ts +26 -36
  22. package/dist/models/GetSupabaseProjectResponseBody.js +2 -0
  23. package/dist/models/GetSupabaseProjectResponseBody.js.map +1 -1
  24. package/dist/models/ListBranchesRequest.d.ts +2 -2
  25. package/dist/models/model.d.ts +3 -0
  26. package/dist/models/model.js +18 -12
  27. package/dist/models/model.js.map +1 -1
  28. package/package.json +1 -1
  29. package/src/client.ts +103 -20
  30. package/src/models/CreateSupabaseProjectRequest.ts +6 -3
  31. package/src/models/CreateSupabaseProjectResponseBody.ts +1 -1
  32. package/src/models/DescribeBranchRequest.ts +1 -1
  33. package/src/models/DescribeBranchResponseBody.ts +11 -4
  34. package/src/models/DescribeDbversionRequest.ts +39 -0
  35. package/src/models/DescribeDbversionResponse.ts +40 -0
  36. package/src/models/DescribeDbversionResponseBody.ts +44 -0
  37. package/src/models/GetSupabaseProjectRequest.ts +2 -2
  38. package/src/models/GetSupabaseProjectResponseBody.ts +28 -36
  39. package/src/models/ListBranchesRequest.ts +2 -2
  40. package/src/models/model.ts +3 -0
package/dist/client.d.ts CHANGED
@@ -825,7 +825,7 @@ export default class Client extends OpenApi {
825
825
  * Creates a Supabase project.
826
826
  *
827
827
  * @remarks
828
- * 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.
828
+ * Creates a Supabase project in a specified region and zone. This operation supports the 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.
829
829
  *
830
830
  * @param request - CreateSupabaseProjectRequest
831
831
  * @param runtime - runtime options for this request RuntimeOptions
@@ -836,7 +836,7 @@ export default class Client extends OpenApi {
836
836
  * Creates a Supabase project.
837
837
  *
838
838
  * @remarks
839
- * 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.
839
+ * Creates a Supabase project in a specified region and zone. This operation supports the 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.
840
840
  *
841
841
  * @param request - CreateSupabaseProjectRequest
842
842
  * @returns CreateSupabaseProjectResponse
@@ -1603,7 +1603,7 @@ export default class Client extends OpenApi {
1603
1603
  * Queries the details of a Supabase branch.
1604
1604
  *
1605
1605
  * @remarks
1606
- * Queries the detailed information of a specified Supabase branch, including basic branch attributes, parent branch information, protection status, and connection information.
1606
+ * This operation queries the details of a specified Supabase branch and returns the basic attributes, parent branch information, protection status, and connection information of the branch.
1607
1607
  *
1608
1608
  * @param request - DescribeBranchRequest
1609
1609
  * @param runtime - runtime options for this request RuntimeOptions
@@ -1614,7 +1614,7 @@ export default class Client extends OpenApi {
1614
1614
  * Queries the details of a Supabase branch.
1615
1615
  *
1616
1616
  * @remarks
1617
- * Queries the detailed information of a specified Supabase branch, including basic branch attributes, parent branch information, protection status, and connection information.
1617
+ * This operation queries the details of a specified Supabase branch and returns the basic attributes, parent branch information, protection status, and connection information of the branch.
1618
1618
  *
1619
1619
  * @param request - DescribeBranchRequest
1620
1620
  * @returns DescribeBranchResponse
@@ -2017,6 +2017,21 @@ export default class Client extends OpenApi {
2017
2017
  * @returns DescribeDBResourceManagementModeResponse
2018
2018
  */
2019
2019
  describeDBResourceManagementMode(request: $_model.DescribeDBResourceManagementModeRequest): Promise<$_model.DescribeDBResourceManagementModeResponse>;
2020
+ /**
2021
+ * Queries the kernel update version information.
2022
+ *
2023
+ * @param request - DescribeDBVersionRequest
2024
+ * @param runtime - runtime options for this request RuntimeOptions
2025
+ * @returns DescribeDBVersionResponse
2026
+ */
2027
+ describeDBVersionWithOptions(request: $_model.DescribeDBVersionRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeDBVersionResponse>;
2028
+ /**
2029
+ * Queries the kernel update version information.
2030
+ *
2031
+ * @param request - DescribeDBVersionRequest
2032
+ * @returns DescribeDBVersionResponse
2033
+ */
2034
+ describeDBVersion(request: $_model.DescribeDBVersionRequest): Promise<$_model.DescribeDBVersionResponse>;
2020
2035
  /**
2021
2036
  * Queries the information about minor versions of AnalyticDB for PostgreSQL instances.
2022
2037
  *
@@ -3231,10 +3246,10 @@ export default class Client extends OpenApi {
3231
3246
  */
3232
3247
  getStatementResult(request: $_model.GetStatementResultRequest): Promise<$_model.GetStatementResultResponse>;
3233
3248
  /**
3234
- * Retrieves details of a Supabase instance.
3249
+ * Queries the details of a Supabase instance.
3235
3250
  *
3236
3251
  * @remarks
3237
- * Gets the details of a Supabase instance.
3252
+ * Queries the details of a Supabase instance.
3238
3253
  *
3239
3254
  * @param request - GetSupabaseProjectRequest
3240
3255
  * @param runtime - runtime options for this request RuntimeOptions
@@ -3242,10 +3257,10 @@ export default class Client extends OpenApi {
3242
3257
  */
3243
3258
  getSupabaseProjectWithOptions(request: $_model.GetSupabaseProjectRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetSupabaseProjectResponse>;
3244
3259
  /**
3245
- * Retrieves details of a Supabase instance.
3260
+ * Queries the details of a Supabase instance.
3246
3261
  *
3247
3262
  * @remarks
3248
- * Gets the details of a Supabase instance.
3263
+ * Queries the details of a Supabase instance.
3249
3264
  *
3250
3265
  * @param request - GetSupabaseProjectRequest
3251
3266
  * @returns GetSupabaseProjectResponse
package/dist/client.js CHANGED
@@ -67,33 +67,66 @@ class Client extends openapi_core_1.default {
67
67
  super(config);
68
68
  this._endpointRule = "regional";
69
69
  this._endpointMap = {
70
- 'cn-beijing': "gpdb.aliyuncs.com",
71
70
  'cn-hangzhou': "gpdb.aliyuncs.com",
72
- 'cn-shanghai': "gpdb.aliyuncs.com",
73
- 'cn-shenzhen': "gpdb.aliyuncs.com",
74
- 'cn-hongkong': "gpdb.aliyuncs.com",
75
- 'ap-southeast-1': "gpdb.aliyuncs.com",
76
- 'us-west-1': "gpdb.aliyuncs.com",
77
- 'us-east-1': "gpdb.aliyuncs.com",
78
71
  'cn-hangzhou-finance': "gpdb.aliyuncs.com",
79
- 'cn-shanghai-finance-1': "gpdb.aliyuncs.com",
80
- 'cn-shenzhen-finance-1': "gpdb.aliyuncs.com",
81
- 'cn-qingdao': "gpdb.aliyuncs.com",
82
- 'cn-north-2-gov-1': "gpdb.aliyuncs.com",
72
+ 'ap-northeast-2-pop': "gpdb.aliyuncs.com",
73
+ 'ap-south-1': "gpdb.aliyuncs.com",
74
+ 'ap-southeast-2': "gpdb.aliyuncs.com",
75
+ 'cn-beijing-finance-1': "gpdb.aliyuncs.com",
76
+ 'cn-beijing-finance-pop': "gpdb.aliyuncs.com",
77
+ 'cn-beijing-gov-1': "gpdb.aliyuncs.com",
78
+ 'cn-beijing-nu16-b01': "gpdb.aliyuncs.com",
79
+ 'cn-edge-1': "gpdb.aliyuncs.com",
80
+ 'cn-fujian': "gpdb.aliyuncs.com",
81
+ 'cn-haidian-cm12-c01': "gpdb.aliyuncs.com",
82
+ 'cn-hangzhou-bj-b01': "gpdb.aliyuncs.com",
83
+ 'cn-hangzhou-internal-prod-1': "gpdb.aliyuncs.com",
84
+ 'cn-hangzhou-internal-test-1': "gpdb.aliyuncs.com",
85
+ 'cn-hangzhou-internal-test-2': "gpdb.aliyuncs.com",
86
+ 'cn-hangzhou-internal-test-3': "gpdb.aliyuncs.com",
87
+ 'cn-hangzhou-test-306': "gpdb.aliyuncs.com",
88
+ 'cn-hongkong-finance-pop': "gpdb.aliyuncs.com",
89
+ 'cn-huhehaote-nebula-1': "gpdb.aliyuncs.com",
90
+ 'cn-qingdao-nebula': "gpdb.aliyuncs.com",
91
+ 'cn-shanghai-et15-b01': "gpdb.aliyuncs.com",
92
+ 'cn-shanghai-et2-b01': "gpdb.aliyuncs.com",
93
+ 'cn-shanghai-inner': "gpdb.aliyuncs.com",
94
+ 'cn-shanghai-internal-test-1': "gpdb.aliyuncs.com",
95
+ 'cn-shenzhen-inner': "gpdb.aliyuncs.com",
96
+ 'cn-shenzhen-st4-d01': "gpdb.aliyuncs.com",
97
+ 'cn-shenzhen-su18-b01': "gpdb.aliyuncs.com",
98
+ 'cn-wuhan': "gpdb.aliyuncs.com",
99
+ 'cn-yushanfang': "gpdb.aliyuncs.com",
100
+ 'cn-zhangbei': "gpdb.aliyuncs.com",
101
+ 'cn-zhangbei-na61-b01': "gpdb.aliyuncs.com",
102
+ 'cn-zhangjiakou-na62-a01': "gpdb.aliyuncs.com",
103
+ 'cn-zhengzhou-nebula-1': "gpdb.aliyuncs.com",
104
+ 'eu-west-1-oxs': "gpdb.aliyuncs.com",
105
+ 'rus-west-1-pop': "gpdb.aliyuncs.com",
83
106
  'cn-wulanchabu': "gpdb.cn-wulanchabu.aliyuncs.com",
107
+ 'cn-beijing': "gpdb.cn-beijing.aliyuncs.com",
108
+ 'cn-qingdao': "gpdb.cn-qingdao.aliyuncs.com",
109
+ 'cn-shanghai': "gpdb.cn-shanghai.aliyuncs.com",
110
+ 'cn-hongkong': "gpdb.cn-hongkong.aliyuncs.com",
84
111
  'cn-zhangjiakou': "gpdb.cn-zhangjiakou.aliyuncs.com",
112
+ 'cn-shenzhen': "gpdb.cn-shenzhen.aliyuncs.com",
85
113
  'ap-northeast-2': "gpdb.ap-northeast-2.aliyuncs.com",
86
114
  'ap-northeast-1': "gpdb.ap-northeast-1.aliyuncs.com",
87
115
  'cn-chengdu': "gpdb.cn-chengdu.aliyuncs.com",
116
+ 'ap-southeast-1': "gpdb.ap-southeast-1.aliyuncs.com",
88
117
  'ap-southeast-3': "gpdb.ap-southeast-3.aliyuncs.com",
89
118
  'cn-huhehaote': "gpdb.cn-huhehaote.aliyuncs.com",
90
119
  'ap-southeast-5': "gpdb.ap-southeast-5.aliyuncs.com",
91
120
  'ap-southeast-7': "gpdb.ap-southeast-7.aliyuncs.com",
121
+ 'us-east-1': "gpdb.us-east-1.aliyuncs.com",
92
122
  'eu-west-1': "gpdb.eu-west-1.aliyuncs.com",
123
+ 'us-west-1': "gpdb.us-west-1.aliyuncs.com",
93
124
  'eu-central-1': "gpdb.eu-central-1.aliyuncs.com",
94
125
  'me-east-1': "gpdb.me-east-1.aliyuncs.com",
95
126
  'me-central-1': "gpdb.me-central-1.aliyuncs.com",
96
- 'cn-beijing-finance-1': "gpdb.cn-beijing-finance-1.aliyuncs.com",
127
+ 'cn-shenzhen-finance-1': "gpdb.cn-shenzhen-finance-1.aliyuncs.com",
128
+ 'cn-shanghai-finance-1': "gpdb.cn-shanghai-finance-1.aliyuncs.com",
129
+ 'cn-north-2-gov-1': "gpdb.cn-north-2-gov-1.aliyuncs.com",
97
130
  };
98
131
  this.checkConfig(config);
99
132
  this._endpoint = this.getEndpoint("gpdb", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
@@ -3105,7 +3138,7 @@ class Client extends openapi_core_1.default {
3105
3138
  * Creates a Supabase project.
3106
3139
  *
3107
3140
  * @remarks
3108
- * 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.
3141
+ * Creates a Supabase project in a specified region and zone. This operation supports the 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.
3109
3142
  *
3110
3143
  * @param request - CreateSupabaseProjectRequest
3111
3144
  * @param runtime - runtime options for this request RuntimeOptions
@@ -3129,6 +3162,9 @@ class Client extends openapi_core_1.default {
3129
3162
  if (!$dara.isNull(request.engineVersion)) {
3130
3163
  query["EngineVersion"] = request.engineVersion;
3131
3164
  }
3165
+ if (!$dara.isNull(request.lightweight)) {
3166
+ query["Lightweight"] = request.lightweight;
3167
+ }
3132
3168
  if (!$dara.isNull(request.payType)) {
3133
3169
  query["PayType"] = request.payType;
3134
3170
  }
@@ -3185,7 +3221,7 @@ class Client extends openapi_core_1.default {
3185
3221
  * Creates a Supabase project.
3186
3222
  *
3187
3223
  * @remarks
3188
- * 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.
3224
+ * Creates a Supabase project in a specified region and zone. This operation supports the 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.
3189
3225
  *
3190
3226
  * @param request - CreateSupabaseProjectRequest
3191
3227
  * @returns CreateSupabaseProjectResponse
@@ -5382,7 +5418,7 @@ class Client extends openapi_core_1.default {
5382
5418
  * Queries the details of a Supabase branch.
5383
5419
  *
5384
5420
  * @remarks
5385
- * Queries the detailed information of a specified Supabase branch, including basic branch attributes, parent branch information, protection status, and connection information.
5421
+ * This operation queries the details of a specified Supabase branch and returns the basic attributes, parent branch information, protection status, and connection information of the branch.
5386
5422
  *
5387
5423
  * @param request - DescribeBranchRequest
5388
5424
  * @param runtime - runtime options for this request RuntimeOptions
@@ -5417,7 +5453,7 @@ class Client extends openapi_core_1.default {
5417
5453
  * Queries the details of a Supabase branch.
5418
5454
  *
5419
5455
  * @remarks
5420
- * Queries the detailed information of a specified Supabase branch, including basic branch attributes, parent branch information, protection status, and connection information.
5456
+ * This operation queries the details of a specified Supabase branch and returns the basic attributes, parent branch information, protection status, and connection information of the branch.
5421
5457
  *
5422
5458
  * @param request - DescribeBranchRequest
5423
5459
  * @returns DescribeBranchResponse
@@ -6527,6 +6563,48 @@ class Client extends openapi_core_1.default {
6527
6563
  let runtime = new $dara.RuntimeOptions({});
6528
6564
  return await this.describeDBResourceManagementModeWithOptions(request, runtime);
6529
6565
  }
6566
+ /**
6567
+ * Queries the kernel update version information.
6568
+ *
6569
+ * @param request - DescribeDBVersionRequest
6570
+ * @param runtime - runtime options for this request RuntimeOptions
6571
+ * @returns DescribeDBVersionResponse
6572
+ */
6573
+ async describeDBVersionWithOptions(request, runtime) {
6574
+ request.validate();
6575
+ let query = {};
6576
+ if (!$dara.isNull(request.DBInstanceId)) {
6577
+ query["DBInstanceId"] = request.DBInstanceId;
6578
+ }
6579
+ if (!$dara.isNull(request.ownerId)) {
6580
+ query["OwnerId"] = request.ownerId;
6581
+ }
6582
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
6583
+ query: openapi_core_2.OpenApiUtil.query(query),
6584
+ });
6585
+ let params = new openapi_core_2.$OpenApiUtil.Params({
6586
+ action: "DescribeDBVersion",
6587
+ version: "2016-05-03",
6588
+ protocol: "HTTPS",
6589
+ pathname: "/",
6590
+ method: "POST",
6591
+ authType: "AK",
6592
+ style: "RPC",
6593
+ reqBodyType: "formData",
6594
+ bodyType: "json",
6595
+ });
6596
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeDBVersionResponse({}));
6597
+ }
6598
+ /**
6599
+ * Queries the kernel update version information.
6600
+ *
6601
+ * @param request - DescribeDBVersionRequest
6602
+ * @returns DescribeDBVersionResponse
6603
+ */
6604
+ async describeDBVersion(request) {
6605
+ let runtime = new $dara.RuntimeOptions({});
6606
+ return await this.describeDBVersionWithOptions(request, runtime);
6607
+ }
6530
6608
  /**
6531
6609
  * Queries the information about minor versions of AnalyticDB for PostgreSQL instances.
6532
6610
  *
@@ -10110,10 +10188,10 @@ class Client extends openapi_core_1.default {
10110
10188
  return await this.getStatementResultWithOptions(request, runtime);
10111
10189
  }
10112
10190
  /**
10113
- * Retrieves details of a Supabase instance.
10191
+ * Queries the details of a Supabase instance.
10114
10192
  *
10115
10193
  * @remarks
10116
- * Gets the details of a Supabase instance.
10194
+ * Queries the details of a Supabase instance.
10117
10195
  *
10118
10196
  * @param request - GetSupabaseProjectRequest
10119
10197
  * @param runtime - runtime options for this request RuntimeOptions
@@ -10145,10 +10223,10 @@ class Client extends openapi_core_1.default {
10145
10223
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetSupabaseProjectResponse({}));
10146
10224
  }
10147
10225
  /**
10148
- * Retrieves details of a Supabase instance.
10226
+ * Queries the details of a Supabase instance.
10149
10227
  *
10150
10228
  * @remarks
10151
- * Gets the details of a Supabase instance.
10229
+ * Queries the details of a Supabase instance.
10152
10230
  *
10153
10231
  * @param request - GetSupabaseProjectRequest
10154
10232
  * @returns GetSupabaseProjectResponse