v20220613

package
v3.0.959+incompatible Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const APIVersion = "2022-06-13"

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchContent

type BatchContent struct {
	// Message body
	Body *string `json:"Body,omitnil,omitempty" name:"Body"`

	// Key of a message
	Key *string `json:"Key,omitnil,omitempty" name:"Key"`
}

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)

func NewClientWithSecretId

func NewClientWithSecretId(secretId, secretKey, region string) (client *Client, err error)

Deprecated

func (*Client) SendMessage

func (c *Client) SendMessage(request *SendMessageRequest) (response *SendMessageResponse, err error)

SendMessage This API is used to report data to DIP via SDK.

func (*Client) SendMessageWithContext

func (c *Client) SendMessageWithContext(ctx context.Context, request *SendMessageRequest) (response *SendMessageResponse, err error)

SendMessage This API is used to report data to DIP via SDK.

type SendMessageRequest

type SendMessageRequest struct {
	*tchttp.BaseRequest

	// ID of the integrated resource
	DataHubId *string `json:"DataHubId,omitnil,omitempty" name:"DataHubId"`

	// A batch of messages
	Message []*BatchContent `json:"Message,omitnil,omitempty" name:"Message"`
}

func NewSendMessageRequest

func NewSendMessageRequest() (request *SendMessageRequest)

func (*SendMessageRequest) FromJsonString

func (r *SendMessageRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*SendMessageRequest) ToJsonString

func (r *SendMessageRequest) ToJsonString() string

type SendMessageRequestParams

type SendMessageRequestParams struct {
	// ID of the integrated resource
	DataHubId *string `json:"DataHubId,omitnil,omitempty" name:"DataHubId"`

	// A batch of messages
	Message []*BatchContent `json:"Message,omitnil,omitempty" name:"Message"`
}

Predefined struct for user

type SendMessageResponse

type SendMessageResponse struct {
	*tchttp.BaseResponse
	Response *SendMessageResponseParams `json:"Response"`
}

func NewSendMessageResponse

func NewSendMessageResponse() (response *SendMessageResponse)

func (*SendMessageResponse) FromJsonString

func (r *SendMessageResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*SendMessageResponse) ToJsonString

func (r *SendMessageResponse) ToJsonString() string

type SendMessageResponseParams

type SendMessageResponseParams struct {
	// Message ID
	MessageId []*string `json:"MessageId,omitnil,omitempty" name:"MessageId"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

Jump to

Keyboard shortcuts

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