@daocloud-proto/kpanda 0.15.0-dev-7449b43c → 0.15.0-dev-0dd02d2d
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -38,7 +38,6 @@ import * as KpandaIoApiCoreV1alpha1Pod from "../core/v1alpha1/pod.pb"
|
|
|
38
38
|
import * as KpandaIoApiCoreV1alpha1Resourcequota from "../core/v1alpha1/resourcequota.pb"
|
|
39
39
|
import * as KpandaIoApiCoreV1alpha1Secret from "../core/v1alpha1/secret.pb"
|
|
40
40
|
import * as KpandaIoApiCoreV1alpha1Service from "../core/v1alpha1/service.pb"
|
|
41
|
-
import * as KpandaIoApiCoreV1alpha1Serviceaccount from "../core/v1alpha1/serviceaccount.pb"
|
|
42
41
|
import * as KpandaIoApiGhippoV1alpha1Workspace from "../ghippo/v1alpha1/workspace.pb"
|
|
43
42
|
import * as KpandaIoApiInsightV1alpha1Insight from "../insight/v1alpha1/insight.pb"
|
|
44
43
|
import * as KpandaIoApiKangarooV1alpha1Image from "../kangaroo/v1alpha1/image.pb"
|
|
@@ -411,21 +410,6 @@ export class Core {
|
|
|
411
410
|
static PatchNamespace(req: KpandaIoApiCoreV1alpha1Namespace.PatchNamespaceRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Namespace.PatchNamespaceResponse> {
|
|
412
411
|
return fm.fetchReq<KpandaIoApiCoreV1alpha1Namespace.PatchNamespaceRequest, KpandaIoApiCoreV1alpha1Namespace.PatchNamespaceResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["name"]}`, {...initReq, method: "PATCH", body: JSON.stringify(req)})
|
|
413
412
|
}
|
|
414
|
-
static ListServiceAccounts(req: KpandaIoApiCoreV1alpha1Serviceaccount.ListServiceAccountsRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Serviceaccount.ListServiceAccountsResponse> {
|
|
415
|
-
return fm.fetchReq<KpandaIoApiCoreV1alpha1Serviceaccount.ListServiceAccountsRequest, KpandaIoApiCoreV1alpha1Serviceaccount.ListServiceAccountsResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/serviceaccounts?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
416
|
-
}
|
|
417
|
-
static GetServiceAccount(req: KpandaIoApiCoreV1alpha1Serviceaccount.GetServiceAccountRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Serviceaccount.ServiceAccount> {
|
|
418
|
-
return fm.fetchReq<KpandaIoApiCoreV1alpha1Serviceaccount.GetServiceAccountRequest, KpandaIoApiCoreV1alpha1Serviceaccount.ServiceAccount>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/serviceaccounts/${req["name"]}?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
419
|
-
}
|
|
420
|
-
static DeleteServiceAccount(req: KpandaIoApiCoreV1alpha1Serviceaccount.DeleteServiceAccountRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
421
|
-
return fm.fetchReq<KpandaIoApiCoreV1alpha1Serviceaccount.DeleteServiceAccountRequest, GoogleProtobufEmpty.Empty>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/serviceaccounts/${req["name"]}`, {...initReq, method: "DELETE"})
|
|
422
|
-
}
|
|
423
|
-
static CreateServiceAccount(req: KpandaIoApiCoreV1alpha1Serviceaccount.CreateServiceAccountRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Serviceaccount.CreateServiceAccountResponse> {
|
|
424
|
-
return fm.fetchReq<KpandaIoApiCoreV1alpha1Serviceaccount.CreateServiceAccountRequest, KpandaIoApiCoreV1alpha1Serviceaccount.CreateServiceAccountResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/serviceaccounts`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
425
|
-
}
|
|
426
|
-
static UpdateServiceAccount(req: KpandaIoApiCoreV1alpha1Serviceaccount.UpdateServiceAccountRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Serviceaccount.UpdateServiceAccountResponse> {
|
|
427
|
-
return fm.fetchReq<KpandaIoApiCoreV1alpha1Serviceaccount.UpdateServiceAccountRequest, KpandaIoApiCoreV1alpha1Serviceaccount.UpdateServiceAccountResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/serviceaccounts/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
428
|
-
}
|
|
429
413
|
static GetResourceQuota(req: KpandaIoApiCoreV1alpha1Resourcequota.GetResourceQuotaRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Resourcequota.ResourceQuota> {
|
|
430
414
|
return fm.fetchReq<KpandaIoApiCoreV1alpha1Resourcequota.GetResourceQuotaRequest, KpandaIoApiCoreV1alpha1Resourcequota.ResourceQuota>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/resourcequotas/${req["name"]}?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
431
415
|
}
|
package/package.json
CHANGED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
// @ts-nocheck
|
|
3
|
-
/*
|
|
4
|
-
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import * as KpandaIoApiTypesObjectmeta from "../../types/objectmeta.pb"
|
|
8
|
-
import * as KpandaIoApiTypesPage from "../../types/page.pb"
|
|
9
|
-
export type ServiceAccount = {
|
|
10
|
-
metadata?: KpandaIoApiTypesObjectmeta.ObjectMeta
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export type ListServiceAccountsRequest = {
|
|
14
|
-
cluster?: string
|
|
15
|
-
namesapce?: string
|
|
16
|
-
page?: number
|
|
17
|
-
pageSize?: number
|
|
18
|
-
name?: string
|
|
19
|
-
sortBy?: KpandaIoApiTypesPage.SortBy
|
|
20
|
-
sortDir?: KpandaIoApiTypesPage.SortDir
|
|
21
|
-
labelSelector?: string
|
|
22
|
-
fieldSelector?: string
|
|
23
|
-
fuzzyName?: string
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export type ListServiceAccountsResponse = {
|
|
27
|
-
items?: ServiceAccount[]
|
|
28
|
-
pagination?: KpandaIoApiTypesPage.Pagination
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export type GetServiceAccountRequest = {
|
|
32
|
-
cluster?: string
|
|
33
|
-
namespace?: string
|
|
34
|
-
name?: string
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export type CreateServiceAccountRequest = {
|
|
38
|
-
cluster?: string
|
|
39
|
-
namespace?: string
|
|
40
|
-
data?: string
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export type CreateServiceAccountResponse = {
|
|
44
|
-
data?: string
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export type UpdateServiceAccountRequest = {
|
|
48
|
-
cluster?: string
|
|
49
|
-
namespace?: string
|
|
50
|
-
name?: string
|
|
51
|
-
data?: string
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export type UpdateServiceAccountResponse = {
|
|
55
|
-
data?: string
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export type DeleteServiceAccountRequest = {
|
|
59
|
-
cluster?: string
|
|
60
|
-
namespace?: string
|
|
61
|
-
name?: string
|
|
62
|
-
}
|