Documentation
¶
Index ¶
- Constants
- func Exec[T any](r *resty.Request, method, addr, path, action, version string, args ...any) (t T, _ error)
- type Client
- func (c *Client) DescribeInstanceBill(req *DescribeInstanceBillReq) ([]*DescribeInstanceBillItem, error)
- func (c *Client) QueryAccountBalance() (*QueryAccountBalanceData, error)
- func (c *Client) QueryAccountBill(req *QueryAccountBillReq) ([]*QueryAccountBillItem, error)
- func (c *Client) R() *resty.Request
- type DescribeInstanceBillData
- type DescribeInstanceBillItem
- type DescribeInstanceBillReq
- type QueryAccountBalanceData
- type QueryAccountBillData
- type QueryAccountBillItem
- type QueryAccountBillItems
- type QueryAccountBillReq
Constants ¶
View Source
const ( AddrBSS = "https://business.aliyuncs.com" // Algorithm https://help.aliyun.com/zh/sdk/product-overview/v3-request-structure-and-signature Algorithm = "ACS3-HMAC-SHA256" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) DescribeInstanceBill ¶ added in v1.0.9
func (c *Client) DescribeInstanceBill(req *DescribeInstanceBillReq) ([]*DescribeInstanceBillItem, error)
func (*Client) QueryAccountBalance ¶
func (c *Client) QueryAccountBalance() (*QueryAccountBalanceData, error)
func (*Client) QueryAccountBill ¶ added in v1.0.6
func (c *Client) QueryAccountBill(req *QueryAccountBillReq) ([]*QueryAccountBillItem, error)
type DescribeInstanceBillData ¶ added in v1.0.9
type DescribeInstanceBillData struct {
NextToken string `json:"NextToken"`
MaxResults int `json:"MaxResults"`
TotalCount int `json:"TotalCount"`
AccountID string `json:"AccountID"`
AccountName string `json:"AccountName"`
BillingCycle string `json:"BillingCycle"`
Items []*DescribeInstanceBillItem `json:"Items"`
}
type DescribeInstanceBillItem ¶ added in v1.0.9
type DescribeInstanceBillReq ¶ added in v1.0.9
type DescribeInstanceBillReq struct {
NextToken string `json:"NextToken,omitempty"`
MaxResults string `json:"MaxResults"`
BillingCycle string `json:"BillingCycle"`
ProductCode string `json:"ProductCode"`
Granularity string `json:"Granularity"`
IsBillingItem bool `json:"IsBillingItem"`
IsHideZeroCharge bool `json:"IsHideZeroCharge"`
}
type QueryAccountBalanceData ¶
type QueryAccountBalanceData struct {
AvailableCashAmount string `json:"AvailableCashAmount"`
MybankCreditAmount string `json:"MybankCreditAmount"`
Currency string `json:"Currency"`
AvailableAmount string `json:"AvailableAmount"`
CreditAmount string `json:"CreditAmount"`
QuotaLimit string `json:"QuotaLimit"`
}
type QueryAccountBillData ¶ added in v1.0.6
type QueryAccountBillItem ¶ added in v1.0.6
type QueryAccountBillItems ¶ added in v1.0.6
type QueryAccountBillItems struct {
Item []*QueryAccountBillItem `json:"Item"`
}
type QueryAccountBillReq ¶ added in v1.0.6
Click to show internal directories.
Click to hide internal directories.