safconsole

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 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) RevokeFeedback

func (client *Client) RevokeFeedback(request *RevokeFeedbackRequest) (response *RevokeFeedbackResponse, err error)

RevokeFeedback invokes the safconsole.RevokeFeedback API synchronously

func (*Client) RevokeFeedbackWithCallback

func (client *Client) RevokeFeedbackWithCallback(request *RevokeFeedbackRequest, callback func(response *RevokeFeedbackResponse, err error)) <-chan int

RevokeFeedbackWithCallback invokes the safconsole.RevokeFeedback API asynchronously

func (*Client) RevokeFeedbackWithChan

func (client *Client) RevokeFeedbackWithChan(request *RevokeFeedbackRequest) (<-chan *RevokeFeedbackResponse, <-chan error)

RevokeFeedbackWithChan invokes the safconsole.RevokeFeedback API asynchronously

func (*Client) SendFeedback

func (client *Client) SendFeedback(request *SendFeedbackRequest) (response *SendFeedbackResponse, err error)

SendFeedback invokes the safconsole.SendFeedback API synchronously

func (*Client) SendFeedbackWithCallback

func (client *Client) SendFeedbackWithCallback(request *SendFeedbackRequest, callback func(response *SendFeedbackResponse, err error)) <-chan int

SendFeedbackWithCallback invokes the safconsole.SendFeedback API asynchronously

func (*Client) SendFeedbackWithChan

func (client *Client) SendFeedbackWithChan(request *SendFeedbackRequest) (<-chan *SendFeedbackResponse, <-chan error)

SendFeedbackWithChan invokes the safconsole.SendFeedback API asynchronously

type RevokeFeedbackRequest

type RevokeFeedbackRequest struct {
	*requests.RpcRequest
	SampleType string `position:"Body" name:"SampleType"`
	Value      string `position:"Body" name:"Value"`
}

RevokeFeedbackRequest is the request struct for api RevokeFeedback

func CreateRevokeFeedbackRequest

func CreateRevokeFeedbackRequest() (request *RevokeFeedbackRequest)

CreateRevokeFeedbackRequest creates a request to invoke RevokeFeedback API

type RevokeFeedbackResponse

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

RevokeFeedbackResponse is the response struct for api RevokeFeedback

func CreateRevokeFeedbackResponse

func CreateRevokeFeedbackResponse() (response *RevokeFeedbackResponse)

CreateRevokeFeedbackResponse creates a response to parse from RevokeFeedback response

type SendFeedbackRequest

type SendFeedbackRequest struct {
	*requests.RpcRequest
	RiskLabel  string `position:"Query" name:"RiskLabel"`
	SampleType string `position:"Query" name:"SampleType"`
	Value      string `position:"Query" name:"Value"`
}

SendFeedbackRequest is the request struct for api SendFeedback

func CreateSendFeedbackRequest

func CreateSendFeedbackRequest() (request *SendFeedbackRequest)

CreateSendFeedbackRequest creates a request to invoke SendFeedback API

type SendFeedbackResponse

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

SendFeedbackResponse is the response struct for api SendFeedback

func CreateSendFeedbackResponse

func CreateSendFeedbackResponse() (response *SendFeedbackResponse)

CreateSendFeedbackResponse creates a response to parse from SendFeedback response

Jump to

Keyboard shortcuts

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