@alicloud/polardbx20200202 3.8.0 → 3.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 (63) hide show
  1. package/dist/client.d.ts +84 -0
  2. package/dist/client.js +207 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreatePolardbxSupabaseInstanceRequest.d.ts +8 -0
  5. package/dist/models/CreatePolardbxSupabaseInstanceRequest.js +2 -0
  6. package/dist/models/CreatePolardbxSupabaseInstanceRequest.js.map +1 -1
  7. package/dist/models/CreatePolardbxSupabaseInstanceResponseBody.d.ts +1 -1
  8. package/dist/models/CreateServiceAccountRequest.d.ts +43 -0
  9. package/dist/models/CreateServiceAccountRequest.js +62 -0
  10. package/dist/models/CreateServiceAccountRequest.js.map +1 -0
  11. package/dist/models/CreateServiceAccountResponse.d.ts +19 -0
  12. package/dist/models/CreateServiceAccountResponse.js +69 -0
  13. package/dist/models/CreateServiceAccountResponse.js.map +1 -0
  14. package/dist/models/CreateServiceAccountResponseBody.d.ts +159 -0
  15. package/dist/models/CreateServiceAccountResponseBody.js +128 -0
  16. package/dist/models/CreateServiceAccountResponseBody.js.map +1 -0
  17. package/dist/models/DeleteServiceAccountRequest.d.ts +43 -0
  18. package/dist/models/DeleteServiceAccountRequest.js +62 -0
  19. package/dist/models/DeleteServiceAccountRequest.js.map +1 -0
  20. package/dist/models/DeleteServiceAccountResponse.d.ts +19 -0
  21. package/dist/models/DeleteServiceAccountResponse.js +69 -0
  22. package/dist/models/DeleteServiceAccountResponse.js.map +1 -0
  23. package/dist/models/DeleteServiceAccountResponseBody.d.ts +159 -0
  24. package/dist/models/DeleteServiceAccountResponseBody.js +128 -0
  25. package/dist/models/DeleteServiceAccountResponseBody.js.map +1 -0
  26. package/dist/models/DescribeServiceAccountRequest.d.ts +33 -0
  27. package/dist/models/DescribeServiceAccountRequest.js +60 -0
  28. package/dist/models/DescribeServiceAccountRequest.js.map +1 -0
  29. package/dist/models/DescribeServiceAccountResponse.d.ts +19 -0
  30. package/dist/models/DescribeServiceAccountResponse.js +69 -0
  31. package/dist/models/DescribeServiceAccountResponse.js.map +1 -0
  32. package/dist/models/DescribeServiceAccountResponseBody.d.ts +164 -0
  33. package/dist/models/DescribeServiceAccountResponseBody.js +146 -0
  34. package/dist/models/DescribeServiceAccountResponseBody.js.map +1 -0
  35. package/dist/models/ExecuteMetaQueryRequest.d.ts +51 -0
  36. package/dist/models/ExecuteMetaQueryRequest.js +64 -0
  37. package/dist/models/ExecuteMetaQueryRequest.js.map +1 -0
  38. package/dist/models/ExecuteMetaQueryResponse.d.ts +19 -0
  39. package/dist/models/ExecuteMetaQueryResponse.js +69 -0
  40. package/dist/models/ExecuteMetaQueryResponse.js.map +1 -0
  41. package/dist/models/ExecuteMetaQueryResponseBody.d.ts +131 -0
  42. package/dist/models/ExecuteMetaQueryResponseBody.js +128 -0
  43. package/dist/models/ExecuteMetaQueryResponseBody.js.map +1 -0
  44. package/dist/models/model.d.ts +21 -0
  45. package/dist/models/model.js +56 -14
  46. package/dist/models/model.js.map +1 -1
  47. package/package.json +2 -2
  48. package/src/client.ts +228 -0
  49. package/src/models/CreatePolardbxSupabaseInstanceRequest.ts +10 -0
  50. package/src/models/CreatePolardbxSupabaseInstanceResponseBody.ts +1 -1
  51. package/src/models/CreateServiceAccountRequest.ts +60 -0
  52. package/src/models/CreateServiceAccountResponse.ts +40 -0
  53. package/src/models/CreateServiceAccountResponseBody.ts +224 -0
  54. package/src/models/DeleteServiceAccountRequest.ts +60 -0
  55. package/src/models/DeleteServiceAccountResponse.ts +40 -0
  56. package/src/models/DeleteServiceAccountResponseBody.ts +224 -0
  57. package/src/models/DescribeServiceAccountRequest.ts +48 -0
  58. package/src/models/DescribeServiceAccountResponse.ts +40 -0
  59. package/src/models/DescribeServiceAccountResponseBody.ts +238 -0
  60. package/src/models/ExecuteMetaQueryRequest.ts +70 -0
  61. package/src/models/ExecuteMetaQueryResponse.ts +40 -0
  62. package/src/models/ExecuteMetaQueryResponseBody.ts +194 -0
  63. package/src/models/model.ts +21 -0
package/dist/client.d.ts CHANGED
@@ -457,6 +457,27 @@ export default class Client extends OpenApi {
457
457
  * @returns CreateSQLEvaluateTaskResponse
458
458
  */
459
459
  createSQLEvaluateTask(request: $_model.CreateSQLEvaluateTaskRequest): Promise<$_model.CreateSQLEvaluateTaskResponse>;
460
+ /**
461
+ * Creates a service account.
462
+ *
463
+ * @remarks
464
+ * <props="china">For more information about instance accounts, see [Account management](https://help.aliyun.com/document_detail/172163.html).
465
+ *
466
+ * @param request - CreateServiceAccountRequest
467
+ * @param runtime - runtime options for this request RuntimeOptions
468
+ * @returns CreateServiceAccountResponse
469
+ */
470
+ createServiceAccountWithOptions(request: $_model.CreateServiceAccountRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateServiceAccountResponse>;
471
+ /**
472
+ * Creates a service account.
473
+ *
474
+ * @remarks
475
+ * <props="china">For more information about instance accounts, see [Account management](https://help.aliyun.com/document_detail/172163.html).
476
+ *
477
+ * @param request - CreateServiceAccountRequest
478
+ * @returns CreateServiceAccountResponse
479
+ */
480
+ createServiceAccount(request: $_model.CreateServiceAccountRequest): Promise<$_model.CreateServiceAccountResponse>;
460
481
  /**
461
482
  * Creates a resource storage pool.
462
483
  *
@@ -703,6 +724,27 @@ export default class Client extends OpenApi {
703
724
  * @returns DeletePolardbxSupabaseInstanceResponse
704
725
  */
705
726
  deletePolardbxSupabaseInstance(request: $_model.DeletePolardbxSupabaseInstanceRequest): Promise<$_model.DeletePolardbxSupabaseInstanceResponse>;
727
+ /**
728
+ * Deletes a service account.
729
+ *
730
+ * @remarks
731
+ * <props="china">For more information about instance accounts, see [Account management](https://help.aliyun.com/document_detail/172163.html).
732
+ *
733
+ * @param request - DeleteServiceAccountRequest
734
+ * @param runtime - runtime options for this request RuntimeOptions
735
+ * @returns DeleteServiceAccountResponse
736
+ */
737
+ deleteServiceAccountWithOptions(request: $_model.DeleteServiceAccountRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteServiceAccountResponse>;
738
+ /**
739
+ * Deletes a service account.
740
+ *
741
+ * @remarks
742
+ * <props="china">For more information about instance accounts, see [Account management](https://help.aliyun.com/document_detail/172163.html).
743
+ *
744
+ * @param request - DeleteServiceAccountRequest
745
+ * @returns DeleteServiceAccountResponse
746
+ */
747
+ deleteServiceAccount(request: $_model.DeleteServiceAccountRequest): Promise<$_model.DeleteServiceAccountResponse>;
706
748
  /**
707
749
  * 删除自定义地址
708
750
  *
@@ -1605,6 +1647,27 @@ export default class Client extends OpenApi {
1605
1647
  * @returns DescribeSecurityIpsResponse
1606
1648
  */
1607
1649
  describeSecurityIps(request: $_model.DescribeSecurityIpsRequest): Promise<$_model.DescribeSecurityIpsResponse>;
1650
+ /**
1651
+ * Queries the status of a service account.
1652
+ *
1653
+ * @remarks
1654
+ * <props="china">For more information about instance accounts, see [Account management](https://help.aliyun.com/document_detail/172163.html).
1655
+ *
1656
+ * @param request - DescribeServiceAccountRequest
1657
+ * @param runtime - runtime options for this request RuntimeOptions
1658
+ * @returns DescribeServiceAccountResponse
1659
+ */
1660
+ describeServiceAccountWithOptions(request: $_model.DescribeServiceAccountRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeServiceAccountResponse>;
1661
+ /**
1662
+ * Queries the status of a service account.
1663
+ *
1664
+ * @remarks
1665
+ * <props="china">For more information about instance accounts, see [Account management](https://help.aliyun.com/document_detail/172163.html).
1666
+ *
1667
+ * @param request - DescribeServiceAccountRequest
1668
+ * @returns DescribeServiceAccountResponse
1669
+ */
1670
+ describeServiceAccount(request: $_model.DescribeServiceAccountRequest): Promise<$_model.DescribeServiceAccountResponse>;
1608
1671
  /**
1609
1672
  * Queries the storage usage details of an instance, including the total capacity, used space, remaining space, and other information.
1610
1673
  *
@@ -1931,6 +1994,27 @@ export default class Client extends OpenApi {
1931
1994
  * @returns EnableSqlAuditResponse
1932
1995
  */
1933
1996
  enableSqlAudit(request: $_model.EnableSqlAuditRequest): Promise<$_model.EnableSqlAuditResponse>;
1997
+ /**
1998
+ * Executes a metadata query.
1999
+ *
2000
+ * @remarks
2001
+ * Deletes a custom endpoint of a specified database instance and disables access through the domain name.
2002
+ *
2003
+ * @param request - ExecuteMetaQueryRequest
2004
+ * @param runtime - runtime options for this request RuntimeOptions
2005
+ * @returns ExecuteMetaQueryResponse
2006
+ */
2007
+ executeMetaQueryWithOptions(request: $_model.ExecuteMetaQueryRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ExecuteMetaQueryResponse>;
2008
+ /**
2009
+ * Executes a metadata query.
2010
+ *
2011
+ * @remarks
2012
+ * Deletes a custom endpoint of a specified database instance and disables access through the domain name.
2013
+ *
2014
+ * @param request - ExecuteMetaQueryRequest
2015
+ * @returns ExecuteMetaQueryResponse
2016
+ */
2017
+ executeMetaQuery(request: $_model.ExecuteMetaQueryRequest): Promise<$_model.ExecuteMetaQueryResponse>;
1934
2018
  /**
1935
2019
  * Retrieves a list of labels.
1936
2020
  *
package/dist/client.js CHANGED
@@ -1436,6 +1436,9 @@ class Client extends openapi_core_1.default {
1436
1436
  if (!$dara.isNull(request.dbPassword)) {
1437
1437
  query["DbPassword"] = request.dbPassword;
1438
1438
  }
1439
+ if (!$dara.isNull(request.nodeSpec)) {
1440
+ query["NodeSpec"] = request.nodeSpec;
1441
+ }
1439
1442
  if (!$dara.isNull(request.payType)) {
1440
1443
  query["PayType"] = request.payType;
1441
1444
  }
@@ -1633,6 +1636,57 @@ class Client extends openapi_core_1.default {
1633
1636
  let runtime = new $dara.RuntimeOptions({});
1634
1637
  return await this.createSQLEvaluateTaskWithOptions(request, runtime);
1635
1638
  }
1639
+ /**
1640
+ * Creates a service account.
1641
+ *
1642
+ * @remarks
1643
+ * <props="china">For more information about instance accounts, see [Account management](https://help.aliyun.com/document_detail/172163.html).
1644
+ *
1645
+ * @param request - CreateServiceAccountRequest
1646
+ * @param runtime - runtime options for this request RuntimeOptions
1647
+ * @returns CreateServiceAccountResponse
1648
+ */
1649
+ async createServiceAccountWithOptions(request, runtime) {
1650
+ request.validate();
1651
+ let query = {};
1652
+ if (!$dara.isNull(request.DBInstanceName)) {
1653
+ query["DBInstanceName"] = request.DBInstanceName;
1654
+ }
1655
+ if (!$dara.isNull(request.regionId)) {
1656
+ query["RegionId"] = request.regionId;
1657
+ }
1658
+ if (!$dara.isNull(request.serviceAccountType)) {
1659
+ query["ServiceAccountType"] = request.serviceAccountType;
1660
+ }
1661
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1662
+ query: openapi_core_2.OpenApiUtil.query(query),
1663
+ });
1664
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1665
+ action: "CreateServiceAccount",
1666
+ version: "2020-02-02",
1667
+ protocol: "HTTPS",
1668
+ pathname: "/",
1669
+ method: "POST",
1670
+ authType: "AK",
1671
+ style: "RPC",
1672
+ reqBodyType: "formData",
1673
+ bodyType: "json",
1674
+ });
1675
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateServiceAccountResponse({}));
1676
+ }
1677
+ /**
1678
+ * Creates a service account.
1679
+ *
1680
+ * @remarks
1681
+ * <props="china">For more information about instance accounts, see [Account management](https://help.aliyun.com/document_detail/172163.html).
1682
+ *
1683
+ * @param request - CreateServiceAccountRequest
1684
+ * @returns CreateServiceAccountResponse
1685
+ */
1686
+ async createServiceAccount(request) {
1687
+ let runtime = new $dara.RuntimeOptions({});
1688
+ return await this.createServiceAccountWithOptions(request, runtime);
1689
+ }
1636
1690
  /**
1637
1691
  * Creates a resource storage pool.
1638
1692
  *
@@ -2310,6 +2364,57 @@ class Client extends openapi_core_1.default {
2310
2364
  let runtime = new $dara.RuntimeOptions({});
2311
2365
  return await this.deletePolardbxSupabaseInstanceWithOptions(request, runtime);
2312
2366
  }
2367
+ /**
2368
+ * Deletes a service account.
2369
+ *
2370
+ * @remarks
2371
+ * <props="china">For more information about instance accounts, see [Account management](https://help.aliyun.com/document_detail/172163.html).
2372
+ *
2373
+ * @param request - DeleteServiceAccountRequest
2374
+ * @param runtime - runtime options for this request RuntimeOptions
2375
+ * @returns DeleteServiceAccountResponse
2376
+ */
2377
+ async deleteServiceAccountWithOptions(request, runtime) {
2378
+ request.validate();
2379
+ let query = {};
2380
+ if (!$dara.isNull(request.DBInstanceName)) {
2381
+ query["DBInstanceName"] = request.DBInstanceName;
2382
+ }
2383
+ if (!$dara.isNull(request.regionId)) {
2384
+ query["RegionId"] = request.regionId;
2385
+ }
2386
+ if (!$dara.isNull(request.serviceAccountType)) {
2387
+ query["ServiceAccountType"] = request.serviceAccountType;
2388
+ }
2389
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2390
+ query: openapi_core_2.OpenApiUtil.query(query),
2391
+ });
2392
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2393
+ action: "DeleteServiceAccount",
2394
+ version: "2020-02-02",
2395
+ protocol: "HTTPS",
2396
+ pathname: "/",
2397
+ method: "POST",
2398
+ authType: "AK",
2399
+ style: "RPC",
2400
+ reqBodyType: "formData",
2401
+ bodyType: "json",
2402
+ });
2403
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteServiceAccountResponse({}));
2404
+ }
2405
+ /**
2406
+ * Deletes a service account.
2407
+ *
2408
+ * @remarks
2409
+ * <props="china">For more information about instance accounts, see [Account management](https://help.aliyun.com/document_detail/172163.html).
2410
+ *
2411
+ * @param request - DeleteServiceAccountRequest
2412
+ * @returns DeleteServiceAccountResponse
2413
+ */
2414
+ async deleteServiceAccount(request) {
2415
+ let runtime = new $dara.RuntimeOptions({});
2416
+ return await this.deleteServiceAccountWithOptions(request, runtime);
2417
+ }
2313
2418
  /**
2314
2419
  * 删除自定义地址
2315
2420
  *
@@ -4804,6 +4909,54 @@ class Client extends openapi_core_1.default {
4804
4909
  let runtime = new $dara.RuntimeOptions({});
4805
4910
  return await this.describeSecurityIpsWithOptions(request, runtime);
4806
4911
  }
4912
+ /**
4913
+ * Queries the status of a service account.
4914
+ *
4915
+ * @remarks
4916
+ * <props="china">For more information about instance accounts, see [Account management](https://help.aliyun.com/document_detail/172163.html).
4917
+ *
4918
+ * @param request - DescribeServiceAccountRequest
4919
+ * @param runtime - runtime options for this request RuntimeOptions
4920
+ * @returns DescribeServiceAccountResponse
4921
+ */
4922
+ async describeServiceAccountWithOptions(request, runtime) {
4923
+ request.validate();
4924
+ let query = {};
4925
+ if (!$dara.isNull(request.DBInstanceName)) {
4926
+ query["DBInstanceName"] = request.DBInstanceName;
4927
+ }
4928
+ if (!$dara.isNull(request.regionId)) {
4929
+ query["RegionId"] = request.regionId;
4930
+ }
4931
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
4932
+ query: openapi_core_2.OpenApiUtil.query(query),
4933
+ });
4934
+ let params = new openapi_core_2.$OpenApiUtil.Params({
4935
+ action: "DescribeServiceAccount",
4936
+ version: "2020-02-02",
4937
+ protocol: "HTTPS",
4938
+ pathname: "/",
4939
+ method: "POST",
4940
+ authType: "AK",
4941
+ style: "RPC",
4942
+ reqBodyType: "formData",
4943
+ bodyType: "json",
4944
+ });
4945
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeServiceAccountResponse({}));
4946
+ }
4947
+ /**
4948
+ * Queries the status of a service account.
4949
+ *
4950
+ * @remarks
4951
+ * <props="china">For more information about instance accounts, see [Account management](https://help.aliyun.com/document_detail/172163.html).
4952
+ *
4953
+ * @param request - DescribeServiceAccountRequest
4954
+ * @returns DescribeServiceAccountResponse
4955
+ */
4956
+ async describeServiceAccount(request) {
4957
+ let runtime = new $dara.RuntimeOptions({});
4958
+ return await this.describeServiceAccountWithOptions(request, runtime);
4959
+ }
4807
4960
  /**
4808
4961
  * Queries the storage usage details of an instance, including the total capacity, used space, remaining space, and other information.
4809
4962
  *
@@ -5736,6 +5889,60 @@ class Client extends openapi_core_1.default {
5736
5889
  let runtime = new $dara.RuntimeOptions({});
5737
5890
  return await this.enableSqlAuditWithOptions(request, runtime);
5738
5891
  }
5892
+ /**
5893
+ * Executes a metadata query.
5894
+ *
5895
+ * @remarks
5896
+ * Deletes a custom endpoint of a specified database instance and disables access through the domain name.
5897
+ *
5898
+ * @param request - ExecuteMetaQueryRequest
5899
+ * @param runtime - runtime options for this request RuntimeOptions
5900
+ * @returns ExecuteMetaQueryResponse
5901
+ */
5902
+ async executeMetaQueryWithOptions(request, runtime) {
5903
+ request.validate();
5904
+ let query = {};
5905
+ if (!$dara.isNull(request.DBInstanceName)) {
5906
+ query["DBInstanceName"] = request.DBInstanceName;
5907
+ }
5908
+ if (!$dara.isNull(request.regionId)) {
5909
+ query["RegionId"] = request.regionId;
5910
+ }
5911
+ if (!$dara.isNull(request.sql)) {
5912
+ query["Sql"] = request.sql;
5913
+ }
5914
+ if (!$dara.isNull(request.storageInstId)) {
5915
+ query["StorageInstId"] = request.storageInstId;
5916
+ }
5917
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
5918
+ query: openapi_core_2.OpenApiUtil.query(query),
5919
+ });
5920
+ let params = new openapi_core_2.$OpenApiUtil.Params({
5921
+ action: "ExecuteMetaQuery",
5922
+ version: "2020-02-02",
5923
+ protocol: "HTTPS",
5924
+ pathname: "/",
5925
+ method: "POST",
5926
+ authType: "AK",
5927
+ style: "RPC",
5928
+ reqBodyType: "formData",
5929
+ bodyType: "json",
5930
+ });
5931
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ExecuteMetaQueryResponse({}));
5932
+ }
5933
+ /**
5934
+ * Executes a metadata query.
5935
+ *
5936
+ * @remarks
5937
+ * Deletes a custom endpoint of a specified database instance and disables access through the domain name.
5938
+ *
5939
+ * @param request - ExecuteMetaQueryRequest
5940
+ * @returns ExecuteMetaQueryResponse
5941
+ */
5942
+ async executeMetaQuery(request) {
5943
+ let runtime = new $dara.RuntimeOptions({});
5944
+ return await this.executeMetaQueryWithOptions(request, runtime);
5945
+ }
5739
5946
  /**
5740
5947
  * Retrieves a list of labels.
5741
5948
  *