@daocloud-proto/kant
Advanced tools
Comparing version 0.1.0-alpha2 to 0.1.0-alpha3
@@ -11,6 +11,2 @@ /* eslint-disable */ | ||
import * as KantIoApiCoreV1alpha1Secret from "./secret.pb" | ||
export type DeploymentJSON = { | ||
data?: string | ||
} | ||
export type CreateDeploymentRequest = { | ||
@@ -17,0 +13,0 @@ cluster?: string |
@@ -9,2 +9,3 @@ /* eslint-disable */ | ||
import * as GoogleProtobufEmpty from "../../google/api/empty.pb" | ||
import * as KpandaIoApiApiextensionsV1alpha1Custom_resource_definition from "../../kpanda.io/api/apiextensions/v1alpha1/custom_resource_definition.pb" | ||
import * as KpandaIoApiAppsV1alpha1Deployment from "../../kpanda.io/api/apps/v1alpha1/deployment.pb" | ||
@@ -19,2 +20,4 @@ import * as KpandaIoApiAppsV1alpha1Request from "../../kpanda.io/api/apps/v1alpha1/request.pb" | ||
import * as KantIoApiCoreV1alpha1Node from "./node.pb" | ||
import * as KantIoApiCoreV1alpha1Rule from "./rule.pb" | ||
import * as KantIoApiCoreV1alpha1Ruleendpoint from "./ruleendpoint.pb" | ||
import * as KantIoApiCoreV1alpha1Workspaces from "./workspaces.pb" | ||
@@ -30,2 +33,5 @@ export class Device { | ||
} | ||
static GetNode(req: KpandaIoApiCoreV1alpha1Node.GetNodeRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Node.Node> { | ||
return fm.fetchReq<KpandaIoApiCoreV1alpha1Node.GetNodeRequest, KpandaIoApiCoreV1alpha1Node.Node>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/nodes/${req["name"]}?${fm.renderURLSearchParams(req, ["cluster", "name"])}`, {...initReq, method: "GET"}) | ||
} | ||
static CordonNode(req: KantIoApiCoreV1alpha1Node.CordonNodeRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Node.Node> { | ||
@@ -42,7 +48,7 @@ return fm.fetchReq<KantIoApiCoreV1alpha1Node.CordonNodeRequest, KpandaIoApiCoreV1alpha1Node.Node>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/nodes/${req["name"]}/cordon`, {...initReq, method: "PATCH"}) | ||
export class DeploymentApp { | ||
static CreateDeploymentByJSON(req: KantIoApiCoreV1alpha1Apprequest.CreateDeploymentRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1alpha1Apprequest.DeploymentJSON> { | ||
return fm.fetchReq<KantIoApiCoreV1alpha1Apprequest.CreateDeploymentRequest, KantIoApiCoreV1alpha1Apprequest.DeploymentJSON>(`/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<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 UpdateDeploymentByJSON(req: KantIoApiCoreV1alpha1Apprequest.UpdateDeploymentRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1alpha1Apprequest.DeploymentJSON> { | ||
return fm.fetchReq<KantIoApiCoreV1alpha1Apprequest.UpdateDeploymentRequest, KantIoApiCoreV1alpha1Apprequest.DeploymentJSON>(`/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<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)}) | ||
} | ||
@@ -150,2 +156,33 @@ static ListDeployments(req: KpandaIoApiAppsV1alpha1Deployment.ListDeploymentsRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAppsV1alpha1Deployment.ListDeploymentsResponse> { | ||
} | ||
} | ||
export class RuleEndpoints { | ||
static CreateMsgRuleEndpoints(req: KantIoApiCoreV1alpha1Ruleendpoint.CreateRuleEndpointRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1alpha1Ruleendpoint.RuleEndpoint> { | ||
return fm.fetchReq<KantIoApiCoreV1alpha1Ruleendpoint.CreateRuleEndpointRequest, KantIoApiCoreV1alpha1Ruleendpoint.RuleEndpoint>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/ruleendpoints`, {...initReq, method: "POST", body: JSON.stringify(req)}) | ||
} | ||
static ListAllMsgRuleEndpoints(req: KantIoApiCoreV1alpha1Ruleendpoint.ListRuleEndpointRequest, initReq?: fm.InitReq): Promise<KpandaIoApiApiextensionsV1alpha1Custom_resource_definition.ListCustomResourcesResponse> { | ||
return fm.fetchReq<KantIoApiCoreV1alpha1Ruleendpoint.ListRuleEndpointRequest, KpandaIoApiApiextensionsV1alpha1Custom_resource_definition.ListCustomResourcesResponse>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/ruleendpoints?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"}) | ||
} | ||
static ListMsgRuleEndpoints(req: KantIoApiCoreV1alpha1Ruleendpoint.ListRuleEndpointRequest, initReq?: fm.InitReq): Promise<KpandaIoApiApiextensionsV1alpha1Custom_resource_definition.ListCustomResourcesResponse> { | ||
return fm.fetchReq<KantIoApiCoreV1alpha1Ruleendpoint.ListRuleEndpointRequest, KpandaIoApiApiextensionsV1alpha1Custom_resource_definition.ListCustomResourcesResponse>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/ruleendpoints?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"}) | ||
} | ||
static DeleteMsgRuleEndpoints(req: KantIoApiCoreV1alpha1Ruleendpoint.DeleteRuleEndpointRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> { | ||
return fm.fetchReq<KantIoApiCoreV1alpha1Ruleendpoint.DeleteRuleEndpointRequest, GoogleProtobufEmpty.Empty>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/ruleendpoints/${req["name"]}`, {...initReq, method: "DELETE"}) | ||
} | ||
} | ||
export class Rules { | ||
static CreateMsgRules(req: KantIoApiCoreV1alpha1Rule.CreateRuleRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1alpha1Rule.Rule> { | ||
return fm.fetchReq<KantIoApiCoreV1alpha1Rule.CreateRuleRequest, KantIoApiCoreV1alpha1Rule.Rule>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/rules`, {...initReq, method: "POST", body: JSON.stringify(req)}) | ||
} | ||
static GetMsgRules(req: KantIoApiCoreV1alpha1Rule.GetRuleRequest, initReq?: fm.InitReq): Promise<KantIoApiCoreV1alpha1Rule.Rule> { | ||
return fm.fetchReq<KantIoApiCoreV1alpha1Rule.GetRuleRequest, KantIoApiCoreV1alpha1Rule.Rule>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/rules/${req["name"]}?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"}) | ||
} | ||
static ListAllMsgRules(req: KantIoApiCoreV1alpha1Rule.ListRuleRequest, initReq?: fm.InitReq): Promise<KpandaIoApiApiextensionsV1alpha1Custom_resource_definition.ListCustomResourcesResponse> { | ||
return fm.fetchReq<KantIoApiCoreV1alpha1Rule.ListRuleRequest, KpandaIoApiApiextensionsV1alpha1Custom_resource_definition.ListCustomResourcesResponse>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/rules?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"}) | ||
} | ||
static ListMsgRules(req: KantIoApiCoreV1alpha1Rule.ListRuleRequest, initReq?: fm.InitReq): Promise<KpandaIoApiApiextensionsV1alpha1Custom_resource_definition.ListCustomResourcesResponse> { | ||
return fm.fetchReq<KantIoApiCoreV1alpha1Rule.ListRuleRequest, KpandaIoApiApiextensionsV1alpha1Custom_resource_definition.ListCustomResourcesResponse>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/rules?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"}) | ||
} | ||
static DeleteMsgRules(req: KantIoApiCoreV1alpha1Rule.DeleteRuleRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> { | ||
return fm.fetchReq<KantIoApiCoreV1alpha1Rule.DeleteRuleRequest, GoogleProtobufEmpty.Empty>(`/apis/core.kant.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/rules/${req["name"]}`, {...initReq, method: "DELETE"}) | ||
} | ||
} |
{ | ||
"name":"@daocloud-proto/kant", | ||
"version":"0.1.0-alpha2", | ||
"version":"0.1.0-alpha3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -19,2 +19,7 @@ /* eslint-disable */ | ||
} | ||
} | ||
export class User { | ||
static Permissions(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<KantIoApiSystemV1alpha1Types.UserPermissionsResponse> { | ||
return fm.fetchReq<GoogleProtobufEmpty.Empty, KantIoApiSystemV1alpha1Types.UserPermissionsResponse>(`/apis/system.kant.io/v1alpha1/user-permissions?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"}) | ||
} | ||
} |
@@ -13,2 +13,7 @@ /* eslint-disable */ | ||
versions?: string[] | ||
} | ||
export type UserPermissionsResponse = { | ||
admin?: boolean | ||
permissions?: string[] | ||
} |
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
77547
2129