@alicloud/polardb20170801 7.7.0 → 7.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.
Files changed (95) hide show
  1. package/dist/client.d.ts +82 -6
  2. package/dist/client.js +217 -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/CreateApplicationAgentRelationRequest.d.ts +43 -0
  9. package/dist/models/CreateApplicationAgentRelationRequest.js +62 -0
  10. package/dist/models/CreateApplicationAgentRelationRequest.js.map +1 -0
  11. package/dist/models/CreateApplicationAgentRelationResponse.d.ts +19 -0
  12. package/dist/models/CreateApplicationAgentRelationResponse.js +69 -0
  13. package/dist/models/CreateApplicationAgentRelationResponse.js.map +1 -0
  14. package/dist/models/CreateApplicationAgentRelationResponseBody.d.ts +29 -0
  15. package/dist/models/CreateApplicationAgentRelationResponseBody.js +60 -0
  16. package/dist/models/CreateApplicationAgentRelationResponseBody.js.map +1 -0
  17. package/dist/models/CreateBatchConsumerRequest.d.ts +19 -7
  18. package/dist/models/CreateBatchConsumerRequest.js +4 -0
  19. package/dist/models/CreateBatchConsumerRequest.js.map +1 -1
  20. package/dist/models/CreateBatchConsumerResponseBody.d.ts +90 -2
  21. package/dist/models/CreateBatchConsumerResponseBody.js +22 -0
  22. package/dist/models/CreateBatchConsumerResponseBody.js.map +1 -1
  23. package/dist/models/CreateDbclusterRequest.d.ts +47 -261
  24. package/dist/models/CreateDbclusterRequest.js.map +1 -1
  25. package/dist/models/CreateDbclusterResponseBody.d.ts +14 -0
  26. package/dist/models/CreateDbclusterResponseBody.js.map +1 -1
  27. package/dist/models/CreateGwConsumerOrderRequest.d.ts +76 -0
  28. package/dist/models/CreateGwConsumerOrderRequest.js +68 -0
  29. package/dist/models/CreateGwConsumerOrderRequest.js.map +1 -0
  30. package/dist/models/CreateGwConsumerOrderResponse.d.ts +19 -0
  31. package/dist/models/CreateGwConsumerOrderResponse.js +69 -0
  32. package/dist/models/CreateGwConsumerOrderResponse.js.map +1 -0
  33. package/dist/models/CreateGwConsumerOrderResponseBody.d.ts +53 -0
  34. package/dist/models/CreateGwConsumerOrderResponseBody.js +66 -0
  35. package/dist/models/CreateGwConsumerOrderResponseBody.js.map +1 -0
  36. package/dist/models/DescribeApplicationLogsRequest.d.ts +4 -4
  37. package/dist/models/DescribeApplicationPerformanceRequest.d.ts +38 -15
  38. package/dist/models/DescribeApplicationPerformanceRequest.js.map +1 -1
  39. package/dist/models/DescribeApplicationPerformanceResponseBody.d.ts +7 -4
  40. package/dist/models/DescribeApplicationPerformanceResponseBody.js.map +1 -1
  41. package/dist/models/GetLakebaseTenantTokenRequest.d.ts +49 -0
  42. package/dist/models/GetLakebaseTenantTokenRequest.js +64 -0
  43. package/dist/models/GetLakebaseTenantTokenRequest.js.map +1 -0
  44. package/dist/models/GetLakebaseTenantTokenResponse.d.ts +19 -0
  45. package/dist/models/GetLakebaseTenantTokenResponse.js +69 -0
  46. package/dist/models/GetLakebaseTenantTokenResponse.js.map +1 -0
  47. package/dist/models/GetLakebaseTenantTokenResponseBody.d.ts +61 -0
  48. package/dist/models/GetLakebaseTenantTokenResponseBody.js +68 -0
  49. package/dist/models/GetLakebaseTenantTokenResponseBody.js.map +1 -0
  50. package/dist/models/ModifyDbclusterSslrequest.d.ts +14 -9
  51. package/dist/models/ModifyDbclusterSslrequest.js +2 -0
  52. package/dist/models/ModifyDbclusterSslrequest.js.map +1 -1
  53. package/dist/models/RestartAidbclusterRequest.d.ts +21 -0
  54. package/dist/models/RestartAidbclusterRequest.js +58 -0
  55. package/dist/models/RestartAidbclusterRequest.js.map +1 -0
  56. package/dist/models/RestartAidbclusterResponse.d.ts +19 -0
  57. package/dist/models/RestartAidbclusterResponse.js +69 -0
  58. package/dist/models/RestartAidbclusterResponse.js.map +1 -0
  59. package/dist/models/RestartAidbclusterResponseBody.d.ts +21 -0
  60. package/dist/models/RestartAidbclusterResponseBody.js +58 -0
  61. package/dist/models/RestartAidbclusterResponseBody.js.map +1 -0
  62. package/dist/models/RestartPolarClawGatewayRequest.d.ts +7 -0
  63. package/dist/models/RestartPolarClawGatewayRequest.js.map +1 -1
  64. package/dist/models/RestartPolarClawGatewayResponseBody.d.ts +36 -0
  65. package/dist/models/RestartPolarClawGatewayResponseBody.js.map +1 -1
  66. package/dist/models/model.d.ts +12 -0
  67. package/dist/models/model.js +49 -24
  68. package/dist/models/model.js.map +1 -1
  69. package/package.json +1 -1
  70. package/src/client.ts +242 -8
  71. package/src/models/AddPolarFsPathMappingRequest.ts +10 -4
  72. package/src/models/AddPolarFsPathMappingResponseBody.ts +1 -1
  73. package/src/models/CreateApplicationAgentRelationRequest.ts +60 -0
  74. package/src/models/CreateApplicationAgentRelationResponse.ts +40 -0
  75. package/src/models/CreateApplicationAgentRelationResponseBody.ts +44 -0
  76. package/src/models/CreateBatchConsumerRequest.ts +23 -7
  77. package/src/models/CreateBatchConsumerResponseBody.ts +112 -2
  78. package/src/models/CreateDbclusterRequest.ts +51 -265
  79. package/src/models/CreateDbclusterResponseBody.ts +14 -0
  80. package/src/models/CreateGwConsumerOrderRequest.ts +99 -0
  81. package/src/models/CreateGwConsumerOrderResponse.ts +40 -0
  82. package/src/models/CreateGwConsumerOrderResponseBody.ts +74 -0
  83. package/src/models/DescribeApplicationLogsRequest.ts +4 -4
  84. package/src/models/DescribeApplicationPerformanceRequest.ts +38 -15
  85. package/src/models/DescribeApplicationPerformanceResponseBody.ts +7 -4
  86. package/src/models/GetLakebaseTenantTokenRequest.ts +68 -0
  87. package/src/models/GetLakebaseTenantTokenResponse.ts +40 -0
  88. package/src/models/GetLakebaseTenantTokenResponseBody.ts +84 -0
  89. package/src/models/ModifyDbclusterSslrequest.ts +16 -9
  90. package/src/models/RestartAidbclusterRequest.ts +34 -0
  91. package/src/models/RestartAidbclusterResponse.ts +40 -0
  92. package/src/models/RestartAidbclusterResponseBody.ts +34 -0
  93. package/src/models/RestartPolarClawGatewayRequest.ts +7 -0
  94. package/src/models/RestartPolarClawGatewayResponseBody.ts +36 -0
  95. package/src/models/model.ts +12 -0
package/src/client.ts CHANGED
@@ -70,9 +70,7 @@ export default class Client extends OpenApi {
70
70
  'ap-southeast-6': "polardb.ap-southeast-6.aliyuncs.com",
71
71
  'ap-southeast-5': "polardb.ap-southeast-5.aliyuncs.com",
72
72
  'ap-southeast-3': "polardb.ap-southeast-3.aliyuncs.com",
73
- 'ap-southeast-2': "polardb.ap-southeast-2.aliyuncs.com",
74
73
  'ap-southeast-1': "polardb.ap-southeast-1.aliyuncs.com",
75
- 'ap-south-1': "polardb.ap-south-1.aliyuncs.com",
76
74
  'ap-northeast-2': "polardb.ap-northeast-2.aliyuncs.com",
77
75
  'ap-northeast-1': "polardb.ap-northeast-1.aliyuncs.com",
78
76
  };
@@ -2897,6 +2895,56 @@ export default class Client extends OpenApi {
2897
2895
  return await this.createApplicationWithOptions(request, runtime);
2898
2896
  }
2899
2897
 
2898
+ /**
2899
+ * Binds an Agent to a Squad.
2900
+ *
2901
+ * @param request - CreateApplicationAgentRelationRequest
2902
+ * @param runtime - runtime options for this request RuntimeOptions
2903
+ * @returns CreateApplicationAgentRelationResponse
2904
+ */
2905
+ async createApplicationAgentRelationWithOptions(request: $_model.CreateApplicationAgentRelationRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateApplicationAgentRelationResponse> {
2906
+ request.validate();
2907
+ let query = { };
2908
+ if (!$dara.isNull(request.agentId)) {
2909
+ query["AgentId"] = request.agentId;
2910
+ }
2911
+
2912
+ if (!$dara.isNull(request.applicationId)) {
2913
+ query["ApplicationId"] = request.applicationId;
2914
+ }
2915
+
2916
+ if (!$dara.isNull(request.token)) {
2917
+ query["Token"] = request.token;
2918
+ }
2919
+
2920
+ let req = new $OpenApiUtil.OpenApiRequest({
2921
+ query: OpenApiUtil.query(query),
2922
+ });
2923
+ let params = new $OpenApiUtil.Params({
2924
+ action: "CreateApplicationAgentRelation",
2925
+ version: "2017-08-01",
2926
+ protocol: "HTTPS",
2927
+ pathname: "/",
2928
+ method: "POST",
2929
+ authType: "AK",
2930
+ style: "RPC",
2931
+ reqBodyType: "formData",
2932
+ bodyType: "json",
2933
+ });
2934
+ return $dara.cast<$_model.CreateApplicationAgentRelationResponse>(await this.callApi(params, req, runtime), new $_model.CreateApplicationAgentRelationResponse({}));
2935
+ }
2936
+
2937
+ /**
2938
+ * Binds an Agent to a Squad.
2939
+ *
2940
+ * @param request - CreateApplicationAgentRelationRequest
2941
+ * @returns CreateApplicationAgentRelationResponse
2942
+ */
2943
+ async createApplicationAgentRelation(request: $_model.CreateApplicationAgentRelationRequest): Promise<$_model.CreateApplicationAgentRelationResponse> {
2944
+ let runtime = new $dara.RuntimeOptions({ });
2945
+ return await this.createApplicationAgentRelationWithOptions(request, runtime);
2946
+ }
2947
+
2900
2948
  /**
2901
2949
  * Creates a connection address for a specified application.
2902
2950
  *
@@ -3080,6 +3128,11 @@ export default class Client extends OpenApi {
3080
3128
  /**
3081
3129
  * Creates API keys in batches.
3082
3130
  *
3131
+ * @remarks
3132
+ * > * Each cluster can have a maximum of three manually created backups at the same time.
3133
+ * > * 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.
3134
+ * > * 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.
3135
+ *
3083
3136
  * @param request - CreateBatchConsumerRequest
3084
3137
  * @param runtime - runtime options for this request RuntimeOptions
3085
3138
  * @returns CreateBatchConsumerResponse
@@ -3099,6 +3152,14 @@ export default class Client extends OpenApi {
3099
3152
  query["Count"] = request.count;
3100
3153
  }
3101
3154
 
3155
+ if (!$dara.isNull(request.creditToken)) {
3156
+ query["CreditToken"] = request.creditToken;
3157
+ }
3158
+
3159
+ if (!$dara.isNull(request.description)) {
3160
+ query["Description"] = request.description;
3161
+ }
3162
+
3102
3163
  if (!$dara.isNull(request.gwClusterId)) {
3103
3164
  query["GwClusterId"] = request.gwClusterId;
3104
3165
  }
@@ -3127,6 +3188,11 @@ export default class Client extends OpenApi {
3127
3188
  /**
3128
3189
  * Creates API keys in batches.
3129
3190
  *
3191
+ * @remarks
3192
+ * > * Each cluster can have a maximum of three manually created backups at the same time.
3193
+ * > * 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.
3194
+ * > * 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.
3195
+ *
3130
3196
  * @param request - CreateBatchConsumerRequest
3131
3197
  * @returns CreateBatchConsumerResponse
3132
3198
  */
@@ -3646,6 +3712,9 @@ export default class Client extends OpenApi {
3646
3712
  /**
3647
3713
  * Creates a PolarDB cluster.
3648
3714
  *
3715
+ * @remarks
3716
+ * 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.
3717
+ *
3649
3718
  * @param request - CreateDBClusterRequest
3650
3719
  * @param runtime - runtime options for this request RuntimeOptions
3651
3720
  * @returns CreateDBClusterResponse
@@ -3937,6 +4006,9 @@ export default class Client extends OpenApi {
3937
4006
  /**
3938
4007
  * Creates a PolarDB cluster.
3939
4008
  *
4009
+ * @remarks
4010
+ * 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.
4011
+ *
3940
4012
  * @param request - CreateDBClusterRequest
3941
4013
  * @returns CreateDBClusterResponse
3942
4014
  */
@@ -5069,6 +5141,68 @@ export default class Client extends OpenApi {
5069
5141
  return await this.createGlobalSecurityIPGroupWithOptions(request, runtime);
5070
5142
  }
5071
5143
 
5144
+ /**
5145
+ * Places an order to purchase a token resource plan and activates a redemption code.
5146
+ *
5147
+ * @param request - CreateGwConsumerOrderRequest
5148
+ * @param runtime - runtime options for this request RuntimeOptions
5149
+ * @returns CreateGwConsumerOrderResponse
5150
+ */
5151
+ async createGwConsumerOrderWithOptions(request: $_model.CreateGwConsumerOrderRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateGwConsumerOrderResponse> {
5152
+ request.validate();
5153
+ let query = { };
5154
+ if (!$dara.isNull(request.clientToken)) {
5155
+ query["ClientToken"] = request.clientToken;
5156
+ }
5157
+
5158
+ if (!$dara.isNull(request.expireTime)) {
5159
+ query["ExpireTime"] = request.expireTime;
5160
+ }
5161
+
5162
+ if (!$dara.isNull(request.gatewayId)) {
5163
+ query["GatewayId"] = request.gatewayId;
5164
+ }
5165
+
5166
+ if (!$dara.isNull(request.keyCount)) {
5167
+ query["KeyCount"] = request.keyCount;
5168
+ }
5169
+
5170
+ if (!$dara.isNull(request.packageSpec)) {
5171
+ query["PackageSpec"] = request.packageSpec;
5172
+ }
5173
+
5174
+ if (!$dara.isNull(request.regionId)) {
5175
+ query["RegionId"] = request.regionId;
5176
+ }
5177
+
5178
+ let req = new $OpenApiUtil.OpenApiRequest({
5179
+ query: OpenApiUtil.query(query),
5180
+ });
5181
+ let params = new $OpenApiUtil.Params({
5182
+ action: "CreateGwConsumerOrder",
5183
+ version: "2017-08-01",
5184
+ protocol: "HTTPS",
5185
+ pathname: "/",
5186
+ method: "POST",
5187
+ authType: "AK",
5188
+ style: "RPC",
5189
+ reqBodyType: "formData",
5190
+ bodyType: "json",
5191
+ });
5192
+ return $dara.cast<$_model.CreateGwConsumerOrderResponse>(await this.callApi(params, req, runtime), new $_model.CreateGwConsumerOrderResponse({}));
5193
+ }
5194
+
5195
+ /**
5196
+ * Places an order to purchase a token resource plan and activates a redemption code.
5197
+ *
5198
+ * @param request - CreateGwConsumerOrderRequest
5199
+ * @returns CreateGwConsumerOrderResponse
5200
+ */
5201
+ async createGwConsumerOrder(request: $_model.CreateGwConsumerOrderRequest): Promise<$_model.CreateGwConsumerOrderResponse> {
5202
+ let runtime = new $dara.RuntimeOptions({ });
5203
+ return await this.createGwConsumerOrderWithOptions(request, runtime);
5204
+ }
5205
+
5072
5206
  /**
5073
5207
  * Creates a model API.
5074
5208
  *
@@ -10516,7 +10650,7 @@ export default class Client extends OpenApi {
10516
10650
  }
10517
10651
 
10518
10652
  /**
10519
- * Queries the log details of an AI application.
10653
+ * Queries the details of AI application logs.
10520
10654
  *
10521
10655
  * @param request - DescribeApplicationLogsRequest
10522
10656
  * @param runtime - runtime options for this request RuntimeOptions
@@ -10599,7 +10733,7 @@ export default class Client extends OpenApi {
10599
10733
  }
10600
10734
 
10601
10735
  /**
10602
- * Queries the log details of an AI application.
10736
+ * Queries the details of AI application logs.
10603
10737
  *
10604
10738
  * @param request - DescribeApplicationLogsRequest
10605
10739
  * @returns DescribeApplicationLogsResponse
@@ -10662,7 +10796,7 @@ export default class Client extends OpenApi {
10662
10796
  }
10663
10797
 
10664
10798
  /**
10665
- * Querying PolarDB AI application performance.
10799
+ * Queries the performance of a PolarDB AI application.
10666
10800
  *
10667
10801
  * @param request - DescribeApplicationPerformanceRequest
10668
10802
  * @param runtime - runtime options for this request RuntimeOptions
@@ -10737,7 +10871,7 @@ export default class Client extends OpenApi {
10737
10871
  }
10738
10872
 
10739
10873
  /**
10740
- * Querying PolarDB AI application performance.
10874
+ * Queries the performance of a PolarDB AI application.
10741
10875
  *
10742
10876
  * @param request - DescribeApplicationPerformanceRequest
10743
10877
  * @returns DescribeApplicationPerformanceResponse
@@ -20640,6 +20774,60 @@ export default class Client extends OpenApi {
20640
20774
  return await this.generateUpgradeReportForSyncCloneWithOptions(request, runtime);
20641
20775
  }
20642
20776
 
20777
+ /**
20778
+ * Retrieves the Lakebase tenant token (SPG tenant mount URL).
20779
+ *
20780
+ * @param request - GetLakebaseTenantTokenRequest
20781
+ * @param runtime - runtime options for this request RuntimeOptions
20782
+ * @returns GetLakebaseTenantTokenResponse
20783
+ */
20784
+ async getLakebaseTenantTokenWithOptions(request: $_model.GetLakebaseTenantTokenRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetLakebaseTenantTokenResponse> {
20785
+ request.validate();
20786
+ let query = { };
20787
+ if (!$dara.isNull(request.DBClusterId)) {
20788
+ query["DBClusterId"] = request.DBClusterId;
20789
+ }
20790
+
20791
+ if (!$dara.isNull(request.polarFsInstanceId)) {
20792
+ query["PolarFsInstanceId"] = request.polarFsInstanceId;
20793
+ }
20794
+
20795
+ if (!$dara.isNull(request.subdir)) {
20796
+ query["Subdir"] = request.subdir;
20797
+ }
20798
+
20799
+ if (!$dara.isNull(request.tenant)) {
20800
+ query["Tenant"] = request.tenant;
20801
+ }
20802
+
20803
+ let req = new $OpenApiUtil.OpenApiRequest({
20804
+ query: OpenApiUtil.query(query),
20805
+ });
20806
+ let params = new $OpenApiUtil.Params({
20807
+ action: "GetLakebaseTenantToken",
20808
+ version: "2017-08-01",
20809
+ protocol: "HTTPS",
20810
+ pathname: "/",
20811
+ method: "POST",
20812
+ authType: "AK",
20813
+ style: "RPC",
20814
+ reqBodyType: "formData",
20815
+ bodyType: "json",
20816
+ });
20817
+ return $dara.cast<$_model.GetLakebaseTenantTokenResponse>(await this.callApi(params, req, runtime), new $_model.GetLakebaseTenantTokenResponse({}));
20818
+ }
20819
+
20820
+ /**
20821
+ * Retrieves the Lakebase tenant token (SPG tenant mount URL).
20822
+ *
20823
+ * @param request - GetLakebaseTenantTokenRequest
20824
+ * @returns GetLakebaseTenantTokenResponse
20825
+ */
20826
+ async getLakebaseTenantToken(request: $_model.GetLakebaseTenantTokenRequest): Promise<$_model.GetLakebaseTenantTokenResponse> {
20827
+ let runtime = new $dara.RuntimeOptions({ });
20828
+ return await this.getLakebaseTenantTokenWithOptions(request, runtime);
20829
+ }
20830
+
20643
20831
  /**
20644
20832
  * Creates a chat record.
20645
20833
  *
@@ -24274,7 +24462,7 @@ export default class Client extends OpenApi {
24274
24462
  }
24275
24463
 
24276
24464
  /**
24277
- * Enables or shuts down the Secure Sockets Layer (SSL) encryption feature for a PolarDB cluster, or updates the CA certificate of a PolarDB cluster.
24465
+ * 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.
24278
24466
  *
24279
24467
  * @param request - ModifyDBClusterSSLRequest
24280
24468
  * @param runtime - runtime options for this request RuntimeOptions
@@ -24283,6 +24471,10 @@ export default class Client extends OpenApi {
24283
24471
  async modifyDBClusterSSLWithOptions(request: $_model.ModifyDBClusterSSLRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifyDBClusterSSLResponse> {
24284
24472
  request.validate();
24285
24473
  let query = { };
24474
+ if (!$dara.isNull(request.certValidDays)) {
24475
+ query["CertValidDays"] = request.certValidDays;
24476
+ }
24477
+
24286
24478
  if (!$dara.isNull(request.connectionString)) {
24287
24479
  query["ConnectionString"] = request.connectionString;
24288
24480
  }
@@ -24345,7 +24537,7 @@ export default class Client extends OpenApi {
24345
24537
  }
24346
24538
 
24347
24539
  /**
24348
- * Enables or shuts down the Secure Sockets Layer (SSL) encryption feature for a PolarDB cluster, or updates the CA certificate of a PolarDB cluster.
24540
+ * 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.
24349
24541
  *
24350
24542
  * @param request - ModifyDBClusterSSLRequest
24351
24543
  * @returns ModifyDBClusterSSLResponse
@@ -27693,6 +27885,48 @@ export default class Client extends OpenApi {
27693
27885
  return await this.resetGlobalDatabaseNetworkWithOptions(request, runtime);
27694
27886
  }
27695
27887
 
27888
+ /**
27889
+ * Restarts an AI cluster.
27890
+ *
27891
+ * @param request - RestartAIDBClusterRequest
27892
+ * @param runtime - runtime options for this request RuntimeOptions
27893
+ * @returns RestartAIDBClusterResponse
27894
+ */
27895
+ async restartAIDBClusterWithOptions(request: $_model.RestartAIDBClusterRequest, runtime: $dara.RuntimeOptions): Promise<$_model.RestartAIDBClusterResponse> {
27896
+ request.validate();
27897
+ let query = { };
27898
+ if (!$dara.isNull(request.DBClusterId)) {
27899
+ query["DBClusterId"] = request.DBClusterId;
27900
+ }
27901
+
27902
+ let req = new $OpenApiUtil.OpenApiRequest({
27903
+ query: OpenApiUtil.query(query),
27904
+ });
27905
+ let params = new $OpenApiUtil.Params({
27906
+ action: "RestartAIDBCluster",
27907
+ version: "2017-08-01",
27908
+ protocol: "HTTPS",
27909
+ pathname: "/",
27910
+ method: "POST",
27911
+ authType: "AK",
27912
+ style: "RPC",
27913
+ reqBodyType: "formData",
27914
+ bodyType: "json",
27915
+ });
27916
+ return $dara.cast<$_model.RestartAIDBClusterResponse>(await this.callApi(params, req, runtime), new $_model.RestartAIDBClusterResponse({}));
27917
+ }
27918
+
27919
+ /**
27920
+ * Restarts an AI cluster.
27921
+ *
27922
+ * @param request - RestartAIDBClusterRequest
27923
+ * @returns RestartAIDBClusterResponse
27924
+ */
27925
+ async restartAIDBCluster(request: $_model.RestartAIDBClusterRequest): Promise<$_model.RestartAIDBClusterResponse> {
27926
+ let runtime = new $dara.RuntimeOptions({ });
27927
+ return await this.restartAIDBClusterWithOptions(request, runtime);
27928
+ }
27929
+
27696
27930
  /**
27697
27931
  * Restarts database links.
27698
27932
  *
@@ -7,12 +7,14 @@ import * as $dara from '@darabonba/typescript';
7
7
  export class AddPolarFsPathMappingRequestCustomBucketPathList extends $dara.Model {
8
8
  /**
9
9
  * @remarks
10
- * The name of the bucket.
10
+ * The bucket name.
11
11
  *
12
12
  * @example
13
13
  * Bucket1
14
14
  */
15
15
  bucket?: string;
16
+ bucketAccessKeyId?: string;
17
+ bucketAccessKeySecret?: string;
16
18
  /**
17
19
  * @remarks
18
20
  * The custom storage path.
@@ -24,6 +26,8 @@ export class AddPolarFsPathMappingRequestCustomBucketPathList extends $dara.Mode
24
26
  static names(): { [key: string]: string } {
25
27
  return {
26
28
  bucket: 'Bucket',
29
+ bucketAccessKeyId: 'BucketAccessKeyId',
30
+ bucketAccessKeySecret: 'BucketAccessKeySecret',
27
31
  path: 'Path',
28
32
  };
29
33
  }
@@ -31,6 +35,8 @@ export class AddPolarFsPathMappingRequestCustomBucketPathList extends $dara.Mode
31
35
  static types(): { [key: string]: any } {
32
36
  return {
33
37
  bucket: 'string',
38
+ bucketAccessKeyId: 'string',
39
+ bucketAccessKeySecret: 'string',
34
40
  path: 'string',
35
41
  };
36
42
  }
@@ -47,12 +53,12 @@ export class AddPolarFsPathMappingRequestCustomBucketPathList extends $dara.Mode
47
53
  export class AddPolarFsPathMappingRequest extends $dara.Model {
48
54
  /**
49
55
  * @remarks
50
- * A list of objects, each containing a bucket and its corresponding path.
56
+ * The bucket and corresponding path information.
51
57
  */
52
58
  customBucketPathList?: AddPolarFsPathMappingRequestCustomBucketPathList[];
53
59
  /**
54
60
  * @remarks
55
- * The ID of the cluster.
61
+ * The cluster ID.
56
62
  *
57
63
  * This parameter is required.
58
64
  *
@@ -62,7 +68,7 @@ export class AddPolarFsPathMappingRequest extends $dara.Model {
62
68
  DBClusterId?: string;
63
69
  /**
64
70
  * @remarks
65
- * The ID of the PolarFS instance.
71
+ * The PolarFS instance ID.
66
72
  *
67
73
  * This parameter is required.
68
74
  *
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class AddPolarFsPathMappingResponseBody extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The request ID.
8
+ * Id of the request
9
9
  *
10
10
  * @example
11
11
  * CDB3258F-B5DE-43C4-8935-CBA0CA******
@@ -0,0 +1,60 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class CreateApplicationAgentRelationRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The instance ID of the Agent to attach.
9
+ *
10
+ * This parameter is required.
11
+ *
12
+ * @example
13
+ * pa-xxx
14
+ */
15
+ agentId?: string;
16
+ /**
17
+ * @remarks
18
+ * The ID of the Squad application.
19
+ *
20
+ * This parameter is required.
21
+ *
22
+ * @example
23
+ * pa-xxx
24
+ */
25
+ applicationId?: string;
26
+ /**
27
+ * @remarks
28
+ * The authentication token.
29
+ *
30
+ * This parameter is required.
31
+ *
32
+ * @example
33
+ * pas_xxx
34
+ */
35
+ token?: string;
36
+ static names(): { [key: string]: string } {
37
+ return {
38
+ agentId: 'AgentId',
39
+ applicationId: 'ApplicationId',
40
+ token: 'Token',
41
+ };
42
+ }
43
+
44
+ static types(): { [key: string]: any } {
45
+ return {
46
+ agentId: 'string',
47
+ applicationId: 'string',
48
+ token: 'string',
49
+ };
50
+ }
51
+
52
+ validate() {
53
+ super.validate();
54
+ }
55
+
56
+ constructor(map?: { [key: string]: any }) {
57
+ super(map);
58
+ }
59
+ }
60
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { CreateApplicationAgentRelationResponseBody } from "./CreateApplicationAgentRelationResponseBody";
4
+
5
+
6
+ export class CreateApplicationAgentRelationResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: CreateApplicationAgentRelationResponseBody;
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: CreateApplicationAgentRelationResponseBody,
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 CreateApplicationAgentRelationResponseBody extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The ID of the Squad application.
9
+ *
10
+ * @example
11
+ * pa-xxx
12
+ */
13
+ applicationId?: string;
14
+ /**
15
+ * @remarks
16
+ * Id of the request
17
+ *
18
+ * @example
19
+ * CD3FA5F3-FAF3-44CA-AFFF-BAF869******
20
+ */
21
+ requestId?: string;
22
+ static names(): { [key: string]: string } {
23
+ return {
24
+ applicationId: 'ApplicationId',
25
+ requestId: 'RequestId',
26
+ };
27
+ }
28
+
29
+ static types(): { [key: string]: any } {
30
+ return {
31
+ applicationId: '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
+
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class CreateBatchConsumerRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The client token that is used to ensure the idempotence of the request and prevent repeated request submissions. The value is generated by the client and must be unique among different requests. The value is case-sensitive and cannot exceed 64 ASCII characters in length.
8
+ * The client token that is used to ensure the idempotency of the request and prevent repeated submissions. The token is generated by the client and must be unique among different requests. The token is case-sensitive and cannot exceed 64 ASCII characters in length.
9
9
  *
10
10
  * @example
11
11
  * 6000170000591aed949d0f5********************
@@ -13,9 +13,7 @@ export class CreateBatchConsumerRequest extends $dara.Model {
13
13
  clientToken?: string;
14
14
  /**
15
15
  * @remarks
16
- * The ID of the user group.
17
- *
18
- * This parameter is required.
16
+ * The user group ID.
19
17
  *
20
18
  * @example
21
19
  * cg-xxxxxx
@@ -23,14 +21,28 @@ export class CreateBatchConsumerRequest extends $dara.Model {
23
21
  consumerGroupId?: string;
24
22
  /**
25
23
  * @remarks
26
- * The number of user API keys to create.
27
- *
28
- * This parameter is required.
24
+ * The number of user API keys.
29
25
  *
30
26
  * @example
31
27
  * 1
32
28
  */
33
29
  count?: number;
30
+ /**
31
+ * @remarks
32
+ * The redemption code. If specified, the recharge-type activation branch is used, and the count and quota are populated from the database.
33
+ *
34
+ * @example
35
+ * "9"
36
+ */
37
+ creditToken?: string;
38
+ /**
39
+ * @remarks
40
+ * The consumer description prefix.
41
+ *
42
+ * @example
43
+ * myapp
44
+ */
45
+ description?: string;
34
46
  /**
35
47
  * @remarks
36
48
  * The gateway instance ID.
@@ -56,6 +68,8 @@ export class CreateBatchConsumerRequest extends $dara.Model {
56
68
  clientToken: 'ClientToken',
57
69
  consumerGroupId: 'ConsumerGroupId',
58
70
  count: 'Count',
71
+ creditToken: 'CreditToken',
72
+ description: 'Description',
59
73
  gwClusterId: 'GwClusterId',
60
74
  regionId: 'RegionId',
61
75
  };
@@ -66,6 +80,8 @@ export class CreateBatchConsumerRequest extends $dara.Model {
66
80
  clientToken: 'string',
67
81
  consumerGroupId: 'string',
68
82
  count: 'number',
83
+ creditToken: 'string',
84
+ description: 'string',
69
85
  gwClusterId: 'string',
70
86
  regionId: 'string',
71
87
  };