climc: 将xx-list --{provider,manager,account}放到BaseListOptions

This commit is contained in:
Yousong Zhou
2018-12-13 09:51:19 +00:00
parent 9a8b9bf7b1
commit 114f7c721e
14 changed files with 78 additions and 342 deletions
+4
View File
@@ -174,6 +174,10 @@ type BaseListOptions struct {
ExportFile string `help:"Export to file" metavar:"<EXPORT_FILE_PATH>" json:"-"`
ExportKeys string `help:"Export field keys"`
ExportTexts string `help:"Export field displayname texts" json:"-"`
Manager string `help:"List objects belonging to the cloud provider"`
Account string `help:"List objects belonging to the cloud account"`
Provider string `help:"List objects from the provider" choices:"VMware|Aliyun|Qcloud|Azure|Aws|Huawei"`
}
func (opts *BaseListOptions) Params() (*jsonutils.JSONDict, error) {
-1
View File
@@ -130,7 +130,6 @@ type RouteTablePurgeOptions struct {
}
type RouteTableListOptions struct {
Manager string
Vpc string
Cloudregion string
-4
View File
@@ -23,10 +23,6 @@ type ServerListOptions struct {
WithEip *bool `help:"Show Servers with EIP"`
WithoutEip *bool `help:"Show Servers without EIP"`
Manager string `help:"Show servers imported from manager"`
Account string `help:"List hosts belongs to the cloud account"`
Provider string `help:"List hosts belongs to the provider" choices:"VMware|Aliyun|Qcloud|Azure|Aws|Huawei"`
ResourceType string `help:"Resource type" choices:"shared|prepaid|dedicated"`
BillingType string `help:"billing type" choices:"postpaid|prepaid"`