ddoscoo

package
v0.0.0-...-bbc24d0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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://help.aliyun.com/document_detail/66217.html

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://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) DescribeInstanceSpecs

func (client *Client) DescribeInstanceSpecs(request *DescribeInstanceSpecsRequest) (response *DescribeInstanceSpecsResponse, err error)

DescribeInstanceSpecs invokes the ddoscoo.DescribeInstanceSpecs API synchronously api document: https://help.aliyun.com/api/ddoscoo/describeinstancespecs.html

func (*Client) DescribeInstanceSpecsWithCallback

func (client *Client) DescribeInstanceSpecsWithCallback(request *DescribeInstanceSpecsRequest, callback func(response *DescribeInstanceSpecsResponse, err error)) <-chan int

DescribeInstanceSpecsWithCallback invokes the ddoscoo.DescribeInstanceSpecs API asynchronously api document: https://help.aliyun.com/api/ddoscoo/describeinstancespecs.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DescribeInstanceSpecsWithChan

func (client *Client) DescribeInstanceSpecsWithChan(request *DescribeInstanceSpecsRequest) (<-chan *DescribeInstanceSpecsResponse, <-chan error)

DescribeInstanceSpecsWithChan invokes the ddoscoo.DescribeInstanceSpecs API asynchronously api document: https://help.aliyun.com/api/ddoscoo/describeinstancespecs.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DescribeInstances

func (client *Client) DescribeInstances(request *DescribeInstancesRequest) (response *DescribeInstancesResponse, err error)

DescribeInstances invokes the ddoscoo.DescribeInstances API synchronously api document: https://help.aliyun.com/api/ddoscoo/describeinstances.html

func (*Client) DescribeInstancesWithCallback

func (client *Client) DescribeInstancesWithCallback(request *DescribeInstancesRequest, callback func(response *DescribeInstancesResponse, err error)) <-chan int

DescribeInstancesWithCallback invokes the ddoscoo.DescribeInstances API asynchronously api document: https://help.aliyun.com/api/ddoscoo/describeinstances.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) DescribeInstancesWithChan

func (client *Client) DescribeInstancesWithChan(request *DescribeInstancesRequest) (<-chan *DescribeInstancesResponse, <-chan error)

DescribeInstancesWithChan invokes the ddoscoo.DescribeInstances API asynchronously api document: https://help.aliyun.com/api/ddoscoo/describeinstances.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) ReleaseInstance

func (client *Client) ReleaseInstance(request *ReleaseInstanceRequest) (response *ReleaseInstanceResponse, err error)

ReleaseInstance invokes the ddoscoo.ReleaseInstance API synchronously api document: https://help.aliyun.com/api/ddoscoo/releaseinstance.html

func (*Client) ReleaseInstanceWithCallback

func (client *Client) ReleaseInstanceWithCallback(request *ReleaseInstanceRequest, callback func(response *ReleaseInstanceResponse, err error)) <-chan int

ReleaseInstanceWithCallback invokes the ddoscoo.ReleaseInstance API asynchronously api document: https://help.aliyun.com/api/ddoscoo/releaseinstance.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

func (*Client) ReleaseInstanceWithChan

func (client *Client) ReleaseInstanceWithChan(request *ReleaseInstanceRequest) (<-chan *ReleaseInstanceResponse, <-chan error)

ReleaseInstanceWithChan invokes the ddoscoo.ReleaseInstance API asynchronously api document: https://help.aliyun.com/api/ddoscoo/releaseinstance.html asynchronous document: https://help.aliyun.com/document_detail/66220.html

type DescribeInstanceSpecsRequest

type DescribeInstanceSpecsRequest struct {
	*requests.RpcRequest
	SourceIp    string `position:"Query" name:"SourceIp"`
	InstanceIds string `position:"Query" name:"InstanceIds"`
}

DescribeInstanceSpecsRequest is the request struct for api DescribeInstanceSpecs

func CreateDescribeInstanceSpecsRequest

func CreateDescribeInstanceSpecsRequest() (request *DescribeInstanceSpecsRequest)

CreateDescribeInstanceSpecsRequest creates a request to invoke DescribeInstanceSpecs API

type DescribeInstanceSpecsResponse

type DescribeInstanceSpecsResponse struct {
	*responses.BaseResponse
	RequestId     string         `json:"RequestId" xml:"RequestId"`
	InstanceSpecs []InstanceSpec `json:"InstanceSpecs" xml:"InstanceSpecs"`
}

DescribeInstanceSpecsResponse is the response struct for api DescribeInstanceSpecs

func CreateDescribeInstanceSpecsResponse

func CreateDescribeInstanceSpecsResponse() (response *DescribeInstanceSpecsResponse)

CreateDescribeInstanceSpecsResponse creates a response to parse from DescribeInstanceSpecs response

type DescribeInstancesRequest

type DescribeInstancesRequest struct {
	*requests.RpcRequest
	SourceIp    string                  `position:"Query" name:"SourceIp"`
	InstanceIds string                  `position:"Query" name:"InstanceIds"`
	PageNo      string                  `position:"Query" name:"PageNo"`
	Ip          string                  `position:"Query" name:"Ip"`
	PageSize    string                  `position:"Query" name:"PageSize"`
	Remark      string                  `position:"Query" name:"Remark"`
	Tag         *[]DescribeInstancesTag `position:"Query" name:"Tag"  type:"Repeated"`
}

DescribeInstancesRequest is the request struct for api DescribeInstances

func CreateDescribeInstancesRequest

func CreateDescribeInstancesRequest() (request *DescribeInstancesRequest)

CreateDescribeInstancesRequest creates a request to invoke DescribeInstances API

type DescribeInstancesResponse

type DescribeInstancesResponse struct {
	*responses.BaseResponse
	RequestId string     `json:"RequestId" xml:"RequestId"`
	Total     int        `json:"Total" xml:"Total"`
	Instances []Instance `json:"Instances" xml:"Instances"`
}

DescribeInstancesResponse is the response struct for api DescribeInstances

func CreateDescribeInstancesResponse

func CreateDescribeInstancesResponse() (response *DescribeInstancesResponse)

CreateDescribeInstancesResponse creates a response to parse from DescribeInstances response

type DescribeInstancesTag

type DescribeInstancesTag struct {
	Value string `name:"Value"`
	Key   string `name:"Key"`
}

DescribeInstancesTag is a repeated param struct in DescribeInstancesRequest

type Instance

type Instance struct {
	InstanceId string `json:"InstanceId" xml:"InstanceId"`
	Remark     string `json:"Remark" xml:"Remark"`
	Status     int    `json:"Status" xml:"Status"`
	DebtStatus int    `json:"DebtStatus" xml:"DebtStatus"`
	ExpireTime int    `json:"ExpireTime" xml:"ExpireTime"`
	GmtCreate  int    `json:"GmtCreate" xml:"GmtCreate"`
	Edition    int    `json:"Edition" xml:"Edition"`
}

Instance is a nested struct in ddoscoo response

type InstanceSpec

type InstanceSpec struct {
	InstanceId       string `json:"InstanceId" xml:"InstanceId"`
	BaseBandwidth    int    `json:"BaseBandwidth" xml:"BaseBandwidth"`
	ElasticBandwidth int    `json:"ElasticBandwidth" xml:"ElasticBandwidth"`
	PortLimit        int    `json:"PortLimit" xml:"PortLimit"`
	DomainLimit      int    `json:"DomainLimit" xml:"DomainLimit"`
	BandwidthMbps    int    `json:"BandwidthMbps" xml:"BandwidthMbps"`
	DefenseCount     int    `json:"DefenseCount" xml:"DefenseCount"`
}

InstanceSpec is a nested struct in ddoscoo response

type InstanceSpecs

type InstanceSpecs struct {
	InstanceSpec []InstanceSpec `json:"InstanceSpec" xml:"InstanceSpec"`
}

InstanceSpecs is a nested struct in ddoscoo response

type Instances

type Instances struct {
	Instance []Instance `json:"Instance" xml:"Instance"`
}

Instances is a nested struct in ddoscoo response

type ReleaseInstanceRequest

type ReleaseInstanceRequest struct {
	*requests.RpcRequest
	InstanceId string `position:"Query" name:"InstanceId"`
	SourceIp   string `position:"Query" name:"SourceIp"`
}

ReleaseInstanceRequest is the request struct for api ReleaseInstance

func CreateReleaseInstanceRequest

func CreateReleaseInstanceRequest() (request *ReleaseInstanceRequest)

CreateReleaseInstanceRequest creates a request to invoke ReleaseInstance API

type ReleaseInstanceResponse

type ReleaseInstanceResponse struct {
	*responses.BaseResponse
	RequestId string `json:"RequestId" xml:"RequestId"`
}

ReleaseInstanceResponse is the response struct for api ReleaseInstance

func CreateReleaseInstanceResponse

func CreateReleaseInstanceResponse() (response *ReleaseInstanceResponse)

CreateReleaseInstanceResponse creates a response to parse from ReleaseInstance response

Jump to

Keyboard shortcuts

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