@daocloud-proto/kant
Advanced tools
Comparing version 0.13.0-alpah2 to 0.13.0-rc
@@ -150,11 +150,5 @@ /* eslint-disable */ | ||
} | ||
static ListWorkspaceVisitorClusters(req: KantIoApiCoreV1alpha1Workspaces.WorkspacesClusterListRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1alpha1Workspaces.WorkspacesClusterListResponse> { | ||
return fm.fetchReq<KantIoApiCoreV1alpha1Workspaces.WorkspacesClusterListRequest, KantIoApiCoreV1alpha1Workspaces.WorkspacesClusterListResponse>(`/apis/core.kant.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"}) | ||
} | ||
static ListVisitorNamespaces(req: KantIoApiCoreV1alpha1Workspaces.WorkspacesNamespaceListRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1alpha1Workspaces.WorkspacesNamespaceListResponse> { | ||
return fm.fetchReq<KantIoApiCoreV1alpha1Workspaces.WorkspacesNamespaceListRequest, KantIoApiCoreV1alpha1Workspaces.WorkspacesNamespaceListResponse>(`/apis/core.kant.io/v1alpha1/workspaces/clusters/${req["cluster"]}/namespaces?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"}) | ||
} | ||
static ListWorkspaceVisitorNamespaces(req: KantIoApiCoreV1alpha1Workspaces.WorkspacesNamespaceListRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1alpha1Workspaces.WorkspacesNamespaceListResponse> { | ||
return fm.fetchReq<KantIoApiCoreV1alpha1Workspaces.WorkspacesNamespaceListRequest, KantIoApiCoreV1alpha1Workspaces.WorkspacesNamespaceListResponse>(`/apis/core.kant.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["cluster"]}/namespaces?${fm.renderURLSearchParams(req, ["workspaceId", "cluster"])}`, {...initReq, method: "GET"}) | ||
} | ||
static ListVisibleWorkspaces(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<KantIoApiCoreV1alpha1Workspaces.ListWorkspacesResponse> { | ||
@@ -228,7 +222,7 @@ return fm.fetchReq<GoogleProtobufEmpty.Empty, KantIoApiCoreV1alpha1Workspaces.ListWorkspacesResponse>(`/apis/core.kant.io/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"}) | ||
} | ||
static GetCloudShell(req: KpandaIoApiCloudshellV1alpha1Cloudshell.GetorDeleteCloudShellRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCloudshellV1alpha1Cloudshell.CloudShell> { | ||
return fm.fetchReq<KpandaIoApiCloudshellV1alpha1Cloudshell.GetorDeleteCloudShellRequest, KpandaIoApiCloudshellV1alpha1Cloudshell.CloudShell>(`/apis/core.kant.io/v1alpha1/cloudshells/${req["name"]}?${fm.renderURLSearchParams(req, ["name"])}`, {...initReq, method: "GET"}) | ||
static GetCloudShell(req: KpandaIoApiCloudshellV1alpha1Cloudshell.GetCloudShellRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCloudshellV1alpha1Cloudshell.CloudShell> { | ||
return fm.fetchReq<KpandaIoApiCloudshellV1alpha1Cloudshell.GetCloudShellRequest, KpandaIoApiCloudshellV1alpha1Cloudshell.CloudShell>(`/apis/core.kant.io/v1alpha1/cloudshells/${req["name"]}?${fm.renderURLSearchParams(req, ["name"])}`, {...initReq, method: "GET"}) | ||
} | ||
static DeleteCloudShell(req: KpandaIoApiCloudshellV1alpha1Cloudshell.GetorDeleteCloudShellRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> { | ||
return fm.fetchReq<KpandaIoApiCloudshellV1alpha1Cloudshell.GetorDeleteCloudShellRequest, GoogleProtobufEmpty.Empty>(`/apis/core.kant.io/v1alpha1/cloudshells/${req["name"]}`, {...initReq, method: "DELETE"}) | ||
static DeleteCloudShell(req: KpandaIoApiCloudshellV1alpha1Cloudshell.DeleteCloudShellRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> { | ||
return fm.fetchReq<KpandaIoApiCloudshellV1alpha1Cloudshell.DeleteCloudShellRequest, GoogleProtobufEmpty.Empty>(`/apis/core.kant.io/v1alpha1/cloudshells/${req["name"]}`, {...initReq, method: "DELETE"}) | ||
} | ||
@@ -235,0 +229,0 @@ } |
@@ -7,3 +7,3 @@ /* eslint-disable */ | ||
export type WorkspacesClusterListRequest = { | ||
workspaceId?: string | ||
workspaceId?: number | ||
} | ||
@@ -22,3 +22,3 @@ | ||
cluster?: string | ||
workspaceId?: string | ||
workspaceId?: number | ||
} | ||
@@ -25,0 +25,0 @@ |
@@ -10,2 +10,7 @@ /* eslint-disable */ | ||
export enum EdgeUnitManageType { | ||
internal = "internal", | ||
external = "external", | ||
} | ||
export enum EdgeUnitProtocolType { | ||
@@ -16,7 +21,2 @@ websocket = "websocket", | ||
export enum EdgeUnitManageType { | ||
internal = "internal", | ||
external = "external", | ||
} | ||
export enum EdgeUnitPhase { | ||
@@ -35,2 +35,15 @@ Pending = "Pending", | ||
export type EdgeUnitSpec = { | ||
clusterRef?: string | ||
kubeedgeVersion?: string | ||
customizeRepository?: CustomizeRepository | ||
description?: string | ||
cloudCoreProtocol?: EdgeUnitCloudCoreProtocol | ||
replicas?: number | ||
manageType?: EdgeUnitManageType | ||
kubeedgeMqttEnable?: boolean | ||
deleteNamespace?: boolean | ||
resourcePolicyRef?: ResourcePolicyRef | ||
} | ||
export type CustomizeRepository = { | ||
@@ -55,12 +68,5 @@ helmRepo?: string | ||
export type EdgeUnitSpec = { | ||
clusterRef?: string | ||
kubeedgeVersion?: string | ||
customizeRepository?: CustomizeRepository | ||
description?: string | ||
cloudCoreProtocol?: EdgeUnitCloudCoreProtocol | ||
replicas?: number | ||
manageType?: EdgeUnitManageType | ||
kubeedgeMqttEnable?: boolean | ||
deleteNamespace?: boolean | ||
export type ResourcePolicyRef = { | ||
name?: string | ||
version?: string | ||
} | ||
@@ -97,2 +103,3 @@ | ||
spec?: EdgeUnitSpec | ||
workspaceId?: number | ||
} | ||
@@ -104,2 +111,3 @@ | ||
spec?: EdgeUnitSpec | ||
workspaceId?: number | ||
} | ||
@@ -109,2 +117,3 @@ | ||
name?: string | ||
workspaceId?: number | ||
} | ||
@@ -117,3 +126,3 @@ | ||
cluster?: string | ||
workspaceId?: string | ||
workspaceId?: number | ||
} | ||
@@ -128,2 +137,3 @@ | ||
name?: string | ||
workspaceId?: number | ||
} | ||
@@ -147,2 +157,3 @@ | ||
name?: string | ||
workspaceId?: number | ||
} | ||
@@ -152,2 +163,13 @@ | ||
hostIps?: string[] | ||
} | ||
export type ResourcePolicyItem = { | ||
name?: string | ||
version?: string | ||
descZH?: string | ||
descEN?: string | ||
} | ||
export type ResourcePolicyListResponse = { | ||
items?: ResourcePolicyItem[] | ||
} |
@@ -23,5 +23,2 @@ /* eslint-disable */ | ||
} | ||
static ListWorkspaceEdgeUnit(req: KantIoApiCoreV1beta1Edgeunit.EdgeUnitListRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1beta1Edgeunit.EdgeUnitListResponse> { | ||
return fm.fetchReq<KantIoApiCoreV1beta1Edgeunit.EdgeUnitListRequest, KantIoApiCoreV1beta1Edgeunit.EdgeUnitListResponse>(`/apis/core.kant.io/v1beta1/workspaces/${req["workspaceId"]}/edgeunits?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"}) | ||
} | ||
static UpdateEdgeUnit(req: KantIoApiCoreV1beta1Edgeunit.EdgeUnitUpdateRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1beta1Edgeunit.EdgeUnit> { | ||
@@ -40,4 +37,7 @@ return fm.fetchReq<KantIoApiCoreV1beta1Edgeunit.EdgeUnitUpdateRequest, KantIoApiCoreV1beta1Edgeunit.EdgeUnit>(`/apis/core.kant.io/v1beta1/edgeunits/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)}) | ||
static ListCloudCoreHostIPs(req: KantIoApiCoreV1beta1Edgeunit.CloudCoreHostIPsListRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1beta1Edgeunit.CloudCoreHostIPsListResponse> { | ||
return fm.fetchReq<KantIoApiCoreV1beta1Edgeunit.CloudCoreHostIPsListRequest, KantIoApiCoreV1beta1Edgeunit.CloudCoreHostIPsListResponse>(`/apis/core.kant.io/v1alpha1/edgeunits/${req["name"]}/cloudcorehostips?${fm.renderURLSearchParams(req, ["name"])}`, {...initReq, method: "GET"}) | ||
return fm.fetchReq<KantIoApiCoreV1beta1Edgeunit.CloudCoreHostIPsListRequest, KantIoApiCoreV1beta1Edgeunit.CloudCoreHostIPsListResponse>(`/apis/core.kant.io/v1beta1/edgeunits/${req["name"]}/cloudcorehostips?${fm.renderURLSearchParams(req, ["name"])}`, {...initReq, method: "GET"}) | ||
} | ||
static ListEdgeUnitResourcePolicies(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<KantIoApiCoreV1beta1Edgeunit.ResourcePolicyListResponse> { | ||
return fm.fetchReq<GoogleProtobufEmpty.Empty, KantIoApiCoreV1beta1Edgeunit.ResourcePolicyListResponse>(`/apis/core.kant.io/v1beta1/edgeunit-resource-policies?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"}) | ||
} | ||
} | ||
@@ -44,0 +44,0 @@ export class Devices { |
@@ -9,4 +9,4 @@ /* eslint-disable */ | ||
export enum CreateCloudShellRequestType { | ||
TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED", | ||
export enum CloudShellType { | ||
CLOUD_SHELL_TYPE_UNSPECIFIED = "CLOUD_SHELL_TYPE_UNSPECIFIED", | ||
bash = "bash", | ||
@@ -43,3 +43,3 @@ exec = "exec", | ||
export type CreateCloudShellRequest = { | ||
type?: CreateCloudShellRequestType | ||
type?: CloudShellType | ||
cluster?: string | ||
@@ -54,4 +54,10 @@ namespace?: string | ||
export type GetorDeleteCloudShellRequest = { | ||
export type GetCloudShellRequest = { | ||
name?: string | ||
} | ||
export type DeleteCloudShellRequest = { | ||
name?: string | ||
type?: CloudShellType | ||
cluster?: string | ||
} |
@@ -24,2 +24,3 @@ /* eslint-disable */ | ||
OLM = "OLM", | ||
EgressGateway = "EgressGateway", | ||
} | ||
@@ -96,2 +97,3 @@ | ||
cluster?: string | ||
availableEnable?: boolean | ||
} | ||
@@ -101,11 +103,2 @@ | ||
items?: KpandaIoApiSettingV1alpha1Setting.GPUSetting[] | ||
} | ||
export type GetAvailableGPURequest = { | ||
cluster?: string | ||
type?: string | ||
} | ||
export type GetAvailableResponse = { | ||
resources?: {[key: string]: string} | ||
} |
@@ -107,2 +107,3 @@ /* eslint-disable */ | ||
showPods?: boolean | ||
excludeMetrics?: boolean | ||
} | ||
@@ -141,2 +142,3 @@ | ||
fuzzyName?: string | ||
excludeMetrics?: boolean | ||
} | ||
@@ -143,0 +145,0 @@ |
@@ -277,2 +277,3 @@ /* eslint-disable */ | ||
storage?: string | ||
resources?: {[key: string]: string} | ||
} | ||
@@ -279,0 +280,0 @@ |
@@ -172,3 +172,3 @@ /* eslint-disable */ | ||
name?: string | ||
data?: {[key: string]: string} | ||
data?: string | ||
} | ||
@@ -175,0 +175,0 @@ |
@@ -23,4 +23,10 @@ /* eslint-disable */ | ||
range?: ResourceRange | ||
available?: AvailableResource | ||
} | ||
export type AvailableResource = { | ||
available?: string | ||
errorMessage?: string | ||
} | ||
export type ResourceRange = { | ||
@@ -27,0 +33,0 @@ min?: number |
{ | ||
"name":"@daocloud-proto/kant", | ||
"version":"0.13.0-alpah2", | ||
"version":"0.13.0-rc", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
227833
65
6502