@daocloud-proto/kant
Advanced tools
Comparing version 0.15.0-alpha1 to 0.15.0-rc
@@ -13,2 +13,3 @@ /* eslint-disable */ | ||
import * as KpandaIoApiAppsV1alpha1Replicaset from "../../kpanda.io/api/apps/v1alpha1/replicaset.pb" | ||
import * as KpandaIoApiCloudshellV1alpha1Cloudshell from "../../kpanda.io/api/cloudshell/v1alpha1/cloudshell.pb" | ||
import * as KpandaIoApiClustersettingV1alpha1Clustersetting from "../../kpanda.io/api/clustersetting/v1alpha1/clustersetting.pb" | ||
@@ -21,2 +22,3 @@ import * as KpandaIoApiCoreV1alpha1Event from "../../kpanda.io/api/core/v1alpha1/event.pb" | ||
import * as KantIoApiCoreV1alpha1Workspaces from "../v1alpha1/workspaces.pb" | ||
import * as KantIoApiCoreV1alpha2CloudshellCloudshell from "./cloudshell/cloudshell.pb" | ||
import * as KantIoApiCoreV1alpha2DeploymentApprequest from "./deployment/apprequest.pb" | ||
@@ -229,2 +231,13 @@ import * as KantIoApiCoreV1alpha2DeploymentDeployment from "./deployment/deployment.pb" | ||
} | ||
} | ||
export class CloudShell { | ||
static CreateCloudShell(req: KantIoApiCoreV1alpha2CloudshellCloudshell.CreateCloudShellRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCloudshellV1alpha1Cloudshell.CloudShell> { | ||
return fm.fetchReq<KantIoApiCoreV1alpha2CloudshellCloudshell.CreateCloudShellRequest, KpandaIoApiCloudshellV1alpha1Cloudshell.CloudShell>(`/apis/core.kant.io/v1alpha2/workspaces/${req["workspaceId"]}/cloudshells`, {...initReq, method: "POST", body: JSON.stringify(req)}) | ||
} | ||
static GetCloudShell(req: KantIoApiCoreV1alpha2CloudshellCloudshell.GetCloudShellRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCloudshellV1alpha1Cloudshell.CloudShell> { | ||
return fm.fetchReq<KantIoApiCoreV1alpha2CloudshellCloudshell.GetCloudShellRequest, KpandaIoApiCloudshellV1alpha1Cloudshell.CloudShell>(`/apis/core.kant.io/v1alpha2/workspaces/${req["workspaceId"]}/cloudshells/${req["name"]}?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"}) | ||
} | ||
static DeleteCloudShell(req: KantIoApiCoreV1alpha2CloudshellCloudshell.DeleteCloudShellRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> { | ||
return fm.fetchReq<KantIoApiCoreV1alpha2CloudshellCloudshell.DeleteCloudShellRequest, GoogleProtobufEmpty.Empty>(`/apis/core.kant.io/v1alpha2/workspaces/${req["workspaceId"]}/cloudshells/${req["name"]}`, {...initReq, method: "DELETE", body: JSON.stringify(req)}) | ||
} | ||
} |
{ | ||
"name":"@daocloud-proto/kant", | ||
"version":"0.15.0-alpha1", | ||
"version":"0.15.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
306753
78
8266