@daocloud-proto/kant
Advanced tools
Comparing version 0.1.0-alpha5 to 0.1.0-alpha6
@@ -11,2 +11,13 @@ /* eslint-disable */ | ||
import * as KantIoApiCoreV1alpha1Secret from "./secret.pb" | ||
export type WorkloadJSON = { | ||
deployment?: KantIoApiCoreV1alpha1Deployment.Deployment | ||
} | ||
export type GetWorkloadRequest = { | ||
name?: string | ||
cluster?: string | ||
namespace?: string | ||
stable?: boolean | ||
} | ||
export type CreateDeploymentRequest = { | ||
@@ -13,0 +24,0 @@ cluster?: string |
@@ -9,2 +9,4 @@ /* eslint-disable */ | ||
export type Deployment = { | ||
kind?: string | ||
apiVersion?: string | ||
metadata?: ObjectMeta | ||
@@ -11,0 +13,0 @@ spec?: DeploymentSpec |
@@ -16,2 +16,3 @@ /* eslint-disable */ | ||
import * as KantIoApiCoreV1alpha1Apprequest from "./apprequest.pb" | ||
import * as KantIoApiCoreV1alpha1Deployment from "./deployment.pb" | ||
import * as KantIoApiCoreV1alpha1Device from "./device.pb" | ||
@@ -41,7 +42,7 @@ import * as KantIoApiCoreV1alpha1Edgeunit from "./edgeunit.pb" | ||
export class DeploymentApp { | ||
static CreateDeploymentByJSON(req: KantIoApiCoreV1alpha1Apprequest.CreateDeploymentRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAppsV1alpha1Request.WorkloadJSON> { | ||
return fm.fetchReq<KantIoApiCoreV1alpha1Apprequest.CreateDeploymentRequest, KpandaIoApiAppsV1alpha1Request.WorkloadJSON>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/deployments`, {...initReq, method: "POST", body: JSON.stringify(req)}) | ||
static CreateDeploymentByJSON(req: KantIoApiCoreV1alpha1Apprequest.CreateDeploymentRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1alpha1Apprequest.WorkloadJSON> { | ||
return fm.fetchReq<KantIoApiCoreV1alpha1Apprequest.CreateDeploymentRequest, KantIoApiCoreV1alpha1Apprequest.WorkloadJSON>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/deployments`, {...initReq, method: "POST", body: JSON.stringify(req)}) | ||
} | ||
static UpdateDeploymentByJSON(req: KantIoApiCoreV1alpha1Apprequest.UpdateDeploymentRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAppsV1alpha1Request.WorkloadJSON> { | ||
return fm.fetchReq<KantIoApiCoreV1alpha1Apprequest.UpdateDeploymentRequest, KpandaIoApiAppsV1alpha1Request.WorkloadJSON>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/deployments/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)}) | ||
static UpdateDeploymentByJSON(req: KantIoApiCoreV1alpha1Apprequest.UpdateDeploymentRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1alpha1Apprequest.WorkloadJSON> { | ||
return fm.fetchReq<KantIoApiCoreV1alpha1Apprequest.UpdateDeploymentRequest, KantIoApiCoreV1alpha1Apprequest.WorkloadJSON>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/deployments/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)}) | ||
} | ||
@@ -54,4 +55,4 @@ static ListDeployments(req: KpandaIoApiAppsV1alpha1Deployment.ListDeploymentsRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAppsV1alpha1Deployment.ListDeploymentsResponse> { | ||
} | ||
static GetDeployment(req: KpandaIoApiAppsV1alpha1Request.GetWorkloadRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAppsV1alpha1Deployment.Deployment> { | ||
return fm.fetchReq<KpandaIoApiAppsV1alpha1Request.GetWorkloadRequest, KpandaIoApiAppsV1alpha1Deployment.Deployment>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/deployments/${req["name"]}?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"}) | ||
static GetDeployment(req: KantIoApiCoreV1alpha1Apprequest.GetWorkloadRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1alpha1Deployment.Deployment> { | ||
return fm.fetchReq<KantIoApiCoreV1alpha1Apprequest.GetWorkloadRequest, KantIoApiCoreV1alpha1Deployment.Deployment>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/deployments/${req["name"]}?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"}) | ||
} | ||
@@ -58,0 +59,0 @@ static PatchDeployment(req: KpandaIoApiAppsV1alpha1Deployment.PatchDeploymentRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAppsV1alpha1Deployment.PatchDeploymentResponse> { |
{ | ||
"name":"@daocloud-proto/kant", | ||
"version":"0.1.0-alpha5", | ||
"version":"0.1.0-alpha6", | ||
"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
139396
4575