@alicloud/rds20140815 14.1.0 → 14.2.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 (37) hide show
  1. package/dist/client.d.ts +52 -0
  2. package/dist/client.js +118 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateRcimageRequest.d.ts +45 -0
  5. package/dist/models/CreateRcimageRequest.js +64 -0
  6. package/dist/models/CreateRcimageRequest.js.map +1 -0
  7. package/dist/models/CreateRcimageResponse.d.ts +19 -0
  8. package/dist/models/CreateRcimageResponse.js +69 -0
  9. package/dist/models/CreateRcimageResponse.js.map +1 -0
  10. package/dist/models/CreateRcimageResponseBody.d.ts +21 -0
  11. package/dist/models/CreateRcimageResponseBody.js +58 -0
  12. package/dist/models/CreateRcimageResponseBody.js.map +1 -0
  13. package/dist/models/ModifyDbinstanceVectorSupportStatusRequest.d.ts +29 -0
  14. package/dist/models/ModifyDbinstanceVectorSupportStatusRequest.js +60 -0
  15. package/dist/models/ModifyDbinstanceVectorSupportStatusRequest.js.map +1 -0
  16. package/dist/models/ModifyDbinstanceVectorSupportStatusResponse.d.ts +19 -0
  17. package/dist/models/ModifyDbinstanceVectorSupportStatusResponse.js +69 -0
  18. package/dist/models/ModifyDbinstanceVectorSupportStatusResponse.js.map +1 -0
  19. package/dist/models/ModifyDbinstanceVectorSupportStatusResponseBody.d.ts +18 -0
  20. package/dist/models/ModifyDbinstanceVectorSupportStatusResponseBody.js +58 -0
  21. package/dist/models/ModifyDbinstanceVectorSupportStatusResponseBody.js.map +1 -0
  22. package/dist/models/ModifyRcdiskChargeTypeRequest.d.ts +10 -0
  23. package/dist/models/ModifyRcdiskChargeTypeRequest.js +4 -0
  24. package/dist/models/ModifyRcdiskChargeTypeRequest.js.map +1 -1
  25. package/dist/models/model.d.ts +6 -0
  26. package/dist/models/model.js +33 -21
  27. package/dist/models/model.js.map +1 -1
  28. package/package.json +1 -1
  29. package/src/client.ts +130 -0
  30. package/src/models/CreateRcimageRequest.ts +64 -0
  31. package/src/models/CreateRcimageResponse.ts +40 -0
  32. package/src/models/CreateRcimageResponseBody.ts +34 -0
  33. package/src/models/ModifyDbinstanceVectorSupportStatusRequest.ts +44 -0
  34. package/src/models/ModifyDbinstanceVectorSupportStatusResponse.ts +40 -0
  35. package/src/models/ModifyDbinstanceVectorSupportStatusResponseBody.ts +31 -0
  36. package/src/models/ModifyRcdiskChargeTypeRequest.ts +14 -0
  37. package/src/models/model.ts +6 -0
package/dist/client.d.ts CHANGED
@@ -1463,6 +1463,43 @@ export default class Client extends OpenApi {
1463
1463
  * @returns CreateRCDiskResponse
1464
1464
  */
1465
1465
  createRCDisk(request: $_model.CreateRCDiskRequest): Promise<$_model.CreateRCDiskResponse>;
1466
+ /**
1467
+ * Creates a custom image for an RDS Custom instance.
1468
+ *
1469
+ * @remarks
1470
+ * ### [](#)Supported database engines
1471
+ * * RDS MySQL
1472
+ * * RDS SQL Server
1473
+ * ### [](#)References
1474
+ * * [Introduction to RDS Custom for MySQL](https://help.aliyun.com/document_detail/2844223.html)
1475
+ * * [Introduction to RDS Custom for SQL Server](https://help.aliyun.com/document_detail/2864363.html)
1476
+ * ### [](#)Usage
1477
+ * * Method 1: Create a custom image by using a snapshot generated from the **system disk**. In this case, specify the SnapshotId and ImageName parameters at the same time in the request.
1478
+ * * Method 2: Create a custom image by using an RDS Custom instance. In this case, specify the InstanceId and ImageName parameters at the same time in the request.
1479
+ *
1480
+ * @param request - CreateRCImageRequest
1481
+ * @param runtime - runtime options for this request RuntimeOptions
1482
+ * @returns CreateRCImageResponse
1483
+ */
1484
+ createRCImageWithOptions(request: $_model.CreateRCImageRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateRCImageResponse>;
1485
+ /**
1486
+ * Creates a custom image for an RDS Custom instance.
1487
+ *
1488
+ * @remarks
1489
+ * ### [](#)Supported database engines
1490
+ * * RDS MySQL
1491
+ * * RDS SQL Server
1492
+ * ### [](#)References
1493
+ * * [Introduction to RDS Custom for MySQL](https://help.aliyun.com/document_detail/2844223.html)
1494
+ * * [Introduction to RDS Custom for SQL Server](https://help.aliyun.com/document_detail/2864363.html)
1495
+ * ### [](#)Usage
1496
+ * * Method 1: Create a custom image by using a snapshot generated from the **system disk**. In this case, specify the SnapshotId and ImageName parameters at the same time in the request.
1497
+ * * Method 2: Create a custom image by using an RDS Custom instance. In this case, specify the InstanceId and ImageName parameters at the same time in the request.
1498
+ *
1499
+ * @param request - CreateRCImageRequest
1500
+ * @returns CreateRCImageResponse
1501
+ */
1502
+ createRCImage(request: $_model.CreateRCImageRequest): Promise<$_model.CreateRCImageResponse>;
1466
1503
  /**
1467
1504
  * Creates an edge node pool in the Container Service for Kubernetes (ACK) Edge cluster to which the RDS Custom instance belongs.
1468
1505
  *
@@ -7806,6 +7843,21 @@ export default class Client extends OpenApi {
7806
7843
  * @returns ModifyDBInstanceTDEResponse
7807
7844
  */
7808
7845
  modifyDBInstanceTDE(request: $_model.ModifyDBInstanceTDERequest): Promise<$_model.ModifyDBInstanceTDEResponse>;
7846
+ /**
7847
+ * 修改实例向量支持状态
7848
+ *
7849
+ * @param request - ModifyDBInstanceVectorSupportStatusRequest
7850
+ * @param runtime - runtime options for this request RuntimeOptions
7851
+ * @returns ModifyDBInstanceVectorSupportStatusResponse
7852
+ */
7853
+ modifyDBInstanceVectorSupportStatusWithOptions(request: $_model.ModifyDBInstanceVectorSupportStatusRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifyDBInstanceVectorSupportStatusResponse>;
7854
+ /**
7855
+ * 修改实例向量支持状态
7856
+ *
7857
+ * @param request - ModifyDBInstanceVectorSupportStatusRequest
7858
+ * @returns ModifyDBInstanceVectorSupportStatusResponse
7859
+ */
7860
+ modifyDBInstanceVectorSupportStatus(request: $_model.ModifyDBInstanceVectorSupportStatusRequest): Promise<$_model.ModifyDBInstanceVectorSupportStatusResponse>;
7809
7861
  /**
7810
7862
  * Changes the specifications, storage type, and storage capacity of an ApsaraDB RDS for MySQL instance that runs RDS Cluster Edition.
7811
7863
  *
package/dist/client.js CHANGED
@@ -4065,6 +4065,76 @@ class Client extends openapi_core_1.default {
4065
4065
  let runtime = new $dara.RuntimeOptions({});
4066
4066
  return await this.createRCDiskWithOptions(request, runtime);
4067
4067
  }
4068
+ /**
4069
+ * Creates a custom image for an RDS Custom instance.
4070
+ *
4071
+ * @remarks
4072
+ * ### [](#)Supported database engines
4073
+ * * RDS MySQL
4074
+ * * RDS SQL Server
4075
+ * ### [](#)References
4076
+ * * [Introduction to RDS Custom for MySQL](https://help.aliyun.com/document_detail/2844223.html)
4077
+ * * [Introduction to RDS Custom for SQL Server](https://help.aliyun.com/document_detail/2864363.html)
4078
+ * ### [](#)Usage
4079
+ * * Method 1: Create a custom image by using a snapshot generated from the **system disk**. In this case, specify the SnapshotId and ImageName parameters at the same time in the request.
4080
+ * * Method 2: Create a custom image by using an RDS Custom instance. In this case, specify the InstanceId and ImageName parameters at the same time in the request.
4081
+ *
4082
+ * @param request - CreateRCImageRequest
4083
+ * @param runtime - runtime options for this request RuntimeOptions
4084
+ * @returns CreateRCImageResponse
4085
+ */
4086
+ async createRCImageWithOptions(request, runtime) {
4087
+ request.validate();
4088
+ let query = {};
4089
+ if (!$dara.isNull(request.imageName)) {
4090
+ query["ImageName"] = request.imageName;
4091
+ }
4092
+ if (!$dara.isNull(request.instanceId)) {
4093
+ query["InstanceId"] = request.instanceId;
4094
+ }
4095
+ if (!$dara.isNull(request.regionId)) {
4096
+ query["RegionId"] = request.regionId;
4097
+ }
4098
+ if (!$dara.isNull(request.snapshotId)) {
4099
+ query["SnapshotId"] = request.snapshotId;
4100
+ }
4101
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
4102
+ query: openapi_core_2.OpenApiUtil.query(query),
4103
+ });
4104
+ let params = new openapi_core_2.$OpenApiUtil.Params({
4105
+ action: "CreateRCImage",
4106
+ version: "2014-08-15",
4107
+ protocol: "HTTPS",
4108
+ pathname: "/",
4109
+ method: "POST",
4110
+ authType: "AK",
4111
+ style: "RPC",
4112
+ reqBodyType: "formData",
4113
+ bodyType: "json",
4114
+ });
4115
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateRCImageResponse({}));
4116
+ }
4117
+ /**
4118
+ * Creates a custom image for an RDS Custom instance.
4119
+ *
4120
+ * @remarks
4121
+ * ### [](#)Supported database engines
4122
+ * * RDS MySQL
4123
+ * * RDS SQL Server
4124
+ * ### [](#)References
4125
+ * * [Introduction to RDS Custom for MySQL](https://help.aliyun.com/document_detail/2844223.html)
4126
+ * * [Introduction to RDS Custom for SQL Server](https://help.aliyun.com/document_detail/2864363.html)
4127
+ * ### [](#)Usage
4128
+ * * Method 1: Create a custom image by using a snapshot generated from the **system disk**. In this case, specify the SnapshotId and ImageName parameters at the same time in the request.
4129
+ * * Method 2: Create a custom image by using an RDS Custom instance. In this case, specify the InstanceId and ImageName parameters at the same time in the request.
4130
+ *
4131
+ * @param request - CreateRCImageRequest
4132
+ * @returns CreateRCImageResponse
4133
+ */
4134
+ async createRCImage(request) {
4135
+ let runtime = new $dara.RuntimeOptions({});
4136
+ return await this.createRCImageWithOptions(request, runtime);
4137
+ }
4068
4138
  /**
4069
4139
  * Creates an edge node pool in the Container Service for Kubernetes (ACK) Edge cluster to which the RDS Custom instance belongs.
4070
4140
  *
@@ -21146,6 +21216,48 @@ class Client extends openapi_core_1.default {
21146
21216
  let runtime = new $dara.RuntimeOptions({});
21147
21217
  return await this.modifyDBInstanceTDEWithOptions(request, runtime);
21148
21218
  }
21219
+ /**
21220
+ * 修改实例向量支持状态
21221
+ *
21222
+ * @param request - ModifyDBInstanceVectorSupportStatusRequest
21223
+ * @param runtime - runtime options for this request RuntimeOptions
21224
+ * @returns ModifyDBInstanceVectorSupportStatusResponse
21225
+ */
21226
+ async modifyDBInstanceVectorSupportStatusWithOptions(request, runtime) {
21227
+ request.validate();
21228
+ let query = {};
21229
+ if (!$dara.isNull(request.DBInstanceId)) {
21230
+ query["DBInstanceId"] = request.DBInstanceId;
21231
+ }
21232
+ if (!$dara.isNull(request.status)) {
21233
+ query["Status"] = request.status;
21234
+ }
21235
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
21236
+ query: openapi_core_2.OpenApiUtil.query(query),
21237
+ });
21238
+ let params = new openapi_core_2.$OpenApiUtil.Params({
21239
+ action: "ModifyDBInstanceVectorSupportStatus",
21240
+ version: "2014-08-15",
21241
+ protocol: "HTTPS",
21242
+ pathname: "/",
21243
+ method: "POST",
21244
+ authType: "AK",
21245
+ style: "RPC",
21246
+ reqBodyType: "formData",
21247
+ bodyType: "json",
21248
+ });
21249
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ModifyDBInstanceVectorSupportStatusResponse({}));
21250
+ }
21251
+ /**
21252
+ * 修改实例向量支持状态
21253
+ *
21254
+ * @param request - ModifyDBInstanceVectorSupportStatusRequest
21255
+ * @returns ModifyDBInstanceVectorSupportStatusResponse
21256
+ */
21257
+ async modifyDBInstanceVectorSupportStatus(request) {
21258
+ let runtime = new $dara.RuntimeOptions({});
21259
+ return await this.modifyDBInstanceVectorSupportStatusWithOptions(request, runtime);
21260
+ }
21149
21261
  /**
21150
21262
  * Changes the specifications, storage type, and storage capacity of an ApsaraDB RDS for MySQL instance that runs RDS Cluster Edition.
21151
21263
  *
@@ -22753,12 +22865,18 @@ class Client extends openapi_core_1.default {
22753
22865
  if (!$dara.isNull(request.payType)) {
22754
22866
  query["PayType"] = request.payType;
22755
22867
  }
22868
+ if (!$dara.isNull(request.period)) {
22869
+ query["Period"] = request.period;
22870
+ }
22756
22871
  if (!$dara.isNull(request.promotionCode)) {
22757
22872
  query["PromotionCode"] = request.promotionCode;
22758
22873
  }
22759
22874
  if (!$dara.isNull(request.regionId)) {
22760
22875
  query["RegionId"] = request.regionId;
22761
22876
  }
22877
+ if (!$dara.isNull(request.usedTime)) {
22878
+ query["UsedTime"] = request.usedTime;
22879
+ }
22762
22880
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
22763
22881
  query: openapi_core_2.OpenApiUtil.query(query),
22764
22882
  });