Documentation ¶
Index ¶
- type Address
- type Addresses
- type Area
- type City
- 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 NewClientWithProvider(regionId string, providers ...provider.Provider) (client *Client, err error)
- func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error)
- func NewClientWithRamRoleArnAndPolicy(regionId 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) DescribeDeliveryAddress(request *DescribeDeliveryAddressRequest) (response *DescribeDeliveryAddressResponse, err error)
- func (client *Client) DescribeDeliveryAddressWithCallback(request *DescribeDeliveryAddressRequest, ...) <-chan int
- func (client *Client) DescribeDeliveryAddressWithChan(request *DescribeDeliveryAddressRequest) (<-chan *DescribeDeliveryAddressResponse, <-chan error)
- func (client *Client) DescribePackageDeductions(request *DescribePackageDeductionsRequest) (response *DescribePackageDeductionsResponse, err error)
- func (client *Client) DescribePackageDeductionsWithCallback(request *DescribePackageDeductionsRequest, ...) <-chan int
- func (client *Client) DescribePackageDeductionsWithChan(request *DescribePackageDeductionsRequest) (<-chan *DescribePackageDeductionsResponse, <-chan error)
- type Deduction
- type Deductions
- type DescribeDeliveryAddressRequest
- type DescribeDeliveryAddressResponse
- type DescribePackageDeductionsRequest
- type DescribePackageDeductionsResponse
- type Province
- type Town
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct { PostalCode string `json:"PostalCode" xml:"PostalCode"` Contacts string `json:"Contacts" xml:"Contacts"` Mobile string `json:"Mobile" xml:"Mobile"` DefaultAddress bool `json:"DefaultAddress" xml:"DefaultAddress"` Detail string `json:"Detail" xml:"Detail"` Province Province `json:"Province" xml:"Province"` City City `json:"City" xml:"City"` Area Area `json:"Area" xml:"Area"` Town Town `json:"Town" xml:"Town"` }
Address is a nested struct in wss response
type Addresses ¶
type Addresses struct {
Address []Address `json:"Address" xml:"Address"`
}
Addresses is a nested struct in wss response
type Area ¶
type Area struct { AreaName string `json:"AreaName" xml:"AreaName"` AreaId int64 `json:"AreaId" xml:"AreaId"` }
Area is a nested struct in wss response
type City ¶
type City struct { CityId int64 `json:"CityId" xml:"CityId"` CityName string `json:"CityName" xml:"CityName"` }
City is a nested struct in wss 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://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
func NewClientWithEcsRamRole ¶
NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
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 NewClientWithProvider ¶
func NewClientWithProvider(regionId string, providers ...provider.Provider) (client *Client, err error)
NewClientWithProvider creates a sdk client with providers usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
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://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
func NewClientWithRamRoleArnAndPolicy ¶
func NewClientWithRamRoleArnAndPolicy(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy string) (client *Client, err error)
NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn and policy usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
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 usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
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://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
func (*Client) DescribeDeliveryAddress ¶
func (client *Client) DescribeDeliveryAddress(request *DescribeDeliveryAddressRequest) (response *DescribeDeliveryAddressResponse, err error)
DescribeDeliveryAddress invokes the wss.DescribeDeliveryAddress API synchronously
func (*Client) DescribeDeliveryAddressWithCallback ¶
func (client *Client) DescribeDeliveryAddressWithCallback(request *DescribeDeliveryAddressRequest, callback func(response *DescribeDeliveryAddressResponse, err error)) <-chan int
DescribeDeliveryAddressWithCallback invokes the wss.DescribeDeliveryAddress API asynchronously
func (*Client) DescribeDeliveryAddressWithChan ¶
func (client *Client) DescribeDeliveryAddressWithChan(request *DescribeDeliveryAddressRequest) (<-chan *DescribeDeliveryAddressResponse, <-chan error)
DescribeDeliveryAddressWithChan invokes the wss.DescribeDeliveryAddress API asynchronously
func (*Client) DescribePackageDeductions ¶
func (client *Client) DescribePackageDeductions(request *DescribePackageDeductionsRequest) (response *DescribePackageDeductionsResponse, err error)
DescribePackageDeductions invokes the wss.DescribePackageDeductions API synchronously
func (*Client) DescribePackageDeductionsWithCallback ¶
func (client *Client) DescribePackageDeductionsWithCallback(request *DescribePackageDeductionsRequest, callback func(response *DescribePackageDeductionsResponse, err error)) <-chan int
DescribePackageDeductionsWithCallback invokes the wss.DescribePackageDeductions API asynchronously
func (*Client) DescribePackageDeductionsWithChan ¶
func (client *Client) DescribePackageDeductionsWithChan(request *DescribePackageDeductionsRequest) (<-chan *DescribePackageDeductionsResponse, <-chan error)
DescribePackageDeductionsWithChan invokes the wss.DescribePackageDeductions API asynchronously
type Deduction ¶
type Deduction struct { DesktopName string `json:"DesktopName" xml:"DesktopName"` DesktopId string `json:"DesktopId" xml:"DesktopId"` RegionId string `json:"RegionId" xml:"RegionId"` DesktopType string `json:"DesktopType" xml:"DesktopType"` OsType string `json:"OsType" xml:"OsType"` StaTime string `json:"StaTime" xml:"StaTime"` EndTime string `json:"EndTime" xml:"EndTime"` ResourceType string `json:"ResourceType" xml:"ResourceType"` UsedTime int64 `json:"UsedTime" xml:"UsedTime"` UsedCoreTime float64 `json:"UsedCoreTime" xml:"UsedCoreTime"` InstanceState string `json:"InstanceState" xml:"InstanceState"` Memory int64 `json:"Memory" xml:"Memory"` Cpu int `json:"Cpu" xml:"Cpu"` Gpu string `json:"Gpu" xml:"Gpu"` }
Deduction is a nested struct in wss response
type Deductions ¶
type Deductions struct {
Deduction []Deduction `json:"deduction" xml:"deduction"`
}
Deductions is a nested struct in wss response
type DescribeDeliveryAddressRequest ¶
type DescribeDeliveryAddressRequest struct {
*requests.RpcRequest
}
DescribeDeliveryAddressRequest is the request struct for api DescribeDeliveryAddress
func CreateDescribeDeliveryAddressRequest ¶
func CreateDescribeDeliveryAddressRequest() (request *DescribeDeliveryAddressRequest)
CreateDescribeDeliveryAddressRequest creates a request to invoke DescribeDeliveryAddress API
type DescribeDeliveryAddressResponse ¶
type DescribeDeliveryAddressResponse struct { *responses.BaseResponse TotalCount int `json:"TotalCount" xml:"TotalCount"` RequestId string `json:"RequestId" xml:"RequestId"` Addresses []Address `json:"Addresses" xml:"Addresses"` }
DescribeDeliveryAddressResponse is the response struct for api DescribeDeliveryAddress
func CreateDescribeDeliveryAddressResponse ¶
func CreateDescribeDeliveryAddressResponse() (response *DescribeDeliveryAddressResponse)
CreateDescribeDeliveryAddressResponse creates a response to parse from DescribeDeliveryAddress response
type DescribePackageDeductionsRequest ¶
type DescribePackageDeductionsRequest struct { *requests.RpcRequest PageNum requests.Integer `position:"Query" name:"PageNum"` ResourceType string `position:"Query" name:"ResourceType"` PackageIds *[]string `position:"Query" name:"PackageIds" type:"Repeated"` InstanceIds *[]string `position:"Query" name:"InstanceIds" type:"Repeated"` PageSize requests.Integer `position:"Query" name:"PageSize"` }
DescribePackageDeductionsRequest is the request struct for api DescribePackageDeductions
func CreateDescribePackageDeductionsRequest ¶
func CreateDescribePackageDeductionsRequest() (request *DescribePackageDeductionsRequest)
CreateDescribePackageDeductionsRequest creates a request to invoke DescribePackageDeductions API
type DescribePackageDeductionsResponse ¶
type DescribePackageDeductionsResponse struct { *responses.BaseResponse PageNum int `json:"PageNum" xml:"PageNum"` RequestId string `json:"RequestId" xml:"RequestId"` PageSize int `json:"PageSize" xml:"PageSize"` TotalCount int64 `json:"TotalCount" xml:"TotalCount"` Deductions []Deduction `json:"Deductions" xml:"Deductions"` }
DescribePackageDeductionsResponse is the response struct for api DescribePackageDeductions
func CreateDescribePackageDeductionsResponse ¶
func CreateDescribePackageDeductionsResponse() (response *DescribePackageDeductionsResponse)
CreateDescribePackageDeductionsResponse creates a response to parse from DescribePackageDeductions response