Documentation ¶
Index ¶
- type BandOfferList
- type BandOfferListItem
- type BandOfferOrderRequest
- type BandOfferOrderResponse
- type BandPrecheckRequest
- type BandPrecheckResponse
- type BandStartSpeedUpRequest
- type BandStartSpeedUpResponse
- type BandStatusQueryRequest
- type BandStatusQueryResponse
- type BandStopSpeedUpRequest
- type BandStopSpeedUpResponse
- type Client
- func NewClient() (client *Client, err error)
- func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error)
- func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error)
- func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error)
- func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error)
- func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error)
- func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error)
- func (client *Client) BandOfferOrder(request *BandOfferOrderRequest) (response *BandOfferOrderResponse, err error)
- func (client *Client) BandOfferOrderWithCallback(request *BandOfferOrderRequest, ...) <-chan int
- func (client *Client) BandOfferOrderWithChan(request *BandOfferOrderRequest) (<-chan *BandOfferOrderResponse, <-chan error)
- func (client *Client) BandPrecheck(request *BandPrecheckRequest) (response *BandPrecheckResponse, err error)
- func (client *Client) BandPrecheckWithCallback(request *BandPrecheckRequest, ...) <-chan int
- func (client *Client) BandPrecheckWithChan(request *BandPrecheckRequest) (<-chan *BandPrecheckResponse, <-chan error)
- func (client *Client) BandStartSpeedUp(request *BandStartSpeedUpRequest) (response *BandStartSpeedUpResponse, err error)
- func (client *Client) BandStartSpeedUpWithCallback(request *BandStartSpeedUpRequest, ...) <-chan int
- func (client *Client) BandStartSpeedUpWithChan(request *BandStartSpeedUpRequest) (<-chan *BandStartSpeedUpResponse, <-chan error)
- func (client *Client) BandStatusQuery(request *BandStatusQueryRequest) (response *BandStatusQueryResponse, err error)
- func (client *Client) BandStatusQueryWithCallback(request *BandStatusQueryRequest, ...) <-chan int
- func (client *Client) BandStatusQueryWithChan(request *BandStatusQueryRequest) (<-chan *BandStatusQueryResponse, <-chan error)
- func (client *Client) BandStopSpeedUp(request *BandStopSpeedUpRequest) (response *BandStopSpeedUpResponse, err error)
- func (client *Client) BandStopSpeedUpWithCallback(request *BandStopSpeedUpRequest, ...) <-chan int
- func (client *Client) BandStopSpeedUpWithChan(request *BandStopSpeedUpRequest) (<-chan *BandStopSpeedUpResponse, <-chan error)
- type ResultModule
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BandOfferList ¶
type BandOfferList struct {
BandOfferListItem []BandOfferListItem `json:"BandOfferListItem" xml:"BandOfferListItem"`
}
BandOfferList is a nested struct in snsuapi response
type BandOfferListItem ¶
type BandOfferListItem struct { OfferId int `json:"OfferId" xml:"OfferId"` Bandwidth int `json:"Bandwidth" xml:"Bandwidth"` Duration int `json:"Duration" xml:"Duration"` Direction string `json:"Direction" xml:"Direction"` }
BandOfferListItem is a nested struct in snsuapi response
type BandOfferOrderRequest ¶
type BandOfferOrderRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` BandId string `position:"Query" name:"BandId"` OfferId string `position:"Query" name:"OfferId"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` }
BandOfferOrderRequest is the request struct for api BandOfferOrder
func CreateBandOfferOrderRequest ¶
func CreateBandOfferOrderRequest() (request *BandOfferOrderRequest)
CreateBandOfferOrderRequest creates a request to invoke BandOfferOrder API
type BandOfferOrderResponse ¶
type BandOfferOrderResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` ResultCode string `json:"ResultCode" xml:"ResultCode"` ResultMessage string `json:"ResultMessage" xml:"ResultMessage"` ResultModule string `json:"ResultModule" xml:"ResultModule"` }
BandOfferOrderResponse is the response struct for api BandOfferOrder
func CreateBandOfferOrderResponse ¶
func CreateBandOfferOrderResponse() (response *BandOfferOrderResponse)
CreateBandOfferOrderResponse creates a response to parse from BandOfferOrder response
type BandPrecheckRequest ¶
type BandPrecheckRequest struct { *requests.RpcRequest IpAddress string `position:"Query" name:"IpAddress"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` Port requests.Integer `position:"Query" name:"Port"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` }
BandPrecheckRequest is the request struct for api BandPrecheck
func CreateBandPrecheckRequest ¶
func CreateBandPrecheckRequest() (request *BandPrecheckRequest)
CreateBandPrecheckRequest creates a request to invoke BandPrecheck API
type BandPrecheckResponse ¶
type BandPrecheckResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` ResultCode string `json:"ResultCode" xml:"ResultCode"` ResultMessage string `json:"ResultMessage" xml:"ResultMessage"` ResultModule ResultModule `json:"ResultModule" xml:"ResultModule"` }
BandPrecheckResponse is the response struct for api BandPrecheck
func CreateBandPrecheckResponse ¶
func CreateBandPrecheckResponse() (response *BandPrecheckResponse)
CreateBandPrecheckResponse creates a response to parse from BandPrecheck response
type BandStartSpeedUpRequest ¶
type BandStartSpeedUpRequest struct { *requests.RpcRequest IpAddress string `position:"Query" name:"IpAddress"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` Port requests.Integer `position:"Query" name:"Port"` BandId requests.Integer `position:"Query" name:"BandId"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` TargetBandwidth requests.Integer `position:"Query" name:"TargetBandwidth"` BandScene string `position:"Query" name:"BandScene"` Direction string `position:"Query" name:"Direction"` }
BandStartSpeedUpRequest is the request struct for api BandStartSpeedUp
func CreateBandStartSpeedUpRequest ¶
func CreateBandStartSpeedUpRequest() (request *BandStartSpeedUpRequest)
CreateBandStartSpeedUpRequest creates a request to invoke BandStartSpeedUp API
type BandStartSpeedUpResponse ¶
type BandStartSpeedUpResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` ResultCode string `json:"ResultCode" xml:"ResultCode"` ResultMessage string `json:"ResultMessage" xml:"ResultMessage"` ResultModule bool `json:"ResultModule" xml:"ResultModule"` }
BandStartSpeedUpResponse is the response struct for api BandStartSpeedUp
func CreateBandStartSpeedUpResponse ¶
func CreateBandStartSpeedUpResponse() (response *BandStartSpeedUpResponse)
CreateBandStartSpeedUpResponse creates a response to parse from BandStartSpeedUp response
type BandStatusQueryRequest ¶
type BandStatusQueryRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` BandId requests.Integer `position:"Query" name:"BandId"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` }
BandStatusQueryRequest is the request struct for api BandStatusQuery
func CreateBandStatusQueryRequest ¶
func CreateBandStatusQueryRequest() (request *BandStatusQueryRequest)
CreateBandStatusQueryRequest creates a request to invoke BandStatusQuery API
type BandStatusQueryResponse ¶
type BandStatusQueryResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` ResultCode string `json:"ResultCode" xml:"ResultCode"` ResultMessage string `json:"ResultMessage" xml:"ResultMessage"` ResultModule ResultModule `json:"ResultModule" xml:"ResultModule"` }
BandStatusQueryResponse is the response struct for api BandStatusQuery
func CreateBandStatusQueryResponse ¶
func CreateBandStatusQueryResponse() (response *BandStatusQueryResponse)
CreateBandStatusQueryResponse creates a response to parse from BandStatusQuery response
type BandStopSpeedUpRequest ¶
type BandStopSpeedUpRequest struct { *requests.RpcRequest IpAddress string `position:"Query" name:"IpAddress"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` Port requests.Integer `position:"Query" name:"Port"` BandId requests.Integer `position:"Query" name:"BandId"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` Direction string `position:"Query" name:"Direction"` }
BandStopSpeedUpRequest is the request struct for api BandStopSpeedUp
func CreateBandStopSpeedUpRequest ¶
func CreateBandStopSpeedUpRequest() (request *BandStopSpeedUpRequest)
CreateBandStopSpeedUpRequest creates a request to invoke BandStopSpeedUp API
type BandStopSpeedUpResponse ¶
type BandStopSpeedUpResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` ResultCode string `json:"ResultCode" xml:"ResultCode"` ResultMessage string `json:"ResultMessage" xml:"ResultMessage"` ResultModule bool `json:"ResultModule" xml:"ResultModule"` }
BandStopSpeedUpResponse is the response struct for api BandStopSpeedUp
func CreateBandStopSpeedUpResponse ¶
func CreateBandStopSpeedUpResponse() (response *BandStopSpeedUpResponse)
CreateBandStopSpeedUpResponse creates a response to parse from BandStopSpeedUp response
type Client ¶
Client is the sdk client struct, each func corresponds to an OpenAPI
func NewClientWithAccessKey ¶
func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error)
NewClientWithAccessKey is a shortcut to create sdk client with accesskey usage: https://help.aliyun.com/document_detail/66217.html
func NewClientWithEcsRamRole ¶
NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role usage: https://help.aliyun.com/document_detail/66223.html
func NewClientWithOptions ¶
func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error)
NewClientWithOptions creates a sdk client with regionId/sdkConfig/credential this is the common api to create a sdk client
func NewClientWithRamRoleArn ¶
func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error)
NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn usage: https://help.aliyun.com/document_detail/66222.html
func NewClientWithRsaKeyPair ¶
func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error)
NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair attention: rsa key pair auth is only Japan regions available
func NewClientWithStsToken ¶
func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error)
NewClientWithStsToken is a shortcut to create sdk client with sts token usage: https://help.aliyun.com/document_detail/66222.html
func (*Client) BandOfferOrder ¶
func (client *Client) BandOfferOrder(request *BandOfferOrderRequest) (response *BandOfferOrderResponse, err error)
BandOfferOrder invokes the snsuapi.BandOfferOrder API synchronously api document: https://help.aliyun.com/api/snsuapi/bandofferorder.html
func (*Client) BandOfferOrderWithCallback ¶
func (client *Client) BandOfferOrderWithCallback(request *BandOfferOrderRequest, callback func(response *BandOfferOrderResponse, err error)) <-chan int
BandOfferOrderWithCallback invokes the snsuapi.BandOfferOrder API asynchronously api document: https://help.aliyun.com/api/snsuapi/bandofferorder.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) BandOfferOrderWithChan ¶
func (client *Client) BandOfferOrderWithChan(request *BandOfferOrderRequest) (<-chan *BandOfferOrderResponse, <-chan error)
BandOfferOrderWithChan invokes the snsuapi.BandOfferOrder API asynchronously api document: https://help.aliyun.com/api/snsuapi/bandofferorder.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) BandPrecheck ¶
func (client *Client) BandPrecheck(request *BandPrecheckRequest) (response *BandPrecheckResponse, err error)
BandPrecheck invokes the snsuapi.BandPrecheck API synchronously api document: https://help.aliyun.com/api/snsuapi/bandprecheck.html
func (*Client) BandPrecheckWithCallback ¶
func (client *Client) BandPrecheckWithCallback(request *BandPrecheckRequest, callback func(response *BandPrecheckResponse, err error)) <-chan int
BandPrecheckWithCallback invokes the snsuapi.BandPrecheck API asynchronously api document: https://help.aliyun.com/api/snsuapi/bandprecheck.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) BandPrecheckWithChan ¶
func (client *Client) BandPrecheckWithChan(request *BandPrecheckRequest) (<-chan *BandPrecheckResponse, <-chan error)
BandPrecheckWithChan invokes the snsuapi.BandPrecheck API asynchronously api document: https://help.aliyun.com/api/snsuapi/bandprecheck.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) BandStartSpeedUp ¶
func (client *Client) BandStartSpeedUp(request *BandStartSpeedUpRequest) (response *BandStartSpeedUpResponse, err error)
BandStartSpeedUp invokes the snsuapi.BandStartSpeedUp API synchronously api document: https://help.aliyun.com/api/snsuapi/bandstartspeedup.html
func (*Client) BandStartSpeedUpWithCallback ¶
func (client *Client) BandStartSpeedUpWithCallback(request *BandStartSpeedUpRequest, callback func(response *BandStartSpeedUpResponse, err error)) <-chan int
BandStartSpeedUpWithCallback invokes the snsuapi.BandStartSpeedUp API asynchronously api document: https://help.aliyun.com/api/snsuapi/bandstartspeedup.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) BandStartSpeedUpWithChan ¶
func (client *Client) BandStartSpeedUpWithChan(request *BandStartSpeedUpRequest) (<-chan *BandStartSpeedUpResponse, <-chan error)
BandStartSpeedUpWithChan invokes the snsuapi.BandStartSpeedUp API asynchronously api document: https://help.aliyun.com/api/snsuapi/bandstartspeedup.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) BandStatusQuery ¶
func (client *Client) BandStatusQuery(request *BandStatusQueryRequest) (response *BandStatusQueryResponse, err error)
BandStatusQuery invokes the snsuapi.BandStatusQuery API synchronously api document: https://help.aliyun.com/api/snsuapi/bandstatusquery.html
func (*Client) BandStatusQueryWithCallback ¶
func (client *Client) BandStatusQueryWithCallback(request *BandStatusQueryRequest, callback func(response *BandStatusQueryResponse, err error)) <-chan int
BandStatusQueryWithCallback invokes the snsuapi.BandStatusQuery API asynchronously api document: https://help.aliyun.com/api/snsuapi/bandstatusquery.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) BandStatusQueryWithChan ¶
func (client *Client) BandStatusQueryWithChan(request *BandStatusQueryRequest) (<-chan *BandStatusQueryResponse, <-chan error)
BandStatusQueryWithChan invokes the snsuapi.BandStatusQuery API asynchronously api document: https://help.aliyun.com/api/snsuapi/bandstatusquery.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) BandStopSpeedUp ¶
func (client *Client) BandStopSpeedUp(request *BandStopSpeedUpRequest) (response *BandStopSpeedUpResponse, err error)
BandStopSpeedUp invokes the snsuapi.BandStopSpeedUp API synchronously api document: https://help.aliyun.com/api/snsuapi/bandstopspeedup.html
func (*Client) BandStopSpeedUpWithCallback ¶
func (client *Client) BandStopSpeedUpWithCallback(request *BandStopSpeedUpRequest, callback func(response *BandStopSpeedUpResponse, err error)) <-chan int
BandStopSpeedUpWithCallback invokes the snsuapi.BandStopSpeedUp API asynchronously api document: https://help.aliyun.com/api/snsuapi/bandstopspeedup.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (*Client) BandStopSpeedUpWithChan ¶
func (client *Client) BandStopSpeedUpWithChan(request *BandStopSpeedUpRequest) (<-chan *BandStopSpeedUpResponse, <-chan error)
BandStopSpeedUpWithChan invokes the snsuapi.BandStopSpeedUp API asynchronously api document: https://help.aliyun.com/api/snsuapi/bandstopspeedup.html asynchronous document: https://help.aliyun.com/document_detail/66220.html
type ResultModule ¶
type ResultModule struct { DownloadTarget int `json:"DownloadTarget" xml:"DownloadTarget"` DownloadBandwidth int `json:"DownloadBandwidth" xml:"DownloadBandwidth"` BandId int `json:"BandId" xml:"BandId"` UploadBandwidth int `json:"UploadBandwidth" xml:"UploadBandwidth"` UploadTarget int `json:"UploadTarget" xml:"UploadTarget"` BandOfferList BandOfferList `json:"BandOfferList" xml:"BandOfferList"` }
ResultModule is a nested struct in snsuapi response