1 package linodego
2 3 import "context"
4 5 // AccountTransfer represents an Account's network utilization for the current month.
6 type AccountTransfer struct {
7 Billable int `json:"billable"`
8 Quota int `json:"quota"`
9 Used int `json:"used"`
10 11 RegionTransfers []AccountTransferRegion `json:"region_transfers"`
12 }
13 14 // AccountTransferRegion represents an Account's network utilization for the current month
15 // in a given region.
16 type AccountTransferRegion struct {
17 ID string `json:"id"`
18 Billable int `json:"billable"`
19 Quota int `json:"quota"`
20 Used int `json:"used"`
21 }
22 23 // GetAccountTransfer gets current Account's network utilization for the current month.
24 func (c *Client) GetAccountTransfer(ctx context.Context) (*AccountTransfer, error) {
25 return doGETRequest[AccountTransfer](ctx, c, "account/transfer")
26 }
27