riskpunish

package
v1.62.749 Latest Latest
Warning

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

Go to latest
Published: May 27, 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 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) QueryPunishList

func (client *Client) QueryPunishList(request *QueryPunishListRequest) (response *QueryPunishListResponse, err error)

QueryPunishList invokes the riskpunish.QueryPunishList API synchronously

func (*Client) QueryPunishListWithCallback

func (client *Client) QueryPunishListWithCallback(request *QueryPunishListRequest, callback func(response *QueryPunishListResponse, err error)) <-chan int

QueryPunishListWithCallback invokes the riskpunish.QueryPunishList API asynchronously

func (*Client) QueryPunishListWithChan

func (client *Client) QueryPunishListWithChan(request *QueryPunishListRequest) (<-chan *QueryPunishListResponse, <-chan error)

QueryPunishListWithChan invokes the riskpunish.QueryPunishList API asynchronously

type QueryPunishListRequest

type QueryPunishListRequest struct {
	*requests.RpcRequest
	DateStart   requests.Integer `position:"Query" name:"DateStart"`
	PunishIp    string           `position:"Query" name:"PunishIp"`
	PunishUrl   string           `position:"Query" name:"PunishUrl"`
	PageSize    requests.Integer `position:"Query" name:"PageSize"`
	DateEnd     requests.Integer `position:"Query" name:"DateEnd"`
	CurrentPage requests.Integer `position:"Query" name:"CurrentPage"`
}

QueryPunishListRequest is the request struct for api QueryPunishList

func CreateQueryPunishListRequest

func CreateQueryPunishListRequest() (request *QueryPunishListRequest)

CreateQueryPunishListRequest creates a request to invoke QueryPunishList API

type QueryPunishListResponse

type QueryPunishListResponse struct {
	*responses.BaseResponse
	Code      string `json:"Code" xml:"Code"`
	Message   string `json:"Message" xml:"Message"`
	Data      string `json:"Data" xml:"Data"`
	RequestId string `json:"RequestId" xml:"RequestId"`
	Success   bool   `json:"Success" xml:"Success"`
}

QueryPunishListResponse is the response struct for api QueryPunishList

func CreateQueryPunishListResponse

func CreateQueryPunishListResponse() (response *QueryPunishListResponse)

CreateQueryPunishListResponse creates a response to parse from QueryPunishList response

Jump to

Keyboard shortcuts

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