@alicloud/polardb20170801 6.14.1 → 6.15.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 (49) hide show
  1. package/dist/client.d.ts +32 -2
  2. package/dist/client.js +98 -2
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AddPolarFsPathMappingRequest.d.ts +54 -0
  5. package/dist/models/AddPolarFsPathMappingRequest.js +88 -0
  6. package/dist/models/AddPolarFsPathMappingRequest.js.map +1 -0
  7. package/dist/models/AddPolarFsPathMappingResponse.d.ts +19 -0
  8. package/dist/models/AddPolarFsPathMappingResponse.js +69 -0
  9. package/dist/models/AddPolarFsPathMappingResponse.js.map +1 -0
  10. package/dist/models/AddPolarFsPathMappingResponseBody.d.ts +21 -0
  11. package/dist/models/AddPolarFsPathMappingResponseBody.js +58 -0
  12. package/dist/models/AddPolarFsPathMappingResponseBody.js.map +1 -0
  13. package/dist/models/AddPolarFsQuotaRequest.d.ts +0 -2
  14. package/dist/models/AddPolarFsQuotaRequest.js +0 -2
  15. package/dist/models/AddPolarFsQuotaRequest.js.map +1 -1
  16. package/dist/models/DeletePolarFsPathMappingRequest.d.ts +52 -0
  17. package/dist/models/DeletePolarFsPathMappingRequest.js +86 -0
  18. package/dist/models/DeletePolarFsPathMappingRequest.js.map +1 -0
  19. package/dist/models/DeletePolarFsPathMappingResponse.d.ts +19 -0
  20. package/dist/models/DeletePolarFsPathMappingResponse.js +69 -0
  21. package/dist/models/DeletePolarFsPathMappingResponse.js.map +1 -0
  22. package/dist/models/DeletePolarFsPathMappingResponseBody.d.ts +21 -0
  23. package/dist/models/DeletePolarFsPathMappingResponseBody.js +58 -0
  24. package/dist/models/DeletePolarFsPathMappingResponseBody.js.map +1 -0
  25. package/dist/models/DescribePolarFsQuotaRequest.d.ts +10 -0
  26. package/dist/models/DescribePolarFsQuotaRequest.js +4 -0
  27. package/dist/models/DescribePolarFsQuotaRequest.js.map +1 -1
  28. package/dist/models/DescribePolarFsQuotaResponseBody.d.ts +43 -0
  29. package/dist/models/DescribePolarFsQuotaResponseBody.js +35 -1
  30. package/dist/models/DescribePolarFsQuotaResponseBody.js.map +1 -1
  31. package/dist/models/SetPolarFsFileQuotaRequest.d.ts +10 -0
  32. package/dist/models/SetPolarFsFileQuotaRequest.js +4 -0
  33. package/dist/models/SetPolarFsFileQuotaRequest.js.map +1 -1
  34. package/dist/models/model.d.ts +9 -0
  35. package/dist/models/model.js +45 -26
  36. package/dist/models/model.js.map +1 -1
  37. package/package.json +1 -1
  38. package/src/client.ts +110 -2
  39. package/src/models/AddPolarFsPathMappingRequest.ts +86 -0
  40. package/src/models/AddPolarFsPathMappingResponse.ts +40 -0
  41. package/src/models/AddPolarFsPathMappingResponseBody.ts +34 -0
  42. package/src/models/AddPolarFsQuotaRequest.ts +0 -2
  43. package/src/models/DeletePolarFsPathMappingRequest.ts +84 -0
  44. package/src/models/DeletePolarFsPathMappingResponse.ts +40 -0
  45. package/src/models/DeletePolarFsPathMappingResponseBody.ts +34 -0
  46. package/src/models/DescribePolarFsQuotaRequest.ts +14 -0
  47. package/src/models/DescribePolarFsQuotaResponseBody.ts +68 -0
  48. package/src/models/SetPolarFsFileQuotaRequest.ts +14 -0
  49. package/src/models/model.ts +9 -0
package/dist/client.d.ts CHANGED
@@ -49,6 +49,21 @@ export default class Client extends OpenApi {
49
49
  * @returns AddFirewallRulesResponse
50
50
  */
51
51
  addFirewallRules(request: $_model.AddFirewallRulesRequest): Promise<$_model.AddFirewallRulesResponse>;
52
+ /**
53
+ * 新增polarfs bucket路径
54
+ *
55
+ * @param request - AddPolarFsPathMappingRequest
56
+ * @param runtime - runtime options for this request RuntimeOptions
57
+ * @returns AddPolarFsPathMappingResponse
58
+ */
59
+ addPolarFsPathMappingWithOptions(request: $_model.AddPolarFsPathMappingRequest, runtime: $dara.RuntimeOptions): Promise<$_model.AddPolarFsPathMappingResponse>;
60
+ /**
61
+ * 新增polarfs bucket路径
62
+ *
63
+ * @param request - AddPolarFsPathMappingRequest
64
+ * @returns AddPolarFsPathMappingResponse
65
+ */
66
+ addPolarFsPathMapping(request: $_model.AddPolarFsPathMappingRequest): Promise<$_model.AddPolarFsPathMappingResponse>;
52
67
  /**
53
68
  * 新增PolarFs Quota规则
54
69
  *
@@ -1311,6 +1326,21 @@ export default class Client extends OpenApi {
1311
1326
  * @returns DeletePolarFsObjectsResponse
1312
1327
  */
1313
1328
  deletePolarFsObjects(request: $_model.DeletePolarFsObjectsRequest): Promise<$_model.DeletePolarFsObjectsResponse>;
1329
+ /**
1330
+ * 删除polar fs bucket路径
1331
+ *
1332
+ * @param request - DeletePolarFsPathMappingRequest
1333
+ * @param runtime - runtime options for this request RuntimeOptions
1334
+ * @returns DeletePolarFsPathMappingResponse
1335
+ */
1336
+ deletePolarFsPathMappingWithOptions(request: $_model.DeletePolarFsPathMappingRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeletePolarFsPathMappingResponse>;
1337
+ /**
1338
+ * 删除polar fs bucket路径
1339
+ *
1340
+ * @param request - DeletePolarFsPathMappingRequest
1341
+ * @returns DeletePolarFsPathMappingResponse
1342
+ */
1343
+ deletePolarFsPathMapping(request: $_model.DeletePolarFsPathMappingRequest): Promise<$_model.DeletePolarFsPathMappingResponse>;
1314
1344
  /**
1315
1345
  * 删除PolarFs Quota规则
1316
1346
  *
@@ -4758,7 +4788,7 @@ export default class Client extends OpenApi {
4758
4788
  */
4759
4789
  searchMemories(request: $_model.SearchMemoriesRequest): Promise<$_model.SearchMemoriesResponse>;
4760
4790
  /**
4761
- * 为目录应用配额规则
4791
+ * 为目录配置配额或应用配额规则
4762
4792
  *
4763
4793
  * @param request - SetPolarFsFileQuotaRequest
4764
4794
  * @param runtime - runtime options for this request RuntimeOptions
@@ -4766,7 +4796,7 @@ export default class Client extends OpenApi {
4766
4796
  */
4767
4797
  setPolarFsFileQuotaWithOptions(request: $_model.SetPolarFsFileQuotaRequest, runtime: $dara.RuntimeOptions): Promise<$_model.SetPolarFsFileQuotaResponse>;
4768
4798
  /**
4769
- * 为目录应用配额规则
4799
+ * 为目录配置配额或应用配额规则
4770
4800
  *
4771
4801
  * @param request - SetPolarFsFileQuotaRequest
4772
4802
  * @returns SetPolarFsFileQuotaResponse
package/dist/client.js CHANGED
@@ -292,6 +292,51 @@ class Client extends openapi_core_1.default {
292
292
  let runtime = new $dara.RuntimeOptions({});
293
293
  return await this.addFirewallRulesWithOptions(request, runtime);
294
294
  }
295
+ /**
296
+ * 新增polarfs bucket路径
297
+ *
298
+ * @param request - AddPolarFsPathMappingRequest
299
+ * @param runtime - runtime options for this request RuntimeOptions
300
+ * @returns AddPolarFsPathMappingResponse
301
+ */
302
+ async addPolarFsPathMappingWithOptions(request, runtime) {
303
+ request.validate();
304
+ let query = {};
305
+ if (!$dara.isNull(request.customBucketPathList)) {
306
+ query["CustomBucketPathList"] = request.customBucketPathList;
307
+ }
308
+ if (!$dara.isNull(request.DBClusterId)) {
309
+ query["DBClusterId"] = request.DBClusterId;
310
+ }
311
+ if (!$dara.isNull(request.polarFsInstanceId)) {
312
+ query["PolarFsInstanceId"] = request.polarFsInstanceId;
313
+ }
314
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
315
+ query: openapi_core_2.OpenApiUtil.query(query),
316
+ });
317
+ let params = new openapi_core_2.$OpenApiUtil.Params({
318
+ action: "AddPolarFsPathMapping",
319
+ version: "2017-08-01",
320
+ protocol: "HTTPS",
321
+ pathname: "/",
322
+ method: "POST",
323
+ authType: "AK",
324
+ style: "RPC",
325
+ reqBodyType: "formData",
326
+ bodyType: "json",
327
+ });
328
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.AddPolarFsPathMappingResponse({}));
329
+ }
330
+ /**
331
+ * 新增polarfs bucket路径
332
+ *
333
+ * @param request - AddPolarFsPathMappingRequest
334
+ * @returns AddPolarFsPathMappingResponse
335
+ */
336
+ async addPolarFsPathMapping(request) {
337
+ let runtime = new $dara.RuntimeOptions({});
338
+ return await this.addPolarFsPathMappingWithOptions(request, runtime);
339
+ }
295
340
  /**
296
341
  * 新增PolarFs Quota规则
297
342
  *
@@ -5178,6 +5223,51 @@ class Client extends openapi_core_1.default {
5178
5223
  let runtime = new $dara.RuntimeOptions({});
5179
5224
  return await this.deletePolarFsObjectsWithOptions(request, runtime);
5180
5225
  }
5226
+ /**
5227
+ * 删除polar fs bucket路径
5228
+ *
5229
+ * @param request - DeletePolarFsPathMappingRequest
5230
+ * @param runtime - runtime options for this request RuntimeOptions
5231
+ * @returns DeletePolarFsPathMappingResponse
5232
+ */
5233
+ async deletePolarFsPathMappingWithOptions(request, runtime) {
5234
+ request.validate();
5235
+ let query = {};
5236
+ if (!$dara.isNull(request.customBucketPathList)) {
5237
+ query["CustomBucketPathList"] = request.customBucketPathList;
5238
+ }
5239
+ if (!$dara.isNull(request.DBClusterId)) {
5240
+ query["DBClusterId"] = request.DBClusterId;
5241
+ }
5242
+ if (!$dara.isNull(request.polarFsInstanceId)) {
5243
+ query["PolarFsInstanceId"] = request.polarFsInstanceId;
5244
+ }
5245
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
5246
+ query: openapi_core_2.OpenApiUtil.query(query),
5247
+ });
5248
+ let params = new openapi_core_2.$OpenApiUtil.Params({
5249
+ action: "DeletePolarFsPathMapping",
5250
+ version: "2017-08-01",
5251
+ protocol: "HTTPS",
5252
+ pathname: "/",
5253
+ method: "POST",
5254
+ authType: "AK",
5255
+ style: "RPC",
5256
+ reqBodyType: "formData",
5257
+ bodyType: "json",
5258
+ });
5259
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeletePolarFsPathMappingResponse({}));
5260
+ }
5261
+ /**
5262
+ * 删除polar fs bucket路径
5263
+ *
5264
+ * @param request - DeletePolarFsPathMappingRequest
5265
+ * @returns DeletePolarFsPathMappingResponse
5266
+ */
5267
+ async deletePolarFsPathMapping(request) {
5268
+ let runtime = new $dara.RuntimeOptions({});
5269
+ return await this.deletePolarFsPathMappingWithOptions(request, runtime);
5270
+ }
5181
5271
  /**
5182
5272
  * 删除PolarFs Quota规则
5183
5273
  *
@@ -11274,9 +11364,15 @@ class Client extends openapi_core_1.default {
11274
11364
  if (!$dara.isNull(request.DBClusterId)) {
11275
11365
  query["DBClusterId"] = request.DBClusterId;
11276
11366
  }
11367
+ if (!$dara.isNull(request.path)) {
11368
+ query["Path"] = request.path;
11369
+ }
11277
11370
  if (!$dara.isNull(request.polarFsInstanceId)) {
11278
11371
  query["PolarFsInstanceId"] = request.polarFsInstanceId;
11279
11372
  }
11373
+ if (!$dara.isNull(request.quotaType)) {
11374
+ query["QuotaType"] = request.quotaType;
11375
+ }
11280
11376
  if (!$dara.isNull(request.regionId)) {
11281
11377
  query["RegionId"] = request.regionId;
11282
11378
  }
@@ -18412,7 +18508,7 @@ class Client extends openapi_core_1.default {
18412
18508
  return await this.searchMemoriesWithOptions(request, runtime);
18413
18509
  }
18414
18510
  /**
18415
- * 为目录应用配额规则
18511
+ * 为目录配置配额或应用配额规则
18416
18512
  *
18417
18513
  * @param request - SetPolarFsFileQuotaRequest
18418
18514
  * @param runtime - runtime options for this request RuntimeOptions
@@ -18447,7 +18543,7 @@ class Client extends openapi_core_1.default {
18447
18543
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.SetPolarFsFileQuotaResponse({}));
18448
18544
  }
18449
18545
  /**
18450
- * 为目录应用配额规则
18546
+ * 为目录配置配额或应用配额规则
18451
18547
  *
18452
18548
  * @param request - SetPolarFsFileQuotaRequest
18453
18549
  * @returns SetPolarFsFileQuotaResponse