@daocloud-proto/kpanda 0.15.0-dev-d2971de2 → 0.15.0-dev-7449b43c
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.
|
@@ -0,0 +1,62 @@
|
|
|
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
|
+
}
|
|
@@ -38,6 +38,7 @@ 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"
|
|
41
42
|
import * as KpandaIoApiGhippoV1alpha1Workspace from "../ghippo/v1alpha1/workspace.pb"
|
|
42
43
|
import * as KpandaIoApiInsightV1alpha1Insight from "../insight/v1alpha1/insight.pb"
|
|
43
44
|
import * as KpandaIoApiKangarooV1alpha1Image from "../kangaroo/v1alpha1/image.pb"
|
|
@@ -410,6 +411,21 @@ export class Core {
|
|
|
410
411
|
static PatchNamespace(req: KpandaIoApiCoreV1alpha1Namespace.PatchNamespaceRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Namespace.PatchNamespaceResponse> {
|
|
411
412
|
return fm.fetchReq<KpandaIoApiCoreV1alpha1Namespace.PatchNamespaceRequest, KpandaIoApiCoreV1alpha1Namespace.PatchNamespaceResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["name"]}`, {...initReq, method: "PATCH", body: JSON.stringify(req)})
|
|
412
413
|
}
|
|
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
|
+
}
|
|
413
429
|
static GetResourceQuota(req: KpandaIoApiCoreV1alpha1Resourcequota.GetResourceQuotaRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Resourcequota.ResourceQuota> {
|
|
414
430
|
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"})
|
|
415
431
|
}
|
|
@@ -716,7 +732,7 @@ export class Storage {
|
|
|
716
732
|
return fm.fetchReq<KpandaIoApiStorageV1alpha1Storageclass.UpdateStorageClassRequest, KpandaIoApiStorageV1alpha1Storageclass.UpdateStorageClassResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/storageclasses/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
717
733
|
}
|
|
718
734
|
static CreateVolumeSnapshot(req: KpandaIoApiStorageV1alpha1Snapshot.CreateVolumeSnapshotRequest, initReq?: fm.InitReq): Promise<KpandaIoApiStorageV1alpha1Snapshot.CreateVolumeSnapshotResponse> {
|
|
719
|
-
return fm.fetchReq<KpandaIoApiStorageV1alpha1Snapshot.CreateVolumeSnapshotRequest, KpandaIoApiStorageV1alpha1Snapshot.CreateVolumeSnapshotResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/
|
|
735
|
+
return fm.fetchReq<KpandaIoApiStorageV1alpha1Snapshot.CreateVolumeSnapshotRequest, KpandaIoApiStorageV1alpha1Snapshot.CreateVolumeSnapshotResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/volumesnapshots`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
720
736
|
}
|
|
721
737
|
static ListVolumeSnapshots(req: KpandaIoApiStorageV1alpha1Snapshot.ListVolumeSnapshotsRequest, initReq?: fm.InitReq): Promise<KpandaIoApiStorageV1alpha1Snapshot.ListVolumeSnapshotsResponse> {
|
|
722
738
|
return fm.fetchReq<KpandaIoApiStorageV1alpha1Snapshot.ListVolumeSnapshotsRequest, KpandaIoApiStorageV1alpha1Snapshot.ListVolumeSnapshotsResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/volumesnapshots?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
|