client

package
v1.0.3 Latest Latest
Warning

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

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

Documentation

Overview

This file is auto-generated, don't edit it. Thanks. *

*

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	openapi.Client
}

func NewClient

func NewClient(config *openapi.Config) (*Client, error)

func (*Client) ConfigNetStatus

func (client *Client) ConfigNetStatus(request *ConfigNetStatusRequest) (_result *ConfigNetStatusResponse, _err error)

func (*Client) ConfigNetStatusWithOptions

func (client *Client) ConfigNetStatusWithOptions(request *ConfigNetStatusRequest, runtime *util.RuntimeOptions) (_result *ConfigNetStatusResponse, _err error)

func (*Client) GetEndpoint

func (client *Client) GetEndpoint(productId *string, regionId *string, endpointRule *string, network *string, suffix *string, endpointMap map[string]*string, endpoint *string) (_result *string, _err error)

func (*Client) Init

func (client *Client) Init(config *openapi.Config) (_err error)

func (*Client) ListInstance

func (client *Client) ListInstance(request *ListInstanceRequest) (_result *ListInstanceResponse, _err error)

func (*Client) ListInstanceWithOptions

func (client *Client) ListInstanceWithOptions(request *ListInstanceRequest, runtime *util.RuntimeOptions) (_result *ListInstanceResponse, _err error)

func (*Client) QueryNetList

func (client *Client) QueryNetList(request *QueryNetListRequest) (_result *QueryNetListResponse, _err error)

func (*Client) QueryNetListWithOptions

func (client *Client) QueryNetListWithOptions(request *QueryNetListRequest, runtime *util.RuntimeOptions) (_result *QueryNetListResponse, _err error)

type ConfigNetStatusRequest

type ConfigNetStatusRequest struct {
	// The CIDR block of the anti-DDoS diversion instance.
	Net *string `json:"Net,omitempty" xml:"Net,omitempty"`
	// The regions in which the CIDR block needs to be advertised or withdrawn from advertising. If you leave this parameter empty, the CIDR blocks in all regions are configured.
	//
	// >  You can call the [QueryNetList](~~2639086~~) operation to obtain the regions of the CIDR blocks.
	Regions []*string `json:"Regions,omitempty" xml:"Regions,omitempty" type:"Repeated"`
	// The ID of the anti-DDoS diversion instance.
	SaleId *string `json:"SaleId,omitempty" xml:"SaleId,omitempty"`
	// The status of the CIDR block. Valid values:
	//
	// *   enable: advertises the CIDR block.
	// *   disable: withdraws the advertising of the CIDR block.
	Status *string `json:"Status,omitempty" xml:"Status,omitempty"`
	// The subnet CIDR blocks of the CIDR block.
	SubNets []*string `json:"SubNets,omitempty" xml:"SubNets,omitempty" type:"Repeated"`
}

func (ConfigNetStatusRequest) GoString

func (s ConfigNetStatusRequest) GoString() string

func (*ConfigNetStatusRequest) SetNet

func (*ConfigNetStatusRequest) SetRegions

func (*ConfigNetStatusRequest) SetSaleId

func (*ConfigNetStatusRequest) SetStatus

func (*ConfigNetStatusRequest) SetSubNets

func (ConfigNetStatusRequest) String

func (s ConfigNetStatusRequest) String() string

type ConfigNetStatusResponse

type ConfigNetStatusResponse struct {
	Headers    map[string]*string           `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                       `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *ConfigNetStatusResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (ConfigNetStatusResponse) GoString

func (s ConfigNetStatusResponse) GoString() string

func (*ConfigNetStatusResponse) SetBody

func (*ConfigNetStatusResponse) SetHeaders

func (*ConfigNetStatusResponse) SetStatusCode

func (ConfigNetStatusResponse) String

func (s ConfigNetStatusResponse) String() string

type ConfigNetStatusResponseBody

type ConfigNetStatusResponseBody struct {
	// The status code.
	//
	// *   **200**: The request was successful.
	// *   Other codes: The request failed.
	Code *int64 `json:"Code,omitempty" xml:"Code,omitempty"`
	// The response parameters.
	Message *string `json:"Message,omitempty" xml:"Message,omitempty"`
	// The request ID.
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (ConfigNetStatusResponseBody) GoString

func (s ConfigNetStatusResponseBody) GoString() string

func (*ConfigNetStatusResponseBody) SetCode

func (*ConfigNetStatusResponseBody) SetMessage

func (*ConfigNetStatusResponseBody) SetRequestId

func (ConfigNetStatusResponseBody) String

type ListInstanceRequest

type ListInstanceRequest struct {
	// The name of the instance.
	Name *string `json:"Name,omitempty" xml:"Name,omitempty"`
	// The number of entries per page. Default value: 100.
	Num *int64 `json:"Num,omitempty" xml:"Num,omitempty"`
	// The page number. Default value: 1
	Page *int64 `json:"Page,omitempty" xml:"Page,omitempty"`
	// The ID of the anti-DDoS diversion instance.
	SaleId *string `json:"SaleId,omitempty" xml:"SaleId,omitempty"`
	// The status of the instance. Valid values:
	//
	// *   normal
	// *   expired
	// *   deleting
	// *   stopped
	Status *string `json:"Status,omitempty" xml:"Status,omitempty"`
}

func (ListInstanceRequest) GoString

func (s ListInstanceRequest) GoString() string

func (*ListInstanceRequest) SetName

func (*ListInstanceRequest) SetNum

func (*ListInstanceRequest) SetPage

func (*ListInstanceRequest) SetSaleId

func (*ListInstanceRequest) SetStatus

func (ListInstanceRequest) String

func (s ListInstanceRequest) String() string

type ListInstanceResponse

type ListInstanceResponse struct {
	Headers    map[string]*string        `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                    `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *ListInstanceResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (ListInstanceResponse) GoString

func (s ListInstanceResponse) GoString() string

func (*ListInstanceResponse) SetBody

func (*ListInstanceResponse) SetHeaders

func (s *ListInstanceResponse) SetHeaders(v map[string]*string) *ListInstanceResponse

func (*ListInstanceResponse) SetStatusCode

func (s *ListInstanceResponse) SetStatusCode(v int32) *ListInstanceResponse

func (ListInstanceResponse) String

func (s ListInstanceResponse) String() string

type ListInstanceResponseBody

type ListInstanceResponseBody struct {
	// The status code.
	//
	// *   **200**: The request was successful.
	// *   Other codes: The request failed.
	Code *int64 `json:"Code,omitempty" xml:"Code,omitempty"`
	// The returned result.
	Data *ListInstanceResponseBodyData `json:"Data,omitempty" xml:"Data,omitempty" type:"Struct"`
	// The response parameters.
	Message *string `json:"Message,omitempty" xml:"Message,omitempty"`
	// The request ID.
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (ListInstanceResponseBody) GoString

func (s ListInstanceResponseBody) GoString() string

func (*ListInstanceResponseBody) SetCode

func (*ListInstanceResponseBody) SetData

func (*ListInstanceResponseBody) SetMessage

func (*ListInstanceResponseBody) SetRequestId

func (ListInstanceResponseBody) String

func (s ListInstanceResponseBody) String() string

type ListInstanceResponseBodyData

type ListInstanceResponseBodyData struct {
	Instances []*ListInstanceResponseBodyDataInstances `json:"Instances,omitempty" xml:"Instances,omitempty" type:"Repeated"`
	Num       *int64                                   `json:"Num,omitempty" xml:"Num,omitempty"`
	Page      *int64                                   `json:"Page,omitempty" xml:"Page,omitempty"`
	Total     *int64                                   `json:"Total,omitempty" xml:"Total,omitempty"`
}

func (ListInstanceResponseBodyData) GoString

func (s ListInstanceResponseBodyData) GoString() string

func (*ListInstanceResponseBodyData) SetInstances

func (*ListInstanceResponseBodyData) SetNum

func (*ListInstanceResponseBodyData) SetPage

func (*ListInstanceResponseBodyData) SetTotal

func (ListInstanceResponseBodyData) String

type ListInstanceResponseBodyDataInstances

type ListInstanceResponseBodyDataInstances struct {
	Comment    *string                                    `json:"Comment,omitempty" xml:"Comment,omitempty"`
	GmtCreate  *string                                    `json:"GmtCreate,omitempty" xml:"GmtCreate,omitempty"`
	GmtExpire  *string                                    `json:"GmtExpire,omitempty" xml:"GmtExpire,omitempty"`
	GmtModify  *string                                    `json:"GmtModify,omitempty" xml:"GmtModify,omitempty"`
	InstanceId *string                                    `json:"InstanceId,omitempty" xml:"InstanceId,omitempty"`
	Message    *string                                    `json:"Message,omitempty" xml:"Message,omitempty"`
	Name       *string                                    `json:"Name,omitempty" xml:"Name,omitempty"`
	SaleId     *string                                    `json:"SaleId,omitempty" xml:"SaleId,omitempty"`
	Spec       *ListInstanceResponseBodyDataInstancesSpec `json:"Spec,omitempty" xml:"Spec,omitempty" type:"Struct"`
	Status     *string                                    `json:"Status,omitempty" xml:"Status,omitempty"`
	UserId     *string                                    `json:"UserId,omitempty" xml:"UserId,omitempty"`
}

func (ListInstanceResponseBodyDataInstances) GoString

func (*ListInstanceResponseBodyDataInstances) SetComment

func (*ListInstanceResponseBodyDataInstances) SetGmtCreate

func (*ListInstanceResponseBodyDataInstances) SetGmtExpire

func (*ListInstanceResponseBodyDataInstances) SetGmtModify

func (*ListInstanceResponseBodyDataInstances) SetInstanceId

func (*ListInstanceResponseBodyDataInstances) SetMessage

func (*ListInstanceResponseBodyDataInstances) SetName

func (*ListInstanceResponseBodyDataInstances) SetSaleId

func (*ListInstanceResponseBodyDataInstances) SetStatus

func (*ListInstanceResponseBodyDataInstances) SetUserId

func (ListInstanceResponseBodyDataInstances) String

type ListInstanceResponseBodyDataInstancesSpec

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

func (ListInstanceResponseBodyDataInstancesSpec) GoString

func (*ListInstanceResponseBodyDataInstancesSpec) SetCoverage

func (*ListInstanceResponseBodyDataInstancesSpec) SetDiversionType

func (*ListInstanceResponseBodyDataInstancesSpec) SetEdition

func (*ListInstanceResponseBodyDataInstancesSpec) SetIdcNumbers

func (*ListInstanceResponseBodyDataInstancesSpec) SetInitialInstallation

func (*ListInstanceResponseBodyDataInstancesSpec) SetInitialQty

func (*ListInstanceResponseBodyDataInstancesSpec) SetIpSubnetNums

func (*ListInstanceResponseBodyDataInstancesSpec) SetMitigationAnalysis

func (*ListInstanceResponseBodyDataInstancesSpec) SetMitigationAnalysisCapacity

func (*ListInstanceResponseBodyDataInstancesSpec) SetMitigationCapacity

func (*ListInstanceResponseBodyDataInstancesSpec) SetMitigationNums

func (*ListInstanceResponseBodyDataInstancesSpec) SetNormalBandwidth

func (ListInstanceResponseBodyDataInstancesSpec) String

type QueryNetListRequest

type QueryNetListRequest struct {
	// The primary CIDR block of the anti-DDoS diversion instance for which an extended CIDR block is configured. If no extended CIDR blocks are configured for the anti-DDoS diversion instance, leave this parameter empty.
	MainNet *string `json:"MainNet,omitempty" xml:"MainNet,omitempty"`
	// The scheduling mode. Valid values:
	//
	// *   manual: manual scheduling
	// *   netflow-auto: automatic scheduling
	Mode *string `json:"Mode,omitempty" xml:"Mode,omitempty"`
	// The CIDR block of the anti-DDoS diversion instance.
	//
	// >  If no extended CIDR blocks are configured for the anti-DDoS diversion instance, this parameter specifies the CIDR block of the instance. If an extended CIDR block is configured for the anti-DDoS diversion instance, this parameter specifies the extended CIDR block that is configured for the instance. If this parameter is specified, the MainNet parameter is required.
	Net *string `json:"Net,omitempty" xml:"Net,omitempty"`
	// The number of entries per page. Default value: 100.
	Num *int64 `json:"Num,omitempty" xml:"Num,omitempty"`
	// The page number. Default value: 1
	Page *int64 `json:"Page,omitempty" xml:"Page,omitempty"`
	// The ID of the anti-DDoS diversion instance.
	SaleId *string `json:"SaleId,omitempty" xml:"SaleId,omitempty"`
}

func (QueryNetListRequest) GoString

func (s QueryNetListRequest) GoString() string

func (*QueryNetListRequest) SetMainNet

func (*QueryNetListRequest) SetMode

func (*QueryNetListRequest) SetNet

func (*QueryNetListRequest) SetNum

func (*QueryNetListRequest) SetPage

func (*QueryNetListRequest) SetSaleId

func (QueryNetListRequest) String

func (s QueryNetListRequest) String() string

type QueryNetListResponse

type QueryNetListResponse struct {
	Headers    map[string]*string        `json:"headers,omitempty" xml:"headers,omitempty"`
	StatusCode *int32                    `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
	Body       *QueryNetListResponseBody `json:"body,omitempty" xml:"body,omitempty"`
}

func (QueryNetListResponse) GoString

func (s QueryNetListResponse) GoString() string

func (*QueryNetListResponse) SetBody

func (*QueryNetListResponse) SetHeaders

func (s *QueryNetListResponse) SetHeaders(v map[string]*string) *QueryNetListResponse

func (*QueryNetListResponse) SetStatusCode

func (s *QueryNetListResponse) SetStatusCode(v int32) *QueryNetListResponse

func (QueryNetListResponse) String

func (s QueryNetListResponse) String() string

type QueryNetListResponseBody

type QueryNetListResponseBody struct {
	// The status code.
	//
	// *   **200**: The request was successful.
	// *   Other codes: The request failed.
	Code *int64 `json:"Code,omitempty" xml:"Code,omitempty"`
	// The CIDR blocks.
	Data *QueryNetListResponseBodyData `json:"Data,omitempty" xml:"Data,omitempty" type:"Struct"`
	// The response parameters.
	Message *string `json:"Message,omitempty" xml:"Message,omitempty"`
	// The request ID.
	RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
}

func (QueryNetListResponseBody) GoString

func (s QueryNetListResponseBody) GoString() string

func (*QueryNetListResponseBody) SetCode

func (*QueryNetListResponseBody) SetData

func (*QueryNetListResponseBody) SetMessage

func (*QueryNetListResponseBody) SetRequestId

func (QueryNetListResponseBody) String

func (s QueryNetListResponseBody) String() string

type QueryNetListResponseBodyData

type QueryNetListResponseBodyData struct {
	Nets  []*QueryNetListResponseBodyDataNets `json:"Nets,omitempty" xml:"Nets,omitempty" type:"Repeated"`
	Num   *int64                              `json:"Num,omitempty" xml:"Num,omitempty"`
	Page  *int64                              `json:"Page,omitempty" xml:"Page,omitempty"`
	Total *int64                              `json:"Total,omitempty" xml:"Total,omitempty"`
}

func (QueryNetListResponseBodyData) GoString

func (s QueryNetListResponseBodyData) GoString() string

func (*QueryNetListResponseBodyData) SetNets

func (*QueryNetListResponseBodyData) SetNum

func (*QueryNetListResponseBodyData) SetPage

func (*QueryNetListResponseBodyData) SetTotal

func (QueryNetListResponseBodyData) String

type QueryNetListResponseBodyDataNets

type QueryNetListResponseBodyDataNets struct {
	DDoSDefense   *QueryNetListResponseBodyDataNetsDDoSDefense `json:"DDoSDefense,omitempty" xml:"DDoSDefense,omitempty" type:"Struct"`
	Declared      []*QueryNetListResponseBodyDataNetsDeclared  `json:"Declared,omitempty" xml:"Declared,omitempty" type:"Repeated"`
	DeclaredState *int32                                       `json:"DeclaredState,omitempty" xml:"DeclaredState,omitempty"`
	FwdEffect     *int64                                       `json:"FwdEffect,omitempty" xml:"FwdEffect,omitempty"`
	GmtCreate     *string                                      `json:"GmtCreate,omitempty" xml:"GmtCreate,omitempty"`
	GmtModify     *string                                      `json:"GmtModify,omitempty" xml:"GmtModify,omitempty"`
	Mode          *string                                      `json:"Mode,omitempty" xml:"Mode,omitempty"`
	Net           *string                                      `json:"Net,omitempty" xml:"Net,omitempty"`
	NetExtend     *string                                      `json:"NetExtend,omitempty" xml:"NetExtend,omitempty"`
	NetMain       *int64                                       `json:"NetMain,omitempty" xml:"NetMain,omitempty"`
	NetType       *string                                      `json:"NetType,omitempty" xml:"NetType,omitempty"`
	SaleId        *string                                      `json:"SaleId,omitempty" xml:"SaleId,omitempty"`
	UpstreamType  *string                                      `json:"UpstreamType,omitempty" xml:"UpstreamType,omitempty"`
	UserId        *string                                      `json:"UserId,omitempty" xml:"UserId,omitempty"`
}

func (QueryNetListResponseBodyDataNets) GoString

func (*QueryNetListResponseBodyDataNets) SetDeclaredState

func (*QueryNetListResponseBodyDataNets) SetFwdEffect

func (*QueryNetListResponseBodyDataNets) SetGmtCreate

func (*QueryNetListResponseBodyDataNets) SetGmtModify

func (*QueryNetListResponseBodyDataNets) SetMode

func (*QueryNetListResponseBodyDataNets) SetNet

func (*QueryNetListResponseBodyDataNets) SetNetExtend

func (*QueryNetListResponseBodyDataNets) SetNetMain

func (*QueryNetListResponseBodyDataNets) SetNetType

func (*QueryNetListResponseBodyDataNets) SetSaleId

func (*QueryNetListResponseBodyDataNets) SetUpstreamType

func (*QueryNetListResponseBodyDataNets) SetUserId

func (QueryNetListResponseBodyDataNets) String

type QueryNetListResponseBodyDataNetsDDoSDefense

type QueryNetListResponseBodyDataNetsDDoSDefense struct {
	CleanTh  *QueryNetListResponseBodyDataNetsDDoSDefenseCleanTh  `json:"CleanTh,omitempty" xml:"CleanTh,omitempty" type:"Struct"`
	DjPolicy *QueryNetListResponseBodyDataNetsDDoSDefenseDjPolicy `json:"DjPolicy,omitempty" xml:"DjPolicy,omitempty" type:"Struct"`
	HoleTh   *QueryNetListResponseBodyDataNetsDDoSDefenseHoleTh   `json:"HoleTh,omitempty" xml:"HoleTh,omitempty" type:"Struct"`
}

func (QueryNetListResponseBodyDataNetsDDoSDefense) GoString

func (QueryNetListResponseBodyDataNetsDDoSDefense) String

type QueryNetListResponseBodyDataNetsDDoSDefenseCleanTh

type QueryNetListResponseBodyDataNetsDDoSDefenseCleanTh struct {
	Mbps *int32 `json:"Mbps,omitempty" xml:"Mbps,omitempty"`
	Pps  *int32 `json:"Pps,omitempty" xml:"Pps,omitempty"`
}

func (QueryNetListResponseBodyDataNetsDDoSDefenseCleanTh) GoString

func (*QueryNetListResponseBodyDataNetsDDoSDefenseCleanTh) SetMbps

func (*QueryNetListResponseBodyDataNetsDDoSDefenseCleanTh) SetPps

func (QueryNetListResponseBodyDataNetsDDoSDefenseCleanTh) String

type QueryNetListResponseBodyDataNetsDDoSDefenseDjPolicy

type QueryNetListResponseBodyDataNetsDDoSDefenseDjPolicy struct {
	PolicyName *string `json:"PolicyName,omitempty" xml:"PolicyName,omitempty"`
}

func (QueryNetListResponseBodyDataNetsDDoSDefenseDjPolicy) GoString

func (*QueryNetListResponseBodyDataNetsDDoSDefenseDjPolicy) SetPolicyName

func (QueryNetListResponseBodyDataNetsDDoSDefenseDjPolicy) String

type QueryNetListResponseBodyDataNetsDDoSDefenseHoleTh

type QueryNetListResponseBodyDataNetsDDoSDefenseHoleTh struct {
	ThreshMbps *int32 `json:"ThreshMbps,omitempty" xml:"ThreshMbps,omitempty"`
}

func (QueryNetListResponseBodyDataNetsDDoSDefenseHoleTh) GoString

func (*QueryNetListResponseBodyDataNetsDDoSDefenseHoleTh) SetThreshMbps

func (QueryNetListResponseBodyDataNetsDDoSDefenseHoleTh) String

type QueryNetListResponseBodyDataNetsDeclared

type QueryNetListResponseBodyDataNetsDeclared struct {
	Declared *string `json:"Declared,omitempty" xml:"Declared,omitempty"`
	Region   *string `json:"Region,omitempty" xml:"Region,omitempty"`
}

func (QueryNetListResponseBodyDataNetsDeclared) GoString

func (*QueryNetListResponseBodyDataNetsDeclared) SetDeclared

func (*QueryNetListResponseBodyDataNetsDeclared) SetRegion

func (QueryNetListResponseBodyDataNetsDeclared) String

Jump to

Keyboard shortcuts

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