Skip to content

Commit a4ecd71

Browse files
committed
feat: update generated APIs
1 parent a72ad42 commit a4ecd71

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

internal/namespaces/datalab/v1beta1/datalab_cli.go

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@ func GetGeneratedCommands() *core.Commands {
2121
return core.NewCommands(
2222
datalabRoot(),
2323
datalabDatalab(),
24-
datalabNodeTypes(),
25-
datalabNotebookVersions(),
26-
datalabClusterVersions(),
24+
datalabNodeType(),
25+
datalabNotebookVersion(),
26+
datalabClusterVersion(),
2727
datalabDatalabCreate(),
2828
datalabDatalabGet(),
2929
datalabDatalabList(),
3030
datalabDatalabUpdate(),
3131
datalabDatalabDelete(),
32-
datalabNodeTypesList(),
33-
datalabNotebookVersionsList(),
34-
datalabClusterVersionsList(),
32+
datalabNodeTypeList(),
33+
datalabNotebookVersionList(),
34+
datalabClusterVersionList(),
3535
)
3636
}
3737

@@ -46,36 +46,36 @@ func datalabRoot() *core.Command {
4646
func datalabDatalab() *core.Command {
4747
return &core.Command{
4848
Short: ``,
49-
Long: `Manage your Datalab.`,
49+
Long: `Manage your Data Labs.`,
5050
Namespace: "datalab",
5151
Resource: "datalab",
5252
}
5353
}
5454

55-
func datalabNodeTypes() *core.Command {
55+
func datalabNodeType() *core.Command {
5656
return &core.Command{
5757
Short: ``,
58-
Long: `List available node types. These are the possible compute units that can host the Spark cluster.`,
58+
Long: `List available node types.`,
5959
Namespace: "datalab",
60-
Resource: "node-types",
60+
Resource: "node-type",
6161
}
6262
}
6363

64-
func datalabNotebookVersions() *core.Command {
64+
func datalabNotebookVersion() *core.Command {
6565
return &core.Command{
6666
Short: ``,
67-
Long: `List available notebook versions. Currently it includes JupyterLab.`,
67+
Long: `List available notebook versions.`,
6868
Namespace: "datalab",
69-
Resource: "notebook-versions",
69+
Resource: "notebook-version",
7070
}
7171
}
7272

73-
func datalabClusterVersions() *core.Command {
73+
func datalabClusterVersion() *core.Command {
7474
return &core.Command{
7575
Short: ``,
7676
Long: `Lists the Spark versions available for Data Lab creation.`,
7777
Namespace: "datalab",
78-
Resource: "cluster-versions",
78+
Resource: "cluster-version",
7979
}
8080
}
8181

@@ -131,7 +131,7 @@ func datalabDatalabCreate() *core.Command {
131131
},
132132
{
133133
Name: "has-notebook",
134-
Short: `Whether a JupyterLab notebook shall be created with the Data Lab or not.`,
134+
Short: `Select this option to include a notebook as part of the Data Lab.`,
135135
Required: false,
136136
Deprecated: false,
137137
Positional: false,
@@ -161,7 +161,7 @@ func datalabDatalabCreate() *core.Command {
161161
},
162162
{
163163
Name: "private-network-id",
164-
Short: `The private network to which the Data Lab is connected. Important for accessing the Spark Master URL from a private cluster.`,
164+
Short: `The unique identifier of the private network the Data Lab will be attached to.`,
165165
Required: false,
166166
Deprecated: false,
167167
Positional: false,
@@ -320,7 +320,7 @@ func datalabDatalabUpdate() *core.Command {
320320
},
321321
{
322322
Name: "tags.{index}",
323-
Short: `The updated tags of the Data Lab`,
323+
Short: `The updated tags of the Data Lab.`,
324324
Required: false,
325325
Deprecated: false,
326326
Positional: false,
@@ -375,12 +375,12 @@ func datalabDatalabDelete() *core.Command {
375375
}
376376
}
377377

378-
func datalabNodeTypesList() *core.Command {
378+
func datalabNodeTypeList() *core.Command {
379379
return &core.Command{
380380
Short: `List datalab resources`,
381381
Long: `List datalab resources.`,
382382
Namespace: "datalab",
383-
Resource: "node-types",
383+
Resource: "node-type",
384384
Verb: "list",
385385
// Deprecated: false,
386386
ArgsType: reflect.TypeOf(datalab.ListNodeTypesRequest{}),
@@ -406,7 +406,7 @@ func datalabNodeTypesList() *core.Command {
406406
},
407407
{
408408
Name: "targets.{index}",
409-
Short: `Filter on the wanted targets, whether it's for main node or worker.`,
409+
Short: `Filter based on the target of the nodes. Allows to filter the nodes based on their purpose which can be main or worker node.`,
410410
Required: false,
411411
Deprecated: false,
412412
Positional: false,
@@ -453,12 +453,12 @@ func datalabNodeTypesList() *core.Command {
453453
}
454454
}
455455

456-
func datalabNotebookVersionsList() *core.Command {
456+
func datalabNotebookVersionList() *core.Command {
457457
return &core.Command{
458458
Short: `List datalab resources`,
459459
Long: `List datalab resources.`,
460460
Namespace: "datalab",
461-
Resource: "notebook-versions",
461+
Resource: "notebook-version",
462462
Verb: "list",
463463
// Deprecated: false,
464464
ArgsType: reflect.TypeOf(datalab.ListNotebookVersionsRequest{}),
@@ -499,12 +499,12 @@ func datalabNotebookVersionsList() *core.Command {
499499
}
500500
}
501501

502-
func datalabClusterVersionsList() *core.Command {
502+
func datalabClusterVersionList() *core.Command {
503503
return &core.Command{
504504
Short: `List datalab resources`,
505505
Long: `List datalab resources.`,
506506
Namespace: "datalab",
507-
Resource: "cluster-versions",
507+
Resource: "cluster-version",
508508
Verb: "list",
509509
// Deprecated: false,
510510
ArgsType: reflect.TypeOf(datalab.ListClusterVersionsRequest{}),

0 commit comments

Comments
 (0)