@alicloud/polardb20170801 6.14.0 → 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 (53) hide show
  1. package/dist/client.d.ts +32 -2
  2. package/dist/client.js +104 -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/CreateDbclusterEndpointRequest.d.ts +10 -0
  17. package/dist/models/CreateDbclusterEndpointRequest.js +4 -0
  18. package/dist/models/CreateDbclusterEndpointRequest.js.map +1 -1
  19. package/dist/models/DeletePolarFsPathMappingRequest.d.ts +52 -0
  20. package/dist/models/DeletePolarFsPathMappingRequest.js +86 -0
  21. package/dist/models/DeletePolarFsPathMappingRequest.js.map +1 -0
  22. package/dist/models/DeletePolarFsPathMappingResponse.d.ts +19 -0
  23. package/dist/models/DeletePolarFsPathMappingResponse.js +69 -0
  24. package/dist/models/DeletePolarFsPathMappingResponse.js.map +1 -0
  25. package/dist/models/DeletePolarFsPathMappingResponseBody.d.ts +21 -0
  26. package/dist/models/DeletePolarFsPathMappingResponseBody.js +58 -0
  27. package/dist/models/DeletePolarFsPathMappingResponseBody.js.map +1 -0
  28. package/dist/models/DescribePolarFsQuotaRequest.d.ts +10 -0
  29. package/dist/models/DescribePolarFsQuotaRequest.js +4 -0
  30. package/dist/models/DescribePolarFsQuotaRequest.js.map +1 -1
  31. package/dist/models/DescribePolarFsQuotaResponseBody.d.ts +43 -0
  32. package/dist/models/DescribePolarFsQuotaResponseBody.js +35 -1
  33. package/dist/models/DescribePolarFsQuotaResponseBody.js.map +1 -1
  34. package/dist/models/SetPolarFsFileQuotaRequest.d.ts +10 -0
  35. package/dist/models/SetPolarFsFileQuotaRequest.js +4 -0
  36. package/dist/models/SetPolarFsFileQuotaRequest.js.map +1 -1
  37. package/dist/models/model.d.ts +9 -0
  38. package/dist/models/model.js +45 -26
  39. package/dist/models/model.js.map +1 -1
  40. package/package.json +1 -1
  41. package/src/client.ts +118 -2
  42. package/src/models/AddPolarFsPathMappingRequest.ts +86 -0
  43. package/src/models/AddPolarFsPathMappingResponse.ts +40 -0
  44. package/src/models/AddPolarFsPathMappingResponseBody.ts +34 -0
  45. package/src/models/AddPolarFsQuotaRequest.ts +0 -2
  46. package/src/models/CreateDbclusterEndpointRequest.ts +14 -0
  47. package/src/models/DeletePolarFsPathMappingRequest.ts +84 -0
  48. package/src/models/DeletePolarFsPathMappingResponse.ts +40 -0
  49. package/src/models/DeletePolarFsPathMappingResponseBody.ts +34 -0
  50. package/src/models/DescribePolarFsQuotaRequest.ts +14 -0
  51. package/src/models/DescribePolarFsQuotaResponseBody.ts +68 -0
  52. package/src/models/SetPolarFsFileQuotaRequest.ts +14 -0
  53. 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
  *
@@ -2499,6 +2544,12 @@ class Client extends openapi_core_1.default {
2499
2544
  if (!$dara.isNull(request.sccMode)) {
2500
2545
  query["SccMode"] = request.sccMode;
2501
2546
  }
2547
+ if (!$dara.isNull(request.VPCId)) {
2548
+ query["VPCId"] = request.VPCId;
2549
+ }
2550
+ if (!$dara.isNull(request.vSwitchId)) {
2551
+ query["VSwitchId"] = request.vSwitchId;
2552
+ }
2502
2553
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2503
2554
  query: openapi_core_2.OpenApiUtil.query(query),
2504
2555
  });
@@ -5172,6 +5223,51 @@ class Client extends openapi_core_1.default {
5172
5223
  let runtime = new $dara.RuntimeOptions({});
5173
5224
  return await this.deletePolarFsObjectsWithOptions(request, runtime);
5174
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
+ }
5175
5271
  /**
5176
5272
  * 删除PolarFs Quota规则
5177
5273
  *
@@ -11268,9 +11364,15 @@ class Client extends openapi_core_1.default {
11268
11364
  if (!$dara.isNull(request.DBClusterId)) {
11269
11365
  query["DBClusterId"] = request.DBClusterId;
11270
11366
  }
11367
+ if (!$dara.isNull(request.path)) {
11368
+ query["Path"] = request.path;
11369
+ }
11271
11370
  if (!$dara.isNull(request.polarFsInstanceId)) {
11272
11371
  query["PolarFsInstanceId"] = request.polarFsInstanceId;
11273
11372
  }
11373
+ if (!$dara.isNull(request.quotaType)) {
11374
+ query["QuotaType"] = request.quotaType;
11375
+ }
11274
11376
  if (!$dara.isNull(request.regionId)) {
11275
11377
  query["RegionId"] = request.regionId;
11276
11378
  }
@@ -18406,7 +18508,7 @@ class Client extends openapi_core_1.default {
18406
18508
  return await this.searchMemoriesWithOptions(request, runtime);
18407
18509
  }
18408
18510
  /**
18409
- * 为目录应用配额规则
18511
+ * 为目录配置配额或应用配额规则
18410
18512
  *
18411
18513
  * @param request - SetPolarFsFileQuotaRequest
18412
18514
  * @param runtime - runtime options for this request RuntimeOptions
@@ -18441,7 +18543,7 @@ class Client extends openapi_core_1.default {
18441
18543
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.SetPolarFsFileQuotaResponse({}));
18442
18544
  }
18443
18545
  /**
18444
- * 为目录应用配额规则
18546
+ * 为目录配置配额或应用配额规则
18445
18547
  *
18446
18548
  * @param request - SetPolarFsFileQuotaRequest
18447
18549
  * @returns SetPolarFsFileQuotaResponse