@alicloud/gpdb20160503 3.11.1 → 3.12.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.
- package/dist/client.d.ts +126 -0
- package/dist/client.js +316 -0
- package/dist/client.js.map +1 -1
- package/dist/models/CheckSaasServiceVersionRequest.d.ts +31 -0
- package/dist/models/CheckSaasServiceVersionRequest.js +60 -0
- package/dist/models/CheckSaasServiceVersionRequest.js.map +1 -0
- package/dist/models/CheckSaasServiceVersionResponse.d.ts +19 -0
- package/dist/models/CheckSaasServiceVersionResponse.js +69 -0
- package/dist/models/CheckSaasServiceVersionResponse.js.map +1 -0
- package/dist/models/CheckSaasServiceVersionResponseBody.d.ts +45 -0
- package/dist/models/CheckSaasServiceVersionResponseBody.js +64 -0
- package/dist/models/CheckSaasServiceVersionResponseBody.js.map +1 -0
- package/dist/models/GetApiEndpointsRequest.d.ts +37 -0
- package/dist/models/GetApiEndpointsRequest.js +62 -0
- package/dist/models/GetApiEndpointsRequest.js.map +1 -0
- package/dist/models/GetApiEndpointsResponse.d.ts +19 -0
- package/dist/models/GetApiEndpointsResponse.js +69 -0
- package/dist/models/GetApiEndpointsResponse.js.map +1 -0
- package/dist/models/GetApiEndpointsResponseBody.d.ts +89 -0
- package/dist/models/GetApiEndpointsResponseBody.js +92 -0
- package/dist/models/GetApiEndpointsResponseBody.js.map +1 -0
- package/dist/models/GrantApiKeyRequest.d.ts +48 -0
- package/dist/models/GrantApiKeyRequest.js +67 -0
- package/dist/models/GrantApiKeyRequest.js.map +1 -0
- package/dist/models/GrantApiKeyResponse.d.ts +19 -0
- package/dist/models/GrantApiKeyResponse.js +69 -0
- package/dist/models/GrantApiKeyResponse.js.map +1 -0
- package/dist/models/GrantApiKeyResponseBody.d.ts +21 -0
- package/dist/models/GrantApiKeyResponseBody.js +58 -0
- package/dist/models/GrantApiKeyResponseBody.js.map +1 -0
- package/dist/models/GrantApiKeyShrinkRequest.d.ts +48 -0
- package/dist/models/GrantApiKeyShrinkRequest.js +64 -0
- package/dist/models/GrantApiKeyShrinkRequest.js.map +1 -0
- package/dist/models/ListSaasServiceRequest.d.ts +1 -1
- package/dist/models/ListSaasServiceResponseBody.d.ts +59 -0
- package/dist/models/ListSaasServiceResponseBody.js.map +1 -1
- package/dist/models/ModifySaasServiceDeletionProtectionRequest.d.ts +39 -0
- package/dist/models/ModifySaasServiceDeletionProtectionRequest.js +62 -0
- package/dist/models/ModifySaasServiceDeletionProtectionRequest.js.map +1 -0
- package/dist/models/ModifySaasServiceDeletionProtectionResponse.d.ts +19 -0
- package/dist/models/ModifySaasServiceDeletionProtectionResponse.js +69 -0
- package/dist/models/ModifySaasServiceDeletionProtectionResponse.js.map +1 -0
- package/dist/models/ModifySaasServiceDeletionProtectionResponseBody.d.ts +37 -0
- package/dist/models/ModifySaasServiceDeletionProtectionResponseBody.js +62 -0
- package/dist/models/ModifySaasServiceDeletionProtectionResponseBody.js.map +1 -0
- package/dist/models/RevokeApiKeyRequest.d.ts +48 -0
- package/dist/models/RevokeApiKeyRequest.js +67 -0
- package/dist/models/RevokeApiKeyRequest.js.map +1 -0
- package/dist/models/RevokeApiKeyResponse.d.ts +19 -0
- package/dist/models/RevokeApiKeyResponse.js +69 -0
- package/dist/models/RevokeApiKeyResponse.js.map +1 -0
- package/dist/models/RevokeApiKeyResponseBody.d.ts +21 -0
- package/dist/models/RevokeApiKeyResponseBody.js +58 -0
- package/dist/models/RevokeApiKeyResponseBody.js.map +1 -0
- package/dist/models/RevokeApiKeyShrinkRequest.d.ts +48 -0
- package/dist/models/RevokeApiKeyShrinkRequest.js +64 -0
- package/dist/models/RevokeApiKeyShrinkRequest.js.map +1 -0
- package/dist/models/UpdateSaasServiceVersionRequest.d.ts +31 -0
- package/dist/models/UpdateSaasServiceVersionRequest.js +60 -0
- package/dist/models/UpdateSaasServiceVersionRequest.js.map +1 -0
- package/dist/models/UpdateSaasServiceVersionResponse.d.ts +19 -0
- package/dist/models/UpdateSaasServiceVersionResponse.js +69 -0
- package/dist/models/UpdateSaasServiceVersionResponse.js.map +1 -0
- package/dist/models/UpdateSaasServiceVersionResponseBody.d.ts +37 -0
- package/dist/models/UpdateSaasServiceVersionResponseBody.js +62 -0
- package/dist/models/UpdateSaasServiceVersionResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +21 -0
- package/dist/models/model.js +63 -21
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +348 -0
- package/src/models/CheckSaasServiceVersionRequest.ts +46 -0
- package/src/models/CheckSaasServiceVersionResponse.ts +40 -0
- package/src/models/CheckSaasServiceVersionResponseBody.ts +64 -0
- package/src/models/GetApiEndpointsRequest.ts +54 -0
- package/src/models/GetApiEndpointsResponse.ts +40 -0
- package/src/models/GetApiEndpointsResponseBody.ts +127 -0
- package/src/models/GrantApiKeyRequest.ts +70 -0
- package/src/models/GrantApiKeyResponse.ts +40 -0
- package/src/models/GrantApiKeyResponseBody.ts +34 -0
- package/src/models/GrantApiKeyShrinkRequest.ts +67 -0
- package/src/models/ListSaasServiceRequest.ts +1 -1
- package/src/models/ListSaasServiceResponseBody.ts +59 -0
- package/src/models/ModifySaasServiceDeletionProtectionRequest.ts +56 -0
- package/src/models/ModifySaasServiceDeletionProtectionResponse.ts +40 -0
- package/src/models/ModifySaasServiceDeletionProtectionResponseBody.ts +54 -0
- package/src/models/RevokeApiKeyRequest.ts +70 -0
- package/src/models/RevokeApiKeyResponse.ts +40 -0
- package/src/models/RevokeApiKeyResponseBody.ts +34 -0
- package/src/models/RevokeApiKeyShrinkRequest.ts +67 -0
- package/src/models/UpdateSaasServiceVersionRequest.ts +46 -0
- package/src/models/UpdateSaasServiceVersionResponse.ts +40 -0
- package/src/models/UpdateSaasServiceVersionResponseBody.ts +54 -0
- package/src/models/model.ts +21 -0
package/src/client.ts
CHANGED
|
@@ -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
|
*
|
|
@@ -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
|
+
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class GetApiEndpointsRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The maximum number of records to return in this query.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* 20
|
|
12
|
+
*/
|
|
13
|
+
maxResults?: number;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The pagination token for the next query.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* caeba0bbb2be03f84eb48b699f0a4883
|
|
20
|
+
*/
|
|
21
|
+
nextToken?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The region ID.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* cn-hangzhou
|
|
28
|
+
*/
|
|
29
|
+
regionId?: string;
|
|
30
|
+
static names(): { [key: string]: string } {
|
|
31
|
+
return {
|
|
32
|
+
maxResults: 'MaxResults',
|
|
33
|
+
nextToken: 'NextToken',
|
|
34
|
+
regionId: 'RegionId',
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
static types(): { [key: string]: any } {
|
|
39
|
+
return {
|
|
40
|
+
maxResults: 'number',
|
|
41
|
+
nextToken: 'string',
|
|
42
|
+
regionId: 'string',
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
validate() {
|
|
47
|
+
super.validate();
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
constructor(map?: { [key: string]: any }) {
|
|
51
|
+
super(map);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { GetApiEndpointsResponseBody } from "./GetApiEndpointsResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class GetApiEndpointsResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: GetApiEndpointsResponseBody;
|
|
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: GetApiEndpointsResponseBody,
|
|
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
|
+
|