@alicloud/polardb20170801 6.2.1 → 6.4.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 (33) hide show
  1. package/dist/client.d.ts +30 -0
  2. package/dist/client.js +129 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/ClonePolarFsBasicSnapshotRequest.d.ts +33 -0
  5. package/dist/models/ClonePolarFsBasicSnapshotRequest.js +64 -0
  6. package/dist/models/ClonePolarFsBasicSnapshotRequest.js.map +1 -0
  7. package/dist/models/ClonePolarFsBasicSnapshotResponse.d.ts +19 -0
  8. package/dist/models/ClonePolarFsBasicSnapshotResponse.js +69 -0
  9. package/dist/models/ClonePolarFsBasicSnapshotResponse.js.map +1 -0
  10. package/dist/models/ClonePolarFsBasicSnapshotResponseBody.d.ts +41 -0
  11. package/dist/models/ClonePolarFsBasicSnapshotResponseBody.js +66 -0
  12. package/dist/models/ClonePolarFsBasicSnapshotResponseBody.js.map +1 -0
  13. package/dist/models/DescribeHistoryEventsRequest.d.ts +88 -0
  14. package/dist/models/DescribeHistoryEventsRequest.js +86 -0
  15. package/dist/models/DescribeHistoryEventsRequest.js.map +1 -0
  16. package/dist/models/DescribeHistoryEventsResponse.d.ts +19 -0
  17. package/dist/models/DescribeHistoryEventsResponse.js +69 -0
  18. package/dist/models/DescribeHistoryEventsResponse.js.map +1 -0
  19. package/dist/models/DescribeHistoryEventsResponseBody.d.ts +229 -0
  20. package/dist/models/DescribeHistoryEventsResponseBody.js +176 -0
  21. package/dist/models/DescribeHistoryEventsResponseBody.js.map +1 -0
  22. package/dist/models/model.d.ts +8 -0
  23. package/dist/models/model.js +35 -19
  24. package/dist/models/model.js.map +1 -1
  25. package/package.json +1 -1
  26. package/src/client.ts +152 -0
  27. package/src/models/ClonePolarFsBasicSnapshotRequest.ts +52 -0
  28. package/src/models/ClonePolarFsBasicSnapshotResponse.ts +40 -0
  29. package/src/models/ClonePolarFsBasicSnapshotResponseBody.ts +62 -0
  30. package/src/models/DescribeHistoryEventsRequest.ts +129 -0
  31. package/src/models/DescribeHistoryEventsResponse.ts +40 -0
  32. package/src/models/DescribeHistoryEventsResponseBody.ts +342 -0
  33. package/src/models/model.ts +8 -0
package/dist/client.d.ts CHANGED
@@ -259,6 +259,21 @@ export default class Client extends OpenApi {
259
259
  * @returns CheckServiceLinkedRoleResponse
260
260
  */
261
261
  checkServiceLinkedRole(request: $_model.CheckServiceLinkedRoleRequest): Promise<$_model.CheckServiceLinkedRoleResponse>;
262
+ /**
263
+ * 支持基础版支持clone文件或目录快照
264
+ *
265
+ * @param request - ClonePolarFsBasicSnapshotRequest
266
+ * @param runtime - runtime options for this request RuntimeOptions
267
+ * @returns ClonePolarFsBasicSnapshotResponse
268
+ */
269
+ clonePolarFsBasicSnapshotWithOptions(request: $_model.ClonePolarFsBasicSnapshotRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ClonePolarFsBasicSnapshotResponse>;
270
+ /**
271
+ * 支持基础版支持clone文件或目录快照
272
+ *
273
+ * @param request - ClonePolarFsBasicSnapshotRequest
274
+ * @returns ClonePolarFsBasicSnapshotResponse
275
+ */
276
+ clonePolarFsBasicSnapshot(request: $_model.ClonePolarFsBasicSnapshotRequest): Promise<$_model.ClonePolarFsBasicSnapshotResponse>;
262
277
  /**
263
278
  * 关闭DB4AI
264
279
  *
@@ -2363,6 +2378,21 @@ export default class Client extends OpenApi {
2363
2378
  * @returns DescribeHALogsResponse
2364
2379
  */
2365
2380
  describeHALogs(request: $_model.DescribeHALogsRequest): Promise<$_model.DescribeHALogsResponse>;
2381
+ /**
2382
+ * 事件中心事件列表
2383
+ *
2384
+ * @param request - DescribeHistoryEventsRequest
2385
+ * @param runtime - runtime options for this request RuntimeOptions
2386
+ * @returns DescribeHistoryEventsResponse
2387
+ */
2388
+ describeHistoryEventsWithOptions(request: $_model.DescribeHistoryEventsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeHistoryEventsResponse>;
2389
+ /**
2390
+ * 事件中心事件列表
2391
+ *
2392
+ * @param request - DescribeHistoryEventsRequest
2393
+ * @returns DescribeHistoryEventsResponse
2394
+ */
2395
+ describeHistoryEvents(request: $_model.DescribeHistoryEventsRequest): Promise<$_model.DescribeHistoryEventsResponse>;
2366
2396
  /**
2367
2397
  * 任务中心任务列表
2368
2398
  *
package/dist/client.js CHANGED
@@ -1013,6 +1013,54 @@ class Client extends openapi_core_1.default {
1013
1013
  let runtime = new $dara.RuntimeOptions({});
1014
1014
  return await this.checkServiceLinkedRoleWithOptions(request, runtime);
1015
1015
  }
1016
+ /**
1017
+ * 支持基础版支持clone文件或目录快照
1018
+ *
1019
+ * @param request - ClonePolarFsBasicSnapshotRequest
1020
+ * @param runtime - runtime options for this request RuntimeOptions
1021
+ * @returns ClonePolarFsBasicSnapshotResponse
1022
+ */
1023
+ async clonePolarFsBasicSnapshotWithOptions(request, runtime) {
1024
+ request.validate();
1025
+ let query = {};
1026
+ if (!$dara.isNull(request.DBClusterId)) {
1027
+ query["DBClusterId"] = request.DBClusterId;
1028
+ }
1029
+ if (!$dara.isNull(request.polarFsInstanceId)) {
1030
+ query["PolarFsInstanceId"] = request.polarFsInstanceId;
1031
+ }
1032
+ if (!$dara.isNull(request.sourcePath)) {
1033
+ query["SourcePath"] = request.sourcePath;
1034
+ }
1035
+ if (!$dara.isNull(request.targetPath)) {
1036
+ query["TargetPath"] = request.targetPath;
1037
+ }
1038
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1039
+ query: openapi_core_2.OpenApiUtil.query(query),
1040
+ });
1041
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1042
+ action: "ClonePolarFsBasicSnapshot",
1043
+ version: "2017-08-01",
1044
+ protocol: "HTTPS",
1045
+ pathname: "/",
1046
+ method: "POST",
1047
+ authType: "AK",
1048
+ style: "RPC",
1049
+ reqBodyType: "formData",
1050
+ bodyType: "json",
1051
+ });
1052
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ClonePolarFsBasicSnapshotResponse({}));
1053
+ }
1054
+ /**
1055
+ * 支持基础版支持clone文件或目录快照
1056
+ *
1057
+ * @param request - ClonePolarFsBasicSnapshotRequest
1058
+ * @returns ClonePolarFsBasicSnapshotResponse
1059
+ */
1060
+ async clonePolarFsBasicSnapshot(request) {
1061
+ let runtime = new $dara.RuntimeOptions({});
1062
+ return await this.clonePolarFsBasicSnapshotWithOptions(request, runtime);
1063
+ }
1016
1064
  /**
1017
1065
  * 关闭DB4AI
1018
1066
  *
@@ -8965,6 +9013,87 @@ class Client extends openapi_core_1.default {
8965
9013
  let runtime = new $dara.RuntimeOptions({});
8966
9014
  return await this.describeHALogsWithOptions(request, runtime);
8967
9015
  }
9016
+ /**
9017
+ * 事件中心事件列表
9018
+ *
9019
+ * @param request - DescribeHistoryEventsRequest
9020
+ * @param runtime - runtime options for this request RuntimeOptions
9021
+ * @returns DescribeHistoryEventsResponse
9022
+ */
9023
+ async describeHistoryEventsWithOptions(request, runtime) {
9024
+ request.validate();
9025
+ let query = {};
9026
+ if (!$dara.isNull(request.archiveStatus)) {
9027
+ query["ArchiveStatus"] = request.archiveStatus;
9028
+ }
9029
+ if (!$dara.isNull(request.eventCategory)) {
9030
+ query["EventCategory"] = request.eventCategory;
9031
+ }
9032
+ if (!$dara.isNull(request.eventId)) {
9033
+ query["EventId"] = request.eventId;
9034
+ }
9035
+ if (!$dara.isNull(request.eventLevel)) {
9036
+ query["EventLevel"] = request.eventLevel;
9037
+ }
9038
+ if (!$dara.isNull(request.eventStatus)) {
9039
+ query["EventStatus"] = request.eventStatus;
9040
+ }
9041
+ if (!$dara.isNull(request.eventType)) {
9042
+ query["EventType"] = request.eventType;
9043
+ }
9044
+ if (!$dara.isNull(request.fromStartTime)) {
9045
+ query["FromStartTime"] = request.fromStartTime;
9046
+ }
9047
+ if (!$dara.isNull(request.instanceId)) {
9048
+ query["InstanceId"] = request.instanceId;
9049
+ }
9050
+ if (!$dara.isNull(request.pageNumber)) {
9051
+ query["PageNumber"] = request.pageNumber;
9052
+ }
9053
+ if (!$dara.isNull(request.pageSize)) {
9054
+ query["PageSize"] = request.pageSize;
9055
+ }
9056
+ if (!$dara.isNull(request.regionId)) {
9057
+ query["RegionId"] = request.regionId;
9058
+ }
9059
+ if (!$dara.isNull(request.resourceGroupId)) {
9060
+ query["ResourceGroupId"] = request.resourceGroupId;
9061
+ }
9062
+ if (!$dara.isNull(request.resourceType)) {
9063
+ query["ResourceType"] = request.resourceType;
9064
+ }
9065
+ if (!$dara.isNull(request.taskId)) {
9066
+ query["TaskId"] = request.taskId;
9067
+ }
9068
+ if (!$dara.isNull(request.toStartTime)) {
9069
+ query["ToStartTime"] = request.toStartTime;
9070
+ }
9071
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
9072
+ query: openapi_core_2.OpenApiUtil.query(query),
9073
+ });
9074
+ let params = new openapi_core_2.$OpenApiUtil.Params({
9075
+ action: "DescribeHistoryEvents",
9076
+ version: "2017-08-01",
9077
+ protocol: "HTTPS",
9078
+ pathname: "/",
9079
+ method: "POST",
9080
+ authType: "AK",
9081
+ style: "RPC",
9082
+ reqBodyType: "formData",
9083
+ bodyType: "json",
9084
+ });
9085
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeHistoryEventsResponse({}));
9086
+ }
9087
+ /**
9088
+ * 事件中心事件列表
9089
+ *
9090
+ * @param request - DescribeHistoryEventsRequest
9091
+ * @returns DescribeHistoryEventsResponse
9092
+ */
9093
+ async describeHistoryEvents(request) {
9094
+ let runtime = new $dara.RuntimeOptions({});
9095
+ return await this.describeHistoryEventsWithOptions(request, runtime);
9096
+ }
8968
9097
  /**
8969
9098
  * 任务中心任务列表
8970
9099
  *