@alicloud/gpdb20160503 3.12.2 → 3.13.1

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 (43) hide show
  1. package/dist/client.d.ts +25 -10
  2. package/dist/client.js +58 -34
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateSupabaseProjectRequest.d.ts +3 -3
  5. package/dist/models/CreateSupabaseProjectResponseBody.d.ts +1 -1
  6. package/dist/models/DescribeDbversionRequest.d.ts +24 -0
  7. package/dist/models/DescribeDbversionRequest.js +60 -0
  8. package/dist/models/DescribeDbversionRequest.js.map +1 -0
  9. package/dist/models/DescribeDbversionResponse.d.ts +19 -0
  10. package/dist/models/DescribeDbversionResponse.js +69 -0
  11. package/dist/models/DescribeDbversionResponse.js.map +1 -0
  12. package/dist/models/DescribeDbversionResponseBody.d.ts +29 -0
  13. package/dist/models/DescribeDbversionResponseBody.js +60 -0
  14. package/dist/models/DescribeDbversionResponseBody.js.map +1 -0
  15. package/dist/models/GetSupabaseProjectRequest.d.ts +2 -2
  16. package/dist/models/GetSupabaseProjectResponseBody.d.ts +37 -36
  17. package/dist/models/GetSupabaseProjectResponseBody.js +2 -0
  18. package/dist/models/GetSupabaseProjectResponseBody.js.map +1 -1
  19. package/dist/models/ModifySupabaseAutoScalePolicyRequest.d.ts +1 -0
  20. package/dist/models/ModifySupabaseAutoScalePolicyRequest.js +2 -0
  21. package/dist/models/ModifySupabaseAutoScalePolicyRequest.js.map +1 -1
  22. package/dist/models/ResetSupabaseProjectPasswordRequest.d.ts +5 -5
  23. package/dist/models/ResetSupabaseProjectPasswordRequest.js +2 -0
  24. package/dist/models/ResetSupabaseProjectPasswordRequest.js.map +1 -1
  25. package/dist/models/ResetSupabaseProjectPasswordResponseBody.d.ts +1 -1
  26. package/dist/models/UpgradeDbversionResponseBody.d.ts +1 -1
  27. package/dist/models/model.d.ts +3 -0
  28. package/dist/models/model.js +18 -12
  29. package/dist/models/model.js.map +1 -1
  30. package/package.json +1 -1
  31. package/src/client.ts +64 -34
  32. package/src/models/CreateSupabaseProjectRequest.ts +3 -3
  33. package/src/models/CreateSupabaseProjectResponseBody.ts +1 -1
  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 +39 -36
  39. package/src/models/ModifySupabaseAutoScalePolicyRequest.ts +3 -0
  40. package/src/models/ResetSupabaseProjectPasswordRequest.ts +7 -5
  41. package/src/models/ResetSupabaseProjectPasswordResponseBody.ts +1 -1
  42. package/src/models/UpgradeDbversionResponseBody.ts +1 -1
  43. 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
@@ -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
@@ -4802,10 +4817,10 @@ export default class Client extends OpenApi {
4802
4817
  */
4803
4818
  resetIMVMonitorData(request: $_model.ResetIMVMonitorDataRequest): Promise<$_model.ResetIMVMonitorDataResponse>;
4804
4819
  /**
4805
- * Reset the password of a Supabase database
4820
+ * Resets the password of a Supabase database.
4806
4821
  *
4807
4822
  * @remarks
4808
- * Call this API to reset the password of the Supabase database.
4823
+ * Resets the password of a Supabase database.
4809
4824
  *
4810
4825
  * @param request - ResetSupabaseProjectPasswordRequest
4811
4826
  * @param runtime - runtime options for this request RuntimeOptions
@@ -4813,10 +4828,10 @@ export default class Client extends OpenApi {
4813
4828
  */
4814
4829
  resetSupabaseProjectPasswordWithOptions(request: $_model.ResetSupabaseProjectPasswordRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ResetSupabaseProjectPasswordResponse>;
4815
4830
  /**
4816
- * Reset the password of a Supabase database
4831
+ * Resets the password of a Supabase database.
4817
4832
  *
4818
4833
  * @remarks
4819
- * Call this API to reset the password of the Supabase database.
4834
+ * Resets the password of a Supabase database.
4820
4835
  *
4821
4836
  * @param request - ResetSupabaseProjectPasswordRequest
4822
4837
  * @returns ResetSupabaseProjectPasswordResponse
package/dist/client.js CHANGED
@@ -103,30 +103,6 @@ class Client extends openapi_core_1.default {
103
103
  'cn-zhengzhou-nebula-1': "gpdb.aliyuncs.com",
104
104
  'eu-west-1-oxs': "gpdb.aliyuncs.com",
105
105
  'rus-west-1-pop': "gpdb.aliyuncs.com",
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",
111
- 'cn-zhangjiakou': "gpdb.cn-zhangjiakou.aliyuncs.com",
112
- 'cn-shenzhen': "gpdb.cn-shenzhen.aliyuncs.com",
113
- 'ap-northeast-2': "gpdb.ap-northeast-2.aliyuncs.com",
114
- 'ap-northeast-1': "gpdb.ap-northeast-1.aliyuncs.com",
115
- 'cn-chengdu': "gpdb.cn-chengdu.aliyuncs.com",
116
- 'ap-southeast-1': "gpdb.ap-southeast-1.aliyuncs.com",
117
- 'ap-southeast-3': "gpdb.ap-southeast-3.aliyuncs.com",
118
- 'cn-huhehaote': "gpdb.cn-huhehaote.aliyuncs.com",
119
- 'ap-southeast-5': "gpdb.ap-southeast-5.aliyuncs.com",
120
- 'ap-southeast-7': "gpdb.ap-southeast-7.aliyuncs.com",
121
- 'us-east-1': "gpdb.us-east-1.aliyuncs.com",
122
- 'eu-west-1': "gpdb.eu-west-1.aliyuncs.com",
123
- 'us-west-1': "gpdb.us-west-1.aliyuncs.com",
124
- 'eu-central-1': "gpdb.eu-central-1.aliyuncs.com",
125
- 'me-east-1': "gpdb.me-east-1.aliyuncs.com",
126
- 'me-central-1': "gpdb.me-central-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",
130
106
  };
131
107
  this.checkConfig(config);
132
108
  this._endpoint = this.getEndpoint("gpdb", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
@@ -3138,7 +3114,7 @@ class Client extends openapi_core_1.default {
3138
3114
  * Creates a Supabase project.
3139
3115
  *
3140
3116
  * @remarks
3141
- * 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.
3117
+ * 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.
3142
3118
  *
3143
3119
  * @param request - CreateSupabaseProjectRequest
3144
3120
  * @param runtime - runtime options for this request RuntimeOptions
@@ -3221,7 +3197,7 @@ class Client extends openapi_core_1.default {
3221
3197
  * Creates a Supabase project.
3222
3198
  *
3223
3199
  * @remarks
3224
- * 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.
3200
+ * 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.
3225
3201
  *
3226
3202
  * @param request - CreateSupabaseProjectRequest
3227
3203
  * @returns CreateSupabaseProjectResponse
@@ -6563,6 +6539,48 @@ class Client extends openapi_core_1.default {
6563
6539
  let runtime = new $dara.RuntimeOptions({});
6564
6540
  return await this.describeDBResourceManagementModeWithOptions(request, runtime);
6565
6541
  }
6542
+ /**
6543
+ * Queries the kernel update version information.
6544
+ *
6545
+ * @param request - DescribeDBVersionRequest
6546
+ * @param runtime - runtime options for this request RuntimeOptions
6547
+ * @returns DescribeDBVersionResponse
6548
+ */
6549
+ async describeDBVersionWithOptions(request, runtime) {
6550
+ request.validate();
6551
+ let query = {};
6552
+ if (!$dara.isNull(request.DBInstanceId)) {
6553
+ query["DBInstanceId"] = request.DBInstanceId;
6554
+ }
6555
+ if (!$dara.isNull(request.ownerId)) {
6556
+ query["OwnerId"] = request.ownerId;
6557
+ }
6558
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
6559
+ query: openapi_core_2.OpenApiUtil.query(query),
6560
+ });
6561
+ let params = new openapi_core_2.$OpenApiUtil.Params({
6562
+ action: "DescribeDBVersion",
6563
+ version: "2016-05-03",
6564
+ protocol: "HTTPS",
6565
+ pathname: "/",
6566
+ method: "POST",
6567
+ authType: "AK",
6568
+ style: "RPC",
6569
+ reqBodyType: "formData",
6570
+ bodyType: "json",
6571
+ });
6572
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeDBVersionResponse({}));
6573
+ }
6574
+ /**
6575
+ * Queries the kernel update version information.
6576
+ *
6577
+ * @param request - DescribeDBVersionRequest
6578
+ * @returns DescribeDBVersionResponse
6579
+ */
6580
+ async describeDBVersion(request) {
6581
+ let runtime = new $dara.RuntimeOptions({});
6582
+ return await this.describeDBVersionWithOptions(request, runtime);
6583
+ }
6566
6584
  /**
6567
6585
  * Queries the information about minor versions of AnalyticDB for PostgreSQL instances.
6568
6586
  *
@@ -10146,10 +10164,10 @@ class Client extends openapi_core_1.default {
10146
10164
  return await this.getStatementResultWithOptions(request, runtime);
10147
10165
  }
10148
10166
  /**
10149
- * Retrieves details of a Supabase instance.
10167
+ * Queries the details of a Supabase instance.
10150
10168
  *
10151
10169
  * @remarks
10152
- * Gets the details of a Supabase instance.
10170
+ * Queries the details of a Supabase instance.
10153
10171
  *
10154
10172
  * @param request - GetSupabaseProjectRequest
10155
10173
  * @param runtime - runtime options for this request RuntimeOptions
@@ -10181,10 +10199,10 @@ class Client extends openapi_core_1.default {
10181
10199
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetSupabaseProjectResponse({}));
10182
10200
  }
10183
10201
  /**
10184
- * Retrieves details of a Supabase instance.
10202
+ * Queries the details of a Supabase instance.
10185
10203
  *
10186
10204
  * @remarks
10187
- * Gets the details of a Supabase instance.
10205
+ * Queries the details of a Supabase instance.
10188
10206
  *
10189
10207
  * @param request - GetSupabaseProjectRequest
10190
10208
  * @returns GetSupabaseProjectResponse
@@ -14016,6 +14034,9 @@ class Client extends openapi_core_1.default {
14016
14034
  if (!$dara.isNull(request.autoScale)) {
14017
14035
  query["AutoScale"] = request.autoScale;
14018
14036
  }
14037
+ if (!$dara.isNull(request.idleTimeHours)) {
14038
+ query["IdleTimeHours"] = request.idleTimeHours;
14039
+ }
14019
14040
  if (!$dara.isNull(request.projectId)) {
14020
14041
  query["ProjectId"] = request.projectId;
14021
14042
  }
@@ -15157,10 +15178,10 @@ class Client extends openapi_core_1.default {
15157
15178
  return await this.resetIMVMonitorDataWithOptions(request, runtime);
15158
15179
  }
15159
15180
  /**
15160
- * Reset the password of a Supabase database
15181
+ * Resets the password of a Supabase database.
15161
15182
  *
15162
15183
  * @remarks
15163
- * Call this API to reset the password of the Supabase database.
15184
+ * Resets the password of a Supabase database.
15164
15185
  *
15165
15186
  * @param request - ResetSupabaseProjectPasswordRequest
15166
15187
  * @param runtime - runtime options for this request RuntimeOptions
@@ -15172,6 +15193,9 @@ class Client extends openapi_core_1.default {
15172
15193
  if (!$dara.isNull(request.accountPassword)) {
15173
15194
  query["AccountPassword"] = request.accountPassword;
15174
15195
  }
15196
+ if (!$dara.isNull(request.dashboardPassword)) {
15197
+ query["DashboardPassword"] = request.dashboardPassword;
15198
+ }
15175
15199
  if (!$dara.isNull(request.projectId)) {
15176
15200
  query["ProjectId"] = request.projectId;
15177
15201
  }
@@ -15195,10 +15219,10 @@ class Client extends openapi_core_1.default {
15195
15219
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ResetSupabaseProjectPasswordResponse({}));
15196
15220
  }
15197
15221
  /**
15198
- * Reset the password of a Supabase database
15222
+ * Resets the password of a Supabase database.
15199
15223
  *
15200
15224
  * @remarks
15201
- * Call this API to reset the password of the Supabase database.
15225
+ * Resets the password of a Supabase database.
15202
15226
  *
15203
15227
  * @param request - ResetSupabaseProjectPasswordRequest
15204
15228
  * @returns ResetSupabaseProjectPasswordResponse