@daocloud-proto/kpanda 0.26.0-dev-3a7d0447 → 0.26.0-dev-4bf745e1
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.
|
@@ -233,4 +233,26 @@ export type GetClusterAdminKubeConfigRequest = {
|
|
|
233
233
|
export type GetClusterAdminKubeConfigResponse = {
|
|
234
234
|
kubeConfigString?: string
|
|
235
235
|
cluster?: string
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
export type ListClusterPreferredResourcesRequest = {
|
|
239
|
+
cluster?: string
|
|
240
|
+
namespaced?: boolean
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export type ListClusterPreferredResourcesResponse = {
|
|
244
|
+
resources?: APIResourceList[]
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
export type APIResourceList = {
|
|
248
|
+
groupVersion?: string
|
|
249
|
+
resources?: APIResource[]
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
export type APIResource = {
|
|
253
|
+
name?: string
|
|
254
|
+
namespaced?: boolean
|
|
255
|
+
group?: string
|
|
256
|
+
version?: string
|
|
257
|
+
kind?: string
|
|
236
258
|
}
|
|
@@ -346,6 +346,9 @@ export class Cluster {
|
|
|
346
346
|
static ListAllClusterGPU(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<KpandaIoApiClustersV1alpha1Gpu.ListAllClusterGPUInfoResponse> {
|
|
347
347
|
return fm.fetchReq<GoogleProtobufEmpty.Empty, KpandaIoApiClustersV1alpha1Gpu.ListAllClusterGPUInfoResponse>(`/apis/kpanda.io/v1alpha1/gpus?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
348
348
|
}
|
|
349
|
+
static ListClusterPreferredResources(req: KpandaIoApiClustersV1alpha1Cluster.ListClusterPreferredResourcesRequest, initReq?: fm.InitReq): Promise<KpandaIoApiClustersV1alpha1Cluster.ListClusterPreferredResourcesResponse> {
|
|
350
|
+
return fm.fetchReq<KpandaIoApiClustersV1alpha1Cluster.ListClusterPreferredResourcesRequest, KpandaIoApiClustersV1alpha1Cluster.ListClusterPreferredResourcesResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/preferredresources?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
351
|
+
}
|
|
349
352
|
}
|
|
350
353
|
export class insight {
|
|
351
354
|
static GetPodContainerLog(req: KpandaIoApiInsightV1alpha1Insight.GetPodContainerLogRequest, initReq?: fm.InitReq): Promise<KpandaIoApiInsightV1alpha1Insight.GetPodContainerLogResponse> {
|