@alicloud/gpdb20160503 3.11.1 → 3.12.1

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 (106) hide show
  1. package/dist/client.d.ts +128 -2
  2. package/dist/client.js +329 -13
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CheckSaasServiceVersionRequest.d.ts +31 -0
  5. package/dist/models/CheckSaasServiceVersionRequest.js +60 -0
  6. package/dist/models/CheckSaasServiceVersionRequest.js.map +1 -0
  7. package/dist/models/CheckSaasServiceVersionResponse.d.ts +19 -0
  8. package/dist/models/CheckSaasServiceVersionResponse.js +69 -0
  9. package/dist/models/CheckSaasServiceVersionResponse.js.map +1 -0
  10. package/dist/models/CheckSaasServiceVersionResponseBody.d.ts +45 -0
  11. package/dist/models/CheckSaasServiceVersionResponseBody.js +64 -0
  12. package/dist/models/CheckSaasServiceVersionResponseBody.js.map +1 -0
  13. package/dist/models/DescribeBranchRequest.d.ts +1 -1
  14. package/dist/models/DescribeBranchResponseBody.d.ts +7 -6
  15. package/dist/models/DescribeBranchResponseBody.js +2 -0
  16. package/dist/models/DescribeBranchResponseBody.js.map +1 -1
  17. package/dist/models/GetApiEndpointsRequest.d.ts +37 -0
  18. package/dist/models/GetApiEndpointsRequest.js +62 -0
  19. package/dist/models/GetApiEndpointsRequest.js.map +1 -0
  20. package/dist/models/GetApiEndpointsResponse.d.ts +19 -0
  21. package/dist/models/GetApiEndpointsResponse.js +69 -0
  22. package/dist/models/GetApiEndpointsResponse.js.map +1 -0
  23. package/dist/models/GetApiEndpointsResponseBody.d.ts +89 -0
  24. package/dist/models/GetApiEndpointsResponseBody.js +92 -0
  25. package/dist/models/GetApiEndpointsResponseBody.js.map +1 -0
  26. package/dist/models/GrantApiKeyRequest.d.ts +48 -0
  27. package/dist/models/GrantApiKeyRequest.js +67 -0
  28. package/dist/models/GrantApiKeyRequest.js.map +1 -0
  29. package/dist/models/GrantApiKeyResponse.d.ts +19 -0
  30. package/dist/models/GrantApiKeyResponse.js +69 -0
  31. package/dist/models/GrantApiKeyResponse.js.map +1 -0
  32. package/dist/models/GrantApiKeyResponseBody.d.ts +21 -0
  33. package/dist/models/GrantApiKeyResponseBody.js +58 -0
  34. package/dist/models/GrantApiKeyResponseBody.js.map +1 -0
  35. package/dist/models/GrantApiKeyShrinkRequest.d.ts +48 -0
  36. package/dist/models/GrantApiKeyShrinkRequest.js +64 -0
  37. package/dist/models/GrantApiKeyShrinkRequest.js.map +1 -0
  38. package/dist/models/ListBranchesRequest.d.ts +5 -5
  39. package/dist/models/ListBranchesResponseBody.d.ts +4 -3
  40. package/dist/models/ListBranchesResponseBody.js +2 -0
  41. package/dist/models/ListBranchesResponseBody.js.map +1 -1
  42. package/dist/models/ListSaasServiceRequest.d.ts +1 -1
  43. package/dist/models/ListSaasServiceResponseBody.d.ts +59 -0
  44. package/dist/models/ListSaasServiceResponseBody.js.map +1 -1
  45. package/dist/models/ModifySaasServiceDeletionProtectionRequest.d.ts +39 -0
  46. package/dist/models/ModifySaasServiceDeletionProtectionRequest.js +62 -0
  47. package/dist/models/ModifySaasServiceDeletionProtectionRequest.js.map +1 -0
  48. package/dist/models/ModifySaasServiceDeletionProtectionResponse.d.ts +19 -0
  49. package/dist/models/ModifySaasServiceDeletionProtectionResponse.js +69 -0
  50. package/dist/models/ModifySaasServiceDeletionProtectionResponse.js.map +1 -0
  51. package/dist/models/ModifySaasServiceDeletionProtectionResponseBody.d.ts +37 -0
  52. package/dist/models/ModifySaasServiceDeletionProtectionResponseBody.js +62 -0
  53. package/dist/models/ModifySaasServiceDeletionProtectionResponseBody.js.map +1 -0
  54. package/dist/models/RevokeApiKeyRequest.d.ts +48 -0
  55. package/dist/models/RevokeApiKeyRequest.js +67 -0
  56. package/dist/models/RevokeApiKeyRequest.js.map +1 -0
  57. package/dist/models/RevokeApiKeyResponse.d.ts +19 -0
  58. package/dist/models/RevokeApiKeyResponse.js +69 -0
  59. package/dist/models/RevokeApiKeyResponse.js.map +1 -0
  60. package/dist/models/RevokeApiKeyResponseBody.d.ts +21 -0
  61. package/dist/models/RevokeApiKeyResponseBody.js +58 -0
  62. package/dist/models/RevokeApiKeyResponseBody.js.map +1 -0
  63. package/dist/models/RevokeApiKeyShrinkRequest.d.ts +48 -0
  64. package/dist/models/RevokeApiKeyShrinkRequest.js +64 -0
  65. package/dist/models/RevokeApiKeyShrinkRequest.js.map +1 -0
  66. package/dist/models/UpdateSaasServiceVersionRequest.d.ts +31 -0
  67. package/dist/models/UpdateSaasServiceVersionRequest.js +60 -0
  68. package/dist/models/UpdateSaasServiceVersionRequest.js.map +1 -0
  69. package/dist/models/UpdateSaasServiceVersionResponse.d.ts +19 -0
  70. package/dist/models/UpdateSaasServiceVersionResponse.js +69 -0
  71. package/dist/models/UpdateSaasServiceVersionResponse.js.map +1 -0
  72. package/dist/models/UpdateSaasServiceVersionResponseBody.d.ts +37 -0
  73. package/dist/models/UpdateSaasServiceVersionResponseBody.js +62 -0
  74. package/dist/models/UpdateSaasServiceVersionResponseBody.js.map +1 -0
  75. package/dist/models/model.d.ts +21 -0
  76. package/dist/models/model.js +63 -21
  77. package/dist/models/model.js.map +1 -1
  78. package/package.json +1 -1
  79. package/src/client.ts +361 -13
  80. package/src/models/CheckSaasServiceVersionRequest.ts +46 -0
  81. package/src/models/CheckSaasServiceVersionResponse.ts +40 -0
  82. package/src/models/CheckSaasServiceVersionResponseBody.ts +64 -0
  83. package/src/models/DescribeBranchRequest.ts +1 -1
  84. package/src/models/DescribeBranchResponseBody.ts +9 -6
  85. package/src/models/GetApiEndpointsRequest.ts +54 -0
  86. package/src/models/GetApiEndpointsResponse.ts +40 -0
  87. package/src/models/GetApiEndpointsResponseBody.ts +127 -0
  88. package/src/models/GrantApiKeyRequest.ts +70 -0
  89. package/src/models/GrantApiKeyResponse.ts +40 -0
  90. package/src/models/GrantApiKeyResponseBody.ts +34 -0
  91. package/src/models/GrantApiKeyShrinkRequest.ts +67 -0
  92. package/src/models/ListBranchesRequest.ts +5 -5
  93. package/src/models/ListBranchesResponseBody.ts +6 -3
  94. package/src/models/ListSaasServiceRequest.ts +1 -1
  95. package/src/models/ListSaasServiceResponseBody.ts +59 -0
  96. package/src/models/ModifySaasServiceDeletionProtectionRequest.ts +56 -0
  97. package/src/models/ModifySaasServiceDeletionProtectionResponse.ts +40 -0
  98. package/src/models/ModifySaasServiceDeletionProtectionResponseBody.ts +54 -0
  99. package/src/models/RevokeApiKeyRequest.ts +70 -0
  100. package/src/models/RevokeApiKeyResponse.ts +40 -0
  101. package/src/models/RevokeApiKeyResponseBody.ts +34 -0
  102. package/src/models/RevokeApiKeyShrinkRequest.ts +67 -0
  103. package/src/models/UpdateSaasServiceVersionRequest.ts +46 -0
  104. package/src/models/UpdateSaasServiceVersionResponse.ts +40 -0
  105. package/src/models/UpdateSaasServiceVersionResponseBody.ts +54 -0
  106. package/src/models/model.ts +21 -0
package/src/client.ts CHANGED
@@ -26,20 +26,20 @@ export default class Client extends OpenApi {
26
26
  'cn-shenzhen-finance-1': "gpdb.aliyuncs.com",
27
27
  'cn-qingdao': "gpdb.aliyuncs.com",
28
28
  'cn-north-2-gov-1': "gpdb.aliyuncs.com",
29
- 'me-east-1': "gpdb.me-east-1.aliyuncs.com",
30
- 'me-central-1': "gpdb.me-central-1.aliyuncs.com",
31
- 'eu-west-1': "gpdb.eu-west-1.aliyuncs.com",
32
- 'eu-central-1': "gpdb.eu-central-1.aliyuncs.com",
33
- 'cn-zhangjiakou': "gpdb.cn-zhangjiakou.aliyuncs.com",
34
29
  'cn-wulanchabu': "gpdb.cn-wulanchabu.aliyuncs.com",
35
- 'cn-huhehaote': "gpdb.cn-huhehaote.aliyuncs.com",
36
- 'cn-chengdu': "gpdb.cn-chengdu.aliyuncs.com",
37
- 'cn-beijing-finance-1': "gpdb.cn-beijing-finance-1.aliyuncs.com",
38
- 'ap-southeast-7': "gpdb.ap-southeast-7.aliyuncs.com",
39
- 'ap-southeast-5': "gpdb.ap-southeast-5.aliyuncs.com",
40
- 'ap-southeast-3': "gpdb.ap-southeast-3.aliyuncs.com",
30
+ 'cn-zhangjiakou': "gpdb.cn-zhangjiakou.aliyuncs.com",
41
31
  'ap-northeast-2': "gpdb.ap-northeast-2.aliyuncs.com",
42
32
  'ap-northeast-1': "gpdb.ap-northeast-1.aliyuncs.com",
33
+ 'cn-chengdu': "gpdb.cn-chengdu.aliyuncs.com",
34
+ 'ap-southeast-3': "gpdb.ap-southeast-3.aliyuncs.com",
35
+ 'cn-huhehaote': "gpdb.cn-huhehaote.aliyuncs.com",
36
+ 'ap-southeast-5': "gpdb.ap-southeast-5.aliyuncs.com",
37
+ 'ap-southeast-7': "gpdb.ap-southeast-7.aliyuncs.com",
38
+ 'eu-west-1': "gpdb.eu-west-1.aliyuncs.com",
39
+ 'eu-central-1': "gpdb.eu-central-1.aliyuncs.com",
40
+ 'me-east-1': "gpdb.me-east-1.aliyuncs.com",
41
+ 'me-central-1': "gpdb.me-central-1.aliyuncs.com",
42
+ 'cn-beijing-finance-1': "gpdb.cn-beijing-finance-1.aliyuncs.com",
43
43
  };
44
44
  this.checkConfig(config);
45
45
  this._endpoint = this.getEndpoint("gpdb", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
@@ -994,6 +994,58 @@ export default class Client extends OpenApi {
994
994
  return await this.checkJDBCSourceNetConnectionWithOptions(request, runtime);
995
995
  }
996
996
 
997
+ /**
998
+ * Checks the available update versions for a SaaS service.
999
+ *
1000
+ * @remarks
1001
+ * Checks the available update versions for a SaaS service.
1002
+ *
1003
+ * @param request - CheckSaasServiceVersionRequest
1004
+ * @param runtime - runtime options for this request RuntimeOptions
1005
+ * @returns CheckSaasServiceVersionResponse
1006
+ */
1007
+ async checkSaasServiceVersionWithOptions(request: $_model.CheckSaasServiceVersionRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CheckSaasServiceVersionResponse> {
1008
+ request.validate();
1009
+ let query = { };
1010
+ if (!$dara.isNull(request.regionId)) {
1011
+ query["RegionId"] = request.regionId;
1012
+ }
1013
+
1014
+ if (!$dara.isNull(request.serviceId)) {
1015
+ query["ServiceId"] = request.serviceId;
1016
+ }
1017
+
1018
+ let req = new $OpenApiUtil.OpenApiRequest({
1019
+ query: OpenApiUtil.query(query),
1020
+ });
1021
+ let params = new $OpenApiUtil.Params({
1022
+ action: "CheckSaasServiceVersion",
1023
+ version: "2016-05-03",
1024
+ protocol: "HTTPS",
1025
+ pathname: "/",
1026
+ method: "POST",
1027
+ authType: "AK",
1028
+ style: "RPC",
1029
+ reqBodyType: "formData",
1030
+ bodyType: "json",
1031
+ });
1032
+ return $dara.cast<$_model.CheckSaasServiceVersionResponse>(await this.callApi(params, req, runtime), new $_model.CheckSaasServiceVersionResponse({}));
1033
+ }
1034
+
1035
+ /**
1036
+ * Checks the available update versions for a SaaS service.
1037
+ *
1038
+ * @remarks
1039
+ * Checks the available update versions for a SaaS service.
1040
+ *
1041
+ * @param request - CheckSaasServiceVersionRequest
1042
+ * @returns CheckSaasServiceVersionResponse
1043
+ */
1044
+ async checkSaasServiceVersion(request: $_model.CheckSaasServiceVersionRequest): Promise<$_model.CheckSaasServiceVersionResponse> {
1045
+ let runtime = new $dara.RuntimeOptions({ });
1046
+ return await this.checkSaasServiceVersionWithOptions(request, runtime);
1047
+ }
1048
+
997
1049
  /**
998
1050
  * Checks whether a service-linked role is created.
999
1051
  *
@@ -10882,6 +10934,62 @@ export default class Client extends OpenApi {
10882
10934
  return await this.getAccountWithOptions(request, runtime);
10883
10935
  }
10884
10936
 
10937
+ /**
10938
+ * Queries API endpoints.
10939
+ *
10940
+ * @remarks
10941
+ * Queries API access endpoints.
10942
+ *
10943
+ * @param request - GetApiEndpointsRequest
10944
+ * @param runtime - runtime options for this request RuntimeOptions
10945
+ * @returns GetApiEndpointsResponse
10946
+ */
10947
+ async getApiEndpointsWithOptions(request: $_model.GetApiEndpointsRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetApiEndpointsResponse> {
10948
+ request.validate();
10949
+ let query = { };
10950
+ if (!$dara.isNull(request.maxResults)) {
10951
+ query["MaxResults"] = request.maxResults;
10952
+ }
10953
+
10954
+ if (!$dara.isNull(request.nextToken)) {
10955
+ query["NextToken"] = request.nextToken;
10956
+ }
10957
+
10958
+ if (!$dara.isNull(request.regionId)) {
10959
+ query["RegionId"] = request.regionId;
10960
+ }
10961
+
10962
+ let req = new $OpenApiUtil.OpenApiRequest({
10963
+ query: OpenApiUtil.query(query),
10964
+ });
10965
+ let params = new $OpenApiUtil.Params({
10966
+ action: "GetApiEndpoints",
10967
+ version: "2016-05-03",
10968
+ protocol: "HTTPS",
10969
+ pathname: "/",
10970
+ method: "POST",
10971
+ authType: "AK",
10972
+ style: "RPC",
10973
+ reqBodyType: "formData",
10974
+ bodyType: "json",
10975
+ });
10976
+ return $dara.cast<$_model.GetApiEndpointsResponse>(await this.callApi(params, req, runtime), new $_model.GetApiEndpointsResponse({}));
10977
+ }
10978
+
10979
+ /**
10980
+ * Queries API endpoints.
10981
+ *
10982
+ * @remarks
10983
+ * Queries API access endpoints.
10984
+ *
10985
+ * @param request - GetApiEndpointsRequest
10986
+ * @returns GetApiEndpointsResponse
10987
+ */
10988
+ async getApiEndpoints(request: $_model.GetApiEndpointsRequest): Promise<$_model.GetApiEndpointsResponse> {
10989
+ let runtime = new $dara.RuntimeOptions({ });
10990
+ return await this.getApiEndpointsWithOptions(request, runtime);
10991
+ }
10992
+
10885
10993
  /**
10886
10994
  * Retrieves the details of an API key.
10887
10995
  *
@@ -11662,6 +11770,72 @@ export default class Client extends OpenApi {
11662
11770
  return await this.getWorkspaceWithOptions(request, runtime);
11663
11771
  }
11664
11772
 
11773
+ /**
11774
+ * Authorizes an API key to access SaaS services.
11775
+ *
11776
+ * @remarks
11777
+ * Retrieves the details of an API key.
11778
+ *
11779
+ * @param tmpReq - GrantApiKeyRequest
11780
+ * @param runtime - runtime options for this request RuntimeOptions
11781
+ * @returns GrantApiKeyResponse
11782
+ */
11783
+ async grantApiKeyWithOptions(tmpReq: $_model.GrantApiKeyRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GrantApiKeyResponse> {
11784
+ tmpReq.validate();
11785
+ let request = new $_model.GrantApiKeyShrinkRequest({ });
11786
+ OpenApiUtil.convert(tmpReq, request);
11787
+ if (!$dara.isNull(tmpReq.serviceIds)) {
11788
+ request.serviceIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.serviceIds, "ServiceIds", "json");
11789
+ }
11790
+
11791
+ let query = { };
11792
+ if (!$dara.isNull(request.keyId)) {
11793
+ query["KeyId"] = request.keyId;
11794
+ }
11795
+
11796
+ if (!$dara.isNull(request.regionId)) {
11797
+ query["RegionId"] = request.regionId;
11798
+ }
11799
+
11800
+ if (!$dara.isNull(request.serviceIdsShrink)) {
11801
+ query["ServiceIds"] = request.serviceIdsShrink;
11802
+ }
11803
+
11804
+ if (!$dara.isNull(request.workspaceId)) {
11805
+ query["WorkspaceId"] = request.workspaceId;
11806
+ }
11807
+
11808
+ let req = new $OpenApiUtil.OpenApiRequest({
11809
+ query: OpenApiUtil.query(query),
11810
+ });
11811
+ let params = new $OpenApiUtil.Params({
11812
+ action: "GrantApiKey",
11813
+ version: "2016-05-03",
11814
+ protocol: "HTTPS",
11815
+ pathname: "/",
11816
+ method: "POST",
11817
+ authType: "AK",
11818
+ style: "RPC",
11819
+ reqBodyType: "formData",
11820
+ bodyType: "json",
11821
+ });
11822
+ return $dara.cast<$_model.GrantApiKeyResponse>(await this.callApi(params, req, runtime), new $_model.GrantApiKeyResponse({}));
11823
+ }
11824
+
11825
+ /**
11826
+ * Authorizes an API key to access SaaS services.
11827
+ *
11828
+ * @remarks
11829
+ * Retrieves the details of an API key.
11830
+ *
11831
+ * @param request - GrantApiKeyRequest
11832
+ * @returns GrantApiKeyResponse
11833
+ */
11834
+ async grantApiKey(request: $_model.GrantApiKeyRequest): Promise<$_model.GrantApiKeyResponse> {
11835
+ let runtime = new $dara.RuntimeOptions({ });
11836
+ return await this.grantApiKeyWithOptions(request, runtime);
11837
+ }
11838
+
11665
11839
  /**
11666
11840
  * Grants vector collection permissions to a namespace.
11667
11841
  *
@@ -12068,7 +12242,7 @@ export default class Client extends OpenApi {
12068
12242
  * Queries the branch list of a Supabase project.
12069
12243
  *
12070
12244
  * @remarks
12071
- * Performs a paged query for all branches under a specified Supabase project. You can filter branches by parent branch, keyword, and sorting criteria. Paging is supported.
12245
+ * This operation performs a paging query of all branches under a specified Supabase project. You can filter results by parent branch, keyword, and sorting conditions.
12072
12246
  *
12073
12247
  * @param request - ListBranchesRequest
12074
12248
  * @param runtime - runtime options for this request RuntimeOptions
@@ -12134,7 +12308,7 @@ export default class Client extends OpenApi {
12134
12308
  * Queries the branch list of a Supabase project.
12135
12309
  *
12136
12310
  * @remarks
12137
- * Performs a paged query for all branches under a specified Supabase project. You can filter branches by parent branch, keyword, and sorting criteria. Paging is supported.
12311
+ * This operation performs a paging query of all branches under a specified Supabase project. You can filter results by parent branch, keyword, and sorting conditions.
12138
12312
  *
12139
12313
  * @param request - ListBranchesRequest
12140
12314
  * @returns ListBranchesResponse
@@ -15220,6 +15394,62 @@ export default class Client extends OpenApi {
15220
15394
  return await this.modifySQLCollectorPolicyWithOptions(request, runtime);
15221
15395
  }
15222
15396
 
15397
+ /**
15398
+ * Modifies the deletion protection setting for a SaaS service.
15399
+ *
15400
+ * @remarks
15401
+ * Modifies the deletion protection setting for a SaaS service.
15402
+ *
15403
+ * @param request - ModifySaasServiceDeletionProtectionRequest
15404
+ * @param runtime - runtime options for this request RuntimeOptions
15405
+ * @returns ModifySaasServiceDeletionProtectionResponse
15406
+ */
15407
+ async modifySaasServiceDeletionProtectionWithOptions(request: $_model.ModifySaasServiceDeletionProtectionRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifySaasServiceDeletionProtectionResponse> {
15408
+ request.validate();
15409
+ let query = { };
15410
+ if (!$dara.isNull(request.deletionProtection)) {
15411
+ query["DeletionProtection"] = request.deletionProtection;
15412
+ }
15413
+
15414
+ if (!$dara.isNull(request.regionId)) {
15415
+ query["RegionId"] = request.regionId;
15416
+ }
15417
+
15418
+ if (!$dara.isNull(request.serviceId)) {
15419
+ query["ServiceId"] = request.serviceId;
15420
+ }
15421
+
15422
+ let req = new $OpenApiUtil.OpenApiRequest({
15423
+ query: OpenApiUtil.query(query),
15424
+ });
15425
+ let params = new $OpenApiUtil.Params({
15426
+ action: "ModifySaasServiceDeletionProtection",
15427
+ version: "2016-05-03",
15428
+ protocol: "HTTPS",
15429
+ pathname: "/",
15430
+ method: "POST",
15431
+ authType: "AK",
15432
+ style: "RPC",
15433
+ reqBodyType: "formData",
15434
+ bodyType: "json",
15435
+ });
15436
+ return $dara.cast<$_model.ModifySaasServiceDeletionProtectionResponse>(await this.callApi(params, req, runtime), new $_model.ModifySaasServiceDeletionProtectionResponse({}));
15437
+ }
15438
+
15439
+ /**
15440
+ * Modifies the deletion protection setting for a SaaS service.
15441
+ *
15442
+ * @remarks
15443
+ * Modifies the deletion protection setting for a SaaS service.
15444
+ *
15445
+ * @param request - ModifySaasServiceDeletionProtectionRequest
15446
+ * @returns ModifySaasServiceDeletionProtectionResponse
15447
+ */
15448
+ async modifySaasServiceDeletionProtection(request: $_model.ModifySaasServiceDeletionProtectionRequest): Promise<$_model.ModifySaasServiceDeletionProtectionResponse> {
15449
+ let runtime = new $dara.RuntimeOptions({ });
15450
+ return await this.modifySaasServiceDeletionProtectionWithOptions(request, runtime);
15451
+ }
15452
+
15223
15453
  /**
15224
15454
  * Modifies the IP address whitelist of an AnalyticDB for PostgreSQL instance.
15225
15455
  *
@@ -17382,6 +17612,72 @@ export default class Client extends OpenApi {
17382
17612
  return await this.resumeSupabaseProjectWithOptions(request, runtime);
17383
17613
  }
17384
17614
 
17615
+ /**
17616
+ * Revokes the access permissions of an API key to SaaS services.
17617
+ *
17618
+ * @remarks
17619
+ * Revokes the access permissions of an API key to SaaS services.
17620
+ *
17621
+ * @param tmpReq - RevokeApiKeyRequest
17622
+ * @param runtime - runtime options for this request RuntimeOptions
17623
+ * @returns RevokeApiKeyResponse
17624
+ */
17625
+ async revokeApiKeyWithOptions(tmpReq: $_model.RevokeApiKeyRequest, runtime: $dara.RuntimeOptions): Promise<$_model.RevokeApiKeyResponse> {
17626
+ tmpReq.validate();
17627
+ let request = new $_model.RevokeApiKeyShrinkRequest({ });
17628
+ OpenApiUtil.convert(tmpReq, request);
17629
+ if (!$dara.isNull(tmpReq.serviceIds)) {
17630
+ request.serviceIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.serviceIds, "ServiceIds", "json");
17631
+ }
17632
+
17633
+ let query = { };
17634
+ if (!$dara.isNull(request.keyId)) {
17635
+ query["KeyId"] = request.keyId;
17636
+ }
17637
+
17638
+ if (!$dara.isNull(request.regionId)) {
17639
+ query["RegionId"] = request.regionId;
17640
+ }
17641
+
17642
+ if (!$dara.isNull(request.serviceIdsShrink)) {
17643
+ query["ServiceIds"] = request.serviceIdsShrink;
17644
+ }
17645
+
17646
+ if (!$dara.isNull(request.workspaceId)) {
17647
+ query["WorkspaceId"] = request.workspaceId;
17648
+ }
17649
+
17650
+ let req = new $OpenApiUtil.OpenApiRequest({
17651
+ query: OpenApiUtil.query(query),
17652
+ });
17653
+ let params = new $OpenApiUtil.Params({
17654
+ action: "RevokeApiKey",
17655
+ version: "2016-05-03",
17656
+ protocol: "HTTPS",
17657
+ pathname: "/",
17658
+ method: "POST",
17659
+ authType: "AK",
17660
+ style: "RPC",
17661
+ reqBodyType: "formData",
17662
+ bodyType: "json",
17663
+ });
17664
+ return $dara.cast<$_model.RevokeApiKeyResponse>(await this.callApi(params, req, runtime), new $_model.RevokeApiKeyResponse({}));
17665
+ }
17666
+
17667
+ /**
17668
+ * Revokes the access permissions of an API key to SaaS services.
17669
+ *
17670
+ * @remarks
17671
+ * Revokes the access permissions of an API key to SaaS services.
17672
+ *
17673
+ * @param request - RevokeApiKeyRequest
17674
+ * @returns RevokeApiKeyResponse
17675
+ */
17676
+ async revokeApiKey(request: $_model.RevokeApiKeyRequest): Promise<$_model.RevokeApiKeyResponse> {
17677
+ let runtime = new $dara.RuntimeOptions({ });
17678
+ return await this.revokeApiKeyWithOptions(request, runtime);
17679
+ }
17680
+
17385
17681
  /**
17386
17682
  * Sets the default branch for a Supabase project.
17387
17683
  *
@@ -18326,6 +18622,58 @@ export default class Client extends OpenApi {
18326
18622
  return await this.updateDBInstancePlanWithOptions(request, runtime);
18327
18623
  }
18328
18624
 
18625
+ /**
18626
+ * Updates the SaaS service version.
18627
+ *
18628
+ * @remarks
18629
+ * Updates the SaaS service version.
18630
+ *
18631
+ * @param request - UpdateSaasServiceVersionRequest
18632
+ * @param runtime - runtime options for this request RuntimeOptions
18633
+ * @returns UpdateSaasServiceVersionResponse
18634
+ */
18635
+ async updateSaasServiceVersionWithOptions(request: $_model.UpdateSaasServiceVersionRequest, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateSaasServiceVersionResponse> {
18636
+ request.validate();
18637
+ let query = { };
18638
+ if (!$dara.isNull(request.regionId)) {
18639
+ query["RegionId"] = request.regionId;
18640
+ }
18641
+
18642
+ if (!$dara.isNull(request.serviceId)) {
18643
+ query["ServiceId"] = request.serviceId;
18644
+ }
18645
+
18646
+ let req = new $OpenApiUtil.OpenApiRequest({
18647
+ query: OpenApiUtil.query(query),
18648
+ });
18649
+ let params = new $OpenApiUtil.Params({
18650
+ action: "UpdateSaasServiceVersion",
18651
+ version: "2016-05-03",
18652
+ protocol: "HTTPS",
18653
+ pathname: "/",
18654
+ method: "POST",
18655
+ authType: "AK",
18656
+ style: "RPC",
18657
+ reqBodyType: "formData",
18658
+ bodyType: "json",
18659
+ });
18660
+ return $dara.cast<$_model.UpdateSaasServiceVersionResponse>(await this.callApi(params, req, runtime), new $_model.UpdateSaasServiceVersionResponse({}));
18661
+ }
18662
+
18663
+ /**
18664
+ * Updates the SaaS service version.
18665
+ *
18666
+ * @remarks
18667
+ * Updates the SaaS service version.
18668
+ *
18669
+ * @param request - UpdateSaasServiceVersionRequest
18670
+ * @returns UpdateSaasServiceVersionResponse
18671
+ */
18672
+ async updateSaasServiceVersion(request: $_model.UpdateSaasServiceVersionRequest): Promise<$_model.UpdateSaasServiceVersionResponse> {
18673
+ let runtime = new $dara.RuntimeOptions({ });
18674
+ return await this.updateSaasServiceVersionWithOptions(request, runtime);
18675
+ }
18676
+
18329
18677
  /**
18330
18678
  * Changes the specifications of an AnalyticDB for PostgreSQL instance.
18331
18679
  *
@@ -0,0 +1,46 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class CheckSaasServiceVersionRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The region ID.
9
+ *
10
+ * @example
11
+ * cn-hangzhou
12
+ */
13
+ regionId?: string;
14
+ /**
15
+ * @remarks
16
+ * The service ID.
17
+ *
18
+ * This parameter is required.
19
+ *
20
+ * @example
21
+ * agdb-xxxxx
22
+ */
23
+ serviceId?: string;
24
+ static names(): { [key: string]: string } {
25
+ return {
26
+ regionId: 'RegionId',
27
+ serviceId: 'ServiceId',
28
+ };
29
+ }
30
+
31
+ static types(): { [key: string]: any } {
32
+ return {
33
+ regionId: 'string',
34
+ serviceId: 'string',
35
+ };
36
+ }
37
+
38
+ validate() {
39
+ super.validate();
40
+ }
41
+
42
+ constructor(map?: { [key: string]: any }) {
43
+ super(map);
44
+ }
45
+ }
46
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { CheckSaasServiceVersionResponseBody } from "./CheckSaasServiceVersionResponseBody";
4
+
5
+
6
+ export class CheckSaasServiceVersionResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: CheckSaasServiceVersionResponseBody;
10
+ static names(): { [key: string]: string } {
11
+ return {
12
+ headers: 'headers',
13
+ statusCode: 'statusCode',
14
+ body: 'body',
15
+ };
16
+ }
17
+
18
+ static types(): { [key: string]: any } {
19
+ return {
20
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
21
+ statusCode: 'number',
22
+ body: CheckSaasServiceVersionResponseBody,
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ if(this.headers) {
28
+ $dara.Model.validateMap(this.headers);
29
+ }
30
+ if(this.body && typeof (this.body as any).validate === 'function') {
31
+ (this.body as any).validate();
32
+ }
33
+ super.validate();
34
+ }
35
+
36
+ constructor(map?: { [key: string]: any }) {
37
+ super(map);
38
+ }
39
+ }
40
+
@@ -0,0 +1,64 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class CheckSaasServiceVersionResponseBody extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * Indicates whether the service can be upgraded.
9
+ *
10
+ * @example
11
+ * true
12
+ */
13
+ canUpgrade?: boolean;
14
+ /**
15
+ * @remarks
16
+ * The returned message.
17
+ *
18
+ * @example
19
+ * Successful
20
+ */
21
+ message?: string;
22
+ /**
23
+ * @remarks
24
+ * The request ID.
25
+ *
26
+ * @example
27
+ * B4CAF581-2AC7-41AD-8940-D56DF7AADF5B
28
+ */
29
+ requestId?: string;
30
+ /**
31
+ * @remarks
32
+ * The service ID.
33
+ *
34
+ * @example
35
+ * agdb-xxxxx
36
+ */
37
+ serviceId?: string;
38
+ static names(): { [key: string]: string } {
39
+ return {
40
+ canUpgrade: 'CanUpgrade',
41
+ message: 'Message',
42
+ requestId: 'RequestId',
43
+ serviceId: 'ServiceId',
44
+ };
45
+ }
46
+
47
+ static types(): { [key: string]: any } {
48
+ return {
49
+ canUpgrade: 'boolean',
50
+ message: 'string',
51
+ requestId: 'string',
52
+ serviceId: 'string',
53
+ };
54
+ }
55
+
56
+ validate() {
57
+ super.validate();
58
+ }
59
+
60
+ constructor(map?: { [key: string]: any }) {
61
+ super(map);
62
+ }
63
+ }
64
+
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class DescribeBranchRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The branch ID, which uniquely identifies a Supabase branch.
8
+ * The branch ID that uniquely identifies a Supabase branch.
9
9
  *
10
10
  * This parameter is required.
11
11
  *
@@ -45,7 +45,7 @@ export class DescribeBranchResponseBodyBranchTags extends $dara.Model {
45
45
  export class DescribeBranchResponseBodyBranch extends $dara.Model {
46
46
  /**
47
47
  * @remarks
48
- * The branch ID, which uniquely identifies a Supabase branch.
48
+ * The branch ID that uniquely identifies a Supabase branch.
49
49
  *
50
50
  * @example
51
51
  * br-xxxx
@@ -113,7 +113,7 @@ export class DescribeBranchResponseBodyBranch extends $dara.Model {
113
113
  isDefault?: boolean;
114
114
  /**
115
115
  * @remarks
116
- * The parent branch ID, which specifies the parent branch for a new branch or a query condition.
116
+ * The parent branch ID, which specifies the parent branch of a new branch or a query condition.
117
117
  *
118
118
  * @example
119
119
  * br-main
@@ -129,7 +129,7 @@ export class DescribeBranchResponseBodyBranch extends $dara.Model {
129
129
  parentBranchName?: string;
130
130
  /**
131
131
  * @remarks
132
- * The LSN of the parent branch at the time this branch was created.
132
+ * The Log Sequence Number (LSN) of the parent branch at the time this branch was created.
133
133
  *
134
134
  * @example
135
135
  * 0/3522648
@@ -139,7 +139,7 @@ export class DescribeBranchResponseBodyBranch extends $dara.Model {
139
139
  * @remarks
140
140
  * The data synchronization point in time selected from the parent branch when this branch was created, in ISO 8601 UTC format.
141
141
  *
142
- * Note:
142
+ * Description:
143
143
  * - For child branches, this value indicates the point in time of the parent branch selected during creation.
144
144
  * - If no parent branch exists, the value 1970-01-01T00:00:00.000Z is returned.
145
145
  *
@@ -149,7 +149,7 @@ export class DescribeBranchResponseBodyBranch extends $dara.Model {
149
149
  parentTimestamp?: string;
150
150
  /**
151
151
  * @remarks
152
- * The Supabase project ID associated with the primary branch.
152
+ * The Supabase project ID that corresponds to the primary branch.
153
153
  *
154
154
  * @example
155
155
  * spb-xxxx
@@ -175,6 +175,7 @@ export class DescribeBranchResponseBodyBranch extends $dara.Model {
175
175
  * Supabase
176
176
  */
177
177
  serviceType?: string;
178
+ spbProjectId?: string;
178
179
  /**
179
180
  * @remarks
180
181
  * The branch status.
@@ -185,7 +186,7 @@ export class DescribeBranchResponseBodyBranch extends $dara.Model {
185
186
  status?: string;
186
187
  /**
187
188
  * @remarks
188
- * The branch tag list.
189
+ * The list of branch tags.
189
190
  */
190
191
  tags?: DescribeBranchResponseBodyBranchTags[];
191
192
  static names(): { [key: string]: string } {
@@ -205,6 +206,7 @@ export class DescribeBranchResponseBodyBranch extends $dara.Model {
205
206
  projectId: 'ProjectId',
206
207
  protected: 'Protected',
207
208
  serviceType: 'ServiceType',
209
+ spbProjectId: 'SpbProjectId',
208
210
  status: 'Status',
209
211
  tags: 'Tags',
210
212
  };
@@ -227,6 +229,7 @@ export class DescribeBranchResponseBodyBranch extends $dara.Model {
227
229
  projectId: 'string',
228
230
  protected: 'boolean',
229
231
  serviceType: 'string',
232
+ spbProjectId: 'string',
230
233
  status: 'string',
231
234
  tags: { 'type': 'array', 'itemType': DescribeBranchResponseBodyBranchTags },
232
235
  };