model

package
v0.0.34-rc Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddSubscriptionRequest

type AddSubscriptionRequest struct {
	TopicUrn string                      `json:"topic_urn"`
	Body     *AddSubscriptionRequestBody `json:"body,omitempty"`
}

Request Object

func (AddSubscriptionRequest) String

func (o AddSubscriptionRequest) String() string

type AddSubscriptionRequestBody

type AddSubscriptionRequestBody struct {
	// 说明:http协议,接入点必须以“http://”开头。  https协议,接入点必须以“https://”开头。  email协议,接入点必须是邮件地址。  sms协议,接入点必须是一个电话号码。  functionstage协议,接入点必须是一个函数。  functiongraph协议,接入点必须是一个函数工作流。  dms协议,接入点必须是一个消息队列。  application协议,接入点必须是一个应用平台的设备终端。  callnotify协议,接入点必须是一个电话号码。
	Endpoint string `json:"endpoint"`
	// 不同协议对应不同的endpoint(接受消息的接入点)。 目前支持的协议包括:  “email”:邮件传输协议,endpoint为邮箱地址。  “default”  “sms”:短信传输协议,endpoint为手机号码。  “functionstage”:FunctionGraph(函数)传输协议,endpoint为一个函数。  “functiongraph”:FunctionGraph(工作流)传输协议,endpoint为由一组函数编排成的工作流。  “http”、“https”:HTTP/HTTPS传输协议,endpoint为URL。  “callnotify”:语音通知传输协议,endpoint为手机号码。
	Protocol string `json:"protocol"`
	// 备注。最大支持128字节,约42个中文,必须是UTF-8编码的字符串,否则无法正常显示中文。
	Remark string `json:"remark"`
}

func (AddSubscriptionRequestBody) String

type AddSubscriptionResponse

type AddSubscriptionResponse struct {
	// 请求的唯一标识ID。
	RequestId *string `json:"request_id,omitempty"`
	// 订阅者的唯一资源标识。
	SubscriptionUrn *string `json:"subscription_urn,omitempty"`
	HttpStatusCode  int     `json:"-"`
}

Response Object

func (AddSubscriptionResponse) String

func (o AddSubscriptionResponse) String() string

type ApplicationEndpoint

type ApplicationEndpoint struct {
	// 创建application的时间 时间格式为UTC时间,YYYY-MM-DDTHH:MM:SSZ。
	CreateTime string `json:"create_time"`
	// Application endpoint的唯一资源标识。
	EndpointUrn string `json:"endpoint_urn"`
	// 用户自定义数据 最大长度支持UTF-8编码后2048字节。
	UserData string `json:"user_data"`
	// endpoint启用开关 true或false字符串。
	Enabled string `json:"enabled"`
	// 设备token 最大长度512个字节。
	Token string `json:"token"`
}

func (ApplicationEndpoint) String

func (o ApplicationEndpoint) String() string

type ApplicationItem

type ApplicationItem struct {
	// 创建application的名字。
	Name string `json:"name"`
	// 应用平台。
	Platform string `json:"platform"`
	// 创建application的时间时间格式为UTC时间,YYYY-MM-DDTHH:MM:SSZ。
	CreateTime string `json:"create_time"`
	// Application的唯一资源标识。
	ApplicationUrn string `json:"application_urn"`
	// Application的唯一标识ID。
	ApplicationId string `json:"application_id"`
	// 应用平台是否启用。
	Enabled string `json:"enabled"`
	// 苹果证书过期时间APNS、APNS_SANDBOX平台特有属性时间格式为UTC时间,YYYY-MM-DDTHH:MM:SSZ。
	AppleCertificateExpirationDate *string `json:"apple_certificate_expiration_date,omitempty"`
}

func (ApplicationItem) String

func (o ApplicationItem) String() string

type BatchCreateOrDeleteResourceTagsRequest

type BatchCreateOrDeleteResourceTagsRequest struct {
	ResourceType string                                      `json:"resource_type"`
	ResourceId   string                                      `json:"resource_id"`
	Body         *BatchCreateOrDeleteResourceTagsRequestBody `json:"body,omitempty"`
}

Request Object

func (BatchCreateOrDeleteResourceTagsRequest) String

type BatchCreateOrDeleteResourceTagsRequestBody

type BatchCreateOrDeleteResourceTagsRequestBody struct {
	// 标签列表,结构体说明请参见表1。删除时tags结构体不能缺失,key不能为空或空字符串,且不针对字符集范围进行校验。
	Tags []ResourceTag `json:"tags"`
	// 操作标识:仅限于create(创建)、delete(删除)。
	Action string `json:"action"`
}

func (BatchCreateOrDeleteResourceTagsRequestBody) String

type BatchCreateOrDeleteResourceTagsResponse

type BatchCreateOrDeleteResourceTagsResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (BatchCreateOrDeleteResourceTagsResponse) String

type CancelSubscriptionRequest

type CancelSubscriptionRequest struct {
	SubscriptionUrn string `json:"subscription_urn"`
}

Request Object

func (CancelSubscriptionRequest) String

func (o CancelSubscriptionRequest) String() string

type CancelSubscriptionResponse

type CancelSubscriptionResponse struct {
	// 请求的唯一标识ID。
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CancelSubscriptionResponse) String

type CreateApplicationEndpointRequest

type CreateApplicationEndpointRequest struct {
	ApplicationUrn string                                `json:"application_urn"`
	Body           *CreateApplicationEndpointRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateApplicationEndpointRequest) String

type CreateApplicationEndpointRequestBody

type CreateApplicationEndpointRequestBody struct {
	// 移动应用设备token,最大长度512个字节。
	Token string `json:"token"`
	// 用户自定义数据,最大长度支持UTF-8编码后2048字节。
	UserData string `json:"user_data"`
}

func (CreateApplicationEndpointRequestBody) String

type CreateApplicationEndpointResponse

type CreateApplicationEndpointResponse struct {
	// 请求的唯一标识ID。
	RequestId *string `json:"request_id,omitempty"`
	// Endpoint的唯一资源标识。
	EndpointUrn    *string `json:"endpoint_urn,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateApplicationEndpointResponse) String

type CreateApplicationRequest

type CreateApplicationRequest struct {
	Body *CreateApplicationRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateApplicationRequest) String

func (o CreateApplicationRequest) String() string

type CreateApplicationRequestBody

type CreateApplicationRequestBody struct {
	// 应用名。  最大支持64个字符,只能包含英文字母、下划线和数字。
	Name string `json:"name"`
	// 应用平台。  目前仅支持HMS、APNS、APNS_SANDBOX。  HMS是为开发者提供的消息推送平台。  APNS和APNS_SANDBOX是用于推送iOS消息的服务平台。
	Platform string `json:"platform"`
	// 对于HMS平台是APP ID,只能包含英文字母和数字,最大20个字符。 对于苹果APNS、APNS_SandBox平台是推送证书,大小不超过8K,且是Base64编码。
	PlatformPrincipal string `json:"platform_principal"`
	// 对于HMS平台是APP SECRET, 只能包含英文字母和数字,32到64个字符。  对于苹果APNS、APNS_SandBox平台是推送证书的私钥(private key), 大小不超过8K,且是Base64编码。
	PlatformCredential string `json:"platform_credential"`
}

func (CreateApplicationRequestBody) String

type CreateApplicationResponse

type CreateApplicationResponse struct {
	// 请求的唯一标识ID。
	RequestId *string `json:"request_id,omitempty"`
	// Application的唯一资源标识。
	ApplicationUrn *string `json:"application_urn,omitempty"`
	// Application资源的ID。
	ApplicationId  *string `json:"application_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateApplicationResponse) String

func (o CreateApplicationResponse) String() string

type CreateMessageTemplateRequest

type CreateMessageTemplateRequest struct {
	Body *CreateMessageTemplateRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateMessageTemplateRequest) String

type CreateMessageTemplateRequestBody

type CreateMessageTemplateRequestBody struct {
	// 创建模板的名称。只能包含大写字母、小写字母、数字、-和_,且必须由大写字母、小写字母或数字开头,长度在1到64个字符之间。
	MessageTemplateName string `json:"message_template_name"`
	// 模板支持的协议类型。  目前支持的协议包括:  “email”:邮件传输协议。  “sms”:短信传输协议。  “functionstage”:FunctionGraph(函数)传输协议。  “functiongraph”:FunctionGraph(工作流)传输协议。  “dms”:DMS传输协议。  “http”、“https”:HTTP/HTTPS传输协议。
	Protocol string `json:"protocol"`
	// 模板内容,模板目前仅支持纯文本模式。模板内容不能空,最大支持256KB。
	Content string `json:"content"`
}

func (CreateMessageTemplateRequestBody) String

type CreateMessageTemplateResponse

type CreateMessageTemplateResponse struct {
	// 请求的唯一标识ID。
	RequestId *string `json:"request_id,omitempty"`
	// 模板唯一的资源标识。
	MessageTemplateId *string `json:"message_template_id,omitempty"`
	HttpStatusCode    int     `json:"-"`
}

Response Object

func (CreateMessageTemplateResponse) String

type CreateResourceTagRequest

type CreateResourceTagRequest struct {
	ResourceType string                        `json:"resource_type"`
	ResourceId   string                        `json:"resource_id"`
	Body         *CreateResourceTagRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateResourceTagRequest) String

func (o CreateResourceTagRequest) String() string

type CreateResourceTagRequestBody

type CreateResourceTagRequestBody struct {
	Tag *CreateResourceTagRequestBodyTag `json:"tag"`
}

func (CreateResourceTagRequestBody) String

type CreateResourceTagRequestBodyTag

type CreateResourceTagRequestBodyTag struct {
	// 键,表示要匹配的字段。  当前key的参数值只能取“resource_name”,此时value的参数值为云服务器名称。  - key不能重复,value为匹配的值。  - 此字段为固定字典值。  - 不允许为空字符串。
	Key string `json:"key"`
	// 值。  当前key的参数值只能取“resource_name”,此时value的参数值为云服务器名称。  - 每个值最大长度255个unicode字符。  - 不可以为空。
	Value string `json:"value"`
}

资源标签结构体。

func (CreateResourceTagRequestBodyTag) String

type CreateResourceTagResponse

type CreateResourceTagResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (CreateResourceTagResponse) String

func (o CreateResourceTagResponse) String() string

type CreateTopicRequest

type CreateTopicRequest struct {
	Body *CreateTopicRequestBody `json:"body,omitempty"`
}

Request Object

func (CreateTopicRequest) String

func (o CreateTopicRequest) String() string

type CreateTopicRequestBody

type CreateTopicRequestBody struct {
	// 创建topic的名字。Topic名称只能包含大写字母、小写字母、数字、-和_,且必须由大写字母、小写字母或数字开头,长度为1到255个字符。
	Name string `json:"name"`
	// Topic的显示名,推送邮件消息时,作为邮件发件人显示。显示名的长度为192byte或64个中文。默认值为空。
	DisplayName string `json:"display_name"`
	// 企业项目ID。非必选参数,当企业项目开关打开时需要传入该参数。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

func (CreateTopicRequestBody) String

func (o CreateTopicRequestBody) String() string

type CreateTopicResponse

type CreateTopicResponse struct {
	// 请求的唯一标识ID。
	RequestId *string `json:"request_id,omitempty"`
	// Topic的唯一的资源标识,可通过查询主题列表获取该标识。
	TopicUrn       *string `json:"topic_urn,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateTopicResponse) String

func (o CreateTopicResponse) String() string

type DeleteApplicationEndpointRequest

type DeleteApplicationEndpointRequest struct {
	EndpointUrn string `json:"endpoint_urn"`
}

Request Object

func (DeleteApplicationEndpointRequest) String

type DeleteApplicationEndpointResponse

type DeleteApplicationEndpointResponse struct {
	// 请求的唯一标识ID。
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (DeleteApplicationEndpointResponse) String

type DeleteApplicationRequest

type DeleteApplicationRequest struct {
	ApplicationUrn string `json:"application_urn"`
}

Request Object

func (DeleteApplicationRequest) String

func (o DeleteApplicationRequest) String() string

type DeleteApplicationResponse

type DeleteApplicationResponse struct {
	// 请求的唯一标识ID。
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (DeleteApplicationResponse) String

func (o DeleteApplicationResponse) String() string

type DeleteMessageTemplateRequest

type DeleteMessageTemplateRequest struct {
	MessageTemplateId string `json:"message_template_id"`
}

Request Object

func (DeleteMessageTemplateRequest) String

type DeleteMessageTemplateResponse

type DeleteMessageTemplateResponse struct {
	// 请求的唯一标识ID。
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (DeleteMessageTemplateResponse) String

type DeleteResourceTagRequest

type DeleteResourceTagRequest struct {
	ResourceType string `json:"resource_type"`
	ResourceId   string `json:"resource_id"`
	Key          string `json:"key"`
}

Request Object

func (DeleteResourceTagRequest) String

func (o DeleteResourceTagRequest) String() string

type DeleteResourceTagResponse

type DeleteResourceTagResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DeleteResourceTagResponse) String

func (o DeleteResourceTagResponse) String() string

type DeleteTopicAttributeByNameRequest

type DeleteTopicAttributeByNameRequest struct {
	TopicUrn string `json:"topic_urn"`
	Name     string `json:"name"`
}

Request Object

func (DeleteTopicAttributeByNameRequest) String

type DeleteTopicAttributeByNameResponse

type DeleteTopicAttributeByNameResponse struct {
	// 请求的唯一标识ID。
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (DeleteTopicAttributeByNameResponse) String

type DeleteTopicAttributesRequest

type DeleteTopicAttributesRequest struct {
	TopicUrn string `json:"topic_urn"`
}

Request Object

func (DeleteTopicAttributesRequest) String

type DeleteTopicAttributesResponse

type DeleteTopicAttributesResponse struct {
	// 请求的唯一标识ID。
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (DeleteTopicAttributesResponse) String

type DeleteTopicRequest

type DeleteTopicRequest struct {
	TopicUrn string `json:"topic_urn"`
}

Request Object

func (DeleteTopicRequest) String

func (o DeleteTopicRequest) String() string

type DeleteTopicResponse

type DeleteTopicResponse struct {
	// 请求的唯一标识ID
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (DeleteTopicResponse) String

func (o DeleteTopicResponse) String() string

type LinksItem

type LinksItem struct {
	// 对应快捷链接。
	Href string `json:"href"`
	// 快捷链接标记名称。
	Rel string `json:"rel"`
}

func (LinksItem) String

func (o LinksItem) String() string

type ListApplicationAttributesRequest

type ListApplicationAttributesRequest struct {
	ApplicationUrn string `json:"application_urn"`
}

Request Object

func (ListApplicationAttributesRequest) String

type ListApplicationAttributesResponse

type ListApplicationAttributesResponse struct {
	// 请求的唯一标识ID。
	RequestId *string `json:"request_id,omitempty"`
	// Application的唯一标识ID。
	ApplicationId  *string                                          `json:"application_id,omitempty"`
	Attributes     *ListApplicationAttributesResponseBodyAttributes `json:"attributes,omitempty"`
	HttpStatusCode int                                              `json:"-"`
}

Response Object

func (ListApplicationAttributesResponse) String

type ListApplicationAttributesResponseBodyAttributes

type ListApplicationAttributesResponseBodyAttributes struct {
	// 应用平台是否启用。
	Enabled string `json:"enabled"`
	// 苹果证书过期时间,APNS、APNS_SANDBOX平台特有属性 时间格式为UTC时间,YYYY-MM-DDTHH:MM:SSZ。
	AppleCertificateExpirationDate *string `json:"apple_certificate_expiration_date,omitempty"`
}

func (ListApplicationAttributesResponseBodyAttributes) String

type ListApplicationEndpointAttributesRequest

type ListApplicationEndpointAttributesRequest struct {
	EndpointUrn string `json:"endpoint_urn"`
}

Request Object

func (ListApplicationEndpointAttributesRequest) String

type ListApplicationEndpointAttributesResponse

type ListApplicationEndpointAttributesResponse struct {
	// 请求的唯一标识ID。
	RequestId      *string                                                  `json:"request_id,omitempty"`
	Attributes     *ListApplicationEndpointAttributesResponseBodyAttributes `json:"attributes,omitempty"`
	HttpStatusCode int                                                      `json:"-"`
}

Response Object

func (ListApplicationEndpointAttributesResponse) String

type ListApplicationEndpointAttributesResponseBodyAttributes

type ListApplicationEndpointAttributesResponseBodyAttributes struct {
	// 设备是否可用。
	Enabled string `json:"enabled"`
	// 设备token。
	Token string `json:"token"`
	// 用户数据。
	UserData string `json:"user_data"`
}

func (ListApplicationEndpointAttributesResponseBodyAttributes) String

type ListApplicationEndpointsRequest

type ListApplicationEndpointsRequest struct {
	ApplicationUrn string  `json:"application_urn"`
	Offset         *int32  `json:"offset,omitempty"`
	Limit          *int32  `json:"limit,omitempty"`
	Enabled        *string `json:"enabled,omitempty"`
	Token          *string `json:"token,omitempty"`
	UserData       *string `json:"user_data,omitempty"`
}

Request Object

func (ListApplicationEndpointsRequest) String

type ListApplicationEndpointsResponse

type ListApplicationEndpointsResponse struct {
	// 请求的唯一标识ID。
	RequestId *string `json:"request_id,omitempty"`
	// 是否有下一页标识。
	NextPageFlag *bool `json:"next_page_flag,omitempty"`
	// Application_endpoint结构体数。
	Endpoints      *[]ApplicationEndpoint `json:"endpoints,omitempty"`
	HttpStatusCode int                    `json:"-"`
}

Response Object

func (ListApplicationEndpointsResponse) String

type ListApplicationsRequest

type ListApplicationsRequest struct {
	Offset   *int32  `json:"offset,omitempty"`
	Limit    *int32  `json:"limit,omitempty"`
	Name     *string `json:"name,omitempty"`
	Platform *string `json:"platform,omitempty"`
}

Request Object

func (ListApplicationsRequest) String

func (o ListApplicationsRequest) String() string

type ListApplicationsResponse

type ListApplicationsResponse struct {
	// 请求的唯一标识ID。
	RequestId *string `json:"request_id,omitempty"`
	// 返回的Application个数。该参数不受offset和limit影响,即返回的是您账户下所有的Application个数。
	ApplicationCount *int32             `json:"application_count,omitempty"`
	Applications     *[]ApplicationItem `json:"applications,omitempty"`
	HttpStatusCode   int                `json:"-"`
}

Response Object

func (ListApplicationsResponse) String

func (o ListApplicationsResponse) String() string

type ListInstanceRequestBody

type ListInstanceRequestBody struct {
	// 最多包含10个key,每个key最多包含10个value,结构体不能缺失。key不能为空或者空字符串。key不能重复,同一个key中value不能重复,不同key对应的资源之间为与的关系。
	Tags *[]ResourceTags `json:"tags,omitempty"`
	// 最多包含10个key,每个key最多包含10个value,结构体不能缺失。key不能为空或者空字符串。key不能重复,同一个key中value不能重复,不同key对应的资源之间为或的关系。
	TagsAny *[]ResourceTags `json:"tags_any,omitempty"`
	// 最多包含10个key,每个key最多包含10个value,结构体不能缺失。key不能为空或者空字符串。key不能重复,同一个key中value不能重复,不同key对应的资源之间为与非的关系。
	NotTags *[]ResourceTags `json:"not_tags,omitempty"`
	// 最多包含10个key,每个key最多包含10个value,结构体不能缺失。key不能为空或者空字符串。key不能重复,同一个key中value不能重复,不同key对应的资源之间为或非的关系。
	NotTagsAny *[]ResourceTags `json:"not_tags_any,omitempty"`
	// 索引位置, 从offset指定的下一条数据开始查询。 查询第一页数据时,不需要传入此参数,查询后续页码数据时,将查询前一页数据时响应体中的值带入此参数。  action为count时无此参数。  action为filter时,默认为0,必须为数字,且不能为负数。
	Offset *string `json:"offset,omitempty"`
	// 查询记录数。  action为count时无此参数。  action为filter时,默认为1000。limit最多为1000,不能为负数,最小值为1。
	Limit *string `json:"limit,omitempty"`
	// 操作标识(仅限于filter,count):filter(过滤),count(查询总条数)。 为filter时表示分页查询,为count只需按照条件将总条数返回即可。
	Action string `json:"action"`
	// 搜索字段。  key为要匹配的字段,当前只支持resource_name。  value为匹配的值,当前为精确匹配。
	Matches *[]TagMatch `json:"matches,omitempty"`
}

func (ListInstanceRequestBody) String

func (o ListInstanceRequestBody) String() string

type ListMessageTemplateDetailsRequest

type ListMessageTemplateDetailsRequest struct {
	MessageTemplateId string `json:"message_template_id"`
}

Request Object

func (ListMessageTemplateDetailsRequest) String

type ListMessageTemplateDetailsResponse

type ListMessageTemplateDetailsResponse struct {
	// 模板ID。
	MessageTemplateId *string `json:"message_template_id,omitempty"`
	// 模板名称。
	MessageTemplateName *string `json:"message_template_name,omitempty"`
	// 模板支持的协议类型。  目前支持的协议包括:  “email”:邮件传输协议。  “default”:  “sms”:短信传输协议。  “functionstage”:FunctionGraph(函数)传输协议。  “functiongraph”:FunctionGraph(工作流)传输协议。  “dms”:DMS传输协议。  “http”、“https”:HTTP/HTTPS传输协议。
	Protocol *string `json:"protocol,omitempty"`
	// 模板tag列表。  是消息模板“{}”内的字段,在具体使用消息模板时,可根据实际情况替为该字段赋值。
	TagNames *[]string `json:"tag_names,omitempty"`
	// 模板创建时间。 时间格式为UTC时间,YYYY-MM-DDTHH:MM:SSZ。
	CreateTime *string `json:"create_time,omitempty"`
	// 模板最后更新时间。时间格式为UTC时间,YYYY-MM-DDTHH:MM:SSZ。
	UpdateTime *string `json:"update_time,omitempty"`
	// 模板内容。
	Content *string `json:"content,omitempty"`
	// 请求的唯一标识ID。
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ListMessageTemplateDetailsResponse) String

type ListMessageTemplatesRequest

type ListMessageTemplatesRequest struct {
	Offset              *int32  `json:"offset,omitempty"`
	Limit               *int32  `json:"limit,omitempty"`
	MessageTemplateName *string `json:"message_template_name,omitempty"`
	Protocol            string  `json:"protocol"`
}

Request Object

func (ListMessageTemplatesRequest) String

type ListMessageTemplatesResponse

type ListMessageTemplatesResponse struct {
	// 请求的唯一标识ID。
	RequestId *string `json:"request_id,omitempty"`
	// 返回的模板个数。
	MessageTemplateCount *int32 `json:"message_template_count,omitempty"`
	// Message_template结构体数组。
	MessageTemplates *[]MessageTemplate `json:"message_templates,omitempty"`
	HttpStatusCode   int                `json:"-"`
}

Response Object

func (ListMessageTemplatesResponse) String

type ListProjectTagsRequest

type ListProjectTagsRequest struct {
	ResourceType string `json:"resource_type"`
}

Request Object

func (ListProjectTagsRequest) String

func (o ListProjectTagsRequest) String() string

type ListProjectTagsResponse

type ListProjectTagsResponse struct {
	// 资源标签列表。
	Tags           *[]ResourceTags `json:"tags,omitempty"`
	HttpStatusCode int             `json:"-"`
}

Response Object

func (ListProjectTagsResponse) String

func (o ListProjectTagsResponse) String() string

type ListResourceInstancesRequest

type ListResourceInstancesRequest struct {
	ResourceType string                   `json:"resource_type"`
	Body         *ListInstanceRequestBody `json:"body,omitempty"`
}

Request Object

func (ListResourceInstancesRequest) String

type ListResourceInstancesResponse

type ListResourceInstancesResponse struct {
	// 返回的资源列表。
	Resources *[]TagResource `json:"resources,omitempty"`
	// 总记录数。
	TotalCount     *int32 `json:"total_count,omitempty"`
	HttpStatusCode int    `json:"-"`
}

Response Object

func (ListResourceInstancesResponse) String

type ListResourceTagsRequest

type ListResourceTagsRequest struct {
	ResourceType string `json:"resource_type"`
	ResourceId   string `json:"resource_id"`
}

Request Object

func (ListResourceTagsRequest) String

func (o ListResourceTagsRequest) String() string

type ListResourceTagsResponse

type ListResourceTagsResponse struct {
	// 资源标签列表。
	Tags           *[]ResourceTag `json:"tags,omitempty"`
	HttpStatusCode int            `json:"-"`
}

Response Object

func (ListResourceTagsResponse) String

func (o ListResourceTagsResponse) String() string

type ListSubscriptionsByTopicRequest

type ListSubscriptionsByTopicRequest struct {
	TopicUrn string `json:"topic_urn"`
	Offset   *int32 `json:"offset,omitempty"`
	Limit    *int32 `json:"limit,omitempty"`
}

Request Object

func (ListSubscriptionsByTopicRequest) String

type ListSubscriptionsByTopicResponse

type ListSubscriptionsByTopicResponse struct {
	// 请求的唯一标识ID。
	RequestId *string `json:"request_id,omitempty"`
	// 订阅者个数。
	SubscriptionCount *int32 `json:"subscription_count,omitempty"`
	// Subscription结构体。
	Subscriptions  *[]ListSubscriptionsItem `json:"subscriptions,omitempty"`
	HttpStatusCode int                      `json:"-"`
}

Response Object

func (ListSubscriptionsByTopicResponse) String

type ListSubscriptionsItem

type ListSubscriptionsItem struct {
	// Topic的唯一的资源标识。
	TopicUrn string `json:"topic_urn"`
	// 不同协议对应不同的endpoint(接受消息的接入点)。目前支持的协议包括:  “email”:邮件传输协议,endpoint为邮箱地址。  “sms”:短信传输协议,endpoint为手机号码。  “functionstage”:FunctionGraph(函数)传输协议,endpoint为一个函数。  “functiongraph”:FunctionGraph(工作流)传输协议,endpoint为由一组函数编排成的工作流。  “http”、“https”:HTTP/HTTPS传输协议,endpoint为URL。
	Protocol string `json:"protocol"`
	// 订阅者的唯一资源标识。
	SubscriptionUrn string `json:"subscription_urn"`
	// Topic创建者的项目ID。
	Owner string `json:"owner"`
	// 接受消息的接入点。
	Endpoint string `json:"endpoint"`
	// 备注。
	Remark string `json:"remark"`
	// 订阅者状态:0表示订阅还未确认,1表示已经确认,3表示已经取消确认。
	Status int32 `json:"status"`
}

func (ListSubscriptionsItem) String

func (o ListSubscriptionsItem) String() string

type ListSubscriptionsRequest

type ListSubscriptionsRequest struct {
	Offset *int32 `json:"offset,omitempty"`
	Limit  *int32 `json:"limit,omitempty"`
}

Request Object

func (ListSubscriptionsRequest) String

func (o ListSubscriptionsRequest) String() string

type ListSubscriptionsResponse

type ListSubscriptionsResponse struct {
	// 请求的唯一标识ID。
	RequestId *string `json:"request_id,omitempty"`
	// 订阅者个数。
	SubscriptionCount *int32 `json:"subscription_count,omitempty"`
	// Subscription结构体。
	Subscriptions  *[]ListSubscriptionsItem `json:"subscriptions,omitempty"`
	HttpStatusCode int                      `json:"-"`
}

Response Object

func (ListSubscriptionsResponse) String

func (o ListSubscriptionsResponse) String() string

type ListTopicAttributesRequest

type ListTopicAttributesRequest struct {
	TopicUrn string `json:"topic_urn"`
	Name     string `json:"name"`
}

Request Object

func (ListTopicAttributesRequest) String

type ListTopicAttributesResponse

type ListTopicAttributesResponse struct {
	// 请求的唯一标识ID。
	RequestId      *string         `json:"request_id,omitempty"`
	Attributes     *TopicAttribute `json:"attributes,omitempty"`
	HttpStatusCode int             `json:"-"`
}

Response Object

func (ListTopicAttributesResponse) String

type ListTopicDetailsRequest

type ListTopicDetailsRequest struct {
	TopicUrn string `json:"topic_urn"`
}

Request Object

func (ListTopicDetailsRequest) String

func (o ListTopicDetailsRequest) String() string

type ListTopicDetailsResponse

type ListTopicDetailsResponse struct {
	// 更新时间。时间格式为UTC时间,YYYY-MM-DDTHH:MM:SSZ。
	UpdateTime *string `json:"update_time,omitempty"`
	// 消息推送的策略。0表示发送失败,保留到失败队列,1表示直接丢弃发送失败的消息。
	PushPolicy *int32 `json:"push_policy,omitempty"`
	// 创建时间。时间格式为UTC时间,YYYY-MM-DDTHH:MM:SSZ。
	CreateTime *string `json:"create_time,omitempty"`
	// 创建Topic的名字。
	Name *string `json:"name,omitempty"`
	// Topic的唯一的资源标识。可以通过[查看主题列表获](https://support.huaweicloud.com/api-smn/smn_api_51004.html)取该标识。
	TopicUrn *string `json:"topic_urn,omitempty"`
	// Topic的显示名,推送邮件消息时,作为邮件发件人显示。
	DisplayName *string `json:"display_name,omitempty"`
	// 请求的唯一标识ID。
	RequestId *string `json:"request_id,omitempty"`
	// 企业项目ID。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
	HttpStatusCode      int     `json:"-"`
}

Response Object

func (ListTopicDetailsResponse) String

func (o ListTopicDetailsResponse) String() string

type ListTopicsItem

type ListTopicsItem struct {
	// Topic的唯一的资源标识。
	TopicUrn string `json:"topic_urn"`
	// 创建topic的名字。
	Name string `json:"name"`
	// Topic的显示名,推送邮件消息时,作为邮件发件人显示。
	DisplayName string `json:"display_name"`
	// 消息推送的策略,该属性目前不支持修改,后续将支持修改。0表示发送失败,保留到失败队列,1表示直接丢弃发送失败的消息。
	PushPolicy int32 `json:"push_policy"`
	// 企业项目ID。
	EnterpriseProjectId string `json:"enterprise_project_id"`
}

func (ListTopicsItem) String

func (o ListTopicsItem) String() string

type ListTopicsRequest

type ListTopicsRequest struct {
	Offset *int32 `json:"offset,omitempty"`
	Limit  *int32 `json:"limit,omitempty"`
}

Request Object

func (ListTopicsRequest) String

func (o ListTopicsRequest) String() string

type ListTopicsResponse

type ListTopicsResponse struct {
	// 请求的唯一标识ID。
	RequestId *string `json:"request_id,omitempty"`
	// 返回的Topic个数。该参数不受offset和limit影响,即返回的是您账户下所有的Topic个数。
	TopicCount *int32 `json:"topic_count,omitempty"`
	// Topic结构体数组。
	Topics         *[]ListTopicsItem `json:"topics,omitempty"`
	HttpStatusCode int               `json:"-"`
}

Response Object

func (ListTopicsResponse) String

func (o ListTopicsResponse) String() string

type ListVersionRequest

type ListVersionRequest struct {
	ApiVersion string `json:"api_version"`
}

Request Object

func (ListVersionRequest) String

func (o ListVersionRequest) String() string

type ListVersionResponse

type ListVersionResponse struct {
	Version        *interface{} `json:"version,omitempty"`
	HttpStatusCode int          `json:"-"`
}

Response Object

func (ListVersionResponse) String

func (o ListVersionResponse) String() string

type ListVersionsRequest

type ListVersionsRequest struct {
}

Request Object

func (ListVersionsRequest) String

func (o ListVersionsRequest) String() string

type ListVersionsResponse

type ListVersionsResponse struct {
	// 描述version相关对象的列表。
	Versions       *[]VersionItem `json:"versions,omitempty"`
	HttpStatusCode int            `json:"-"`
}

Response Object

func (ListVersionsResponse) String

func (o ListVersionsResponse) String() string

type MessageTemplate

type MessageTemplate struct {
	// 模板ID。
	MessageTemplateId string `json:"message_template_id"`
	// 模板名称。
	MessageTemplateName string `json:"message_template_name"`
	// 模板协议类型。  目前支持的协议包括:  “email”:邮件传输协议。  “sms”:短信传输协议。  “functionstage”:FunctionGraph(函数)传输协议。  “functiongraph”:FunctionGraph(工作流)传输协议。  “dms”:DMS传输协议。  “http”、“https”:HTTP/HTTPS传输协议。
	Protocol string `json:"protocol"`
	// 模板tag列表
	TagNames []string `json:"tag_names"`
	// 模板创建时间 时间格式为UTC时间,YYYY-MM-DDTHH:MM:SSZ。
	CreateTime string `json:"create_time"`
	// 模板最后更新时间 时间格式为UTC时间,YYYY-MM-DDTHH:MM:SSZ。
	UpdateTime string `json:"update_time"`
}

func (MessageTemplate) String

func (o MessageTemplate) String() string

type PublishAppMessageRequest

type PublishAppMessageRequest struct {
	EndpointUrn string                        `json:"endpoint_urn"`
	Body        *PublishAppMessageRequestBody `json:"body,omitempty"`
}

Request Object

func (PublishAppMessageRequest) String

func (o PublishAppMessageRequest) String() string

type PublishAppMessageRequestBody

type PublishAppMessageRequestBody struct {
	//  message与message_structure二者选其一。  message, App消息发布。  message_structure, 使用消息结构体方式的App消息发布。  app推送的消息内容,当前支持的推送平台有HMS、APNS、APNS_SANDBOX。  HMS是为开发者提供的消息推送平台。  APNS和APNS_SANDBOX是用于推送iOS消息的服务平台。  HMS平台指定的消息内容不超过2K。  APNS和APNS_SANDBOX平台的消息内容不能超过4K。  推送平台的消息内容格式要求详情见application消息体格式。  华为透传消息  {   \"hps\": {     \"msg\": {       \"type\": 1,       \"body\": {         \"key\": \"value\"       }     }   } }  华为系统通知栏消息  {   \"hps\": {     \"msg\": {       \"type\": 3,       \"body\": {         \"content\": \"Push message content\",         \"title\": \"Push message content\"       },       \"action\": {         \"type\": 1,         \"param\": {           \"intent\": \"#Intent;compo=com.rvr/.Activity;S.W=U;end\"         }       }     },     \"ext\": {       \"biTag\": \"Trump\",       \"icon\": \"http://upload.w.org/00/150pxsvg.png\"     }   } }  苹果平台消息格式 {   \"aps\": {     \"alert\": \"hello world\"   } }
	Message *string `json:"message,omitempty"`
	// app推送的消息内容,当前支持的推送平台有HMS、APNS、APNS_SANDBOX。  HMS是为开发者提供的消息推送平台。  APNS和APNS_SANDBOX是用于推送iOS消息的服务平台。  HMS平台指定的消息内容不超过2K。  APNS和APNS_SANDBOX平台的消息内容不能超过4K。  推送平台的消息内容格式要求详情见application消息体格式。  华为透传消息  {   \"HMS\": {     \"hps\": {       \"msg\": {         \"type\": 1,         \"body\": {           \"key\": \"value\"         }       }     }   } }  华为系统通知栏消息  {   \"HMS\": {     \"hps\": {       \"msg\": {         \"type\": 3,         \"body\": {           \"content\": \"Push message content\",           \"title\": \"Push message content\"         },         \"action\": {           \"type\": 1,           \"param\": {             \"intent\": \"#Intent;compo=com.rvr/.Activity;S.W=U;end\"           }         }       },       \"ext\": {         \"biTag\": \"Trump\",         \"icon\": \"http://upload.w.org/00/150pxsvg.png\"       }     }   } }  苹果平台消息格式  {   \"APNS\": {     \"aps\": {       \"alert\": \"hello world\"     }   } }
	MessageStructure *string `json:"message_structure,omitempty"`
	// 消息发送的生存时间,是相对于发布时间的。  SMN系统将移动推送消息转交给推送平台前,会计算该消息在系统消耗的时间。只有消耗的时间小于time_to_live时,SMN才会将消息转交给推送平台,并将time_to_live减去消耗的时间传递给推送平台,否则消息废弃。  time _to_live的单位是s,变量默认值是3600s,即一小时。值为正整数且小于等于3600*24。
	TimeToLive *string `json:"time_to_live,omitempty"`
}

func (PublishAppMessageRequestBody) String

type PublishAppMessageResponse

type PublishAppMessageResponse struct {
	// 唯一的消息ID。
	MessageId *string `json:"message_id,omitempty"`
	// 请求的唯一标识ID。
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (PublishAppMessageResponse) String

func (o PublishAppMessageResponse) String() string

type PublishMessageRequest

type PublishMessageRequest struct {
	TopicUrn string                     `json:"topic_urn"`
	Body     *PublishMessageRequestBody `json:"body,omitempty"`
}

Request Object

func (PublishMessageRequest) String

func (o PublishMessageRequest) String() string

type PublishMessageRequestBody

type PublishMessageRequestBody struct {
	// 消息标题,给邮箱订阅者发送邮件时作为邮件主题,长度不能超过512个字符。
	Subject string `json:"subject"`
	// 发送的消息。消息体必须是UTF-8编码的字符串,大小至多256KB。如果订阅者是手机号码,长度不超过490个字符,超出部分系统自动截断。短信内容不能包含“[]”或者“【】”符号。  对于移动推送订阅者推送消息,message消息必须符合移动推送平台的消息格式,消息格式请参见application消息体格式。否则移动app无法收到消息,目前支持的平台有HMS、APNS、APNS_SANDBOX。
	Message *string `json:"message,omitempty"`
	// Json格式的字符串。支持“email”、“sms”、 “http”、“https”、“dms”、“functiongraph”、“functionstage”、“HMS”、“APNS”以及“APNS_SANDBOX”。其中,“HMS”、“APNS”以及“APNS_SANDBOX”三种消息的格式请参见application消息体格式。必须设置默认的消息“default”,当匹配不到消息协议时,按“default”中的内容发送。  说明: 三种消息发送方式  message  message_structure  message_template_name  只需要设置其中一个,如果同时设置,生效的优先级为 message_structure > message_template_name > message。  华为透传消息  {   \"hps\": {     \"msg\": {       \"type\": 1,       \"body\": {         \"key\": \"value\"       }     }   } }  华为系统通知栏消息  {   \"hps\": {     \"msg\": {       \"type\": 3,       \"body\": {         \"content\": \"Push message content\",         \"title\": \"Push message content\"       },       \"action\": {         \"type\": 1,         \"param\": {           \"intent\": \"#Intent;compo=com.rvr/.Activity;S.W=U;end\"         }       }     },     \"ext\": {       \"biTag\": \"Trump\",       \"icon\": \"http://upload.w.org/00/150pxsvg.png\"     }   } }  苹果平台消息格式  {   \"aps\": {     \"alert\": \"hello world\"   } }
	MessageStructure *string `json:"message_structure,omitempty"`
	// 消息模板名称,可通过[查询消息模板列表](https://support.huaweicloud.com/api-smn/smn_api_53004.html)获取名称。  说明: 三种消息发送方式:  message  message_structure  message_template_name  只需要设置其中一个,如果同时设置,生效的优先级为 message_structure > message_template_name > message。
	MessageTemplateName *string `json:"message_template_name,omitempty"`
	// tag以及替换tag的参数组成的字典。消息模板中的标签对应的值。使用消息模板方式的消息发布必须携带该参数。字典中的key为消息模板中的参数名称,不超过21个字符。字典中的value为消息模板中的参数被替换后的值,不超过1KB。
	Tags map[string]string `json:"tags,omitempty"`
	// 指消息在SMN系统内部的最长存留时间。超过该存留时间,系统将不再发送该消息。单位是s,变量默认值是3600s,即一小时。值为正整数且小于等于3600*24。
	TimeToLive string `json:"time_to_live"`
}

func (PublishMessageRequestBody) String

func (o PublishMessageRequestBody) String() string

type PublishMessageResponse

type PublishMessageResponse struct {
	// 请求的唯一标识ID。
	RequestId *string `json:"request_id,omitempty"`
	// 唯一的消息ID。
	MessageId      *string `json:"message_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (PublishMessageResponse) String

func (o PublishMessageResponse) String() string

type ResourceDetail

type ResourceDetail struct {
	// 企业项目ID
	EnterpriseProjectId string `json:"enterprise_project_id"`
	// 详情ID
	DetailId string `json:"detailId"`
	// topic唯一标识
	TopicUrn string `json:"topic_urn"`
	// 显示名
	DisplayName string `json:"display_name"`
}

func (ResourceDetail) String

func (o ResourceDetail) String() string

type ResourceTag

type ResourceTag struct {
	// 键,表示要匹配的字段。  当前key的参数值只能取“resource_name”,此时value的参数值为云服务器名称。  - key不能重复,value为匹配的值。  - 此字段为固定字典值。  - 不允许为空字符串。
	Key string `json:"key"`
	// 值。  当前key的参数值只能取“resource_name”,此时value的参数值为云服务器名称。  - 每个值最大长度255个unicode字符。  - 不可以为空。
	Value string `json:"value"`
}

资源标签结构体。

func (ResourceTag) String

func (o ResourceTag) String() string

type ResourceTags

type ResourceTags struct {
	// 键。  - 最大长度127个unicode字符。  - key不能为空。
	Key string `json:"key"`
	// 值列表。  - 最多10个value。  - value不允许重复。  - 每个值最大长度255个unicode字符。  - 如果values为空则表示any_value。  - value之间为或的关系。
	Values []string `json:"values"`
}

资源标签列表结构体。

func (ResourceTags) String

func (o ResourceTags) String() string

type Statement

type Statement struct {
	// Statement语句的ID。 Statement语句ID必须是唯一的,例如statement01、statement02。
	Sid string `json:"Sid"`
	// Statement语句的效果。“Allow”或者“Deny”。
	Effect string `json:"Effect"`
	// Statement语句作用的对象。 目前支持“CSP”和“Service”两类对象。  “CSP”对象指的是其他用户,可以作用于多个用户。  “Service”对象指的是云服务,可以作用于多个云服务。  Principal元素和NotPrincipal元素两者任选其一。选定后, “CSP”对象填写内容的格式为格式为urn:csp:iam::domainId:root,其中domainId为其他用户的“账号ID”。  “Service”对象填写内容的格式为小写的云服务名称缩写。
	Principal *string `json:"Principal,omitempty"`
	// NotPrincipal:Statement语句排除作用的对象。  目前支持“CSP”和“Service”两类对象。  “CSP”对象指的是其他用户,可以作用于多个用户。  “Service”对象指的是云服务,可以作用于多个云服务。  Principal元素和NotPrincipal元素两者任选其一。选定后, “CSP”对象填写内容的格式为格式为urn:csp:iam::domainId:root,其中domainId为其他用户的“账号ID”。  “Service”对象填写内容的格式为小写的云服务名称缩写。
	NotPrincipal *string `json:"NotPrincipal,omitempty"`
	// Statement语句作用的操作。  允许使用通配符来表示一类操作,例如:SMN:Update*、SMN:Delete*。如果只填写“*”,表示Statement语句作用的操作为该资源支持的所有操作。  Action元素和NotAction元素两者任选其一。  目前支持的操作有:  SMN:UpdateTopic SMN:DeleteTopic SMN:QueryTopicDetail SMN:ListTopicAttributes SMN:UpdateTopicAttribute SMN:DeleteTopicAttributes SMN:DeleteTopicAttributeByName SMN:ListSubscriptionsByTopic SMN:Subscribe SMN:Unsubscribe SMN:Publish
	Action *string `json:"Action,omitempty"`
	// Statement语句排除作用的操作。  允许使用通配符来表示一类操作,例如:SMN:Update*、SMN:Delete*。如果只填写“*”,表示Statement语句作用的操作为该资源支持的所有操作。  Action元素和NotAction元素两者任选其一。  目前支持的操作有:  SMN:UpdateTopic  SMN:DeleteTopic  SMN:QueryTopicDetail  SMN:ListTopicAttributes  SMN:UpdateTopicAttribute  SMN:DeleteTopicAttributes  SMN:DeleteTopicAttributeByName  SMN:ListSubscriptionsByTopic  SMN:Subscribe  SMN:Unsubscribe  SMN:Publish
	NotAction *string `json:"NotAction,omitempty"`
	// Statement语句作用的主题。  Resource和NotResource两者任选其一。选定后,填写内容为主题URN。
	Resource *string `json:"Resource,omitempty"`
	// Statement语句排除作用的主题。  Resource和NotResource两者任选其一。选定后,填写内容为主题URN。
	NotResource *string `json:"NotResource,omitempty"`
}

func (Statement) String

func (o Statement) String() string

type TagMatch

type TagMatch struct {
	// 键,表示要匹配的字段。  当前key的参数值只能取“resource_name”,此时value的参数值为云服务器名称。  - key不能重复,value为匹配的值。  - 此字段为固定字典值。  - 不允许为空字符串。
	Key string `json:"key"`
	// 值。  当前key的参数值只能取“resource_name”,此时value的参数值为云服务器名称。  - 每个值最大长度255个unicode字符。  - 不可以为空。
	Value string `json:"value"`
}

搜索字段,用于按条件搜索资源。

func (TagMatch) String

func (o TagMatch) String() string

type TagResource

type TagResource struct {
	// 资源ID。
	ResourceId     string          `json:"resource_id"`
	ResourceDetail *ResourceDetail `json:"resource_detail"`
	// 标签列表。
	Tags []ResourceTag `json:"tags"`
	// 资源名称。
	ResourceName string `json:"resource_name"`
}

资源结构体。

func (TagResource) String

func (o TagResource) String() string

type TopicAttribute

type TopicAttribute struct {
	// 访问策略规范版本。目前只支持“2016-09-07”。
	Version string `json:"Version"`
	// 策略的唯一标识。不能为空。
	Id string `json:"Id"`
	// 访问策略是通过Statement语句来定义的。一个访问策略可包含一条或多条Statement语句。通过Statement语句向其他用户或云服务授权对主题的操作。
	Statement []Statement `json:"Statement"`
}

func (TopicAttribute) String

func (o TopicAttribute) String() string

type UpdateApplicationEndpointRequest

type UpdateApplicationEndpointRequest struct {
	EndpointUrn string                                `json:"endpoint_urn"`
	Body        *UpdateApplicationEndpointRequestBody `json:"body,omitempty"`
}

Request Object

func (UpdateApplicationEndpointRequest) String

type UpdateApplicationEndpointRequestBody

type UpdateApplicationEndpointRequestBody struct {
	// 设备是否可用,值为true或false字符串。
	Enabled *string `json:"enabled,omitempty"`
	// 用户自定义数据,最大长度支持UTF-8编码后2048字节。
	UserData *string `json:"user_data,omitempty"`
}

func (UpdateApplicationEndpointRequestBody) String

type UpdateApplicationEndpointResponse

type UpdateApplicationEndpointResponse struct {
	// 请求的唯一标识ID。
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdateApplicationEndpointResponse) String

type UpdateApplicationRequest

type UpdateApplicationRequest struct {
	ApplicationUrn string                        `json:"application_urn"`
	Body           *UpdateApplicationRequestBody `json:"body,omitempty"`
}

Request Object

func (UpdateApplicationRequest) String

func (o UpdateApplicationRequest) String() string

type UpdateApplicationRequestBody

type UpdateApplicationRequestBody struct {
	// 对于HMS平台是APP ID,只能包含英文字母和数字,最大20个字符。  对于苹果APNS、APNS_SandBox平台是推送证书,大小不超过8K,且是Base64编码。
	PlatformPrincipal string `json:"platform_principal"`
	// 对于HMS平台是APP SECRET, 只能包含英文字母和数字,32到64个字符。  对于苹果APNS、APNS_SandBox平台是推送证书的私钥(private key), 大小不超过8K,且是Base64编码。
	PlatformCredential string `json:"platform_credential"`
}

func (UpdateApplicationRequestBody) String

type UpdateApplicationResponse

type UpdateApplicationResponse struct {
	// 请求的唯一标识ID。
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdateApplicationResponse) String

func (o UpdateApplicationResponse) String() string

type UpdateMessageTemplateRequest

type UpdateMessageTemplateRequest struct {
	MessageTemplateId string                            `json:"message_template_id"`
	Body              *UpdateMessageTemplateRequestBody `json:"body,omitempty"`
}

Request Object

func (UpdateMessageTemplateRequest) String

type UpdateMessageTemplateRequestBody

type UpdateMessageTemplateRequestBody struct {
	// 模板内容。
	Content string `json:"content"`
}

func (UpdateMessageTemplateRequestBody) String

type UpdateMessageTemplateResponse

type UpdateMessageTemplateResponse struct {
	// 请求的唯一标识ID。
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdateMessageTemplateResponse) String

type UpdateTopicAttributeRequest

type UpdateTopicAttributeRequest struct {
	TopicUrn string                           `json:"topic_urn"`
	Name     string                           `json:"name"`
	Body     *UpdateTopicAttributeRequestBody `json:"body,omitempty"`
}

Request Object

func (UpdateTopicAttributeRequest) String

type UpdateTopicAttributeRequestBody

type UpdateTopicAttributeRequestBody struct {
	// 1. 当请求参数name为access_policy时,value为Topic属性值,最大支持30KB。  2. 当请求参数name为introduction时,value为topic简介,最大长度120B。
	Value string `json:"value"`
}

func (UpdateTopicAttributeRequestBody) String

type UpdateTopicAttributeResponse

type UpdateTopicAttributeResponse struct {
	// 请求的唯一标识ID。
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdateTopicAttributeResponse) String

type UpdateTopicRequest

type UpdateTopicRequest struct {
	TopicUrn string                  `json:"topic_urn"`
	Body     *UpdateTopicRequestBody `json:"body,omitempty"`
}

Request Object

func (UpdateTopicRequest) String

func (o UpdateTopicRequest) String() string

type UpdateTopicRequestBody

type UpdateTopicRequestBody struct {
	// Topic的显示名,推送邮件消息时,作为邮件发件人显示。显示名的长度为192byte或64个中文。
	DisplayName string `json:"display_name"`
}

func (UpdateTopicRequestBody) String

func (o UpdateTopicRequestBody) String() string

type UpdateTopicResponse

type UpdateTopicResponse struct {
	// 请求的唯一标识ID。
	RequestId      *string `json:"request_id,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdateTopicResponse) String

func (o UpdateTopicResponse) String() string

type VersionItem

type VersionItem struct {
	// 版本ID(版本号),如v2。
	Id string `json:"id"`
	// 若该版本API支持微版本,则返回支持的最小微版本号;若不支持微版本,则返回空。
	MinVersion string `json:"min_version"`
	// 版本状态,为如下3种:  CURRENT:表示该版本为主推版本。  SUPPORTED:表示为老版本,但是现在还继续支持。  DEPRECATED:表示为废弃版本,存在后续删除的可能。
	Status string `json:"status"`
	// 版本发布时间,要求用UTC时间格式表示。如v2发布的时间2014-06-28T12:20:21Z。
	Updated string `json:"updated"`
	// 若该版本API支持微版本,则返回支持的最大微版本号;若不支持微版本,则返回空。
	Version string `json:"version"`
	// API的URL地址。
	Links []LinksItem `json:"links"`
}

func (VersionItem) String

func (o VersionItem) String() string

Source Files

Jump to

Keyboard shortcuts

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