@alicloud/polardb20170801 7.7.0 → 7.8.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 (59) hide show
  1. package/dist/client.d.ts +37 -6
  2. package/dist/client.js +85 -8
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AddPolarFsPathMappingRequest.d.ts +6 -4
  5. package/dist/models/AddPolarFsPathMappingRequest.js +4 -0
  6. package/dist/models/AddPolarFsPathMappingRequest.js.map +1 -1
  7. package/dist/models/AddPolarFsPathMappingResponseBody.d.ts +1 -1
  8. package/dist/models/CreateBatchConsumerRequest.d.ts +19 -7
  9. package/dist/models/CreateBatchConsumerRequest.js +4 -0
  10. package/dist/models/CreateBatchConsumerRequest.js.map +1 -1
  11. package/dist/models/CreateBatchConsumerResponseBody.d.ts +90 -2
  12. package/dist/models/CreateBatchConsumerResponseBody.js +22 -0
  13. package/dist/models/CreateBatchConsumerResponseBody.js.map +1 -1
  14. package/dist/models/CreateDbclusterRequest.d.ts +47 -261
  15. package/dist/models/CreateDbclusterRequest.js.map +1 -1
  16. package/dist/models/CreateDbclusterResponseBody.d.ts +14 -0
  17. package/dist/models/CreateDbclusterResponseBody.js.map +1 -1
  18. package/dist/models/CreateGwConsumerOrderRequest.d.ts +76 -0
  19. package/dist/models/CreateGwConsumerOrderRequest.js +68 -0
  20. package/dist/models/CreateGwConsumerOrderRequest.js.map +1 -0
  21. package/dist/models/CreateGwConsumerOrderResponse.d.ts +19 -0
  22. package/dist/models/CreateGwConsumerOrderResponse.js +69 -0
  23. package/dist/models/CreateGwConsumerOrderResponse.js.map +1 -0
  24. package/dist/models/CreateGwConsumerOrderResponseBody.d.ts +53 -0
  25. package/dist/models/CreateGwConsumerOrderResponseBody.js +66 -0
  26. package/dist/models/CreateGwConsumerOrderResponseBody.js.map +1 -0
  27. package/dist/models/DescribeApplicationLogsRequest.d.ts +4 -4
  28. package/dist/models/DescribeApplicationPerformanceRequest.d.ts +38 -15
  29. package/dist/models/DescribeApplicationPerformanceRequest.js.map +1 -1
  30. package/dist/models/DescribeApplicationPerformanceResponseBody.d.ts +7 -4
  31. package/dist/models/DescribeApplicationPerformanceResponseBody.js.map +1 -1
  32. package/dist/models/ModifyDbclusterSslrequest.d.ts +14 -9
  33. package/dist/models/ModifyDbclusterSslrequest.js +2 -0
  34. package/dist/models/ModifyDbclusterSslrequest.js.map +1 -1
  35. package/dist/models/RestartPolarClawGatewayRequest.d.ts +7 -0
  36. package/dist/models/RestartPolarClawGatewayRequest.js.map +1 -1
  37. package/dist/models/RestartPolarClawGatewayResponseBody.d.ts +36 -0
  38. package/dist/models/RestartPolarClawGatewayResponseBody.js.map +1 -1
  39. package/dist/models/model.d.ts +3 -0
  40. package/dist/models/model.js +29 -23
  41. package/dist/models/model.js.map +1 -1
  42. package/package.json +1 -1
  43. package/src/client.ts +96 -8
  44. package/src/models/AddPolarFsPathMappingRequest.ts +10 -4
  45. package/src/models/AddPolarFsPathMappingResponseBody.ts +1 -1
  46. package/src/models/CreateBatchConsumerRequest.ts +23 -7
  47. package/src/models/CreateBatchConsumerResponseBody.ts +112 -2
  48. package/src/models/CreateDbclusterRequest.ts +51 -265
  49. package/src/models/CreateDbclusterResponseBody.ts +14 -0
  50. package/src/models/CreateGwConsumerOrderRequest.ts +99 -0
  51. package/src/models/CreateGwConsumerOrderResponse.ts +40 -0
  52. package/src/models/CreateGwConsumerOrderResponseBody.ts +74 -0
  53. package/src/models/DescribeApplicationLogsRequest.ts +4 -4
  54. package/src/models/DescribeApplicationPerformanceRequest.ts +38 -15
  55. package/src/models/DescribeApplicationPerformanceResponseBody.ts +7 -4
  56. package/src/models/ModifyDbclusterSslrequest.ts +16 -9
  57. package/src/models/RestartPolarClawGatewayRequest.ts +7 -0
  58. package/src/models/RestartPolarClawGatewayResponseBody.ts +36 -0
  59. package/src/models/model.ts +3 -0
package/dist/client.d.ts CHANGED
@@ -742,6 +742,11 @@ export default class Client extends OpenApi {
742
742
  /**
743
743
  * Creates API keys in batches.
744
744
  *
745
+ * @remarks
746
+ * > * Each cluster can have a maximum of three manually created backups at the same time.
747
+ * > * If the error message `Exceeding the daily backup times of this DB cluster` is returned, three manually created backups already exist in your cluster. [Delete backups](https://help.aliyun.com/document_detail/98101.html) before calling this operation.
748
+ * > * After you call this operation, a backup task is created in the background. If the data volume is large, the backup may take a long time. Wait until the backup is complete.
749
+ *
745
750
  * @param request - CreateBatchConsumerRequest
746
751
  * @param runtime - runtime options for this request RuntimeOptions
747
752
  * @returns CreateBatchConsumerResponse
@@ -750,6 +755,11 @@ export default class Client extends OpenApi {
750
755
  /**
751
756
  * Creates API keys in batches.
752
757
  *
758
+ * @remarks
759
+ * > * Each cluster can have a maximum of three manually created backups at the same time.
760
+ * > * If the error message `Exceeding the daily backup times of this DB cluster` is returned, three manually created backups already exist in your cluster. [Delete backups](https://help.aliyun.com/document_detail/98101.html) before calling this operation.
761
+ * > * After you call this operation, a backup task is created in the background. If the data volume is large, the backup may take a long time. Wait until the backup is complete.
762
+ *
753
763
  * @param request - CreateBatchConsumerRequest
754
764
  * @returns CreateBatchConsumerResponse
755
765
  */
@@ -862,6 +872,9 @@ export default class Client extends OpenApi {
862
872
  /**
863
873
  * Creates a PolarDB cluster.
864
874
  *
875
+ * @remarks
876
+ * DBLink can connect two PolarDB for PostgreSQL (Compatible with Oracle) clusters, or connect a PolarDB for PostgreSQL (Compatible with Oracle) cluster to a self-managed PostgreSQL database on an ECS instance. You can use DBLink to query data across clusters.
877
+ *
865
878
  * @param request - CreateDBClusterRequest
866
879
  * @param runtime - runtime options for this request RuntimeOptions
867
880
  * @returns CreateDBClusterResponse
@@ -870,6 +883,9 @@ export default class Client extends OpenApi {
870
883
  /**
871
884
  * Creates a PolarDB cluster.
872
885
  *
886
+ * @remarks
887
+ * DBLink can connect two PolarDB for PostgreSQL (Compatible with Oracle) clusters, or connect a PolarDB for PostgreSQL (Compatible with Oracle) cluster to a self-managed PostgreSQL database on an ECS instance. You can use DBLink to query data across clusters.
888
+ *
873
889
  * @param request - CreateDBClusterRequest
874
890
  * @returns CreateDBClusterResponse
875
891
  */
@@ -1098,6 +1114,21 @@ export default class Client extends OpenApi {
1098
1114
  * @returns CreateGlobalSecurityIPGroupResponse
1099
1115
  */
1100
1116
  createGlobalSecurityIPGroup(request: $_model.CreateGlobalSecurityIPGroupRequest): Promise<$_model.CreateGlobalSecurityIPGroupResponse>;
1117
+ /**
1118
+ * Places an order to purchase a token resource plan and activates a redemption code.
1119
+ *
1120
+ * @param request - CreateGwConsumerOrderRequest
1121
+ * @param runtime - runtime options for this request RuntimeOptions
1122
+ * @returns CreateGwConsumerOrderResponse
1123
+ */
1124
+ createGwConsumerOrderWithOptions(request: $_model.CreateGwConsumerOrderRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateGwConsumerOrderResponse>;
1125
+ /**
1126
+ * Places an order to purchase a token resource plan and activates a redemption code.
1127
+ *
1128
+ * @param request - CreateGwConsumerOrderRequest
1129
+ * @returns CreateGwConsumerOrderResponse
1130
+ */
1131
+ createGwConsumerOrder(request: $_model.CreateGwConsumerOrderRequest): Promise<$_model.CreateGwConsumerOrderResponse>;
1101
1132
  /**
1102
1133
  * Creates a model API.
1103
1134
  *
@@ -2559,7 +2590,7 @@ export default class Client extends OpenApi {
2559
2590
  */
2560
2591
  describeApplicationAttribute(request: $_model.DescribeApplicationAttributeRequest): Promise<$_model.DescribeApplicationAttributeResponse>;
2561
2592
  /**
2562
- * Queries the log details of an AI application.
2593
+ * Queries the details of AI application logs.
2563
2594
  *
2564
2595
  * @param request - DescribeApplicationLogsRequest
2565
2596
  * @param runtime - runtime options for this request RuntimeOptions
@@ -2567,7 +2598,7 @@ export default class Client extends OpenApi {
2567
2598
  */
2568
2599
  describeApplicationLogsWithOptions(request: $_model.DescribeApplicationLogsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeApplicationLogsResponse>;
2569
2600
  /**
2570
- * Queries the log details of an AI application.
2601
+ * Queries the details of AI application logs.
2571
2602
  *
2572
2603
  * @param request - DescribeApplicationLogsRequest
2573
2604
  * @returns DescribeApplicationLogsResponse
@@ -2589,7 +2620,7 @@ export default class Client extends OpenApi {
2589
2620
  */
2590
2621
  describeApplicationParameters(request: $_model.DescribeApplicationParametersRequest): Promise<$_model.DescribeApplicationParametersResponse>;
2591
2622
  /**
2592
- * Querying PolarDB AI application performance.
2623
+ * Queries the performance of a PolarDB AI application.
2593
2624
  *
2594
2625
  * @param request - DescribeApplicationPerformanceRequest
2595
2626
  * @param runtime - runtime options for this request RuntimeOptions
@@ -2597,7 +2628,7 @@ export default class Client extends OpenApi {
2597
2628
  */
2598
2629
  describeApplicationPerformanceWithOptions(request: $_model.DescribeApplicationPerformanceRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeApplicationPerformanceResponse>;
2599
2630
  /**
2600
- * Querying PolarDB AI application performance.
2631
+ * Queries the performance of a PolarDB AI application.
2601
2632
  *
2602
2633
  * @param request - DescribeApplicationPerformanceRequest
2603
2634
  * @returns DescribeApplicationPerformanceResponse
@@ -5865,7 +5896,7 @@ export default class Client extends OpenApi {
5865
5896
  */
5866
5897
  modifyDBClusterResourceGroup(request: $_model.ModifyDBClusterResourceGroupRequest): Promise<$_model.ModifyDBClusterResourceGroupResponse>;
5867
5898
  /**
5868
- * Enables or shuts down the Secure Sockets Layer (SSL) encryption feature for a PolarDB cluster, or updates the CA certificate of a PolarDB cluster.
5899
+ * Enables or performs shutdown of the Secure Sockets Layer (SSL) encryption feature for a PolarDB cluster, or updates the CA certificate of a PolarDB cluster.
5869
5900
  *
5870
5901
  * @param request - ModifyDBClusterSSLRequest
5871
5902
  * @param runtime - runtime options for this request RuntimeOptions
@@ -5873,7 +5904,7 @@ export default class Client extends OpenApi {
5873
5904
  */
5874
5905
  modifyDBClusterSSLWithOptions(request: $_model.ModifyDBClusterSSLRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifyDBClusterSSLResponse>;
5875
5906
  /**
5876
- * Enables or shuts down the Secure Sockets Layer (SSL) encryption feature for a PolarDB cluster, or updates the CA certificate of a PolarDB cluster.
5907
+ * Enables or performs shutdown of the Secure Sockets Layer (SSL) encryption feature for a PolarDB cluster, or updates the CA certificate of a PolarDB cluster.
5877
5908
  *
5878
5909
  * @param request - ModifyDBClusterSSLRequest
5879
5910
  * @returns ModifyDBClusterSSLResponse
package/dist/client.js CHANGED
@@ -127,9 +127,7 @@ class Client extends openapi_core_1.default {
127
127
  'ap-southeast-6': "polardb.ap-southeast-6.aliyuncs.com",
128
128
  'ap-southeast-5': "polardb.ap-southeast-5.aliyuncs.com",
129
129
  'ap-southeast-3': "polardb.ap-southeast-3.aliyuncs.com",
130
- 'ap-southeast-2': "polardb.ap-southeast-2.aliyuncs.com",
131
130
  'ap-southeast-1': "polardb.ap-southeast-1.aliyuncs.com",
132
- 'ap-south-1': "polardb.ap-south-1.aliyuncs.com",
133
131
  'ap-northeast-2': "polardb.ap-northeast-2.aliyuncs.com",
134
132
  'ap-northeast-1': "polardb.ap-northeast-1.aliyuncs.com",
135
133
  };
@@ -2724,6 +2722,11 @@ class Client extends openapi_core_1.default {
2724
2722
  /**
2725
2723
  * Creates API keys in batches.
2726
2724
  *
2725
+ * @remarks
2726
+ * > * Each cluster can have a maximum of three manually created backups at the same time.
2727
+ * > * If the error message `Exceeding the daily backup times of this DB cluster` is returned, three manually created backups already exist in your cluster. [Delete backups](https://help.aliyun.com/document_detail/98101.html) before calling this operation.
2728
+ * > * After you call this operation, a backup task is created in the background. If the data volume is large, the backup may take a long time. Wait until the backup is complete.
2729
+ *
2727
2730
  * @param request - CreateBatchConsumerRequest
2728
2731
  * @param runtime - runtime options for this request RuntimeOptions
2729
2732
  * @returns CreateBatchConsumerResponse
@@ -2740,6 +2743,12 @@ class Client extends openapi_core_1.default {
2740
2743
  if (!$dara.isNull(request.count)) {
2741
2744
  query["Count"] = request.count;
2742
2745
  }
2746
+ if (!$dara.isNull(request.creditToken)) {
2747
+ query["CreditToken"] = request.creditToken;
2748
+ }
2749
+ if (!$dara.isNull(request.description)) {
2750
+ query["Description"] = request.description;
2751
+ }
2743
2752
  if (!$dara.isNull(request.gwClusterId)) {
2744
2753
  query["GwClusterId"] = request.gwClusterId;
2745
2754
  }
@@ -2765,6 +2774,11 @@ class Client extends openapi_core_1.default {
2765
2774
  /**
2766
2775
  * Creates API keys in batches.
2767
2776
  *
2777
+ * @remarks
2778
+ * > * Each cluster can have a maximum of three manually created backups at the same time.
2779
+ * > * If the error message `Exceeding the daily backup times of this DB cluster` is returned, three manually created backups already exist in your cluster. [Delete backups](https://help.aliyun.com/document_detail/98101.html) before calling this operation.
2780
+ * > * After you call this operation, a backup task is created in the background. If the data volume is large, the backup may take a long time. Wait until the backup is complete.
2781
+ *
2768
2782
  * @param request - CreateBatchConsumerRequest
2769
2783
  * @returns CreateBatchConsumerResponse
2770
2784
  */
@@ -3209,6 +3223,9 @@ class Client extends openapi_core_1.default {
3209
3223
  /**
3210
3224
  * Creates a PolarDB cluster.
3211
3225
  *
3226
+ * @remarks
3227
+ * DBLink can connect two PolarDB for PostgreSQL (Compatible with Oracle) clusters, or connect a PolarDB for PostgreSQL (Compatible with Oracle) cluster to a self-managed PostgreSQL database on an ECS instance. You can use DBLink to query data across clusters.
3228
+ *
3212
3229
  * @param request - CreateDBClusterRequest
3213
3230
  * @param runtime - runtime options for this request RuntimeOptions
3214
3231
  * @returns CreateDBClusterResponse
@@ -3433,6 +3450,9 @@ class Client extends openapi_core_1.default {
3433
3450
  /**
3434
3451
  * Creates a PolarDB cluster.
3435
3452
  *
3453
+ * @remarks
3454
+ * DBLink can connect two PolarDB for PostgreSQL (Compatible with Oracle) clusters, or connect a PolarDB for PostgreSQL (Compatible with Oracle) cluster to a self-managed PostgreSQL database on an ECS instance. You can use DBLink to query data across clusters.
3455
+ *
3436
3456
  * @param request - CreateDBClusterRequest
3437
3457
  * @returns CreateDBClusterResponse
3438
3458
  */
@@ -4384,6 +4404,60 @@ class Client extends openapi_core_1.default {
4384
4404
  let runtime = new $dara.RuntimeOptions({});
4385
4405
  return await this.createGlobalSecurityIPGroupWithOptions(request, runtime);
4386
4406
  }
4407
+ /**
4408
+ * Places an order to purchase a token resource plan and activates a redemption code.
4409
+ *
4410
+ * @param request - CreateGwConsumerOrderRequest
4411
+ * @param runtime - runtime options for this request RuntimeOptions
4412
+ * @returns CreateGwConsumerOrderResponse
4413
+ */
4414
+ async createGwConsumerOrderWithOptions(request, runtime) {
4415
+ request.validate();
4416
+ let query = {};
4417
+ if (!$dara.isNull(request.clientToken)) {
4418
+ query["ClientToken"] = request.clientToken;
4419
+ }
4420
+ if (!$dara.isNull(request.expireTime)) {
4421
+ query["ExpireTime"] = request.expireTime;
4422
+ }
4423
+ if (!$dara.isNull(request.gatewayId)) {
4424
+ query["GatewayId"] = request.gatewayId;
4425
+ }
4426
+ if (!$dara.isNull(request.keyCount)) {
4427
+ query["KeyCount"] = request.keyCount;
4428
+ }
4429
+ if (!$dara.isNull(request.packageSpec)) {
4430
+ query["PackageSpec"] = request.packageSpec;
4431
+ }
4432
+ if (!$dara.isNull(request.regionId)) {
4433
+ query["RegionId"] = request.regionId;
4434
+ }
4435
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
4436
+ query: openapi_core_2.OpenApiUtil.query(query),
4437
+ });
4438
+ let params = new openapi_core_2.$OpenApiUtil.Params({
4439
+ action: "CreateGwConsumerOrder",
4440
+ version: "2017-08-01",
4441
+ protocol: "HTTPS",
4442
+ pathname: "/",
4443
+ method: "POST",
4444
+ authType: "AK",
4445
+ style: "RPC",
4446
+ reqBodyType: "formData",
4447
+ bodyType: "json",
4448
+ });
4449
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateGwConsumerOrderResponse({}));
4450
+ }
4451
+ /**
4452
+ * Places an order to purchase a token resource plan and activates a redemption code.
4453
+ *
4454
+ * @param request - CreateGwConsumerOrderRequest
4455
+ * @returns CreateGwConsumerOrderResponse
4456
+ */
4457
+ async createGwConsumerOrder(request) {
4458
+ let runtime = new $dara.RuntimeOptions({});
4459
+ return await this.createGwConsumerOrderWithOptions(request, runtime);
4460
+ }
4387
4461
  /**
4388
4462
  * Creates a model API.
4389
4463
  *
@@ -9151,7 +9225,7 @@ class Client extends openapi_core_1.default {
9151
9225
  return await this.describeApplicationAttributeWithOptions(request, runtime);
9152
9226
  }
9153
9227
  /**
9154
- * Queries the log details of an AI application.
9228
+ * Queries the details of AI application logs.
9155
9229
  *
9156
9230
  * @param request - DescribeApplicationLogsRequest
9157
9231
  * @param runtime - runtime options for this request RuntimeOptions
@@ -9219,7 +9293,7 @@ class Client extends openapi_core_1.default {
9219
9293
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeApplicationLogsResponse({}));
9220
9294
  }
9221
9295
  /**
9222
- * Queries the log details of an AI application.
9296
+ * Queries the details of AI application logs.
9223
9297
  *
9224
9298
  * @param request - DescribeApplicationLogsRequest
9225
9299
  * @returns DescribeApplicationLogsResponse
@@ -9276,7 +9350,7 @@ class Client extends openapi_core_1.default {
9276
9350
  return await this.describeApplicationParametersWithOptions(request, runtime);
9277
9351
  }
9278
9352
  /**
9279
- * Querying PolarDB AI application performance.
9353
+ * Queries the performance of a PolarDB AI application.
9280
9354
  *
9281
9355
  * @param request - DescribeApplicationPerformanceRequest
9282
9356
  * @param runtime - runtime options for this request RuntimeOptions
@@ -9338,7 +9412,7 @@ class Client extends openapi_core_1.default {
9338
9412
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeApplicationPerformanceResponse({}));
9339
9413
  }
9340
9414
  /**
9341
- * Querying PolarDB AI application performance.
9415
+ * Queries the performance of a PolarDB AI application.
9342
9416
  *
9343
9417
  * @param request - DescribeApplicationPerformanceRequest
9344
9418
  * @returns DescribeApplicationPerformanceResponse
@@ -21066,7 +21140,7 @@ class Client extends openapi_core_1.default {
21066
21140
  return await this.modifyDBClusterResourceGroupWithOptions(request, runtime);
21067
21141
  }
21068
21142
  /**
21069
- * Enables or shuts down the Secure Sockets Layer (SSL) encryption feature for a PolarDB cluster, or updates the CA certificate of a PolarDB cluster.
21143
+ * Enables or performs shutdown of the Secure Sockets Layer (SSL) encryption feature for a PolarDB cluster, or updates the CA certificate of a PolarDB cluster.
21070
21144
  *
21071
21145
  * @param request - ModifyDBClusterSSLRequest
21072
21146
  * @param runtime - runtime options for this request RuntimeOptions
@@ -21075,6 +21149,9 @@ class Client extends openapi_core_1.default {
21075
21149
  async modifyDBClusterSSLWithOptions(request, runtime) {
21076
21150
  request.validate();
21077
21151
  let query = {};
21152
+ if (!$dara.isNull(request.certValidDays)) {
21153
+ query["CertValidDays"] = request.certValidDays;
21154
+ }
21078
21155
  if (!$dara.isNull(request.connectionString)) {
21079
21156
  query["ConnectionString"] = request.connectionString;
21080
21157
  }
@@ -21125,7 +21202,7 @@ class Client extends openapi_core_1.default {
21125
21202
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ModifyDBClusterSSLResponse({}));
21126
21203
  }
21127
21204
  /**
21128
- * Enables or shuts down the Secure Sockets Layer (SSL) encryption feature for a PolarDB cluster, or updates the CA certificate of a PolarDB cluster.
21205
+ * Enables or performs shutdown of the Secure Sockets Layer (SSL) encryption feature for a PolarDB cluster, or updates the CA certificate of a PolarDB cluster.
21129
21206
  *
21130
21207
  * @param request - ModifyDBClusterSSLRequest
21131
21208
  * @returns ModifyDBClusterSSLResponse