Skip to content

Commit

Permalink
govc: re-generate usage.md
Browse files Browse the repository at this point in the history
Signed-off-by: Stoyan Zhelyazkov <[email protected]>
  • Loading branch information
spacegospod committed Apr 8, 2024
1 parent 295c4b8 commit 0351154
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 39 deletions.
63 changes: 28 additions & 35 deletions govc/USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4203,17 +4203,15 @@ Usage: govc namespace.change [OPTIONS]
Modifies an existing namespace on a Supervisor.
Examples:
govc namespace.change -namespace=test-namespace
govc namespace.change -namespace=test-namespace -content-libraries=dca9cc16-9460-4da0-802c-4aa148ac6cf7
govc namespace.change -namespace=test-namespace -content-libraries=dca9cc16-9460-4da0-802c-4aa148ac6cf7,617a3ee3-a2ff-4311-9a7c-0016ccf958bd
govc namespace.change -namespace=test-namespace -vm-classes=best-effort-2xlarge
govc namespace.change -namespace=test-namespace -vm-classes=best-effort-2xlarge,best-effort-4xlarge
govc namespace.change -namespace=test-namespace -content-libraries=dca9cc16-9460-4da0-802c-4aa148ac6cf7,617a3ee3-a2ff-4311-9a7c-0016ccf958bd -vm-classes=best-effort-2xlarge,best-effort-4xlarge
govc namespace.change -content-libraries=dca9cc16-9460-4da0-802c-4aa148ac6cf7 test-namespace
govc namespace.change -content-libraries=dca9cc16-9460-4da0-802c-4aa148ac6cf7,617a3ee3-a2ff-4311-9a7c-0016ccf958bd test-namespace
govc namespace.change -vm-classes=best-effort-2xlarge test-namespace
govc namespace.change -vm-classes=best-effort-2xlarge,best-effort-4xlarge test-namespace
govc namespace.change -content-libraries=dca9cc16-9460-4da0-802c-4aa148ac6cf7,617a3ee3-a2ff-4311-9a7c-0016ccf958bd -vm-classes=best-effort-2xlarge,best-effort-4xlarge test-namespace
Options:
-content-libraries= The list of content libraries to associate with the vSphere Namespace.
-namespace= The name of the namespace.
-vm-classes= The list of virtual machine classes to associate with the vSphere Namespace
-vm-classes= The list of virtual machine classes to associate with the vSphere Namespace.
```

## namespace.cluster.disable
Expand Down Expand Up @@ -4310,18 +4308,18 @@ Usage: govc namespace.create [OPTIONS]
Creates a new namespace on a Supervisor.
Examples:
govc namespace.create -supervisor=domain-c1 -namespace=test-namespace
govc namespace.create -supervisor=domain-c1 -namespace=test-namespace -content-libraries=dca9cc16-9460-4da0-802c-4aa148ac6cf7
govc namespace.create -supervisor=domain-c1 -namespace=test-namespace -content-libraries=dca9cc16-9460-4da0-802c-4aa148ac6cf7,dca9cc16-9460-4da0-802c-4aa148ac6cf7
govc namespace.create -supervisor=domain-c1 -namespace=test-namespace -vm-classes=best-effort-2xlarge
govc namespace.create -supervisor=domain-c1 -namespace=test-namespace -vm-classes=best-effort-2xlarge,best-effort-4xlarge
govc namespace.create -supervisor=domain-c1 -namespace=test-namespace -content-libraries=dca9cc16-9460-4da0-802c-4aa148ac6cf7,dca9cc16-9460-4da0-802c-4aa148ac6cf7 -vm-classes=best-effort-2xlarge,best-effort-4xlarge
govc namespace.create -namespace=test-namespace -supervisor=domain-c1
govc namespace.create -namespace=test-namespace -supervisor=domain-c1 -content-libraries=dca9cc16-9460-4da0-802c-4aa148ac6cf7
govc namespace.create -namespace=test-namespace -supervisor=domain-c1 -content-libraries=dca9cc16-9460-4da0-802c-4aa148ac6cf7,dca9cc16-9460-4da0-802c-4aa148ac6cf7
govc namespace.create -namespace=test-namespace -supervisor=domain-c1 -vm-classes=best-effort-2xlarge
govc namespace.create -namespace=test-namespace -supervisor=domain-c1 -vm-classes=best-effort-2xlarge,best-effort-4xlarge
govc namespace.create -namespace=test-namespace -supervisor=domain-c1 -content-libraries=dca9cc16-9460-4da0-802c-4aa148ac6cf7,dca9cc16-9460-4da0-802c-4aa148ac6cf7 -vm-classes=best-effort-2xlarge,best-effort-4xlarge
Options:
-content-libraries= The identifiers of the content libraries to associate with the vSphere Namespace.
-namespace= The name of the vSphere Namespace.
-supervisor= The identifier of the Supervisor.
-vm-classes= The identifiers of the virtual machine classes to associate with the vSphere Namespace
-vm-classes= The identifiers of the virtual machine classes to associate with the vSphere Namespace.
```

## namespace.info
Expand All @@ -4332,10 +4330,9 @@ Usage: govc namespace.info [OPTIONS]
Displays the details of a namespace.
Examples:
govc namespace.info -namespace=test-namespace
govc namespace.info test-namespace
Options:
-namespace= The identifier of the vSphere Namespace.
```

## namespace.logs.download
Expand Down Expand Up @@ -4379,10 +4376,9 @@ Usage: govc namespace.rm [OPTIONS]
Deletes a namespace.
Examples:
govc namespace.rm -namespace=test-namespace
govc namespace.rm test-namespace
Options:
-namespace= The identifier of the vSphere Namespace.
```

## namespace.service.activate
Expand Down Expand Up @@ -4475,17 +4471,10 @@ Usage: govc namespace.vmclass.change [OPTIONS]
Modifies an existing virtual machine class.
Examples:
govc namespace.vmclass.change -id=test-class-01 -cpus=8 -memory=8192
govc namespace.vmclass.change -cpus=8 -memory=8192 test-class
Options:
-cpus=0 The number of CPUs.
-id=
Identifier of the virtual machine class. This has DNS_LABEL restrictions
as specified in <a href="https://tools.ietf.org/html/rfc1123"></a>. This
must be an alphanumeric (a-z and 0-9) string and with maximum length
of 63 characters and with the '-' character allowed anywhere except
the first or last character. This name is unique in this vCenter server.
-cpus=0 The number of CPUs.
-memory=0 The amount of memory (in MB).
```

Expand All @@ -4497,11 +4486,17 @@ Usage: govc namespace.vmclass.create [OPTIONS]
Creates a new virtual machine class.
Examples:
govc namespace.vmclass.create -id=test-class-01 -cpus=8 -memory=8192"
govc namespace.vmclass.create -id=test-class-01 -cpus=8 -memory=8192
Options:
-cpus=0 The number of CPUs.
-id= The identifier of the virtual machine class.
-cpus=0 The number of CPUs.
-id=
Identifier of the virtual machine class. This has DNS_LABEL restrictions
as specified in "https://tools.ietf.org/html/rfc1123". This
must be an alphanumeric (a-z and 0-9) string and with maximum length
of 63 characters and with the '-' character allowed anywhere except
the first or last character. This name is unique in this vCenter server.
-memory=0 The amount of memory (in MB).
```

Expand All @@ -4513,10 +4508,9 @@ Usage: govc namespace.vmclass.info [OPTIONS]
Displays the details of a virtual machine class.
Examples:
govc namespace.vmclass.info -vmclass=test-class-01
govc namespace.vmclass.info test-class
Options:
-vmclass= The identifier of the virtual machine class.
```

## namespace.vmclass.ls
Expand All @@ -4540,10 +4534,9 @@ Usage: govc namespace.vmclass.rm [OPTIONS]
Deletes a virtual machine class.
Examples:
govc namespace.vmclass.rm -vmclass=test-class-01
govc namespace.vmclass.rm test-class
Options:
-vmclass= The identifier of the virtual machine class.
```

## object.collect
Expand Down
2 changes: 1 addition & 1 deletion govc/namespace/change.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (cmd *change) Register(ctx context.Context, f *flag.FlagSet) {
cmd.ClientFlag.Register(ctx, f)

f.StringVar(&cmd.libraries, "content-libraries", "", "The list of content libraries to associate with the vSphere Namespace.")
f.StringVar(&cmd.vmClasses, "vm-classes", "", "The list of virtual machine classes to associate with the vSphere Namespace")
f.StringVar(&cmd.vmClasses, "vm-classes", "", "The list of virtual machine classes to associate with the vSphere Namespace.")
}

func (cmd *change) Process(ctx context.Context) error {
Expand Down
2 changes: 1 addition & 1 deletion govc/namespace/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func (cmd *create) Register(ctx context.Context, f *flag.FlagSet) {
f.StringVar(&cmd.spec.Cluster, "supervisor", "", "The identifier of the Supervisor.")
f.StringVar(&cmd.spec.Namespace, "namespace", "", "The name of the vSphere Namespace.")
f.StringVar(&cmd.libraries, "content-libraries", "", "The identifiers of the content libraries to associate with the vSphere Namespace.")
f.StringVar(&cmd.vmClasses, "vm-classes", "", "The identifiers of the virtual machine classes to associate with the vSphere Namespace")
f.StringVar(&cmd.vmClasses, "vm-classes", "", "The identifiers of the virtual machine classes to associate with the vSphere Namespace.")
}

func (cmd *create) Process(ctx context.Context) error {
Expand Down
4 changes: 2 additions & 2 deletions govc/namespace/vmclass/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (cmd *create) Register(ctx context.Context, f *flag.FlagSet) {

f.StringVar(&cmd.spec.Id, "id", "", `
Identifier of the virtual machine class. This has DNS_LABEL restrictions
as specified in <a href="https://tools.ietf.org/html/rfc1123"></a>. This
as specified in "https://tools.ietf.org/html/rfc1123". This
must be an alphanumeric (a-z and 0-9) string and with maximum length
of 63 characters and with the '-' character allowed anywhere except
the first or last character. This name is unique in this vCenter server.
Expand All @@ -58,7 +58,7 @@ func (cmd *create) Description() string {
return `Creates a new virtual machine class.
Examples:
govc namespace.vmclass.create -id=test-class-01 -cpus=8 -memory=8192"`
govc namespace.vmclass.create -id=test-class-01 -cpus=8 -memory=8192`
}

func (cmd *create) Run(ctx context.Context, f *flag.FlagSet) error {
Expand Down

0 comments on commit 0351154

Please sign in to comment.