@@ -35,8 +35,6 @@ func GetGeneratedCommands() *core.Commands {
35
35
iamSSHKeyRemove (),
36
36
iamUsersList (),
37
37
iamUsersGet (),
38
- iamUsersUpdate (),
39
- iamUsersRemove (),
40
38
iamApplicationsList (),
41
39
iamApplicationsAdd (),
42
40
iamApplicationsGet (),
@@ -248,14 +246,14 @@ func iamSSHKeyAdd() *core.Command {
248
246
ArgSpecs : core.ArgSpecs {
249
247
{
250
248
Name : "name" ,
251
- Short : `The name of the SSH key` ,
249
+ Short : `The name of the SSH key. Max length is 1000 ` ,
252
250
Required : false ,
253
251
Deprecated : false ,
254
252
Positional : false ,
255
253
},
256
254
{
257
255
Name : "public-key" ,
258
- Short : `SSH public key. Currently ssh-rsa, ssh-dss (DSA), ssh-ed25519 and ecdsa keys with NIST curves are supported` ,
256
+ Short : `SSH public key. Currently ssh-rsa, ssh-dss (DSA), ssh-ed25519 and ecdsa keys with NIST curves are supported. Max length is 65000 ` ,
259
257
Required : true ,
260
258
Deprecated : false ,
261
259
Positional : false ,
@@ -336,7 +334,7 @@ func iamSSHKeyUpdate() *core.Command {
336
334
},
337
335
{
338
336
Name : "name" ,
339
- Short : `Name of the SSH key` ,
337
+ Short : `Name of the SSH key. Max length is 1000 ` ,
340
338
Required : false ,
341
339
Deprecated : false ,
342
340
Positional : false ,
@@ -477,70 +475,6 @@ func iamUsersGet() *core.Command {
477
475
}
478
476
}
479
477
480
- func iamUsersUpdate () * core.Command {
481
- return & core.Command {
482
- Short : `Update an existing user` ,
483
- Long : `Update an existing user.` ,
484
- Namespace : "iam" ,
485
- Resource : "users" ,
486
- Verb : "update" ,
487
- // Deprecated: false,
488
- ArgsType : reflect .TypeOf (iam.UpdateUserRequest {}),
489
- ArgSpecs : core.ArgSpecs {
490
- {
491
- Name : "user-id" ,
492
- Short : `ID of user to update` ,
493
- Required : true ,
494
- Deprecated : false ,
495
- Positional : false ,
496
- },
497
- },
498
- Run : func (ctx context.Context , args interface {}) (i interface {}, e error ) {
499
- request := args .(* iam.UpdateUserRequest )
500
-
501
- client := core .ExtractClient (ctx )
502
- api := iam .NewAPI (client )
503
- return api .UpdateUser (request )
504
-
505
- },
506
- }
507
- }
508
-
509
- func iamUsersRemove () * core.Command {
510
- return & core.Command {
511
- Short : `Remove a user` ,
512
- Long : `Remove a user.` ,
513
- Namespace : "iam" ,
514
- Resource : "users" ,
515
- Verb : "remove" ,
516
- // Deprecated: false,
517
- ArgsType : reflect .TypeOf (iam.DeleteUserRequest {}),
518
- ArgSpecs : core.ArgSpecs {
519
- {
520
- Name : "user-id" ,
521
- Short : `ID of user to delete` ,
522
- Required : true ,
523
- Deprecated : false ,
524
- Positional : false ,
525
- },
526
- },
527
- Run : func (ctx context.Context , args interface {}) (i interface {}, e error ) {
528
- request := args .(* iam.DeleteUserRequest )
529
-
530
- client := core .ExtractClient (ctx )
531
- api := iam .NewAPI (client )
532
- e = api .DeleteUser (request )
533
- if e != nil {
534
- return nil , e
535
- }
536
- return & core.SuccessResult {
537
- Resource : "users" ,
538
- Verb : "remove" ,
539
- }, nil
540
- },
541
- }
542
- }
543
-
544
478
func iamApplicationsList () * core.Command {
545
479
return & core.Command {
546
480
Short : `List applications of an organization` ,
@@ -615,14 +549,14 @@ func iamApplicationsAdd() *core.Command {
615
549
ArgSpecs : core.ArgSpecs {
616
550
{
617
551
Name : "name" ,
618
- Short : `Name of application to create` ,
552
+ Short : `Name of application to create (max length is 64 chars) ` ,
619
553
Required : false ,
620
554
Deprecated : false ,
621
555
Positional : false ,
622
556
},
623
557
{
624
558
Name : "description" ,
625
- Short : `Description of application` ,
559
+ Short : `Description of application (max length is 200 chars) ` ,
626
560
Required : false ,
627
561
Deprecated : false ,
628
562
Positional : false ,
@@ -688,14 +622,14 @@ func iamApplicationsUpdate() *core.Command {
688
622
},
689
623
{
690
624
Name : "name" ,
691
- Short : `New name of application` ,
625
+ Short : `New name of application (max length is 64 chars) ` ,
692
626
Required : false ,
693
627
Deprecated : false ,
694
628
Positional : false ,
695
629
},
696
630
{
697
631
Name : "description" ,
698
- Short : `New description of application` ,
632
+ Short : `New description of application (max length is 200 chars) ` ,
699
633
Required : false ,
700
634
Deprecated : false ,
701
635
Positional : false ,
@@ -828,14 +762,14 @@ func iamGroupAdd() *core.Command {
828
762
ArgSpecs : core.ArgSpecs {
829
763
{
830
764
Name : "name" ,
831
- Short : `Name of the group to create. MUST be unique inside an organization` ,
765
+ Short : `Name of the group to create (max length is 64 chars) . MUST be unique inside an organization` ,
832
766
Required : false ,
833
767
Deprecated : false ,
834
768
Positional : false ,
835
769
},
836
770
{
837
771
Name : "description" ,
838
- Short : `Description of the group to create` ,
772
+ Short : `Description of the group to create (max length is 200 chars) ` ,
839
773
Required : false ,
840
774
Deprecated : false ,
841
775
Positional : false ,
@@ -911,14 +845,14 @@ func iamGroupUpdate() *core.Command {
911
845
},
912
846
{
913
847
Name : "name" ,
914
- Short : `New name for the group. MUST be unique inside an organization` ,
848
+ Short : `New name for the group (max length is 64 chars) . MUST be unique inside an organization` ,
915
849
Required : false ,
916
850
Deprecated : false ,
917
851
Positional : false ,
918
852
},
919
853
{
920
854
Name : "description" ,
921
- Short : `New description for the group` ,
855
+ Short : `New description for the group (max length is 200 chars) ` ,
922
856
Required : false ,
923
857
Deprecated : false ,
924
858
Positional : false ,
@@ -1071,14 +1005,14 @@ func iamPoliciesAdd() *core.Command {
1071
1005
ArgSpecs : core.ArgSpecs {
1072
1006
{
1073
1007
Name : "name" ,
1074
- Short : `Name of policy to create` ,
1008
+ Short : `Name of policy to create (max length is 64 chars) ` ,
1075
1009
Required : false ,
1076
1010
Deprecated : false ,
1077
1011
Positional : false ,
1078
1012
},
1079
1013
{
1080
1014
Name : "description" ,
1081
- Short : `Description of policy to create` ,
1015
+ Short : `Description of policy to create (max length is 200 chars) ` ,
1082
1016
Required : false ,
1083
1017
Deprecated : false ,
1084
1018
Positional : false ,
@@ -1193,14 +1127,14 @@ func iamPoliciesUpdate() *core.Command {
1193
1127
},
1194
1128
{
1195
1129
Name : "name" ,
1196
- Short : `New name of policy` ,
1130
+ Short : `New name of policy (max length is 64 chars) ` ,
1197
1131
Required : false ,
1198
1132
Deprecated : false ,
1199
1133
Positional : false ,
1200
1134
},
1201
1135
{
1202
1136
Name : "description" ,
1203
- Short : `New description of policy` ,
1137
+ Short : `New description of policy (max length is 200 chars) ` ,
1204
1138
Required : false ,
1205
1139
Deprecated : false ,
1206
1140
Positional : false ,
@@ -1500,7 +1434,7 @@ func iamAPIKeyAdd() *core.Command {
1500
1434
},
1501
1435
{
1502
1436
Name : "description" ,
1503
- Short : `The description of the API key` ,
1437
+ Short : `The description of the API key (max length is 200 chars) ` ,
1504
1438
Required : false ,
1505
1439
Deprecated : false ,
1506
1440
Positional : false ,
0 commit comments