Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.27
0.2.28
1 change: 1 addition & 0 deletions lib/services/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export declare class Client extends BaseClient {
cube(): any;
ipsecvpn(): any;
pathx(): any;
sandbox(): any;
uaccount(): any;
uai_modelverse(): any;
ubill(): any;
Expand Down
7 changes: 7 additions & 0 deletions lib/services/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const BaseClient = require('../core/client').default;
const CubeClient = require('./cube').default;
const IPSecVPNClient = require('./ipsecvpn').default;
const PathXClient = require('./pathx').default;
const sandboxClient = require('./sandbox').default;
const UAccountClient = require('./uaccount').default;
const UAIModelverseClient = require('./uai_modelverse').default;
const UBillClient = require('./ubill').default;
Expand Down Expand Up @@ -58,6 +59,12 @@ class Client extends BaseClient {
credential: this.credential,
});
}
sandbox() {
return new sandboxClient({
config: this.config,
credential: this.credential,
});
}
uaccount() {
return new UAccountClient({
config: this.config,
Expand Down
93 changes: 93 additions & 0 deletions lib/services/sandbox/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
import Client from '../../core/client';
import { ConfigOptions } from '../../core/config';
import { CredentialOptions } from '../../core/credential';
/**
* This client is used to call actions of **sandbox** service
*/
export default class sandboxClient extends Client {
constructor({ config, credential, }: {
config: ConfigOptions;
credential: CredentialOptions;
});
/**
* GetSandboxSite - 获取沙箱站点
*
* See also: https://docs.ucloud.cn/api/sandbox-api/get_sandbox_site
*/
getSandboxSite(request?: GetSandboxSiteRequest): Promise<GetSandboxSiteResponse>;
}
/**
* GetSandboxSite - 获取沙箱站点
*/
export interface GetSandboxSiteRequest {
/**
* 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
*/
Zone: string;
/**
* 沙箱ID
*/
SandboxID: string;
}
/**
* GetSandboxSite - 获取沙箱站点
*/
export interface GetSandboxSiteResponse {
/**
* 站点
*/
Site: {
/**
* 名称
*/
Name: string;
/**
* 是否就绪
*/
Ready: boolean;
/**
* 站点ID
*/
ID: string;
/**
* 沙箱ID
*/
SandboxID: string;
/**
* 站点访问地址
*/
Host: string;
/**
* 站点Key ID
*/
KeyID: string;
/**
* 更新时间
*/
UpdateTime: number;
/**
* 访问码
*/
AccessCode: string;
/**
* 连接密钥
*/
ConnectKey: string;
/**
* 站点环境变量。格式:key=value
*/
Envs?: string[];
/**
* 自定义域名
*/
CustomDomain?: string;
/**
* 自定义域名签发状态
*/
CustomDomainStatus?: string;
/**
* 自定义域名签发错误信息
*/
CustomDomainError?: string;
};
}
25 changes: 25 additions & 0 deletions lib/services/sandbox/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const client_1 = __importDefault(require("../../core/client"));
const request_1 = __importDefault(require("../../core/request"));
/**
* This client is used to call actions of **sandbox** service
*/
class sandboxClient extends client_1.default {
constructor({ config, credential, }) {
super({ config, credential });
}
/**
* GetSandboxSite - 获取沙箱站点
*
* See also: https://docs.ucloud.cn/api/sandbox-api/get_sandbox_site
*/
getSandboxSite(request) {
const args = Object.assign({ Action: 'GetSandboxSite' }, (request || {}));
return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
}
}
exports.default = sandboxClient;
48 changes: 48 additions & 0 deletions lib/services/uai_modelverse/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@ export interface CreateUMInferAPIKeyRequest {
* ip白名单,换行分割的多组ip。支持IPv4和网段,输入后回车生效,最多100个, 示例:192.168.1.1192.168.1.10-192.168.1.100192.168.1.10/24
*/
IPWhitelist?: string;
/**
* 是否开启推理日志
*/
InferenceLogEnabled?: number;
}
/**
* CreateUMInferAPIKey - 创建apikey
Expand All @@ -185,6 +189,10 @@ export interface CreateUMInferAPIKeyResponse {
* ip白名单,换行分割的多组ip。支持IPv4和网段,输入后回车生效,最多100个, 示例:  192.168.1.1 192.168.1.10-192.168.1.100 192.168.1.10/24
*/
IPWhitelist: string;
/**
* 是否开启推理日志
*/
InferenceLogEnabled: number;
/**
* 资源ID
*/
Expand Down Expand Up @@ -770,6 +778,18 @@ export interface GetUFSquareModelDetailResponse {
* 模型
*/
SquareModel: {
/**
* 关联的 batch 模型广场id
*/
BatchSquareModelId: string;
/**
* 是否关联有可用 batch 模型
*/
IsHasBatch?: boolean;
/**
* 关联的 batch 模型名称
*/
BatchName?: string;
/**
* 制造商
*/
Expand Down Expand Up @@ -1517,6 +1537,14 @@ export interface ListUFSquareModelRequest {
* 语言,数组类型,可选值 ["chinese", "english"]
*/
Language?: string[];
/**
* 制造商,可选值来源于ListUFSquareModelFilters枚举接口。可多选
*/
Manufacturer?: string[];
/**
* 模型特性,可选值来源于ListUFSquareModelFilters枚举接口。可多选
*/
Capabilities?: string[];
}
/**
* ListUFSquareModel - 查询模型广场数据
Expand All @@ -1530,6 +1558,18 @@ export interface ListUFSquareModelResponse {
* 广场模型
*/
SquareModels: {
/**
* 关联的 batch 模型广场id
*/
BatchSquareModelId: string;
/**
* 是否关联有可用 batch 模型
*/
IsHasBatch?: boolean;
/**
* 关联的 batch 模型名称
*/
BatchName?: string;
/**
* 制造商
*/
Expand Down Expand Up @@ -1714,6 +1754,10 @@ export interface ListUMInferAPIKeyResponse {
* ip白名单,换行分割的多组ip。支持IPv4和网段,输入后回车生效,最多100个, 示例:  192.168.1.1 192.168.1.10-192.168.1.100 192.168.1.10/24
*/
IPWhitelist: string;
/**
* 是否开启推理日志
*/
InferenceLogEnabled: number;
/**
* 资源ID
*/
Expand Down Expand Up @@ -2362,6 +2406,10 @@ export interface UpdateUMInferAPIKeyRequest {
* ip白名单,换行分割的多组ip。支持IPv4和网段,输入后回车生效,最多100个, 示例:  192.168.1.1 192.168.1.10-192.168.1.100 192.168.1.10/24
*/
IPWhitelist?: string;
/**
* 是否开启推理日志
*/
InferenceLogEnabled?: number;
}
/**
* UpdateUMInferAPIKey - 更新apikey
Expand Down
Loading