@daocloud-proto/kpanda 0.52.0-dev1 → 0.52.0-dev2

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.
@@ -109,4 +109,17 @@ export type ListGPUSettingRequest = {
109
109
 
110
110
  export type ListGPUSettingResponse = {
111
111
  items?: KpandaIoApiSettingV1alpha1Setting.GPUSetting[]
112
+ }
113
+
114
+ export type ListClusterGPUSettingRequest = {
115
+ cluster?: string[]
116
+ }
117
+
118
+ export type ListClusterGPUSettingResponse = {
119
+ items?: ClusterGPUSetting[]
120
+ }
121
+
122
+ export type ClusterGPUSetting = {
123
+ cluster?: string
124
+ items?: KpandaIoApiSettingV1alpha1Setting.GPUSetting[]
112
125
  }
@@ -15,6 +15,8 @@ export type GPUSetting = {
15
15
  isDynamic?: boolean
16
16
  provider?: string
17
17
  productKey?: string
18
+ products?: string[]
19
+ vendor?: string
18
20
  }
19
21
 
20
22
  export type GPUResourceSetting = {
@@ -962,6 +962,9 @@ export class ClusterSetting {
962
962
  static ListGPUSetting(req: KpandaIoApiClustersettingV1alpha1Clustersetting.ListGPUSettingRequest, initReq?: fm.InitReq): Promise<KpandaIoApiClustersettingV1alpha1Clustersetting.ListGPUSettingResponse> {
963
963
  return fm.fetchReq<KpandaIoApiClustersettingV1alpha1Clustersetting.ListGPUSettingRequest, KpandaIoApiClustersettingV1alpha1Clustersetting.ListGPUSettingResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/settings/gpu?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
964
964
  }
965
+ static ListClusterGPUSetting(req: KpandaIoApiClustersettingV1alpha1Clustersetting.ListClusterGPUSettingRequest, initReq?: fm.InitReq): Promise<KpandaIoApiClustersettingV1alpha1Clustersetting.ListClusterGPUSettingResponse> {
966
+ return fm.fetchReq<KpandaIoApiClustersettingV1alpha1Clustersetting.ListClusterGPUSettingRequest, KpandaIoApiClustersettingV1alpha1Clustersetting.ListClusterGPUSettingResponse>(`/apis/kpanda.io/v1alpha1/asl/settings/gpu?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
967
+ }
965
968
  }
966
969
  export class CloudShell {
967
970
  static CreateCloudShell(req: KpandaIoApiCloudshellV1alpha1Cloudshell.CreateCloudShellRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCloudshellV1alpha1Cloudshell.CloudShell> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/kpanda",
3
- "version":"v0.52.0-dev1",
3
+ "version":"v0.52.0-dev2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {