@alicloud/gpdb20160503 3.8.0 → 3.10.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 +159 -0
- package/dist/client.js +467 -0
- package/dist/client.js.map +1 -1
- package/dist/models/CreateModelOperatorApiKeyRequest.d.ts +21 -0
- package/dist/models/CreateModelOperatorApiKeyRequest.js +58 -0
- package/dist/models/CreateModelOperatorApiKeyRequest.js.map +1 -0
- package/dist/models/CreateModelOperatorApiKeyResponse.d.ts +19 -0
- package/dist/models/CreateModelOperatorApiKeyResponse.js +69 -0
- package/dist/models/CreateModelOperatorApiKeyResponse.js.map +1 -0
- package/dist/models/CreateModelOperatorApiKeyResponseBody.d.ts +23 -0
- package/dist/models/CreateModelOperatorApiKeyResponseBody.js +60 -0
- package/dist/models/CreateModelOperatorApiKeyResponseBody.js.map +1 -0
- package/dist/models/DescribeModelOperatorApiKeyRequest.d.ts +18 -0
- package/dist/models/DescribeModelOperatorApiKeyRequest.js +58 -0
- package/dist/models/DescribeModelOperatorApiKeyRequest.js.map +1 -0
- package/dist/models/DescribeModelOperatorApiKeyResponse.d.ts +19 -0
- package/dist/models/DescribeModelOperatorApiKeyResponse.js +69 -0
- package/dist/models/DescribeModelOperatorApiKeyResponse.js.map +1 -0
- package/dist/models/DescribeModelOperatorApiKeyResponseBody.d.ts +43 -0
- package/dist/models/DescribeModelOperatorApiKeyResponseBody.js +68 -0
- package/dist/models/DescribeModelOperatorApiKeyResponseBody.js.map +1 -0
- package/dist/models/DescribeModelOperatorUsageRequest.d.ts +36 -0
- package/dist/models/DescribeModelOperatorUsageRequest.js +79 -0
- package/dist/models/DescribeModelOperatorUsageRequest.js.map +1 -0
- package/dist/models/DescribeModelOperatorUsageResponse.d.ts +19 -0
- package/dist/models/DescribeModelOperatorUsageResponse.js +69 -0
- package/dist/models/DescribeModelOperatorUsageResponse.js.map +1 -0
- package/dist/models/DescribeModelOperatorUsageResponseBody.d.ts +98 -0
- package/dist/models/DescribeModelOperatorUsageResponseBody.js +145 -0
- package/dist/models/DescribeModelOperatorUsageResponseBody.js.map +1 -0
- package/dist/models/DescribeModelOperatorUsageShrinkRequest.d.ts +36 -0
- package/dist/models/DescribeModelOperatorUsageShrinkRequest.js +70 -0
- package/dist/models/DescribeModelOperatorUsageShrinkRequest.js.map +1 -0
- package/dist/models/ListModelOperatorApiKeysRequest.d.ts +23 -0
- package/dist/models/ListModelOperatorApiKeysRequest.js +60 -0
- package/dist/models/ListModelOperatorApiKeysRequest.js.map +1 -0
- package/dist/models/ListModelOperatorApiKeysResponse.d.ts +19 -0
- package/dist/models/ListModelOperatorApiKeysResponse.js +69 -0
- package/dist/models/ListModelOperatorApiKeysResponse.js.map +1 -0
- package/dist/models/ListModelOperatorApiKeysResponseBody.d.ts +66 -0
- package/dist/models/ListModelOperatorApiKeysResponseBody.js +94 -0
- package/dist/models/ListModelOperatorApiKeysResponseBody.js.map +1 -0
- package/dist/models/ListModelOperatorServicesRequest.d.ts +23 -0
- package/dist/models/ListModelOperatorServicesRequest.js +60 -0
- package/dist/models/ListModelOperatorServicesRequest.js.map +1 -0
- package/dist/models/ListModelOperatorServicesResponse.d.ts +19 -0
- package/dist/models/ListModelOperatorServicesResponse.js +69 -0
- package/dist/models/ListModelOperatorServicesResponse.js.map +1 -0
- package/dist/models/ListModelOperatorServicesResponseBody.d.ts +51 -0
- package/dist/models/ListModelOperatorServicesResponseBody.js +88 -0
- package/dist/models/ListModelOperatorServicesResponseBody.js.map +1 -0
- package/dist/models/ResetBranchRequest.d.ts +41 -0
- package/dist/models/ResetBranchRequest.js +62 -0
- package/dist/models/ResetBranchRequest.js.map +1 -0
- package/dist/models/ResetBranchResponse.d.ts +19 -0
- package/dist/models/ResetBranchResponse.js +69 -0
- package/dist/models/ResetBranchResponse.js.map +1 -0
- package/dist/models/ResetBranchResponseBody.d.ts +21 -0
- package/dist/models/ResetBranchResponseBody.js +58 -0
- package/dist/models/ResetBranchResponseBody.js.map +1 -0
- package/dist/models/RestoreBranchRequest.d.ts +83 -0
- package/dist/models/RestoreBranchRequest.js +72 -0
- package/dist/models/RestoreBranchRequest.js.map +1 -0
- package/dist/models/RestoreBranchResponse.d.ts +19 -0
- package/dist/models/RestoreBranchResponse.js +69 -0
- package/dist/models/RestoreBranchResponse.js.map +1 -0
- package/dist/models/RestoreBranchResponseBody.d.ts +29 -0
- package/dist/models/RestoreBranchResponseBody.js +60 -0
- package/dist/models/RestoreBranchResponseBody.js.map +1 -0
- package/dist/models/SetAsDefaultBranchRequest.d.ts +41 -0
- package/dist/models/SetAsDefaultBranchRequest.js +62 -0
- package/dist/models/SetAsDefaultBranchRequest.js.map +1 -0
- package/dist/models/SetAsDefaultBranchResponse.d.ts +19 -0
- package/dist/models/SetAsDefaultBranchResponse.js +69 -0
- package/dist/models/SetAsDefaultBranchResponse.js.map +1 -0
- package/dist/models/SetAsDefaultBranchResponseBody.d.ts +21 -0
- package/dist/models/SetAsDefaultBranchResponseBody.js +58 -0
- package/dist/models/SetAsDefaultBranchResponseBody.js.map +1 -0
- package/dist/models/UpdateBranchRequest.d.ts +126 -0
- package/dist/models/UpdateBranchRequest.js +98 -0
- package/dist/models/UpdateBranchRequest.js.map +1 -0
- package/dist/models/UpdateBranchResponse.d.ts +19 -0
- package/dist/models/UpdateBranchResponse.js +69 -0
- package/dist/models/UpdateBranchResponse.js.map +1 -0
- package/dist/models/UpdateBranchResponseBody.d.ts +21 -0
- package/dist/models/UpdateBranchResponseBody.js +58 -0
- package/dist/models/UpdateBranchResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +34 -0
- package/dist/models/model.js +89 -21
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +524 -0
- package/src/models/CreateModelOperatorApiKeyRequest.ts +34 -0
- package/src/models/CreateModelOperatorApiKeyResponse.ts +40 -0
- package/src/models/CreateModelOperatorApiKeyResponseBody.ts +38 -0
- package/src/models/DescribeModelOperatorApiKeyRequest.ts +31 -0
- package/src/models/DescribeModelOperatorApiKeyResponse.ts +40 -0
- package/src/models/DescribeModelOperatorApiKeyResponseBody.ts +66 -0
- package/src/models/DescribeModelOperatorUsageRequest.ts +70 -0
- package/src/models/DescribeModelOperatorUsageResponse.ts +40 -0
- package/src/models/DescribeModelOperatorUsageResponseBody.ts +171 -0
- package/src/models/DescribeModelOperatorUsageShrinkRequest.ts +61 -0
- package/src/models/ListModelOperatorApiKeysRequest.ts +38 -0
- package/src/models/ListModelOperatorApiKeysResponse.ts +40 -0
- package/src/models/ListModelOperatorApiKeysResponseBody.ts +106 -0
- package/src/models/ListModelOperatorServicesRequest.ts +38 -0
- package/src/models/ListModelOperatorServicesResponse.ts +40 -0
- package/src/models/ListModelOperatorServicesResponseBody.ts +85 -0
- package/src/models/ResetBranchRequest.ts +58 -0
- package/src/models/ResetBranchResponse.ts +40 -0
- package/src/models/ResetBranchResponseBody.ts +34 -0
- package/src/models/RestoreBranchRequest.ts +110 -0
- package/src/models/RestoreBranchResponse.ts +40 -0
- package/src/models/RestoreBranchResponseBody.ts +44 -0
- package/src/models/SetAsDefaultBranchRequest.ts +58 -0
- package/src/models/SetAsDefaultBranchResponse.ts +40 -0
- package/src/models/SetAsDefaultBranchResponseBody.ts +34 -0
- package/src/models/UpdateBranchRequest.ts +170 -0
- package/src/models/UpdateBranchResponse.ts +40 -0
- package/src/models/UpdateBranchResponseBody.ts +34 -0
- package/src/models/model.ts +34 -0
package/src/client.ts
CHANGED
|
@@ -2507,6 +2507,48 @@ export default class Client extends OpenApi {
|
|
|
2507
2507
|
return await this.createJDBCDataSourceWithOptions(request, runtime);
|
|
2508
2508
|
}
|
|
2509
2509
|
|
|
2510
|
+
/**
|
|
2511
|
+
* 创建模型算子 API KEY
|
|
2512
|
+
*
|
|
2513
|
+
* @param request - CreateModelOperatorApiKeyRequest
|
|
2514
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2515
|
+
* @returns CreateModelOperatorApiKeyResponse
|
|
2516
|
+
*/
|
|
2517
|
+
async createModelOperatorApiKeyWithOptions(request: $_model.CreateModelOperatorApiKeyRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateModelOperatorApiKeyResponse> {
|
|
2518
|
+
request.validate();
|
|
2519
|
+
let query = { };
|
|
2520
|
+
if (!$dara.isNull(request.description)) {
|
|
2521
|
+
query["Description"] = request.description;
|
|
2522
|
+
}
|
|
2523
|
+
|
|
2524
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2525
|
+
query: OpenApiUtil.query(query),
|
|
2526
|
+
});
|
|
2527
|
+
let params = new $OpenApiUtil.Params({
|
|
2528
|
+
action: "CreateModelOperatorApiKey",
|
|
2529
|
+
version: "2016-05-03",
|
|
2530
|
+
protocol: "HTTPS",
|
|
2531
|
+
pathname: "/",
|
|
2532
|
+
method: "POST",
|
|
2533
|
+
authType: "AK",
|
|
2534
|
+
style: "RPC",
|
|
2535
|
+
reqBodyType: "formData",
|
|
2536
|
+
bodyType: "json",
|
|
2537
|
+
});
|
|
2538
|
+
return $dara.cast<$_model.CreateModelOperatorApiKeyResponse>(await this.callApi(params, req, runtime), new $_model.CreateModelOperatorApiKeyResponse({}));
|
|
2539
|
+
}
|
|
2540
|
+
|
|
2541
|
+
/**
|
|
2542
|
+
* 创建模型算子 API KEY
|
|
2543
|
+
*
|
|
2544
|
+
* @param request - CreateModelOperatorApiKeyRequest
|
|
2545
|
+
* @returns CreateModelOperatorApiKeyResponse
|
|
2546
|
+
*/
|
|
2547
|
+
async createModelOperatorApiKey(request: $_model.CreateModelOperatorApiKeyRequest): Promise<$_model.CreateModelOperatorApiKeyResponse> {
|
|
2548
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2549
|
+
return await this.createModelOperatorApiKeyWithOptions(request, runtime);
|
|
2550
|
+
}
|
|
2551
|
+
|
|
2510
2552
|
/**
|
|
2511
2553
|
* Creates a model service.
|
|
2512
2554
|
*
|
|
@@ -8455,6 +8497,128 @@ export default class Client extends OpenApi {
|
|
|
8455
8497
|
return await this.describeLogBackupsWithOptions(request, runtime);
|
|
8456
8498
|
}
|
|
8457
8499
|
|
|
8500
|
+
/**
|
|
8501
|
+
* 获取模型算子 API KEY 详情
|
|
8502
|
+
*
|
|
8503
|
+
* @param request - DescribeModelOperatorApiKeyRequest
|
|
8504
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
8505
|
+
* @returns DescribeModelOperatorApiKeyResponse
|
|
8506
|
+
*/
|
|
8507
|
+
async describeModelOperatorApiKeyWithOptions(request: $_model.DescribeModelOperatorApiKeyRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeModelOperatorApiKeyResponse> {
|
|
8508
|
+
request.validate();
|
|
8509
|
+
let query = { };
|
|
8510
|
+
if (!$dara.isNull(request.apiKeyId)) {
|
|
8511
|
+
query["ApiKeyId"] = request.apiKeyId;
|
|
8512
|
+
}
|
|
8513
|
+
|
|
8514
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
8515
|
+
query: OpenApiUtil.query(query),
|
|
8516
|
+
});
|
|
8517
|
+
let params = new $OpenApiUtil.Params({
|
|
8518
|
+
action: "DescribeModelOperatorApiKey",
|
|
8519
|
+
version: "2016-05-03",
|
|
8520
|
+
protocol: "HTTPS",
|
|
8521
|
+
pathname: "/",
|
|
8522
|
+
method: "POST",
|
|
8523
|
+
authType: "AK",
|
|
8524
|
+
style: "RPC",
|
|
8525
|
+
reqBodyType: "formData",
|
|
8526
|
+
bodyType: "json",
|
|
8527
|
+
});
|
|
8528
|
+
return $dara.cast<$_model.DescribeModelOperatorApiKeyResponse>(await this.callApi(params, req, runtime), new $_model.DescribeModelOperatorApiKeyResponse({}));
|
|
8529
|
+
}
|
|
8530
|
+
|
|
8531
|
+
/**
|
|
8532
|
+
* 获取模型算子 API KEY 详情
|
|
8533
|
+
*
|
|
8534
|
+
* @param request - DescribeModelOperatorApiKeyRequest
|
|
8535
|
+
* @returns DescribeModelOperatorApiKeyResponse
|
|
8536
|
+
*/
|
|
8537
|
+
async describeModelOperatorApiKey(request: $_model.DescribeModelOperatorApiKeyRequest): Promise<$_model.DescribeModelOperatorApiKeyResponse> {
|
|
8538
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
8539
|
+
return await this.describeModelOperatorApiKeyWithOptions(request, runtime);
|
|
8540
|
+
}
|
|
8541
|
+
|
|
8542
|
+
/**
|
|
8543
|
+
* 获取模型算子用量
|
|
8544
|
+
*
|
|
8545
|
+
* @param tmpReq - DescribeModelOperatorUsageRequest
|
|
8546
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
8547
|
+
* @returns DescribeModelOperatorUsageResponse
|
|
8548
|
+
*/
|
|
8549
|
+
async describeModelOperatorUsageWithOptions(tmpReq: $_model.DescribeModelOperatorUsageRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeModelOperatorUsageResponse> {
|
|
8550
|
+
tmpReq.validate();
|
|
8551
|
+
let request = new $_model.DescribeModelOperatorUsageShrinkRequest({ });
|
|
8552
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
8553
|
+
if (!$dara.isNull(tmpReq.apiKeyIds)) {
|
|
8554
|
+
request.apiKeyIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.apiKeyIds, "ApiKeyIds", "simple");
|
|
8555
|
+
}
|
|
8556
|
+
|
|
8557
|
+
if (!$dara.isNull(tmpReq.keys)) {
|
|
8558
|
+
request.keysShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.keys, "Keys", "simple");
|
|
8559
|
+
}
|
|
8560
|
+
|
|
8561
|
+
if (!$dara.isNull(tmpReq.modelNames)) {
|
|
8562
|
+
request.modelNamesShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.modelNames, "ModelNames", "simple");
|
|
8563
|
+
}
|
|
8564
|
+
|
|
8565
|
+
let query = { };
|
|
8566
|
+
if (!$dara.isNull(request.apiKeyIdsShrink)) {
|
|
8567
|
+
query["ApiKeyIds"] = request.apiKeyIdsShrink;
|
|
8568
|
+
}
|
|
8569
|
+
|
|
8570
|
+
if (!$dara.isNull(request.endTime)) {
|
|
8571
|
+
query["EndTime"] = request.endTime;
|
|
8572
|
+
}
|
|
8573
|
+
|
|
8574
|
+
if (!$dara.isNull(request.groupBy)) {
|
|
8575
|
+
query["GroupBy"] = request.groupBy;
|
|
8576
|
+
}
|
|
8577
|
+
|
|
8578
|
+
if (!$dara.isNull(request.keysShrink)) {
|
|
8579
|
+
query["Keys"] = request.keysShrink;
|
|
8580
|
+
}
|
|
8581
|
+
|
|
8582
|
+
if (!$dara.isNull(request.modelNamesShrink)) {
|
|
8583
|
+
query["ModelNames"] = request.modelNamesShrink;
|
|
8584
|
+
}
|
|
8585
|
+
|
|
8586
|
+
if (!$dara.isNull(request.period)) {
|
|
8587
|
+
query["Period"] = request.period;
|
|
8588
|
+
}
|
|
8589
|
+
|
|
8590
|
+
if (!$dara.isNull(request.startTime)) {
|
|
8591
|
+
query["StartTime"] = request.startTime;
|
|
8592
|
+
}
|
|
8593
|
+
|
|
8594
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
8595
|
+
query: OpenApiUtil.query(query),
|
|
8596
|
+
});
|
|
8597
|
+
let params = new $OpenApiUtil.Params({
|
|
8598
|
+
action: "DescribeModelOperatorUsage",
|
|
8599
|
+
version: "2016-05-03",
|
|
8600
|
+
protocol: "HTTPS",
|
|
8601
|
+
pathname: "/",
|
|
8602
|
+
method: "POST",
|
|
8603
|
+
authType: "AK",
|
|
8604
|
+
style: "RPC",
|
|
8605
|
+
reqBodyType: "formData",
|
|
8606
|
+
bodyType: "json",
|
|
8607
|
+
});
|
|
8608
|
+
return $dara.cast<$_model.DescribeModelOperatorUsageResponse>(await this.callApi(params, req, runtime), new $_model.DescribeModelOperatorUsageResponse({}));
|
|
8609
|
+
}
|
|
8610
|
+
|
|
8611
|
+
/**
|
|
8612
|
+
* 获取模型算子用量
|
|
8613
|
+
*
|
|
8614
|
+
* @param request - DescribeModelOperatorUsageRequest
|
|
8615
|
+
* @returns DescribeModelOperatorUsageResponse
|
|
8616
|
+
*/
|
|
8617
|
+
async describeModelOperatorUsage(request: $_model.DescribeModelOperatorUsageRequest): Promise<$_model.DescribeModelOperatorUsageResponse> {
|
|
8618
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
8619
|
+
return await this.describeModelOperatorUsageWithOptions(request, runtime);
|
|
8620
|
+
}
|
|
8621
|
+
|
|
8458
8622
|
/**
|
|
8459
8623
|
* Queries the information about a model service.
|
|
8460
8624
|
*
|
|
@@ -12343,6 +12507,98 @@ export default class Client extends OpenApi {
|
|
|
12343
12507
|
return await this.listInstanceExtensionsWithOptions(request, runtime);
|
|
12344
12508
|
}
|
|
12345
12509
|
|
|
12510
|
+
/**
|
|
12511
|
+
* 获取模型算子 API KEY 列表
|
|
12512
|
+
*
|
|
12513
|
+
* @param request - ListModelOperatorApiKeysRequest
|
|
12514
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
12515
|
+
* @returns ListModelOperatorApiKeysResponse
|
|
12516
|
+
*/
|
|
12517
|
+
async listModelOperatorApiKeysWithOptions(request: $_model.ListModelOperatorApiKeysRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListModelOperatorApiKeysResponse> {
|
|
12518
|
+
request.validate();
|
|
12519
|
+
let query = { };
|
|
12520
|
+
if (!$dara.isNull(request.pageNumber)) {
|
|
12521
|
+
query["PageNumber"] = request.pageNumber;
|
|
12522
|
+
}
|
|
12523
|
+
|
|
12524
|
+
if (!$dara.isNull(request.pageSize)) {
|
|
12525
|
+
query["PageSize"] = request.pageSize;
|
|
12526
|
+
}
|
|
12527
|
+
|
|
12528
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
12529
|
+
query: OpenApiUtil.query(query),
|
|
12530
|
+
});
|
|
12531
|
+
let params = new $OpenApiUtil.Params({
|
|
12532
|
+
action: "ListModelOperatorApiKeys",
|
|
12533
|
+
version: "2016-05-03",
|
|
12534
|
+
protocol: "HTTPS",
|
|
12535
|
+
pathname: "/",
|
|
12536
|
+
method: "POST",
|
|
12537
|
+
authType: "AK",
|
|
12538
|
+
style: "RPC",
|
|
12539
|
+
reqBodyType: "formData",
|
|
12540
|
+
bodyType: "json",
|
|
12541
|
+
});
|
|
12542
|
+
return $dara.cast<$_model.ListModelOperatorApiKeysResponse>(await this.callApi(params, req, runtime), new $_model.ListModelOperatorApiKeysResponse({}));
|
|
12543
|
+
}
|
|
12544
|
+
|
|
12545
|
+
/**
|
|
12546
|
+
* 获取模型算子 API KEY 列表
|
|
12547
|
+
*
|
|
12548
|
+
* @param request - ListModelOperatorApiKeysRequest
|
|
12549
|
+
* @returns ListModelOperatorApiKeysResponse
|
|
12550
|
+
*/
|
|
12551
|
+
async listModelOperatorApiKeys(request: $_model.ListModelOperatorApiKeysRequest): Promise<$_model.ListModelOperatorApiKeysResponse> {
|
|
12552
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
12553
|
+
return await this.listModelOperatorApiKeysWithOptions(request, runtime);
|
|
12554
|
+
}
|
|
12555
|
+
|
|
12556
|
+
/**
|
|
12557
|
+
* 获取模型服务列表
|
|
12558
|
+
*
|
|
12559
|
+
* @param request - ListModelOperatorServicesRequest
|
|
12560
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
12561
|
+
* @returns ListModelOperatorServicesResponse
|
|
12562
|
+
*/
|
|
12563
|
+
async listModelOperatorServicesWithOptions(request: $_model.ListModelOperatorServicesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListModelOperatorServicesResponse> {
|
|
12564
|
+
request.validate();
|
|
12565
|
+
let query = { };
|
|
12566
|
+
if (!$dara.isNull(request.pageNumber)) {
|
|
12567
|
+
query["PageNumber"] = request.pageNumber;
|
|
12568
|
+
}
|
|
12569
|
+
|
|
12570
|
+
if (!$dara.isNull(request.pageSize)) {
|
|
12571
|
+
query["PageSize"] = request.pageSize;
|
|
12572
|
+
}
|
|
12573
|
+
|
|
12574
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
12575
|
+
query: OpenApiUtil.query(query),
|
|
12576
|
+
});
|
|
12577
|
+
let params = new $OpenApiUtil.Params({
|
|
12578
|
+
action: "ListModelOperatorServices",
|
|
12579
|
+
version: "2016-05-03",
|
|
12580
|
+
protocol: "HTTPS",
|
|
12581
|
+
pathname: "/",
|
|
12582
|
+
method: "POST",
|
|
12583
|
+
authType: "AK",
|
|
12584
|
+
style: "RPC",
|
|
12585
|
+
reqBodyType: "formData",
|
|
12586
|
+
bodyType: "json",
|
|
12587
|
+
});
|
|
12588
|
+
return $dara.cast<$_model.ListModelOperatorServicesResponse>(await this.callApi(params, req, runtime), new $_model.ListModelOperatorServicesResponse({}));
|
|
12589
|
+
}
|
|
12590
|
+
|
|
12591
|
+
/**
|
|
12592
|
+
* 获取模型服务列表
|
|
12593
|
+
*
|
|
12594
|
+
* @param request - ListModelOperatorServicesRequest
|
|
12595
|
+
* @returns ListModelOperatorServicesResponse
|
|
12596
|
+
*/
|
|
12597
|
+
async listModelOperatorServices(request: $_model.ListModelOperatorServicesRequest): Promise<$_model.ListModelOperatorServicesResponse> {
|
|
12598
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
12599
|
+
return await this.listModelOperatorServicesWithOptions(request, runtime);
|
|
12600
|
+
}
|
|
12601
|
+
|
|
12346
12602
|
/**
|
|
12347
12603
|
* Queries all model services.
|
|
12348
12604
|
*
|
|
@@ -16199,6 +16455,62 @@ export default class Client extends OpenApi {
|
|
|
16199
16455
|
return await this.resetAccountPasswordWithOptions(request, runtime);
|
|
16200
16456
|
}
|
|
16201
16457
|
|
|
16458
|
+
/**
|
|
16459
|
+
* Resets a Supabase branch.
|
|
16460
|
+
*
|
|
16461
|
+
* @remarks
|
|
16462
|
+
* Resets a child branch to the latest data of its parent branch. The main branch, branches without a parent branch, branches with child branches, and protected branches cannot be reset.
|
|
16463
|
+
*
|
|
16464
|
+
* @param request - ResetBranchRequest
|
|
16465
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
16466
|
+
* @returns ResetBranchResponse
|
|
16467
|
+
*/
|
|
16468
|
+
async resetBranchWithOptions(request: $_model.ResetBranchRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ResetBranchResponse> {
|
|
16469
|
+
request.validate();
|
|
16470
|
+
let query = { };
|
|
16471
|
+
if (!$dara.isNull(request.branchId)) {
|
|
16472
|
+
query["BranchId"] = request.branchId;
|
|
16473
|
+
}
|
|
16474
|
+
|
|
16475
|
+
if (!$dara.isNull(request.projectId)) {
|
|
16476
|
+
query["ProjectId"] = request.projectId;
|
|
16477
|
+
}
|
|
16478
|
+
|
|
16479
|
+
if (!$dara.isNull(request.regionId)) {
|
|
16480
|
+
query["RegionId"] = request.regionId;
|
|
16481
|
+
}
|
|
16482
|
+
|
|
16483
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
16484
|
+
query: OpenApiUtil.query(query),
|
|
16485
|
+
});
|
|
16486
|
+
let params = new $OpenApiUtil.Params({
|
|
16487
|
+
action: "ResetBranch",
|
|
16488
|
+
version: "2016-05-03",
|
|
16489
|
+
protocol: "HTTPS",
|
|
16490
|
+
pathname: "/",
|
|
16491
|
+
method: "POST",
|
|
16492
|
+
authType: "AK",
|
|
16493
|
+
style: "RPC",
|
|
16494
|
+
reqBodyType: "formData",
|
|
16495
|
+
bodyType: "json",
|
|
16496
|
+
});
|
|
16497
|
+
return $dara.cast<$_model.ResetBranchResponse>(await this.callApi(params, req, runtime), new $_model.ResetBranchResponse({}));
|
|
16498
|
+
}
|
|
16499
|
+
|
|
16500
|
+
/**
|
|
16501
|
+
* Resets a Supabase branch.
|
|
16502
|
+
*
|
|
16503
|
+
* @remarks
|
|
16504
|
+
* Resets a child branch to the latest data of its parent branch. The main branch, branches without a parent branch, branches with child branches, and protected branches cannot be reset.
|
|
16505
|
+
*
|
|
16506
|
+
* @param request - ResetBranchRequest
|
|
16507
|
+
* @returns ResetBranchResponse
|
|
16508
|
+
*/
|
|
16509
|
+
async resetBranch(request: $_model.ResetBranchRequest): Promise<$_model.ResetBranchResponse> {
|
|
16510
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
16511
|
+
return await this.resetBranchWithOptions(request, runtime);
|
|
16512
|
+
}
|
|
16513
|
+
|
|
16202
16514
|
/**
|
|
16203
16515
|
* Resets the IMV statistics.
|
|
16204
16516
|
*
|
|
@@ -16409,6 +16721,82 @@ export default class Client extends OpenApi {
|
|
|
16409
16721
|
return await this.restartSupabaseProjectWithOptions(request, runtime);
|
|
16410
16722
|
}
|
|
16411
16723
|
|
|
16724
|
+
/**
|
|
16725
|
+
* Recovers a Supabase branch.
|
|
16726
|
+
*
|
|
16727
|
+
* @remarks
|
|
16728
|
+
* Recovers a target branch to a specified point in time or LSN of the source branch. Before recovery, you can specify a backup branch name to preserve the original target branch.
|
|
16729
|
+
*
|
|
16730
|
+
* @param request - RestoreBranchRequest
|
|
16731
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
16732
|
+
* @returns RestoreBranchResponse
|
|
16733
|
+
*/
|
|
16734
|
+
async restoreBranchWithOptions(request: $_model.RestoreBranchRequest, runtime: $dara.RuntimeOptions): Promise<$_model.RestoreBranchResponse> {
|
|
16735
|
+
request.validate();
|
|
16736
|
+
let query = { };
|
|
16737
|
+
if (!$dara.isNull(request.branchId)) {
|
|
16738
|
+
query["BranchId"] = request.branchId;
|
|
16739
|
+
}
|
|
16740
|
+
|
|
16741
|
+
if (!$dara.isNull(request.clientToken)) {
|
|
16742
|
+
query["ClientToken"] = request.clientToken;
|
|
16743
|
+
}
|
|
16744
|
+
|
|
16745
|
+
if (!$dara.isNull(request.preserveUnderName)) {
|
|
16746
|
+
query["PreserveUnderName"] = request.preserveUnderName;
|
|
16747
|
+
}
|
|
16748
|
+
|
|
16749
|
+
if (!$dara.isNull(request.projectId)) {
|
|
16750
|
+
query["ProjectId"] = request.projectId;
|
|
16751
|
+
}
|
|
16752
|
+
|
|
16753
|
+
if (!$dara.isNull(request.regionId)) {
|
|
16754
|
+
query["RegionId"] = request.regionId;
|
|
16755
|
+
}
|
|
16756
|
+
|
|
16757
|
+
if (!$dara.isNull(request.sourceBranchId)) {
|
|
16758
|
+
query["SourceBranchId"] = request.sourceBranchId;
|
|
16759
|
+
}
|
|
16760
|
+
|
|
16761
|
+
if (!$dara.isNull(request.sourceBranchLsn)) {
|
|
16762
|
+
query["SourceBranchLsn"] = request.sourceBranchLsn;
|
|
16763
|
+
}
|
|
16764
|
+
|
|
16765
|
+
if (!$dara.isNull(request.sourceBranchTimestamp)) {
|
|
16766
|
+
query["SourceBranchTimestamp"] = request.sourceBranchTimestamp;
|
|
16767
|
+
}
|
|
16768
|
+
|
|
16769
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
16770
|
+
query: OpenApiUtil.query(query),
|
|
16771
|
+
});
|
|
16772
|
+
let params = new $OpenApiUtil.Params({
|
|
16773
|
+
action: "RestoreBranch",
|
|
16774
|
+
version: "2016-05-03",
|
|
16775
|
+
protocol: "HTTPS",
|
|
16776
|
+
pathname: "/",
|
|
16777
|
+
method: "POST",
|
|
16778
|
+
authType: "AK",
|
|
16779
|
+
style: "RPC",
|
|
16780
|
+
reqBodyType: "formData",
|
|
16781
|
+
bodyType: "json",
|
|
16782
|
+
});
|
|
16783
|
+
return $dara.cast<$_model.RestoreBranchResponse>(await this.callApi(params, req, runtime), new $_model.RestoreBranchResponse({}));
|
|
16784
|
+
}
|
|
16785
|
+
|
|
16786
|
+
/**
|
|
16787
|
+
* Recovers a Supabase branch.
|
|
16788
|
+
*
|
|
16789
|
+
* @remarks
|
|
16790
|
+
* Recovers a target branch to a specified point in time or LSN of the source branch. Before recovery, you can specify a backup branch name to preserve the original target branch.
|
|
16791
|
+
*
|
|
16792
|
+
* @param request - RestoreBranchRequest
|
|
16793
|
+
* @returns RestoreBranchResponse
|
|
16794
|
+
*/
|
|
16795
|
+
async restoreBranch(request: $_model.RestoreBranchRequest): Promise<$_model.RestoreBranchResponse> {
|
|
16796
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
16797
|
+
return await this.restoreBranchWithOptions(request, runtime);
|
|
16798
|
+
}
|
|
16799
|
+
|
|
16412
16800
|
/**
|
|
16413
16801
|
* Restores a Supabase project from a snapshot.
|
|
16414
16802
|
*
|
|
@@ -16691,6 +17079,62 @@ export default class Client extends OpenApi {
|
|
|
16691
17079
|
return await this.resumeSupabaseProjectWithOptions(request, runtime);
|
|
16692
17080
|
}
|
|
16693
17081
|
|
|
17082
|
+
/**
|
|
17083
|
+
* Sets the default branch for a Supabase project.
|
|
17084
|
+
*
|
|
17085
|
+
* @remarks
|
|
17086
|
+
* Sets a specified branch as the default branch for a Supabase project.
|
|
17087
|
+
*
|
|
17088
|
+
* @param request - SetAsDefaultBranchRequest
|
|
17089
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
17090
|
+
* @returns SetAsDefaultBranchResponse
|
|
17091
|
+
*/
|
|
17092
|
+
async setAsDefaultBranchWithOptions(request: $_model.SetAsDefaultBranchRequest, runtime: $dara.RuntimeOptions): Promise<$_model.SetAsDefaultBranchResponse> {
|
|
17093
|
+
request.validate();
|
|
17094
|
+
let query = { };
|
|
17095
|
+
if (!$dara.isNull(request.branchId)) {
|
|
17096
|
+
query["BranchId"] = request.branchId;
|
|
17097
|
+
}
|
|
17098
|
+
|
|
17099
|
+
if (!$dara.isNull(request.projectId)) {
|
|
17100
|
+
query["ProjectId"] = request.projectId;
|
|
17101
|
+
}
|
|
17102
|
+
|
|
17103
|
+
if (!$dara.isNull(request.regionId)) {
|
|
17104
|
+
query["RegionId"] = request.regionId;
|
|
17105
|
+
}
|
|
17106
|
+
|
|
17107
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
17108
|
+
query: OpenApiUtil.query(query),
|
|
17109
|
+
});
|
|
17110
|
+
let params = new $OpenApiUtil.Params({
|
|
17111
|
+
action: "SetAsDefaultBranch",
|
|
17112
|
+
version: "2016-05-03",
|
|
17113
|
+
protocol: "HTTPS",
|
|
17114
|
+
pathname: "/",
|
|
17115
|
+
method: "POST",
|
|
17116
|
+
authType: "AK",
|
|
17117
|
+
style: "RPC",
|
|
17118
|
+
reqBodyType: "formData",
|
|
17119
|
+
bodyType: "json",
|
|
17120
|
+
});
|
|
17121
|
+
return $dara.cast<$_model.SetAsDefaultBranchResponse>(await this.callApi(params, req, runtime), new $_model.SetAsDefaultBranchResponse({}));
|
|
17122
|
+
}
|
|
17123
|
+
|
|
17124
|
+
/**
|
|
17125
|
+
* Sets the default branch for a Supabase project.
|
|
17126
|
+
*
|
|
17127
|
+
* @remarks
|
|
17128
|
+
* Sets a specified branch as the default branch for a Supabase project.
|
|
17129
|
+
*
|
|
17130
|
+
* @param request - SetAsDefaultBranchRequest
|
|
17131
|
+
* @returns SetAsDefaultBranchResponse
|
|
17132
|
+
*/
|
|
17133
|
+
async setAsDefaultBranch(request: $_model.SetAsDefaultBranchRequest): Promise<$_model.SetAsDefaultBranchResponse> {
|
|
17134
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
17135
|
+
return await this.setAsDefaultBranchWithOptions(request, runtime);
|
|
17136
|
+
}
|
|
17137
|
+
|
|
16694
17138
|
/**
|
|
16695
17139
|
* Enables or disables a plan for an AnalyticDB for PostgreSQL instance.
|
|
16696
17140
|
*
|
|
@@ -17331,6 +17775,86 @@ export default class Client extends OpenApi {
|
|
|
17331
17775
|
return await this.untagSupabaseProjectWithOptions(request, runtime);
|
|
17332
17776
|
}
|
|
17333
17777
|
|
|
17778
|
+
/**
|
|
17779
|
+
* Updates Supabase branch information.
|
|
17780
|
+
*
|
|
17781
|
+
* @remarks
|
|
17782
|
+
* This operation modifies the branch name, description, tags, protection status, and automatic deletion time upon expiration.
|
|
17783
|
+
*
|
|
17784
|
+
* @param request - UpdateBranchRequest
|
|
17785
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
17786
|
+
* @returns UpdateBranchResponse
|
|
17787
|
+
*/
|
|
17788
|
+
async updateBranchWithOptions(request: $_model.UpdateBranchRequest, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateBranchResponse> {
|
|
17789
|
+
request.validate();
|
|
17790
|
+
let query = { };
|
|
17791
|
+
if (!$dara.isNull(request.branchId)) {
|
|
17792
|
+
query["BranchId"] = request.branchId;
|
|
17793
|
+
}
|
|
17794
|
+
|
|
17795
|
+
if (!$dara.isNull(request.branchName)) {
|
|
17796
|
+
query["BranchName"] = request.branchName;
|
|
17797
|
+
}
|
|
17798
|
+
|
|
17799
|
+
if (!$dara.isNull(request.clearExpiresAt)) {
|
|
17800
|
+
query["ClearExpiresAt"] = request.clearExpiresAt;
|
|
17801
|
+
}
|
|
17802
|
+
|
|
17803
|
+
if (!$dara.isNull(request.description)) {
|
|
17804
|
+
query["Description"] = request.description;
|
|
17805
|
+
}
|
|
17806
|
+
|
|
17807
|
+
if (!$dara.isNull(request.expiresAt)) {
|
|
17808
|
+
query["ExpiresAt"] = request.expiresAt;
|
|
17809
|
+
}
|
|
17810
|
+
|
|
17811
|
+
if (!$dara.isNull(request.projectId)) {
|
|
17812
|
+
query["ProjectId"] = request.projectId;
|
|
17813
|
+
}
|
|
17814
|
+
|
|
17815
|
+
if (!$dara.isNull(request.protected)) {
|
|
17816
|
+
query["Protected"] = request.protected;
|
|
17817
|
+
}
|
|
17818
|
+
|
|
17819
|
+
if (!$dara.isNull(request.regionId)) {
|
|
17820
|
+
query["RegionId"] = request.regionId;
|
|
17821
|
+
}
|
|
17822
|
+
|
|
17823
|
+
if (!$dara.isNull(request.tag)) {
|
|
17824
|
+
query["Tag"] = request.tag;
|
|
17825
|
+
}
|
|
17826
|
+
|
|
17827
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
17828
|
+
query: OpenApiUtil.query(query),
|
|
17829
|
+
});
|
|
17830
|
+
let params = new $OpenApiUtil.Params({
|
|
17831
|
+
action: "UpdateBranch",
|
|
17832
|
+
version: "2016-05-03",
|
|
17833
|
+
protocol: "HTTPS",
|
|
17834
|
+
pathname: "/",
|
|
17835
|
+
method: "POST",
|
|
17836
|
+
authType: "AK",
|
|
17837
|
+
style: "RPC",
|
|
17838
|
+
reqBodyType: "formData",
|
|
17839
|
+
bodyType: "json",
|
|
17840
|
+
});
|
|
17841
|
+
return $dara.cast<$_model.UpdateBranchResponse>(await this.callApi(params, req, runtime), new $_model.UpdateBranchResponse({}));
|
|
17842
|
+
}
|
|
17843
|
+
|
|
17844
|
+
/**
|
|
17845
|
+
* Updates Supabase branch information.
|
|
17846
|
+
*
|
|
17847
|
+
* @remarks
|
|
17848
|
+
* This operation modifies the branch name, description, tags, protection status, and automatic deletion time upon expiration.
|
|
17849
|
+
*
|
|
17850
|
+
* @param request - UpdateBranchRequest
|
|
17851
|
+
* @returns UpdateBranchResponse
|
|
17852
|
+
*/
|
|
17853
|
+
async updateBranch(request: $_model.UpdateBranchRequest): Promise<$_model.UpdateBranchResponse> {
|
|
17854
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
17855
|
+
return await this.updateBranchWithOptions(request, runtime);
|
|
17856
|
+
}
|
|
17857
|
+
|
|
17334
17858
|
/**
|
|
17335
17859
|
* Update Metadata of Collection Data
|
|
17336
17860
|
*
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CreateModelOperatorApiKeyRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* This parameter is required.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* test-apikey
|
|
12
|
+
*/
|
|
13
|
+
description?: string;
|
|
14
|
+
static names(): { [key: string]: string } {
|
|
15
|
+
return {
|
|
16
|
+
description: 'Description',
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
static types(): { [key: string]: any } {
|
|
21
|
+
return {
|
|
22
|
+
description: 'string',
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
super.validate();
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
constructor(map?: { [key: string]: any }) {
|
|
31
|
+
super(map);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { CreateModelOperatorApiKeyResponseBody } from "./CreateModelOperatorApiKeyResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class CreateModelOperatorApiKeyResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: CreateModelOperatorApiKeyResponseBody;
|
|
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: CreateModelOperatorApiKeyResponseBody,
|
|
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,38 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CreateModelOperatorApiKeyResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* 1
|
|
9
|
+
*/
|
|
10
|
+
apiKeyId?: number;
|
|
11
|
+
/**
|
|
12
|
+
* @example
|
|
13
|
+
* ABB39CC3-4488-4857-905D-2E4A051D0521
|
|
14
|
+
*/
|
|
15
|
+
requestId?: string;
|
|
16
|
+
static names(): { [key: string]: string } {
|
|
17
|
+
return {
|
|
18
|
+
apiKeyId: 'ApiKeyId',
|
|
19
|
+
requestId: 'RequestId',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
static types(): { [key: string]: any } {
|
|
24
|
+
return {
|
|
25
|
+
apiKeyId: 'number',
|
|
26
|
+
requestId: 'string',
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
validate() {
|
|
31
|
+
super.validate();
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
constructor(map?: { [key: string]: any }) {
|
|
35
|
+
super(map);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|