ddosdiversion

package
v1.62.631 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 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 CleanTh

type CleanTh struct {
	Mbps int `json:"Mbps" xml:"Mbps"`
	Pps  int `json:"Pps" xml:"Pps"`
}

CleanTh is a nested struct in ddosdiversion 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) ConfigNetStatus

func (client *Client) ConfigNetStatus(request *ConfigNetStatusRequest) (response *ConfigNetStatusResponse, err error)

ConfigNetStatus invokes the ddosdiversion.ConfigNetStatus API synchronously

func (*Client) ConfigNetStatusWithCallback

func (client *Client) ConfigNetStatusWithCallback(request *ConfigNetStatusRequest, callback func(response *ConfigNetStatusResponse, err error)) <-chan int

ConfigNetStatusWithCallback invokes the ddosdiversion.ConfigNetStatus API asynchronously

func (*Client) ConfigNetStatusWithChan

func (client *Client) ConfigNetStatusWithChan(request *ConfigNetStatusRequest) (<-chan *ConfigNetStatusResponse, <-chan error)

ConfigNetStatusWithChan invokes the ddosdiversion.ConfigNetStatus API asynchronously

func (*Client) ListInstance

func (client *Client) ListInstance(request *ListInstanceRequest) (response *ListInstanceResponse, err error)

ListInstance invokes the ddosdiversion.ListInstance API synchronously

func (*Client) ListInstanceWithCallback

func (client *Client) ListInstanceWithCallback(request *ListInstanceRequest, callback func(response *ListInstanceResponse, err error)) <-chan int

ListInstanceWithCallback invokes the ddosdiversion.ListInstance API asynchronously

func (*Client) ListInstanceWithChan

func (client *Client) ListInstanceWithChan(request *ListInstanceRequest) (<-chan *ListInstanceResponse, <-chan error)

ListInstanceWithChan invokes the ddosdiversion.ListInstance API asynchronously

func (*Client) QueryNetList

func (client *Client) QueryNetList(request *QueryNetListRequest) (response *QueryNetListResponse, err error)

QueryNetList invokes the ddosdiversion.QueryNetList API synchronously

func (*Client) QueryNetListWithCallback

func (client *Client) QueryNetListWithCallback(request *QueryNetListRequest, callback func(response *QueryNetListResponse, err error)) <-chan int

QueryNetListWithCallback invokes the ddosdiversion.QueryNetList API asynchronously

func (*Client) QueryNetListWithChan

func (client *Client) QueryNetListWithChan(request *QueryNetListRequest) (<-chan *QueryNetListResponse, <-chan error)

QueryNetListWithChan invokes the ddosdiversion.QueryNetList API asynchronously

type ConfigNetStatusRequest

type ConfigNetStatusRequest struct {
	*requests.RpcRequest
	Regions *[]string `position:"Query" name:"Regions"  type:"Repeated"`
	SubNets *[]string `position:"Query" name:"SubNets"  type:"Repeated"`
	Net     string    `position:"Query" name:"Net"`
	SaleId  string    `position:"Query" name:"SaleId"`
	Status  string    `position:"Query" name:"Status"`
}

ConfigNetStatusRequest is the request struct for api ConfigNetStatus

func CreateConfigNetStatusRequest

func CreateConfigNetStatusRequest() (request *ConfigNetStatusRequest)

CreateConfigNetStatusRequest creates a request to invoke ConfigNetStatus API

type ConfigNetStatusResponse

type ConfigNetStatusResponse struct {
	*responses.BaseResponse
	Code      int64  `json:"Code" xml:"Code"`
	RequestId string `json:"RequestId" xml:"RequestId"`
	Message   string `json:"Message" xml:"Message"`
}

ConfigNetStatusResponse is the response struct for api ConfigNetStatus

func CreateConfigNetStatusResponse

func CreateConfigNetStatusResponse() (response *ConfigNetStatusResponse)

CreateConfigNetStatusResponse creates a response to parse from ConfigNetStatus response

type DDoSDefense

type DDoSDefense struct {
	DjPolicy DjPolicy `json:"DjPolicy" xml:"DjPolicy"`
	CleanTh  CleanTh  `json:"CleanTh" xml:"CleanTh"`
	HoleTh   HoleTh   `json:"HoleTh" xml:"HoleTh"`
}

DDoSDefense is a nested struct in ddosdiversion response

type Data

type Data struct {
	Name          string         `json:"Name" xml:"Name"`
	Message       string         `json:"Message" xml:"Message"`
	GmtExpire     string         `json:"GmtExpire" xml:"GmtExpire"`
	SaleId        string         `json:"SaleId" xml:"SaleId"`
	FwdEffect     int64          `json:"FwdEffect" xml:"FwdEffect"`
	Net           string         `json:"Net" xml:"Net"`
	Mode          string         `json:"Mode" xml:"Mode"`
	UpstreamType  string         `json:"UpstreamType" xml:"UpstreamType"`
	Comment       string         `json:"Comment" xml:"Comment"`
	GmtCreate     string         `json:"GmtCreate" xml:"GmtCreate"`
	UserId        string         `json:"UserId" xml:"UserId"`
	InstanceId    string         `json:"InstanceId" xml:"InstanceId"`
	GmtModify     string         `json:"GmtModify" xml:"GmtModify"`
	NetMain       string         `json:"NetMain" xml:"NetMain"`
	Status        string         `json:"Status" xml:"Status"`
	NetExtend     int64          `json:"NetExtend" xml:"NetExtend"`
	NetType       string         `json:"NetType" xml:"NetType"`
	DeclaredState int            `json:"DeclaredState" xml:"DeclaredState"`
	DDoSDefense   DDoSDefense    `json:"DDoSDefense" xml:"DDoSDefense"`
	Spec          Spec           `json:"Spec" xml:"Spec"`
	Declared      []DeclaredItem `json:"Declared" xml:"Declared"`
}

Data is a nested struct in ddosdiversion response

type DataInListInstance

type DataInListInstance struct {
	DataItem []DataItem `json:"data" xml:"data"`
}

DataInListInstance is a nested struct in ddosdiversion response

type DataInQueryNetList

type DataInQueryNetList struct {
	DataItem []DataItem `json:"data" xml:"data"`
}

DataInQueryNetList is a nested struct in ddosdiversion response

type DataItem

type DataItem struct {
	Num       int64  `json:"Num" xml:"Num"`
	Total     int64  `json:"Total" xml:"Total"`
	Page      int64  `json:"Page" xml:"Page"`
	Instances []Data `json:"Instances" xml:"Instances"`
	Nets      []Data `json:"Nets" xml:"Nets"`
}

DataItem is a nested struct in ddosdiversion response

type Declared

type Declared struct {
	DeclaredItem []DeclaredItem `json:"declared" xml:"declared"`
}

Declared is a nested struct in ddosdiversion response

type DeclaredItem

type DeclaredItem struct {
	Region   string `json:"Region" xml:"Region"`
	Declared string `json:"Declared" xml:"Declared"`
}

DeclaredItem is a nested struct in ddosdiversion response

type DjPolicy

type DjPolicy struct {
	PolicyName string `json:"PolicyName" xml:"PolicyName"`
}

DjPolicy is a nested struct in ddosdiversion response

type HoleTh

type HoleTh struct {
	ThreshMbps int `json:"ThreshMbps" xml:"ThreshMbps"`
}

HoleTh is a nested struct in ddosdiversion response

type Instances

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

Instances is a nested struct in ddosdiversion response

type ListInstanceRequest

type ListInstanceRequest struct {
	*requests.RpcRequest
	Num    requests.Integer `position:"Query" name:"Num"`
	SaleId string           `position:"Query" name:"SaleId"`
	Name   string           `position:"Query" name:"Name"`
	Page   requests.Integer `position:"Query" name:"Page"`
	Status string           `position:"Query" name:"Status"`
}

ListInstanceRequest is the request struct for api ListInstance

func CreateListInstanceRequest

func CreateListInstanceRequest() (request *ListInstanceRequest)

CreateListInstanceRequest creates a request to invoke ListInstance API

type ListInstanceResponse

type ListInstanceResponse struct {
	*responses.BaseResponse
	Code      int64      `json:"Code" xml:"Code"`
	RequestId string     `json:"RequestId" xml:"RequestId"`
	Message   string     `json:"Message" xml:"Message"`
	Data      []DataItem `json:"Data" xml:"Data"`
}

ListInstanceResponse is the response struct for api ListInstance

func CreateListInstanceResponse

func CreateListInstanceResponse() (response *ListInstanceResponse)

CreateListInstanceResponse creates a response to parse from ListInstance response

type Nets

type Nets struct {
	Data []Data `json:"data" xml:"data"`
}

Nets is a nested struct in ddosdiversion response

type QueryNetListRequest

type QueryNetListRequest struct {
	*requests.RpcRequest
	Num     requests.Integer `position:"Query" name:"Num"`
	MainNet string           `position:"Query" name:"MainNet"`
	Mode    string           `position:"Query" name:"Mode"`
	Net     string           `position:"Query" name:"Net"`
	SaleId  string           `position:"Query" name:"SaleId"`
	Page    requests.Integer `position:"Query" name:"Page"`
}

QueryNetListRequest is the request struct for api QueryNetList

func CreateQueryNetListRequest

func CreateQueryNetListRequest() (request *QueryNetListRequest)

CreateQueryNetListRequest creates a request to invoke QueryNetList API

type QueryNetListResponse

type QueryNetListResponse struct {
	*responses.BaseResponse
	Code      int64      `json:"Code" xml:"Code"`
	RequestId string     `json:"RequestId" xml:"RequestId"`
	Message   string     `json:"Message" xml:"Message"`
	Data      []DataItem `json:"Data" xml:"Data"`
}

QueryNetListResponse is the response struct for api QueryNetList

func CreateQueryNetListResponse

func CreateQueryNetListResponse() (response *QueryNetListResponse)

CreateQueryNetListResponse creates a response to parse from QueryNetList response

type Spec

type Spec struct {
	IdcNumbers                 string `json:"IdcNumbers" xml:"IdcNumbers"`
	NormalBandwidth            string `json:"NormalBandwidth" xml:"NormalBandwidth"`
	IpSubnetNums               string `json:"IpSubnetNums" xml:"IpSubnetNums"`
	Coverage                   string `json:"Coverage" xml:"Coverage"`
	Edition                    string `json:"Edition" xml:"Edition"`
	MitigationCapacity         string `json:"MitigationCapacity" xml:"MitigationCapacity"`
	MitigationNums             string `json:"MitigationNums" xml:"MitigationNums"`
	DiversionType              string `json:"DiversionType" xml:"DiversionType"`
	MitigationAnalysis         string `json:"MitigationAnalysis" xml:"MitigationAnalysis"`
	MitigationAnalysisCapacity string `json:"MitigationAnalysisCapacity" xml:"MitigationAnalysisCapacity"`
	InitialInstallation        string `json:"InitialInstallation" xml:"InitialInstallation"`
	InitialQty                 string `json:"InitialQty" xml:"InitialQty"`
}

Spec is a nested struct in ddosdiversion response

Jump to

Keyboard shortcuts

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