v2

package
v0.1.39 Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 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 GenReqDefForBatchCreateOrDeleteResourceTags

func GenReqDefForBatchCreateOrDeleteResourceTags() *def.HttpRequestDef

func GenReqDefForCancelSubscription

func GenReqDefForCancelSubscription() *def.HttpRequestDef

func GenReqDefForCreateApplication

func GenReqDefForCreateApplication() *def.HttpRequestDef

func GenReqDefForCreateApplicationEndpoint

func GenReqDefForCreateApplicationEndpoint() *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 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 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 GenReqDefForPublishMessage

func GenReqDefForPublishMessage() *def.HttpRequestDef

func GenReqDefForUpdateApplication

func GenReqDefForUpdateApplication() *def.HttpRequestDef

func GenReqDefForUpdateApplicationEndpoint

func GenReqDefForUpdateApplicationEndpoint() *def.HttpRequestDef

func GenReqDefForUpdateMessageTemplate

func GenReqDefForUpdateMessageTemplate() *def.HttpRequestDef

func GenReqDefForUpdateTopic

func GenReqDefForUpdateTopic() *def.HttpRequestDef

func GenReqDefForUpdateTopicAttribute

func GenReqDefForUpdateTopicAttribute() *def.HttpRequestDef

func SmnClientBuilder

func SmnClientBuilder() *http_client.HcHttpClientBuilder

Types

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 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 added in v0.0.90

type CreateApplicationInvoker added in v0.0.90

type CreateApplicationInvoker struct {
	*invoker.BaseInvoker
}

func (*CreateApplicationInvoker) Invoke added in v0.0.90

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 added in v0.0.90

type DeleteApplicationInvoker added in v0.0.90

type DeleteApplicationInvoker struct {
	*invoker.BaseInvoker
}

func (*DeleteApplicationInvoker) Invoke added in v0.0.90

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 added in v0.0.90

type ListApplicationEndpointAttributesInvoker added in v0.0.90

type ListApplicationEndpointAttributesInvoker struct {
	*invoker.BaseInvoker
}

func (*ListApplicationEndpointAttributesInvoker) Invoke added in v0.0.90

type ListApplicationEndpointsInvoker added in v0.0.90

type ListApplicationEndpointsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListApplicationEndpointsInvoker) Invoke added in v0.0.90

type ListApplicationsInvoker added in v0.0.90

type ListApplicationsInvoker struct {
	*invoker.BaseInvoker
}

func (*ListApplicationsInvoker) Invoke added in v0.0.90

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 added in v0.0.90

type PublishMessageInvoker added in v0.0.90

type PublishMessageInvoker struct {
	*invoker.BaseInvoker
}

func (*PublishMessageInvoker) Invoke added in v0.0.90

type SmnClient

type SmnClient struct {
	HcClient *http_client.HcHttpClient
}

func NewSmnClient

func NewSmnClient(hcClient *http_client.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) 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) 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

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

CreateApplication 创建Application

创建平台应用。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) CreateApplicationEndpoint

CreateApplicationEndpoint 创建Application endpoint

创建应用平台的endpoint终端。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) CreateApplicationEndpointInvoker added in v0.0.90

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

CreateApplicationEndpointInvoker 创建Application endpoint

func (*SmnClient) CreateApplicationInvoker added in v0.0.90

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

CreateApplicationInvoker 创建Application

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

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

DeleteApplication 删除Application

删除平台应用。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) DeleteApplicationEndpoint

DeleteApplicationEndpoint 删除Application endpoint

删除设备。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) DeleteApplicationEndpointInvoker added in v0.0.90

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

DeleteApplicationEndpointInvoker 删除Application endpoint

func (*SmnClient) DeleteApplicationInvoker added in v0.0.90

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

DeleteApplicationInvoker 删除Application

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

ListApplicationAttributes 查询Application属性

获取应用平台属性。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) ListApplicationAttributesInvoker added in v0.0.90

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

ListApplicationAttributesInvoker 查询Application属性

func (*SmnClient) ListApplicationEndpointAttributes

ListApplicationEndpointAttributes 查询Application的Endpoint属性

获取endpoint的属性。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) ListApplicationEndpointAttributesInvoker added in v0.0.90

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

ListApplicationEndpointAttributesInvoker 查询Application的Endpoint属性

func (*SmnClient) ListApplicationEndpoints

ListApplicationEndpoints 查询Application的Endpoint列表

查询平台的endpoint列表。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) ListApplicationEndpointsInvoker added in v0.0.90

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

ListApplicationEndpointsInvoker 查询Application的Endpoint列表

func (*SmnClient) ListApplications

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

ListApplications 查询Application

查询应用平台列表。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) ListApplicationsInvoker added in v0.0.90

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

ListApplicationsInvoker 查询Application

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

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

PublishAppMessage App消息发布

将消息直发给endpoint设备。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) PublishAppMessageInvoker added in v0.0.90

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

PublishAppMessageInvoker App消息发布

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

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

UpdateApplication 更新Application

更新应用平台。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) UpdateApplicationEndpoint

UpdateApplicationEndpoint 更新Application endpoint

更新设备属性。

Please refer to HUAWEI cloud API Explorer for details.

func (*SmnClient) UpdateApplicationEndpointInvoker added in v0.0.90

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

UpdateApplicationEndpointInvoker 更新Application endpoint

func (*SmnClient) UpdateApplicationInvoker added in v0.0.90

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

UpdateApplicationInvoker 更新Application

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) 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 added in v0.0.90

type UpdateApplicationInvoker added in v0.0.90

type UpdateApplicationInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateApplicationInvoker) Invoke added in v0.0.90

type UpdateMessageTemplateInvoker added in v0.0.90

type UpdateMessageTemplateInvoker struct {
	*invoker.BaseInvoker
}

func (*UpdateMessageTemplateInvoker) Invoke added in v0.0.90

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