Documentation ¶
Index ¶
- type CreateRenewRequest
- type CreateRenewResponse
- type DescribeOrderDetailInfoRequest
- type DescribeOrderDetailInfoResponse
- type GetResourceRenewPriceRequest
- type GetResourceRenewPriceResponse
- type UBillClient
- func (c *UBillClient) CreateRenew(req *CreateRenewRequest) (*CreateRenewResponse, error)
- func (c *UBillClient) DescribeOrderDetailInfo(req *DescribeOrderDetailInfoRequest) (*DescribeOrderDetailInfoResponse, error)
- func (c *UBillClient) GetResourceRenewPrice(req *GetResourceRenewPriceRequest) (*GetResourceRenewPriceResponse, error)
- func (c *UBillClient) NewCreateRenewRequest() *CreateRenewRequest
- func (c *UBillClient) NewDescribeOrderDetailInfoRequest() *DescribeOrderDetailInfoRequest
- func (c *UBillClient) NewGetResourceRenewPriceRequest() *GetResourceRenewPriceRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateRenewRequest ¶
type CreateRenewRequest struct { request.CommonBase // 需要续费资源ID ResourceId *string `required:"true"` // 付费类别,默认Month[Month:按月,Year按年] ChargeType *string `required:"true"` // 续费周期数[1~10]默认为1 Quantity *string `required:"true"` // 代金券ID CouponId *string `required:"false"` }
CreateRenewRequest is request schema for CreateRenew action
type CreateRenewResponse ¶
type CreateRenewResponse struct { response.CommonBase // 订单号 OrderNo string }
CreateRenewResponse is response schema for CreateRenew action
type DescribeOrderDetailInfoRequest ¶
type DescribeOrderDetailInfoRequest struct { request.CommonBase // 开始时间 BeginTime *int `required:"true"` // 结束时间(时间跨度不超过3个月) EndTime *int `required:"true"` // 业务组 Tags []string `required:"false"` // 地区(默认全部) AzGroups []string `required:"false"` // 可用区,原:数据中心(默认全部) Regions []string `required:"false"` // 产品类型(默认全部)[全部产品类型] ResourceTypes []string `required:"false"` // 订单类型(默认全部)[全部订单类型] OrderTypes []string `required:"false"` // 付费类别(默认全部OrderType)[全部计费方式] ChargeTypes []string `required:"false"` // 订单状态(默认全部可选参数)[OS_FINISHED;OS_UNDO] OrderStates []string `required:"false"` // 是否开过发票(默认全部可选参数)[INVO_ON:未开过;INVO_OFF:开过] Invoiceds []string `required:"false"` // 返回数据长度(默认为25)[1~100] Limit *int `required:"false"` // 数据偏移量(默认为0) Offset *int `required:"false"` // 资源ID(短ID) ResourceIds []string `required:"false"` // 交易订单号(该字段存在时,可以不传BeginTime和EndTime) TradeNos []string `required:"false"` // ‘true’表示查询全部(默认全部)其他选项按项目组查询 QueryAll *string `required:"false"` }
DescribeOrderDetailInfoRequest is request schema for DescribeOrderDetailInfo action
type DescribeOrderDetailInfoResponse ¶
type DescribeOrderDetailInfoResponse struct { response.CommonBase // JSON格式的订单信息 OrderInfos []interface{} }
DescribeOrderDetailInfoResponse is response schema for DescribeOrderDetailInfo action
type GetResourceRenewPriceRequest ¶
type GetResourceRenewPriceRequest struct { request.CommonBase // 需要修改自动续费资源ID(最多100) ResourceIds []string `required:"true"` // 计价方式(Month;Year) (默认Month) ChargeType *string `required:"false"` // 数量(1~10)(默认1) Quantity *int `required:"false"` }
GetResourceRenewPriceRequest is request schema for GetResourceRenewPrice action
type GetResourceRenewPriceResponse ¶
type GetResourceRenewPriceResponse struct { response.CommonBase // 资源信息的集合 RenewPriceSet []interface{} }
GetResourceRenewPriceResponse is response schema for GetResourceRenewPrice action
type UBillClient ¶
type UBillClient struct {
// contains filtered or unexported fields
}
UBillClient is the client of UBill
func NewClient ¶
func NewClient(config *ucloud.Config, credential *auth.Credential) *UBillClient
NewClient will return a instance of UBillClient
func (*UBillClient) CreateRenew ¶
func (c *UBillClient) CreateRenew(req *CreateRenewRequest) (*CreateRenewResponse, error)
CreateRenew - 相关页面:续费支付
func (*UBillClient) DescribeOrderDetailInfo ¶
func (c *UBillClient) DescribeOrderDetailInfo(req *DescribeOrderDetailInfoRequest) (*DescribeOrderDetailInfoResponse, error)
DescribeOrderDetailInfo - 获取订单信息
func (*UBillClient) GetResourceRenewPrice ¶
func (c *UBillClient) GetResourceRenewPrice(req *GetResourceRenewPriceRequest) (*GetResourceRenewPriceResponse, error)
GetResourceRenewPrice - 获取续费价格
func (*UBillClient) NewCreateRenewRequest ¶
func (c *UBillClient) NewCreateRenewRequest() *CreateRenewRequest
NewCreateRenewRequest will create request of CreateRenew action.
func (*UBillClient) NewDescribeOrderDetailInfoRequest ¶
func (c *UBillClient) NewDescribeOrderDetailInfoRequest() *DescribeOrderDetailInfoRequest
NewDescribeOrderDetailInfoRequest will create request of DescribeOrderDetailInfo action.
func (*UBillClient) NewGetResourceRenewPriceRequest ¶
func (c *UBillClient) NewGetResourceRenewPriceRequest() *GetResourceRenewPriceRequest
NewGetResourceRenewPriceRequest will create request of GetResourceRenewPrice action.