mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-01 15:07:17 +08:00
Merge pull request #11917 from swordqiu/hotfix/qj-climc-bill-tasks-create
fix: bill-tasks-create parameters
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user