fix: add more set class metadata commands

This commit is contained in:
Qiu Jian
2022-03-22 21:52:34 +08:00
parent 117e81a4d9
commit e60e1cd60e
3 changed files with 6 additions and 0 deletions
+4
View File
@@ -30,6 +30,7 @@ import (
"yunion.io/x/log"
"yunion.io/x/pkg/errors"
"yunion.io/x/onecloud/cmd/climc/shell"
"yunion.io/x/onecloud/pkg/mcclient"
modules "yunion.io/x/onecloud/pkg/mcclient/modules/compute"
"yunion.io/x/onecloud/pkg/mcclient/options"
@@ -38,6 +39,9 @@ import (
)
func init() {
cmd := shell.NewResourceCmd(&modules.Disks)
cmd.Perform("set-class-metadata", &options.ResourceMetadataOptions{})
type DiskListOptions struct {
options.BaseListOptions
Unused *bool `help:"Show unused disks"`
+1
View File
@@ -40,6 +40,7 @@ func init() {
cmd.Perform("sync", &options.NetworkIdOptions{})
cmd.Perform("purge", &options.NetworkIdOptions{})
cmd.Get("change-owner-candidate-domains", &options.NetworkIdOptions{})
cmd.Perform("set-class-metadata", &options.ResourceMetadataOptions{})
type NetworkShareOptions struct {
ID string `help:"ID or Name of the zone to show"`
+1
View File
@@ -103,6 +103,7 @@ func init() {
cmd.Perform("cpuset", &options.ServerCPUSetOptions{})
cmd.Perform("cpuset-remove", &options.ServerIdOptions{})
cmd.Perform("calculate-record-checksum", &options.ServerIdOptions{})
cmd.Perform("set-class-metadata", &baseoptions.ResourceMetadataOptions{})
cmd.Get("vnc", new(options.ServerIdOptions))
cmd.Get("desc", new(options.ServerIdOptions))