wss

package
v1.63.61 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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

type Client struct {
	sdk.Client
}

Client is the sdk client struct, each func corresponds to an OpenAPI

func NewClient

func NewClient() (client *Client, err error)

NewClient creates a sdk client with environment variables

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

func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error)

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

type Province

type Province struct {
	ProvinceId   int64  `json:"ProvinceId" xml:"ProvinceId"`
	ProvinceName string `json:"ProvinceName" xml:"ProvinceName"`
}

Province is a nested struct in wss response

type Town

type Town struct {
	TownName string `json:"TownName" xml:"TownName"`
	TownId   int64  `json:"TownId" xml:"TownId"`
}

Town is a nested struct in wss response

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL