v2

package
v0.1.92-patch Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenReqDefForAddSubscription

func GenReqDefForAddSubscription() *def.HttpRequestDef

func GenReqDefForAddSubscriptionFromSubscriptionUser added in v0.1.76

func GenReqDefForAddSubscriptionFromSubscriptionUser() *def.HttpRequestDef

func GenReqDefForBatchCreateOrDeleteResourceTags

func GenReqDefForBatchCreateOrDeleteResourceTags() *def.HttpRequestDef

func GenReqDefForBatchCreateSubscriptionsFilterPolices added in v0.1.76

func GenReqDefForBatchCreateSubscriptionsFilterPolices() *def.HttpRequestDef

func GenReqDefForBatchDeleteSubscriptionsFilterPolices added in v0.1.76

func GenReqDefForBatchDeleteSubscriptionsFilterPolices() *def.HttpRequestDef

func GenReqDefForBatchUpdateSubscriptionsFilterPolices added in v0.1.76

func GenReqDefForBatchUpdateSubscriptionsFilterPolices() *def.HttpRequestDef

func GenReqDefForCancelSubscription

func GenReqDefForCancelSubscription() *def.HttpRequestDef

func GenReqDefForCreateApplication

func GenReqDefForCreateApplication() *def.HttpRequestDef

func GenReqDefForCreateApplicationEndpoint

func GenReqDefForCreateApplicationEndpoint() *def.HttpRequestDef

func GenReqDefForCreateLogtank added in v0.1.42

func GenReqDefForCreateLogtank() *def.HttpRequestDef

func GenReqDefForCreateMessageTemplate

func GenReqDefForCreateMessageTemplate() *def.HttpRequestDef

func GenReqDefForCreateResourceTag

func GenReqDefForCreateResourceTag() *def.HttpRequestDef

func GenReqDefForCreateTopic

func GenReqDefForCreateTopic() *def.HttpRequestDef

func GenReqDefForDeleteApplication

func GenReqDefForDeleteApplication() *def.HttpRequestDef

func GenReqDefForDeleteApplicationEndpoint

func GenReqDefForDeleteApplicationEndpoint() *def.HttpRequestDef

func GenReqDefForDeleteLogtank added in v0.1.42

func GenReqDefForDeleteLogtank() *def.HttpRequestDef

func GenReqDefForDeleteMessageTemplate

func GenReqDefForDeleteMessageTemplate() *def.HttpRequestDef

func GenReqDefForDeleteResourceTag

func GenReqDefForDeleteResourceTag() *def.HttpRequestDef

func GenReqDefForDeleteTopic

func GenReqDefForDeleteTopic() *def.HttpRequestDef

func GenReqDefForDeleteTopicAttributeByName

func GenReqDefForDeleteTopicAttributeByName() *def.HttpRequestDef

func GenReqDefForDeleteTopicAttributes

func GenReqDefForDeleteTopicAttributes() *def.HttpRequestDef

func GenReqDefForListApplicationAttributes

func GenReqDefForListApplicationAttributes() *def.HttpRequestDef

func GenReqDefForListApplicationEndpointAttributes

func GenReqDefForListApplicationEndpointAttributes() *def.HttpRequestDef

func GenReqDefForListApplicationEndpoints

func GenReqDefForListApplicationEndpoints() *def.HttpRequestDef

func GenReqDefForListApplications

func GenReqDefForListApplications() *def.HttpRequestDef

func GenReqDefForListLogtank added in v0.1.42

func GenReqDefForListLogtank() *def.HttpRequestDef

func GenReqDefForListMessageTemplateDetails

func GenReqDefForListMessageTemplateDetails() *def.HttpRequestDef

func GenReqDefForListMessageTemplates

func GenReqDefForListMessageTemplates() *def.HttpRequestDef

func GenReqDefForListProjectTags

func GenReqDefForListProjectTags() *def.HttpRequestDef

func GenReqDefForListResourceInstances

func GenReqDefForListResourceInstances() *def.HttpRequestDef

func GenReqDefForListResourceTags

func GenReqDefForListResourceTags() *def.HttpRequestDef

func GenReqDefForListSubscriptions

func GenReqDefForListSubscriptions() *def.HttpRequestDef

func GenReqDefForListSubscriptionsByTopic

func GenReqDefForListSubscriptionsByTopic() *def.HttpRequestDef

func GenReqDefForListTopicAttributes

func GenReqDefForListTopicAttributes() *def.HttpRequestDef

func GenReqDefForListTopicDetails

func GenReqDefForListTopicDetails() *def.HttpRequestDef

func GenReqDefForListTopics

func GenReqDefForListTopics() *def.HttpRequestDef

func GenReqDefForListVersion

func GenReqDefForListVersion() *def.HttpRequestDef

func GenReqDefForListVersions

func GenReqDefForListVersions() *def.HttpRequestDef

func GenReqDefForPublishAppMessage

func GenReqDefForPublishAppMessage() *def.HttpRequestDef

func GenReqDefForPublishHttpDetect added in v0.1.76

func GenReqDefForPublishHttpDetect() *def.HttpRequestDef

func GenReqDefForPublishMessage

func GenReqDefForPublishMessage() *def.HttpRequestDef

func GenReqDefForShowHttpDetectResult added in v0.1.76

func GenReqDefForShowHttpDetectResult() *def.HttpRequestDef

func GenReqDefForUpdateApplication

func GenReqDefForUpdateApplication() *def.HttpRequestDef

func GenReqDefForUpdateApplicationEndpoint

func GenReqDefForUpdateApplicationEndpoint() *def.HttpRequestDef

func GenReqDefForUpdateLogtank added in v0.1.42

func GenReqDefForUpdateLogtank() *def.HttpRequestDef

func GenReqDefForUpdateMessageTemplate

func GenReqDefForUpdateMessageTemplate() *def.HttpRequestDef

func GenReqDefForUpdateSubscription added in v0.1.42

func GenReqDefForUpdateSubscription() *def.HttpRequestDef

func GenReqDefForUpdateTopic

func GenReqDefForUpdateTopic() *def.HttpRequestDef

func GenReqDefForUpdateTopicAttribute

func GenReqDefForUpdateTopicAttribute() *def.HttpRequestDef

func SmnClientBuilder

func SmnClientBuilder() *httpclient.HcHttpClientBuilder

Types

type AddSubscriptionFromSubscriptionUserInvoker added in v0.1.76

type AddSubscriptionFromSubscriptionUserInvoker struct {
	*invoker.BaseInvoker
}

func (*AddSubscriptionFromSubscriptionUserInvoker) Invoke added in v0.1.76

type AddSubscriptionInvoker added in v0.0.90

type AddSubscriptionInvoker struct {
	*invoker.BaseInvoker
}

func (*AddSubscriptionInvoker) Invoke added in v0.0.90

type BatchCreateOrDeleteResourceTagsInvoker added in v0.0.90

type BatchCreateOrDeleteResourceTagsInvoker struct {
	*invoker.BaseInvoker
}

func (*BatchCreateOrDeleteResourceTagsInvoker) Invoke added in v0.0.90

type BatchCreateSubscriptionsFilterPolicesInvoker added in v0.1.76

type BatchCreateSubscriptionsFilterPolicesInvoker struct {
	*invoker.BaseInvoker
}

func (*BatchCreateSubscriptionsFilterPolicesInvoker) Invoke added in v0.1.76

type BatchDeleteSubscriptionsFilterPolicesInvoker added in v0.1.76

type BatchDeleteSubscriptionsFilterPolicesInvoker struct {
	*invoker.BaseInvoker
}

func (*BatchDeleteSubscriptionsFilterPolicesInvoker) Invoke added in v0.1.76

type BatchUpdateSubscriptionsFilterPolicesInvoker added in v0.1.76

type BatchUpdateSubscriptionsFilterPolicesInvoker struct {
	*invoker.BaseInvoker
}

func (*BatchUpdateSubscriptionsFilterPolicesInvoker) Invoke added in v0.1.76

type CancelSubscriptionInvoker added in v0.0.90

type CancelSubscriptionInvoker struct {
	*invoker.BaseInvoker
}

func (*CancelSubscriptionInvoker) Invoke added in v0.0.90

type CreateApplicationEndpointInvoker added in v0.0.90

type CreateApplicationEndpointInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateApplicationEndpointInvoker) Invoke deprecated added in v0.0.90

Deprecated: This function is deprecated and will be removed in the future versions.

type CreateApplicationInvoker added in v0.0.90

type CreateApplicationInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateApplicationInvoker) Invoke deprecated added in v0.0.90

Deprecated: This function is deprecated and will be removed in the future versions.

type CreateLogtankInvoker added in v0.1.42

type CreateLogtankInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateLogtankInvoker) Invoke added in v0.1.42

type CreateMessageTemplateInvoker added in v0.0.90

type CreateMessageTemplateInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateMessageTemplateInvoker) Invoke added in v0.0.90

type CreateResourceTagInvoker added in v0.0.90

type CreateResourceTagInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateResourceTagInvoker) Invoke added in v0.0.90

type CreateTopicInvoker added in v0.0.90

type CreateTopicInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateTopicInvoker) Invoke added in v0.0.90

type DeleteApplicationEndpointInvoker added in v0.0.90

type DeleteApplicationEndpointInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteApplicationEndpointInvoker) Invoke deprecated added in v0.0.90

Deprecated: This function is deprecated and will be removed in the future versions.

type DeleteApplicationInvoker added in v0.0.90

type DeleteApplicationInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteApplicationInvoker) Invoke deprecated added in v0.0.90

Deprecated: This function is deprecated and will be removed in the future versions.

type DeleteLogtankInvoker added in v0.1.42

type DeleteLogtankInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteLogtankInvoker) Invoke added in v0.1.42

type DeleteMessageTemplateInvoker added in v0.0.90

type DeleteMessageTemplateInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteMessageTemplateInvoker) Invoke added in v0.0.90

type DeleteResourceTagInvoker added in v0.0.90

type DeleteResourceTagInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteResourceTagInvoker) Invoke added in v0.0.90

type DeleteTopicAttributeByNameInvoker added in v0.0.90

type DeleteTopicAttributeByNameInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteTopicAttributeByNameInvoker) Invoke added in v0.0.90

type DeleteTopicAttributesInvoker added in v0.0.90

type DeleteTopicAttributesInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteTopicAttributesInvoker) Invoke added in v0.0.90

type DeleteTopicInvoker added in v0.0.90

type DeleteTopicInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteTopicInvoker) Invoke added in v0.0.90

type ListApplicationAttributesInvoker added in v0.0.90

type ListApplicationAttributesInvoker struct {
	*invoker.BaseInvoker
}

func (*ListApplicationAttributesInvoker) Invoke deprecated added in v0.0.90

Deprecated: This function is deprecated and will be removed in the future versions.

type ListApplicationEndpointAttributesInvoker added in v0.0.90

type ListApplicationEndpointAttributesInvoker struct {
	*invoker.BaseInvoker
}

func (*ListApplicationEndpointAttributesInvoker) Invoke deprecated added in v0.0.90

Deprecated: This function is deprecated and will be removed in the future versions.

type ListApplicationEndpointsInvoker added in v0.0.90

type ListApplicationEndpointsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListApplicationEndpointsInvoker) Invoke deprecated added in v0.0.90

Deprecated: This function is deprecated and will be removed in the future versions.

type ListApplicationsInvoker added in v0.0.90

type ListApplicationsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListApplicationsInvoker) Invoke deprecated added in v0.0.90

Deprecated: This function is deprecated and will be removed in the future versions.

type ListLogtankInvoker added in v0.1.42

type ListLogtankInvoker struct {
	*invoker.BaseInvoker
}

func (*ListLogtankInvoker) Invoke added in v0.1.42

type ListMessageTemplateDetailsInvoker added in v0.0.90

type ListMessageTemplateDetailsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListMessageTemplateDetailsInvoker) Invoke added in v0.0.90

type ListMessageTemplatesInvoker added in v0.0.90

type ListMessageTemplatesInvoker struct {
	*invoker.BaseInvoker
}

func (*ListMessageTemplatesInvoker) Invoke added in v0.0.90

type ListProjectTagsInvoker added in v0.0.90

type ListProjectTagsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListProjectTagsInvoker) Invoke added in v0.0.90

type ListResourceInstancesInvoker added in v0.0.90

type ListResourceInstancesInvoker struct {
	*invoker.BaseInvoker
}

func (*ListResourceInstancesInvoker) Invoke added in v0.0.90

type ListResourceTagsInvoker added in v0.0.90

type ListResourceTagsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListResourceTagsInvoker) Invoke added in v0.0.90

type ListSubscriptionsByTopicInvoker added in v0.0.90

type ListSubscriptionsByTopicInvoker struct {
	*invoker.BaseInvoker
}

func (*ListSubscriptionsByTopicInvoker) Invoke added in v0.0.90

type ListSubscriptionsInvoker added in v0.0.90

type ListSubscriptionsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListSubscriptionsInvoker) Invoke added in v0.0.90

type ListTopicAttributesInvoker added in v0.0.90

type ListTopicAttributesInvoker struct {
	*invoker.BaseInvoker
}

func (*ListTopicAttributesInvoker) Invoke added in v0.0.90

type ListTopicDetailsInvoker added in v0.0.90

type ListTopicDetailsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListTopicDetailsInvoker) Invoke added in v0.0.90

type ListTopicsInvoker added in v0.0.90

type ListTopicsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListTopicsInvoker) Invoke added in v0.0.90

type ListVersionInvoker added in v0.0.90

type ListVersionInvoker struct {
	*invoker.BaseInvoker
}

func (*ListVersionInvoker) Invoke added in v0.0.90

type ListVersionsInvoker added in v0.0.90

type ListVersionsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListVersionsInvoker) Invoke added in v0.0.90

type PublishAppMessageInvoker added in v0.0.90

type PublishAppMessageInvoker struct {
	*invoker.BaseInvoker
}

func (*PublishAppMessageInvoker) Invoke deprecated added in v0.0.90

Deprecated: This function is deprecated and will be removed in the future versions.

type PublishHttpDetectInvoker added in v0.1.76

type PublishHttpDetectInvoker struct {
	*invoker.BaseInvoker
}

func (*PublishHttpDetectInvoker) Invoke added in v0.1.76

type PublishMessageInvoker added in v0.0.90

type PublishMessageInvoker struct {
	*invoker.BaseInvoker
}

func (*PublishMessageInvoker) Invoke added in v0.0.90

type ShowHttpDetectResultInvoker added in v0.1.76

type ShowHttpDetectResultInvoker struct {
	*invoker.BaseInvoker
}

func (*ShowHttpDetectResultInvoker) Invoke added in v0.1.76

type SmnClient

type SmnClient struct {
	HcClient *httpclient.HcHttpClient
}

func NewSmnClient

func NewSmnClient(hcClient *httpclient.HcHttpClient) *SmnClient

func (*SmnClient) AddSubscription

func (c *SmnClient) AddSubscription(request *model.AddSubscriptionRequest) (*model.AddSubscriptionResponse, error)

AddSubscription 订阅

为指定Topic添加一个订阅者,如果订阅者的状态为未确认,则向订阅者发送一个确认的消息。待订阅者进行ConfirmSubscription确认后,该订阅者才能收到Topic发布的消息。单Topic默认可添加10000个订阅者,高并发场景下,可能会出现订阅者数量超过10000仍添加成功的情况,此为正常现象。接口是幂等的,如果添加已存在的订阅者,则返回成功,且status code为200,否则status code为201。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) AddSubscriptionFromSubscriptionUser added in v0.1.76

AddSubscriptionFromSubscriptionUser 导入订阅

为指定的Topic添加订阅者,订阅者信息来源为订阅用户列表。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) AddSubscriptionFromSubscriptionUserInvoker added in v0.1.76

func (c *SmnClient) AddSubscriptionFromSubscriptionUserInvoker(request *model.AddSubscriptionFromSubscriptionUserRequest) *AddSubscriptionFromSubscriptionUserInvoker

AddSubscriptionFromSubscriptionUserInvoker 导入订阅

func (*SmnClient) AddSubscriptionInvoker added in v0.0.90

func (c *SmnClient) AddSubscriptionInvoker(request *model.AddSubscriptionRequest) *AddSubscriptionInvoker

AddSubscriptionInvoker 订阅

func (*SmnClient) BatchCreateOrDeleteResourceTags

BatchCreateOrDeleteResourceTags 批量添加删除资源标签

为指定实例批量添加或删除标签。一个资源上最多有10个标签。 此接口为幂等接口:创建时如果请求体中存在重复key则报错。 创建时,不允许重复key,如果数据库存在就覆盖。 删除时,如果删除的标签不存在,默认处理成功,删除时不对标签字符集范围做校验。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) BatchCreateOrDeleteResourceTagsInvoker added in v0.0.90

func (c *SmnClient) BatchCreateOrDeleteResourceTagsInvoker(request *model.BatchCreateOrDeleteResourceTagsRequest) *BatchCreateOrDeleteResourceTagsInvoker

BatchCreateOrDeleteResourceTagsInvoker 批量添加删除资源标签

func (*SmnClient) BatchCreateSubscriptionsFilterPolices added in v0.1.76

BatchCreateSubscriptionsFilterPolices 批量创建订阅过滤策略

创建订阅者的消息过滤策略。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) BatchCreateSubscriptionsFilterPolicesInvoker added in v0.1.76

func (c *SmnClient) BatchCreateSubscriptionsFilterPolicesInvoker(request *model.BatchCreateSubscriptionsFilterPolicesRequest) *BatchCreateSubscriptionsFilterPolicesInvoker

BatchCreateSubscriptionsFilterPolicesInvoker 批量创建订阅过滤策略

func (*SmnClient) BatchDeleteSubscriptionsFilterPolices added in v0.1.76

BatchDeleteSubscriptionsFilterPolices 批量删除订阅过滤策略

删除订阅者的消息过滤策略。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) BatchDeleteSubscriptionsFilterPolicesInvoker added in v0.1.76

func (c *SmnClient) BatchDeleteSubscriptionsFilterPolicesInvoker(request *model.BatchDeleteSubscriptionsFilterPolicesRequest) *BatchDeleteSubscriptionsFilterPolicesInvoker

BatchDeleteSubscriptionsFilterPolicesInvoker 批量删除订阅过滤策略

func (*SmnClient) BatchUpdateSubscriptionsFilterPolices added in v0.1.76

BatchUpdateSubscriptionsFilterPolices 批量更新订阅过滤策略

更新订阅者的消息过滤策略。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) BatchUpdateSubscriptionsFilterPolicesInvoker added in v0.1.76

func (c *SmnClient) BatchUpdateSubscriptionsFilterPolicesInvoker(request *model.BatchUpdateSubscriptionsFilterPolicesRequest) *BatchUpdateSubscriptionsFilterPolicesInvoker

BatchUpdateSubscriptionsFilterPolicesInvoker 批量更新订阅过滤策略

func (*SmnClient) CancelSubscription

func (c *SmnClient) CancelSubscription(request *model.CancelSubscriptionRequest) (*model.CancelSubscriptionResponse, error)

CancelSubscription 取消订阅

删除指定的订阅者。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) CancelSubscriptionInvoker added in v0.0.90

func (c *SmnClient) CancelSubscriptionInvoker(request *model.CancelSubscriptionRequest) *CancelSubscriptionInvoker

CancelSubscriptionInvoker 取消订阅

func (*SmnClient) CreateApplication deprecated

func (c *SmnClient) CreateApplication(request *model.CreateApplicationRequest) (*model.CreateApplicationResponse, error)

Deprecated: This function is deprecated and will be removed in the future versions. CreateApplication 创建Application

创建平台应用。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) CreateApplicationEndpoint deprecated

Deprecated: This function is deprecated and will be removed in the future versions. CreateApplicationEndpoint 创建Application endpoint

创建应用平台的endpoint终端。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) CreateApplicationEndpointInvoker deprecated added in v0.0.90

func (c *SmnClient) CreateApplicationEndpointInvoker(request *model.CreateApplicationEndpointRequest) *CreateApplicationEndpointInvoker

Deprecated: This function is deprecated and will be removed in the future versions. CreateApplicationEndpointInvoker 创建Application endpoint

func (*SmnClient) CreateApplicationInvoker deprecated added in v0.0.90

func (c *SmnClient) CreateApplicationInvoker(request *model.CreateApplicationRequest) *CreateApplicationInvoker

Deprecated: This function is deprecated and will be removed in the future versions. CreateApplicationInvoker 创建Application

func (*SmnClient) CreateLogtank added in v0.1.42

func (c *SmnClient) CreateLogtank(request *model.CreateLogtankRequest) (*model.CreateLogtankResponse, error)

CreateLogtank 绑定云日志

为指定Topic绑定一个云日志,用于记录主题消息发送状态等信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) CreateLogtankInvoker added in v0.1.42

func (c *SmnClient) CreateLogtankInvoker(request *model.CreateLogtankRequest) *CreateLogtankInvoker

CreateLogtankInvoker 绑定云日志

func (*SmnClient) CreateMessageTemplate

CreateMessageTemplate 创建消息模板

创建一个模板,用户可以按照模板去发送消息,这样可以减少请求的数据量。 单用户默认可创建100个消息模板,高并发场景下,可能会出现消息模板数量超过100仍创建成功的情况,此为正常现象。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) CreateMessageTemplateInvoker added in v0.0.90

func (c *SmnClient) CreateMessageTemplateInvoker(request *model.CreateMessageTemplateRequest) *CreateMessageTemplateInvoker

CreateMessageTemplateInvoker 创建消息模板

func (*SmnClient) CreateResourceTag

func (c *SmnClient) CreateResourceTag(request *model.CreateResourceTagRequest) (*model.CreateResourceTagResponse, error)

CreateResourceTag 添加资源标签

一个资源上最多有10个标签。此接口为幂等接口:创建时,如果创建的标签已经存在(key相同),则覆盖。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) CreateResourceTagInvoker added in v0.0.90

func (c *SmnClient) CreateResourceTagInvoker(request *model.CreateResourceTagRequest) *CreateResourceTagInvoker

CreateResourceTagInvoker 添加资源标签

func (*SmnClient) CreateTopic

func (c *SmnClient) CreateTopic(request *model.CreateTopicRequest) (*model.CreateTopicResponse, error)

CreateTopic 创建主题

创建Topic,单用户默认配额为3000。高并发场景下,可能会出现Topic数量超过3000仍创建成功的情况,此为正常现象。 接口是幂等的,接口调用返回成功时,若已存在同名的Topic,返回的status code为200,否则返回的status code为201

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) CreateTopicInvoker added in v0.0.90

func (c *SmnClient) CreateTopicInvoker(request *model.CreateTopicRequest) *CreateTopicInvoker

CreateTopicInvoker 创建主题

func (*SmnClient) DeleteApplication deprecated

func (c *SmnClient) DeleteApplication(request *model.DeleteApplicationRequest) (*model.DeleteApplicationResponse, error)

Deprecated: This function is deprecated and will be removed in the future versions. DeleteApplication 删除Application

删除平台应用。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) DeleteApplicationEndpoint deprecated

Deprecated: This function is deprecated and will be removed in the future versions. DeleteApplicationEndpoint 删除Application endpoint

删除设备。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) DeleteApplicationEndpointInvoker deprecated added in v0.0.90

func (c *SmnClient) DeleteApplicationEndpointInvoker(request *model.DeleteApplicationEndpointRequest) *DeleteApplicationEndpointInvoker

Deprecated: This function is deprecated and will be removed in the future versions. DeleteApplicationEndpointInvoker 删除Application endpoint

func (*SmnClient) DeleteApplicationInvoker deprecated added in v0.0.90

func (c *SmnClient) DeleteApplicationInvoker(request *model.DeleteApplicationRequest) *DeleteApplicationInvoker

Deprecated: This function is deprecated and will be removed in the future versions. DeleteApplicationInvoker 删除Application

func (*SmnClient) DeleteLogtank added in v0.1.42

func (c *SmnClient) DeleteLogtank(request *model.DeleteLogtankRequest) (*model.DeleteLogtankResponse, error)

DeleteLogtank 解绑云日志

解绑指定Topic绑定的云日志。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) DeleteLogtankInvoker added in v0.1.42

func (c *SmnClient) DeleteLogtankInvoker(request *model.DeleteLogtankRequest) *DeleteLogtankInvoker

DeleteLogtankInvoker 解绑云日志

func (*SmnClient) DeleteMessageTemplate

DeleteMessageTemplate 删除消息模板

删除消息模板。删除模板之前的消息请求都可以使用该模板发送,删除之后无法再使用该模板发送消息。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) DeleteMessageTemplateInvoker added in v0.0.90

func (c *SmnClient) DeleteMessageTemplateInvoker(request *model.DeleteMessageTemplateRequest) *DeleteMessageTemplateInvoker

DeleteMessageTemplateInvoker 删除消息模板

func (*SmnClient) DeleteResourceTag

func (c *SmnClient) DeleteResourceTag(request *model.DeleteResourceTagRequest) (*model.DeleteResourceTagResponse, error)

DeleteResourceTag 删除资源标签

幂等接口:删除时,不对标签做校验。删除的key不存在报404,key不能为空或者空字符串。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) DeleteResourceTagInvoker added in v0.0.90

func (c *SmnClient) DeleteResourceTagInvoker(request *model.DeleteResourceTagRequest) *DeleteResourceTagInvoker

DeleteResourceTagInvoker 删除资源标签

func (*SmnClient) DeleteTopic

func (c *SmnClient) DeleteTopic(request *model.DeleteTopicRequest) (*model.DeleteTopicResponse, error)

DeleteTopic 删除主题

删除主题。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) DeleteTopicAttributeByName

DeleteTopicAttributeByName 删除指定名称的主题策略

删除指定名称的主题策略。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) DeleteTopicAttributeByNameInvoker added in v0.0.90

func (c *SmnClient) DeleteTopicAttributeByNameInvoker(request *model.DeleteTopicAttributeByNameRequest) *DeleteTopicAttributeByNameInvoker

DeleteTopicAttributeByNameInvoker 删除指定名称的主题策略

func (*SmnClient) DeleteTopicAttributes

DeleteTopicAttributes 删除所有主题策略

删除所有主题策略。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) DeleteTopicAttributesInvoker added in v0.0.90

func (c *SmnClient) DeleteTopicAttributesInvoker(request *model.DeleteTopicAttributesRequest) *DeleteTopicAttributesInvoker

DeleteTopicAttributesInvoker 删除所有主题策略

func (*SmnClient) DeleteTopicInvoker added in v0.0.90

func (c *SmnClient) DeleteTopicInvoker(request *model.DeleteTopicRequest) *DeleteTopicInvoker

DeleteTopicInvoker 删除主题

func (*SmnClient) ListApplicationAttributes deprecated

Deprecated: This function is deprecated and will be removed in the future versions. ListApplicationAttributes 查询Application属性

获取应用平台属性。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) ListApplicationAttributesInvoker deprecated added in v0.0.90

func (c *SmnClient) ListApplicationAttributesInvoker(request *model.ListApplicationAttributesRequest) *ListApplicationAttributesInvoker

Deprecated: This function is deprecated and will be removed in the future versions. ListApplicationAttributesInvoker 查询Application属性

func (*SmnClient) ListApplicationEndpointAttributes deprecated

Deprecated: This function is deprecated and will be removed in the future versions. ListApplicationEndpointAttributes 查询Application的Endpoint属性

获取endpoint的属性。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) ListApplicationEndpointAttributesInvoker deprecated added in v0.0.90

func (c *SmnClient) ListApplicationEndpointAttributesInvoker(request *model.ListApplicationEndpointAttributesRequest) *ListApplicationEndpointAttributesInvoker

Deprecated: This function is deprecated and will be removed in the future versions. ListApplicationEndpointAttributesInvoker 查询Application的Endpoint属性

func (*SmnClient) ListApplicationEndpoints deprecated

Deprecated: This function is deprecated and will be removed in the future versions. ListApplicationEndpoints 查询Application的Endpoint列表

查询平台的endpoint列表。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) ListApplicationEndpointsInvoker deprecated added in v0.0.90

func (c *SmnClient) ListApplicationEndpointsInvoker(request *model.ListApplicationEndpointsRequest) *ListApplicationEndpointsInvoker

Deprecated: This function is deprecated and will be removed in the future versions. ListApplicationEndpointsInvoker 查询Application的Endpoint列表

func (*SmnClient) ListApplications deprecated

func (c *SmnClient) ListApplications(request *model.ListApplicationsRequest) (*model.ListApplicationsResponse, error)

Deprecated: This function is deprecated and will be removed in the future versions. ListApplications 查询Application

查询应用平台列表。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) ListApplicationsInvoker deprecated added in v0.0.90

func (c *SmnClient) ListApplicationsInvoker(request *model.ListApplicationsRequest) *ListApplicationsInvoker

Deprecated: This function is deprecated and will be removed in the future versions. ListApplicationsInvoker 查询Application

func (*SmnClient) ListLogtank added in v0.1.42

func (c *SmnClient) ListLogtank(request *model.ListLogtankRequest) (*model.ListLogtankResponse, error)

ListLogtank 查询云日志

查询指定Topic绑定的云日志。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) ListLogtankInvoker added in v0.1.42

func (c *SmnClient) ListLogtankInvoker(request *model.ListLogtankRequest) *ListLogtankInvoker

ListLogtankInvoker 查询云日志

func (*SmnClient) ListMessageTemplateDetails

ListMessageTemplateDetails 查询消息模板详情

查询模板详情,包括模板内容。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) ListMessageTemplateDetailsInvoker added in v0.0.90

func (c *SmnClient) ListMessageTemplateDetailsInvoker(request *model.ListMessageTemplateDetailsRequest) *ListMessageTemplateDetailsInvoker

ListMessageTemplateDetailsInvoker 查询消息模板详情

func (*SmnClient) ListMessageTemplates

ListMessageTemplates 查询消息模板列表

分页查询模板列表,模板列表按照创建时间进行升序排列。分页查询可以指定offset以及limit。如果不存在模板,则返回空列表。额外的查询参数分别有message_template_name和protocol。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) ListMessageTemplatesInvoker added in v0.0.90

func (c *SmnClient) ListMessageTemplatesInvoker(request *model.ListMessageTemplatesRequest) *ListMessageTemplatesInvoker

ListMessageTemplatesInvoker 查询消息模板列表

func (*SmnClient) ListProjectTags

func (c *SmnClient) ListProjectTags(request *model.ListProjectTagsRequest) (*model.ListProjectTagsResponse, error)

ListProjectTags 查询项目标签

查询租户在指定Region和实例类型的所有标签集合。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) ListProjectTagsInvoker added in v0.0.90

func (c *SmnClient) ListProjectTagsInvoker(request *model.ListProjectTagsRequest) *ListProjectTagsInvoker

ListProjectTagsInvoker 查询项目标签

func (*SmnClient) ListResourceInstances

ListResourceInstances 查询资源实例

使用标签过滤实例。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) ListResourceInstancesInvoker added in v0.0.90

func (c *SmnClient) ListResourceInstancesInvoker(request *model.ListResourceInstancesRequest) *ListResourceInstancesInvoker

ListResourceInstancesInvoker 查询资源实例

func (*SmnClient) ListResourceTags

func (c *SmnClient) ListResourceTags(request *model.ListResourceTagsRequest) (*model.ListResourceTagsResponse, error)

ListResourceTags 查询资源标签

查询指定实例的标签信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) ListResourceTagsInvoker added in v0.0.90

func (c *SmnClient) ListResourceTagsInvoker(request *model.ListResourceTagsRequest) *ListResourceTagsInvoker

ListResourceTagsInvoker 查询资源标签

func (*SmnClient) ListSubscriptions

func (c *SmnClient) ListSubscriptions(request *model.ListSubscriptionsRequest) (*model.ListSubscriptionsResponse, error)

ListSubscriptions 查询订阅者列表

分页返回请求者的所有的订阅列表,订阅列表按照订阅创建时间进行升序排列。分页查询可以指定offset以及limit。如果订阅者不存在,返回空列表。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) ListSubscriptionsByTopic

ListSubscriptionsByTopic 查询指定Topic的订阅者列表

分页获取特定Topic的订阅列表,订阅列表按照订阅创建时间进行升序排列。分页查询可以指定offset以及limit。如果指定Topic不存在订阅者,返回空列表。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) ListSubscriptionsByTopicInvoker added in v0.0.90

func (c *SmnClient) ListSubscriptionsByTopicInvoker(request *model.ListSubscriptionsByTopicRequest) *ListSubscriptionsByTopicInvoker

ListSubscriptionsByTopicInvoker 查询指定Topic的订阅者列表

func (*SmnClient) ListSubscriptionsInvoker added in v0.0.90

func (c *SmnClient) ListSubscriptionsInvoker(request *model.ListSubscriptionsRequest) *ListSubscriptionsInvoker

ListSubscriptionsInvoker 查询订阅者列表

func (*SmnClient) ListTopicAttributes

ListTopicAttributes 查询主题策略

查询主题的策略信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) ListTopicAttributesInvoker added in v0.0.90

func (c *SmnClient) ListTopicAttributesInvoker(request *model.ListTopicAttributesRequest) *ListTopicAttributesInvoker

ListTopicAttributesInvoker 查询主题策略

func (*SmnClient) ListTopicDetails

func (c *SmnClient) ListTopicDetails(request *model.ListTopicDetailsRequest) (*model.ListTopicDetailsResponse, error)

ListTopicDetails 查询主题详情

查询Topic的详细信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) ListTopicDetailsInvoker added in v0.0.90

func (c *SmnClient) ListTopicDetailsInvoker(request *model.ListTopicDetailsRequest) *ListTopicDetailsInvoker

ListTopicDetailsInvoker 查询主题详情

func (*SmnClient) ListTopics

func (c *SmnClient) ListTopics(request *model.ListTopicsRequest) (*model.ListTopicsResponse, error)

ListTopics 查询主题列表

分页查询Topic列表,Topic列表按照Topic创建时间进行降序排列。分页查询可以指定offset以及limit。如果不存在Topic,则返回空列表。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) ListTopicsInvoker added in v0.0.90

func (c *SmnClient) ListTopicsInvoker(request *model.ListTopicsRequest) *ListTopicsInvoker

ListTopicsInvoker 查询主题列表

func (*SmnClient) ListVersion

func (c *SmnClient) ListVersion(request *model.ListVersionRequest) (*model.ListVersionResponse, error)

ListVersion 查询SMN API V2版本信息

查询SMN API V2版本信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) ListVersionInvoker added in v0.0.90

func (c *SmnClient) ListVersionInvoker(request *model.ListVersionRequest) *ListVersionInvoker

ListVersionInvoker 查询SMN API V2版本信息

func (*SmnClient) ListVersions

func (c *SmnClient) ListVersions(request *model.ListVersionsRequest) (*model.ListVersionsResponse, error)

ListVersions 查询SMN支持的API版本号信息

查询SMN开放API支持的版本号。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) ListVersionsInvoker added in v0.0.90

func (c *SmnClient) ListVersionsInvoker(request *model.ListVersionsRequest) *ListVersionsInvoker

ListVersionsInvoker 查询SMN支持的API版本号信息

func (*SmnClient) PublishAppMessage deprecated

func (c *SmnClient) PublishAppMessage(request *model.PublishAppMessageRequest) (*model.PublishAppMessageResponse, error)

Deprecated: This function is deprecated and will be removed in the future versions. PublishAppMessage App消息发布

将消息直发给endpoint设备。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) PublishAppMessageInvoker deprecated added in v0.0.90

func (c *SmnClient) PublishAppMessageInvoker(request *model.PublishAppMessageRequest) *PublishAppMessageInvoker

Deprecated: This function is deprecated and will be removed in the future versions. PublishAppMessageInvoker App消息发布

func (*SmnClient) PublishHttpDetect added in v0.1.76

func (c *SmnClient) PublishHttpDetect(request *model.PublishHttpDetectRequest) (*model.PublishHttpDetectResponse, error)

PublishHttpDetect 发布探测消息

基于主题发送http/https探测消息,探测当前http/https 终端是否可用,SMN出口是否能够正常访问该终端。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) PublishHttpDetectInvoker added in v0.1.76

func (c *SmnClient) PublishHttpDetectInvoker(request *model.PublishHttpDetectRequest) *PublishHttpDetectInvoker

PublishHttpDetectInvoker 发布探测消息

func (*SmnClient) PublishMessage

func (c *SmnClient) PublishMessage(request *model.PublishMessageRequest) (*model.PublishMessageResponse, error)

PublishMessage 消息发布

将消息发送给Topic的所有订阅端点。当返回消息ID时,该消息已被保存并开始尝试将其推送给Topic的订阅者。三种消息发送方式

message

message_structure

message_template_name

只需要设置其中一个,如果同时设置,生效的优先级为 message_structure > message_template_name > message。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) PublishMessageInvoker added in v0.0.90

func (c *SmnClient) PublishMessageInvoker(request *model.PublishMessageRequest) *PublishMessageInvoker

PublishMessageInvoker 消息发布

func (*SmnClient) ShowHttpDetectResult added in v0.1.76

ShowHttpDetectResult 获取http探测结果

根据http探测发送返回的task_id查询探测结果。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) ShowHttpDetectResultInvoker added in v0.1.76

func (c *SmnClient) ShowHttpDetectResultInvoker(request *model.ShowHttpDetectResultRequest) *ShowHttpDetectResultInvoker

ShowHttpDetectResultInvoker 获取http探测结果

func (*SmnClient) UpdateApplication deprecated

func (c *SmnClient) UpdateApplication(request *model.UpdateApplicationRequest) (*model.UpdateApplicationResponse, error)

Deprecated: This function is deprecated and will be removed in the future versions. UpdateApplication 更新Application

更新应用平台。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) UpdateApplicationEndpoint deprecated

Deprecated: This function is deprecated and will be removed in the future versions. UpdateApplicationEndpoint 更新Application endpoint

更新设备属性。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) UpdateApplicationEndpointInvoker deprecated added in v0.0.90

func (c *SmnClient) UpdateApplicationEndpointInvoker(request *model.UpdateApplicationEndpointRequest) *UpdateApplicationEndpointInvoker

Deprecated: This function is deprecated and will be removed in the future versions. UpdateApplicationEndpointInvoker 更新Application endpoint

func (*SmnClient) UpdateApplicationInvoker deprecated added in v0.0.90

func (c *SmnClient) UpdateApplicationInvoker(request *model.UpdateApplicationRequest) *UpdateApplicationInvoker

Deprecated: This function is deprecated and will be removed in the future versions. UpdateApplicationInvoker 更新Application

func (*SmnClient) UpdateLogtank added in v0.1.42

func (c *SmnClient) UpdateLogtank(request *model.UpdateLogtankRequest) (*model.UpdateLogtankResponse, error)

UpdateLogtank 更新云日志

更新指定Topic绑定的云日志。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) UpdateLogtankInvoker added in v0.1.42

func (c *SmnClient) UpdateLogtankInvoker(request *model.UpdateLogtankRequest) *UpdateLogtankInvoker

UpdateLogtankInvoker 更新云日志

func (*SmnClient) UpdateMessageTemplate

UpdateMessageTemplate 更新消息模板

修改消息模板的内容。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) UpdateMessageTemplateInvoker added in v0.0.90

func (c *SmnClient) UpdateMessageTemplateInvoker(request *model.UpdateMessageTemplateRequest) *UpdateMessageTemplateInvoker

UpdateMessageTemplateInvoker 更新消息模板

func (*SmnClient) UpdateSubscription added in v0.1.42

func (c *SmnClient) UpdateSubscription(request *model.UpdateSubscriptionRequest) (*model.UpdateSubscriptionResponse, error)

UpdateSubscription 更新订阅者

更新订阅者备注。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) UpdateSubscriptionInvoker added in v0.1.42

func (c *SmnClient) UpdateSubscriptionInvoker(request *model.UpdateSubscriptionRequest) *UpdateSubscriptionInvoker

UpdateSubscriptionInvoker 更新订阅者

func (*SmnClient) UpdateTopic

func (c *SmnClient) UpdateTopic(request *model.UpdateTopicRequest) (*model.UpdateTopicResponse, error)

UpdateTopic 更新主题

更新显示名。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) UpdateTopicAttribute

UpdateTopicAttribute 更新主题策略

更新主题的策略信息。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) UpdateTopicAttributeInvoker added in v0.0.90

func (c *SmnClient) UpdateTopicAttributeInvoker(request *model.UpdateTopicAttributeRequest) *UpdateTopicAttributeInvoker

UpdateTopicAttributeInvoker 更新主题策略

func (*SmnClient) UpdateTopicInvoker added in v0.0.90

func (c *SmnClient) UpdateTopicInvoker(request *model.UpdateTopicRequest) *UpdateTopicInvoker

UpdateTopicInvoker 更新主题

type UpdateApplicationEndpointInvoker added in v0.0.90

type UpdateApplicationEndpointInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateApplicationEndpointInvoker) Invoke deprecated added in v0.0.90

Deprecated: This function is deprecated and will be removed in the future versions.

type UpdateApplicationInvoker added in v0.0.90

type UpdateApplicationInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateApplicationInvoker) Invoke deprecated added in v0.0.90

Deprecated: This function is deprecated and will be removed in the future versions.

type UpdateLogtankInvoker added in v0.1.42

type UpdateLogtankInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateLogtankInvoker) Invoke added in v0.1.42

type UpdateMessageTemplateInvoker added in v0.0.90

type UpdateMessageTemplateInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateMessageTemplateInvoker) Invoke added in v0.0.90

type UpdateSubscriptionInvoker added in v0.1.42

type UpdateSubscriptionInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateSubscriptionInvoker) Invoke added in v0.1.42

type UpdateTopicAttributeInvoker added in v0.0.90

type UpdateTopicAttributeInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateTopicAttributeInvoker) Invoke added in v0.0.90

type UpdateTopicInvoker added in v0.0.90

type UpdateTopicInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateTopicInvoker) Invoke added in v0.0.90

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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