1515@ Data
1616public class CreateNotebookRequest {
1717 /**任务名称*/
18- @ KsYunField (name ="DisplayName " )
19- private String DisplayName ;
18+ @ KsYunField (name ="NotebookName " )
19+ private String NotebookName ;
2020
2121 /**描述信息*/
2222 @ KsYunField (name ="Description" )
2323 private String Description ;
2424
25- /**镜像ID
26- 当镜像来源为第三方来源时,此参数不传递,其他镜像来源,此参数为必填项*/
27- @ KsYunField (name ="ImageId" )
28- private String ImageId ;
25+ /**资源池ID*/
26+ @ KsYunField (name ="ResourcePoolId" )
27+ private String ResourcePoolId ;
2928
3029 /**队列名称*/
3130 @ KsYunField (name ="QueueName" )
@@ -39,37 +38,17 @@ public class CreateNotebookRequest{
3938 @ KsYunField (name ="GPUNumber" )
4039 private Integer GPUNumber ;
4140
42- /**可见范围,Creator(创建者可见),QueueMember(队列成员可见)*/
43- @ KsYunField (name ="AccessType" )
44- private String AccessType ;
45-
46- /**是否开启公网SSH访问模式,当EnableSsh=true时可设置该参数*/
47- @ KsYunField (name ="EnablePublicNetworkSsh" )
48- private Boolean EnablePublicNetworkSsh ;
49-
50- /**弹性IP ID,当EnablePublicNetworkSsh=true时,此参数必传*/
51- @ KsYunField (name ="AllocationId" )
52- private String AllocationId ;
53-
5441 /**Cpu数量,允许范围为0~10000*/
55- @ KsYunField (name ="CpuNum " )
56- private Integer CpuNum ;
42+ @ KsYunField (name ="CPUNum " )
43+ private Integer CPUNum ;
5744
5845 /**内存G,允许范围为0~10000*/
5946 @ KsYunField (name ="Memory" )
6047 private Integer Memory ;
6148
62- /**是否开启SSH*/
63- @ KsYunField (name ="EnableSsh" )
64- private Boolean EnableSsh ;
65-
66- /**SSH公钥,当EnableSsh=true时必传该参数*/
67- @ KsYunField (name ="SshAuthorizedKeys" )
68- private String SshAuthorizedKeys ;
69-
70- /**SSH端口,默认为22,范围为1~65535*/
71- @ KsYunField (name ="SshPort" )
72- private Integer SshPort ;
49+ /**可见范围,Creator(创建者可见),QueueMember(队列成员可见)*/
50+ @ KsYunField (name ="AccessType" )
51+ private String AccessType ;
7352
7453 /**存储配置列表*/
7554 @ KsYunField (name ="StorageConfigs" ,type =2 )
@@ -87,10 +66,6 @@ public static class StorageConfigsDto {
8766 private String StorageConfigType ;
8867 }
8968
90- /**资源池ID*/
91- @ KsYunField (name ="ResourcePoolId" )
92- private String ResourcePoolId ;
93-
9469 /**是否自动保存镜像*/
9570 @ KsYunField (name ="AutoSave" )
9671 private Boolean AutoSave ;
@@ -109,14 +84,6 @@ public static class ServiceConfigsDto {
10984 private Boolean EnablePublicNetwork ;
11085 }
11186
112- /**仓库连接 Id*/
113- @ KsYunField (name ="ImageRegistryId" )
114- private String ImageRegistryId ;
115-
116- /**仓库 Id*/
117- @ KsYunField (name ="ImageRepoId" )
118- private String ImageRepoId ;
119-
12087 /**镜像来源
12188- 官方镜像 Official
12289- 个人镜像 Personal
@@ -126,30 +93,31 @@ public static class ServiceConfigsDto {
12693 @ KsYunField (name ="ImageSource" )
12794 private String ImageSource ;
12895
96+ /**镜像ID
97+ 当镜像来源为第三方来源时,此参数不传递,其他镜像来源,此参数为必填项*/
98+ @ KsYunField (name ="ImageId" )
99+ private String ImageId ;
100+
101+ /**仓库连接 Id*/
102+ @ KsYunField (name ="ImageRegistryId" )
103+ private String ImageRegistryId ;
104+
105+ /**仓库 Id*/
106+ @ KsYunField (name ="ImageRepoId" )
107+ private String ImageRepoId ;
108+
129109 /**tagId*/
130110 @ KsYunField (name ="ImageTagId" )
131111 private String ImageTagId ;
132112
133- /**Cpu数量,允许范围为0~10000*/
134- @ KsYunField (name ="CPUNum" )
135- private Integer CPUNum ;
136-
137113 /**是否开启SSH*/
138114 @ KsYunField (name ="EnableSSH" )
139115 private Boolean EnableSSH ;
140116
141- /**任务名称*/
142- @ KsYunField (name ="NotebookName" )
143- private String NotebookName ;
144-
145117 /**SSH公钥,当EnableSsh=true时必传该参数*/
146118 @ KsYunField (name ="SSHAuthorizedKeys" )
147119 private String SSHAuthorizedKeys ;
148120
149- /**开启后,仅调度CPU*/
150- @ KsYunField (name ="RunOnCPU" )
151- private String RunOnCPU ;
152-
153121 /**SSH端口,默认为22,范围为1~65535*/
154122 @ KsYunField (name ="SSHPort" )
155123 private Integer SSHPort ;
@@ -158,4 +126,12 @@ public static class ServiceConfigsDto {
158126 @ KsYunField (name ="EnablePublicNetworkSSH" )
159127 private Boolean EnablePublicNetworkSSH ;
160128
129+ /**弹性IP ID,当EnablePublicNetworkSsh=true时,此参数必传*/
130+ @ KsYunField (name ="AllocationId" )
131+ private String AllocationId ;
132+
133+ /**开启后,仅调度CPU*/
134+ @ KsYunField (name ="RunOnCPU" )
135+ private String RunOnCPU ;
136+
161137}
0 commit comments