Merge pull request #11917 from swordqiu/hotfix/qj-climc-bill-tasks-create

fix: bill-tasks-create parameters
This commit is contained in:
Zexi Li
2021-08-15 18:30:10 +08:00
committed by GitHub
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ func init() {
type BillBalanceListOptions struct {
options.BaseListOptions
ACCOUNTID string `help:"accountId of the BillBalance"`
ACCOUNTID string `help:"accountId of the BillBalance" metavar:"accountList|account_id"`
}
R(&BillBalanceListOptions{}, "billbalance-list", "List all BillBalances ", func(s *mcclient.ClientSession, args *BillBalanceListOptions) error {
var params *jsonutils.JSONDict
+2 -2
View File
@@ -19,15 +19,15 @@ import (
"yunion.io/x/onecloud/pkg/mcclient"
"yunion.io/x/onecloud/pkg/mcclient/modules"
"yunion.io/x/onecloud/pkg/mcclient/options"
)
func init() {
type BillTasksCreateOptions struct {
options.BaseListOptions
// options.BaseListOptions
CloudaccountId string `help:"cloudaccount Id" required:"true"`
StartDay int `help:"start day of billing cycle, example: 20060102"`
EndDay int `help:"end day of billing cycle, example: 20060102"`
TaskType string `help:"task type" choices:"bill_remove|bill_pulling"`
}
R(&BillTasksCreateOptions{}, "bill-tasks-create", "create bill task",
func(s *mcclient.ClientSession, args *BillTasksCreateOptions) error {