model

package
v0.0.104 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CatalogTargetInfo

type CatalogTargetInfo struct {

	// 事件目标分类ID
	Id *string `json:"id,omitempty"`

	// 事件目标分类名称
	Name *string `json:"name,omitempty"`

	// 事件目标分类名称展示说明
	Label *string `json:"label,omitempty"`

	// 事件目标分类描述
	Description *string `json:"description,omitempty"`

	// 提供方类型,OFFICIAL:官方云服务事件目标;CUSTOM:第三方事件目标
	ProviderType *CatalogTargetInfoProviderType `json:"provider_type,omitempty"`

	// 事件目标参数
	Parameters *[]CatalogTargetParameters `json:"parameters,omitempty"`

	// 创建UTC时间
	CreatedTime *string `json:"created_time,omitempty"`

	// 更新UTC时间
	UpdatedTime *string `json:"updated_time,omitempty"`
}

func (CatalogTargetInfo) String

func (o CatalogTargetInfo) String() string

type CatalogTargetInfoProviderType

type CatalogTargetInfoProviderType struct {
	// contains filtered or unexported fields
}

func (CatalogTargetInfoProviderType) MarshalJSON

func (c CatalogTargetInfoProviderType) MarshalJSON() ([]byte, error)

func (*CatalogTargetInfoProviderType) UnmarshalJSON

func (c *CatalogTargetInfoProviderType) UnmarshalJSON(b []byte) error

func (CatalogTargetInfoProviderType) Value

type CatalogTargetInfoProviderTypeEnum

type CatalogTargetInfoProviderTypeEnum struct {
	OFFICIAL CatalogTargetInfoProviderType
	CUSTOM   CatalogTargetInfoProviderType
}

func GetCatalogTargetInfoProviderTypeEnum

func GetCatalogTargetInfoProviderTypeEnum() CatalogTargetInfoProviderTypeEnum

type CatalogTargetParameters

type CatalogTargetParameters struct {

	// 目标参数名称
	Name *string `json:"name,omitempty"`

	// 目标参数名称展示说明
	Label *string `json:"label,omitempty"`

	// 参数展示元数据,比如是否必选,输入框类型等等
	Metadata *interface{} `json:"metadata,omitempty"`
}

func (CatalogTargetParameters) String

func (o CatalogTargetParameters) String() string

type ChannelCreateReq

type ChannelCreateReq struct {

	// 通道名称,租户下唯一,由字母,数字,点,下划线和中划线组成,必须字母或数字开头,不能是default
	Name *string `json:"name,omitempty"`

	// 通道描述
	Description *string `json:"description,omitempty"`
}

func (ChannelCreateReq) String

func (o ChannelCreateReq) String() string

type ChannelInfo

type ChannelInfo struct {

	// 通道ID
	Id *string `json:"id,omitempty"`

	// 通道名称
	Name *string `json:"name,omitempty"`

	// 通道描述
	Description *string `json:"description,omitempty"`

	// 通道提供方类型,OFFICIAL:官方事件通道;CUSTOM:自定义事件通道
	ProviderType *ChannelInfoProviderType `json:"provider_type,omitempty"`

	// 创建UTC时间
	CreatedTime *string `json:"created_time,omitempty"`

	// 更新UTC时间
	UpdatedTime *string `json:"updated_time,omitempty"`
}

func (ChannelInfo) String

func (o ChannelInfo) String() string

type ChannelInfoProviderType

type ChannelInfoProviderType struct {
	// contains filtered or unexported fields
}

func (ChannelInfoProviderType) MarshalJSON

func (c ChannelInfoProviderType) MarshalJSON() ([]byte, error)

func (*ChannelInfoProviderType) UnmarshalJSON

func (c *ChannelInfoProviderType) UnmarshalJSON(b []byte) error

func (ChannelInfoProviderType) Value

func (c ChannelInfoProviderType) Value() string

type ChannelInfoProviderTypeEnum

type ChannelInfoProviderTypeEnum struct {
	OFFICIAL ChannelInfoProviderType
	CUSTOM   ChannelInfoProviderType
}

func GetChannelInfoProviderTypeEnum

func GetChannelInfoProviderTypeEnum() ChannelInfoProviderTypeEnum

type ChannelUpdateReq

type ChannelUpdateReq struct {

	// 通道描述
	Description *string `json:"description,omitempty"`
}

func (ChannelUpdateReq) String

func (o ChannelUpdateReq) String() string

type CloudEvents

type CloudEvents struct {

	// 事件唯一标识串,同一个事件来源里必须唯一
	Id string `json:"id"`

	// 事件来源上下文标识串,source+id可以唯一确定一个事件。采用URI-Reference格式,参考https://tools.ietf.org/html/rfc3986#section-4.1
	Source string `json:"source"`

	// CloudEvents协议版本,格式为major.minor
	Specversion string `json:"specversion"`

	// 事件类型
	Type string `json:"type"`

	// 事件内容格式,采用MIME格式,遵循RFC2046,参考https://tools.ietf.org/html/rfc2046
	Datacontenttype *string `json:"datacontenttype,omitempty"`

	// 件内容模型定义的URI,遵循RFC3986,参考https://tools.ietf.org/html/rfc3986#section-4.3
	Dataschema *string `json:"dataschema,omitempty"`

	// 事件的负载内容,采用datacontenttype字段指定的格式,内容字段遵循dataschema字段的描述
	Data *interface{} `json:"data,omitempty"`

	// 事件发生UTC日期时间,相同来源的事件格式相同,遵循RFC3339,格式需满足2018-04-05T17:31:00Z,参考https://tools.ietf.org/html/rfc3339
	Time *string `json:"time,omitempty"`

	// 事件发生的主题或对象,用以标识哪个具体对象发生了当前事件
	Subject *string `json:"subject,omitempty"`
}

CloudEvent事件格式定义,参考[CloudEvents 1.0](https://github.com/cloudevents/spec/blob/v1.0.1/spec.md)

func (CloudEvents) String

func (o CloudEvents) String() string

type CreateChannelRequest

type CreateChannelRequest struct {
	Body *ChannelCreateReq `json:"body,omitempty"`
}

Request Object

func (CreateChannelRequest) String

func (o CreateChannelRequest) String() string

type CreateChannelResponse

type CreateChannelResponse struct {

	// 通道ID
	Id *string `json:"id,omitempty"`

	// 通道名称
	Name *string `json:"name,omitempty"`

	// 通道描述
	Description *string `json:"description,omitempty"`

	// 通道提供方类型,OFFICIAL:官方事件通道;CUSTOM:自定义事件通道
	ProviderType *CreateChannelResponseProviderType `json:"provider_type,omitempty"`

	// 创建UTC时间
	CreatedTime *string `json:"created_time,omitempty"`

	// 更新UTC时间
	UpdatedTime    *string `json:"updated_time,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateChannelResponse) String

func (o CreateChannelResponse) String() string

type CreateChannelResponseProviderType

type CreateChannelResponseProviderType struct {
	// contains filtered or unexported fields
}

func (CreateChannelResponseProviderType) MarshalJSON

func (c CreateChannelResponseProviderType) MarshalJSON() ([]byte, error)

func (*CreateChannelResponseProviderType) UnmarshalJSON

func (c *CreateChannelResponseProviderType) UnmarshalJSON(b []byte) error

func (CreateChannelResponseProviderType) Value

type CreateChannelResponseProviderTypeEnum

type CreateChannelResponseProviderTypeEnum struct {
	OFFICIAL CreateChannelResponseProviderType
	CUSTOM   CreateChannelResponseProviderType
}

func GetCreateChannelResponseProviderTypeEnum

func GetCreateChannelResponseProviderTypeEnum() CreateChannelResponseProviderTypeEnum

type CreateEventSourceRequest

type CreateEventSourceRequest struct {
	Body *CustomizeSourceCreateReq `json:"body,omitempty"`
}

Request Object

func (CreateEventSourceRequest) String

func (o CreateEventSourceRequest) String() string

type CreateEventSourceResponse

type CreateEventSourceResponse struct {

	// 事件源ID
	Id *string `json:"id,omitempty"`

	// 事件源名称
	Name *string `json:"name,omitempty"`

	// 事件源名称展示
	Label *string `json:"label,omitempty"`

	// 事件源描述
	Description *string `json:"description,omitempty"`

	// 事件源提供方类型,OFFICIAL:官方云服务事件源;CUSTOM:用户创建的自定义事件源
	ProviderType *CreateEventSourceResponseProviderType `json:"provider_type,omitempty"`

	// 创建UTC时间
	CreatedTime *string `json:"created_time,omitempty"`

	// 更新UTC时间
	UpdatedTime *string `json:"updated_time,omitempty"`

	// 事件源归属的事件通道ID
	ChannelId *string `json:"channel_id,omitempty"`

	// 事件源归属的事件通道名称
	ChannelName    *string `json:"channel_name,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateEventSourceResponse) String

func (o CreateEventSourceResponse) String() string

type CreateEventSourceResponseProviderType

type CreateEventSourceResponseProviderType struct {
	// contains filtered or unexported fields
}

func (CreateEventSourceResponseProviderType) MarshalJSON

func (c CreateEventSourceResponseProviderType) MarshalJSON() ([]byte, error)

func (*CreateEventSourceResponseProviderType) UnmarshalJSON

func (c *CreateEventSourceResponseProviderType) UnmarshalJSON(b []byte) error

func (CreateEventSourceResponseProviderType) Value

type CreateEventSourceResponseProviderTypeEnum

type CreateEventSourceResponseProviderTypeEnum struct {
	OFFICIAL CreateEventSourceResponseProviderType
	CUSTOM   CreateEventSourceResponseProviderType
}

func GetCreateEventSourceResponseProviderTypeEnum

func GetCreateEventSourceResponseProviderTypeEnum() CreateEventSourceResponseProviderTypeEnum

type CreateSubscriptionRequest

type CreateSubscriptionRequest struct {
	Body *SubscriptionCreateReq `json:"body,omitempty"`
}

Request Object

func (CreateSubscriptionRequest) String

func (o CreateSubscriptionRequest) String() string

type CreateSubscriptionResponse

type CreateSubscriptionResponse struct {

	// 事件订阅ID
	Id *string `json:"id,omitempty"`

	// 事件订阅名称
	Name *string `json:"name,omitempty"`

	// 事件订阅描述
	Description *string `json:"description,omitempty"`

	// 事件订阅类型
	Type *CreateSubscriptionResponseType `json:"type,omitempty"`

	// 事件订阅状态
	Status *CreateSubscriptionResponseStatus `json:"status,omitempty"`

	// 通道ID
	ChannelId *string `json:"channel_id,omitempty"`

	// 通道名称
	ChannelName *string `json:"channel_name,omitempty"`

	// 订阅源列表
	Sources *[]SubscriptionSourceInfo `json:"sources,omitempty"`

	// 订阅目标列表
	Targets *[]SubscriptionTargetInfo `json:"targets,omitempty"`

	// 创建时间
	CreatedTime *string `json:"created_time,omitempty"`

	// 更新时间
	UpdatedTime    *string `json:"updated_time,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateSubscriptionResponse) String

type CreateSubscriptionResponseStatus

type CreateSubscriptionResponseStatus struct {
	// contains filtered or unexported fields
}

func (CreateSubscriptionResponseStatus) MarshalJSON

func (c CreateSubscriptionResponseStatus) MarshalJSON() ([]byte, error)

func (*CreateSubscriptionResponseStatus) UnmarshalJSON

func (c *CreateSubscriptionResponseStatus) UnmarshalJSON(b []byte) error

func (CreateSubscriptionResponseStatus) Value

type CreateSubscriptionResponseType

type CreateSubscriptionResponseType struct {
	// contains filtered or unexported fields
}

func (CreateSubscriptionResponseType) MarshalJSON

func (c CreateSubscriptionResponseType) MarshalJSON() ([]byte, error)

func (*CreateSubscriptionResponseType) UnmarshalJSON

func (c *CreateSubscriptionResponseType) UnmarshalJSON(b []byte) error

func (CreateSubscriptionResponseType) Value

type CreateSubscriptionResponseTypeEnum

type CreateSubscriptionResponseTypeEnum struct {
	EVENT     CreateSubscriptionResponseType
	SCHEDULED CreateSubscriptionResponseType
}

func GetCreateSubscriptionResponseTypeEnum

func GetCreateSubscriptionResponseTypeEnum() CreateSubscriptionResponseTypeEnum

type CreateSubscriptionTargetRequest

type CreateSubscriptionTargetRequest struct {

	// 事件订阅ID
	SubscriptionId string `json:"subscription_id"`

	Body *SubscriptionTarget `json:"body,omitempty"`
}

Request Object

func (CreateSubscriptionTargetRequest) String

type CreateSubscriptionTargetResponse

type CreateSubscriptionTargetResponse struct {

	// 订阅目标ID
	Id *string `json:"id,omitempty"`

	// 订阅的事件目标名称
	Name *string `json:"name,omitempty"`

	// 订阅的事件目标的提供方类型
	ProviderType *string `json:"provider_type,omitempty"`

	// 订阅的事件目标参数列表
	Detail *interface{} `json:"detail,omitempty"`

	Transform *SubscriptionTargetInfoTransform `json:"transform,omitempty"`

	// 创建时间
	CreatedTime *string `json:"created_time,omitempty"`

	// 更新时间
	UpdatedTime    *string `json:"updated_time,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (CreateSubscriptionTargetResponse) String

type CustomizeSourceCreateReq

type CustomizeSourceCreateReq struct {

	// 自定义事件源名称,租户下唯一,由小写字母、数字、点、下划线和中划线组成,必须以字母或数字开头,且不能以hc.开头
	Name string `json:"name"`

	// 事件源描述
	Description *string `json:"description,omitempty"`

	// 指定事件源归属的事件通道ID
	ChannelId string `json:"channel_id"`
}

func (CustomizeSourceCreateReq) String

func (o CustomizeSourceCreateReq) String() string

type CustomizeSourceUpdateReq

type CustomizeSourceUpdateReq struct {

	// 事件源描述
	Description *string `json:"description,omitempty"`
}

func (CustomizeSourceUpdateReq) String

func (o CustomizeSourceUpdateReq) String() string

type DeleteChannelRequest

type DeleteChannelRequest struct {

	// 指定查询的事件通道ID
	ChannelId string `json:"channel_id"`
}

Request Object

func (DeleteChannelRequest) String

func (o DeleteChannelRequest) String() string

type DeleteChannelResponse

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

Response Object

func (DeleteChannelResponse) String

func (o DeleteChannelResponse) String() string

type DeleteEventSourceRequest

type DeleteEventSourceRequest struct {

	// 指定查询的事件源ID
	SourceId string `json:"source_id"`
}

Request Object

func (DeleteEventSourceRequest) String

func (o DeleteEventSourceRequest) String() string

type DeleteEventSourceResponse

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

Response Object

func (DeleteEventSourceResponse) String

func (o DeleteEventSourceResponse) String() string

type DeleteSubscriptionRequest

type DeleteSubscriptionRequest struct {

	// 事件订阅ID
	SubscriptionId string `json:"subscription_id"`
}

Request Object

func (DeleteSubscriptionRequest) String

func (o DeleteSubscriptionRequest) String() string

type DeleteSubscriptionResponse

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

Response Object

func (DeleteSubscriptionResponse) String

type DeleteSubscriptionTargetRequest

type DeleteSubscriptionTargetRequest struct {

	// 事件订阅ID
	SubscriptionId string `json:"subscription_id"`

	// 事件订阅目标ID
	TargetId string `json:"target_id"`
}

Request Object

func (DeleteSubscriptionTargetRequest) String

type DeleteSubscriptionTargetResponse

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

Response Object

func (DeleteSubscriptionTargetResponse) String

type ListChannelsRequest

type ListChannelsRequest struct {

	// 偏移量,表示从此偏移量开始查询,偏移量不能小于0
	Offset *int32 `json:"offset,omitempty"`

	// 每页显示的条目数量,不能小于0。
	Limit *int32 `json:"limit,omitempty"`

	// 指定查询排序
	Sort *string `json:"sort,omitempty"`

	// 指定查询提供方的类型
	ProviderType *ListChannelsRequestProviderType `json:"provider_type,omitempty"`

	// 指定查询的事件通道名称,精准匹配
	Name *string `json:"name,omitempty"`

	// 指定查询的事件通道名称,模糊匹配
	FuzzyName *string `json:"fuzzy_name,omitempty"`
}

Request Object

func (ListChannelsRequest) String

func (o ListChannelsRequest) String() string

type ListChannelsRequestProviderType

type ListChannelsRequestProviderType struct {
	// contains filtered or unexported fields
}

func (ListChannelsRequestProviderType) MarshalJSON

func (c ListChannelsRequestProviderType) MarshalJSON() ([]byte, error)

func (*ListChannelsRequestProviderType) UnmarshalJSON

func (c *ListChannelsRequestProviderType) UnmarshalJSON(b []byte) error

func (ListChannelsRequestProviderType) Value

type ListChannelsRequestProviderTypeEnum

type ListChannelsRequestProviderTypeEnum struct {
	OFFICIAL ListChannelsRequestProviderType
	CUSTOM   ListChannelsRequestProviderType
}

func GetListChannelsRequestProviderTypeEnum

func GetListChannelsRequestProviderTypeEnum() ListChannelsRequestProviderTypeEnum

type ListChannelsResponse

type ListChannelsResponse struct {

	// 总数
	Total *int32 `json:"total,omitempty"`

	// 本页数量
	Size *int32 `json:"size,omitempty"`

	// 对象列表
	Items          *[]ChannelInfo `json:"items,omitempty"`
	HttpStatusCode int            `json:"-"`
}

Response Object

func (ListChannelsResponse) String

func (o ListChannelsResponse) String() string

type ListEventSourcesRequest

type ListEventSourcesRequest struct {

	// 事件通道ID
	ChannelId *string `json:"channel_id,omitempty"`

	// 偏移量,表示从此偏移量开始查询,偏移量不能小于0
	Offset *int32 `json:"offset,omitempty"`

	// 每页显示的条目数量,不能小于0。
	Limit *int32 `json:"limit,omitempty"`

	// 指定查询排序
	Sort *string `json:"sort,omitempty"`

	// 指定查询提供方的类型
	ProviderType *ListEventSourcesRequestProviderType `json:"provider_type,omitempty"`

	// 指定查询的事件源名称,精准匹配
	Name *string `json:"name,omitempty"`

	// 指定查询的事件源名称,模糊匹配
	FuzzyName *string `json:"fuzzy_name,omitempty"`

	// 指定查询的事件源标签,模糊匹配
	FuzzyLabel *string `json:"fuzzy_label,omitempty"`
}

Request Object

func (ListEventSourcesRequest) String

func (o ListEventSourcesRequest) String() string

type ListEventSourcesRequestProviderType

type ListEventSourcesRequestProviderType struct {
	// contains filtered or unexported fields
}

func (ListEventSourcesRequestProviderType) MarshalJSON

func (c ListEventSourcesRequestProviderType) MarshalJSON() ([]byte, error)

func (*ListEventSourcesRequestProviderType) UnmarshalJSON

func (c *ListEventSourcesRequestProviderType) UnmarshalJSON(b []byte) error

func (ListEventSourcesRequestProviderType) Value

type ListEventSourcesRequestProviderTypeEnum

type ListEventSourcesRequestProviderTypeEnum struct {
	OFFICIAL ListEventSourcesRequestProviderType
	CUSTOM   ListEventSourcesRequestProviderType
}

func GetListEventSourcesRequestProviderTypeEnum

func GetListEventSourcesRequestProviderTypeEnum() ListEventSourcesRequestProviderTypeEnum

type ListEventSourcesResponse

type ListEventSourcesResponse struct {

	// 总数
	Total *int32 `json:"total,omitempty"`

	// 本页数量
	Size *int32 `json:"size,omitempty"`

	// 对象列表
	Items          *[]SourceInfo `json:"items,omitempty"`
	HttpStatusCode int           `json:"-"`
}

Response Object

func (ListEventSourcesResponse) String

func (o ListEventSourcesResponse) String() string

type ListEventTargetRequest

type ListEventTargetRequest struct {

	// 偏移量,表示从此偏移量开始查询,偏移量不能小于0
	Offset *int32 `json:"offset,omitempty"`

	// 每页显示的条目数量,不能小于0。
	Limit *int32 `json:"limit,omitempty"`

	// 指定查询排序
	Sort *string `json:"sort,omitempty"`

	// 指定查询的事件目标标签,模糊匹配
	FuzzyLabel *string `json:"fuzzy_label,omitempty"`
}

Request Object

func (ListEventTargetRequest) String

func (o ListEventTargetRequest) String() string

type ListEventTargetResponse

type ListEventTargetResponse struct {

	// 总数
	Total *int32 `json:"total,omitempty"`

	// 本页数量
	Size *int32 `json:"size,omitempty"`

	// 对象列表
	Items          *[]CatalogTargetInfo `json:"items,omitempty"`
	HttpStatusCode int                  `json:"-"`
}

Response Object

func (ListEventTargetResponse) String

func (o ListEventTargetResponse) String() string

type ListQuotasRequest

type ListQuotasRequest struct {

	// 指定查询资源类型的配额
	Type *ListQuotasRequestType `json:"type,omitempty"`
}

Request Object

func (ListQuotasRequest) String

func (o ListQuotasRequest) String() string

type ListQuotasRequestType

type ListQuotasRequestType struct {
	// contains filtered or unexported fields
}

func (ListQuotasRequestType) MarshalJSON

func (c ListQuotasRequestType) MarshalJSON() ([]byte, error)

func (*ListQuotasRequestType) UnmarshalJSON

func (c *ListQuotasRequestType) UnmarshalJSON(b []byte) error

func (ListQuotasRequestType) Value

func (c ListQuotasRequestType) Value() string

type ListQuotasRequestTypeEnum

type ListQuotasRequestTypeEnum struct {
	CHANNEL              ListQuotasRequestType
	CHANNEL_SUBSCRIPTION ListQuotasRequestType
	SOURCE               ListQuotasRequestType
	SUBSCRIPTION         ListQuotasRequestType
	SUBSCRIPTION_TARGET  ListQuotasRequestType
	SCHEMA               ListQuotasRequestType
	SCHEMA_VERSION       ListQuotasRequestType
}

func GetListQuotasRequestTypeEnum

func GetListQuotasRequestTypeEnum() ListQuotasRequestTypeEnum

type ListQuotasResponse

type ListQuotasResponse struct {

	// 配额
	Quotas         *[]QuotaResourceResp `json:"quotas,omitempty"`
	HttpStatusCode int                  `json:"-"`
}

Response Object

func (ListQuotasResponse) String

func (o ListQuotasResponse) String() string

type ListSubscriptionsRequest

type ListSubscriptionsRequest struct {

	// 事件通道ID
	ChannelId *string `json:"channel_id,omitempty"`

	// 偏移量,表示从此偏移量开始查询,偏移量不能小于0
	Offset *int32 `json:"offset,omitempty"`

	// 每页显示的条目数量,不能小于0。
	Limit *int32 `json:"limit,omitempty"`

	// 指定查询排序
	Sort *string `json:"sort,omitempty"`

	// 指定查询的事件订阅名称,精准匹配
	Name *string `json:"name,omitempty"`

	// 指定查询的事件订阅名称,模糊匹配
	FuzzyName *string `json:"fuzzy_name,omitempty"`
}

Request Object

func (ListSubscriptionsRequest) String

func (o ListSubscriptionsRequest) String() string

type ListSubscriptionsResponse

type ListSubscriptionsResponse struct {

	// 事件订阅总数
	Total *int32 `json:"total,omitempty"`

	// 本页数量
	Size *int32 `json:"size,omitempty"`

	// 对象列表
	Items          *[]SubscriptionInfo `json:"items,omitempty"`
	HttpStatusCode int                 `json:"-"`
}

Response Object

func (ListSubscriptionsResponse) String

func (o ListSubscriptionsResponse) String() string

type OperateSubscriptionRequest

type OperateSubscriptionRequest struct {
	Body *SubscriptionOperateReq `json:"body,omitempty"`
}

Request Object

func (OperateSubscriptionRequest) String

type OperateSubscriptionResponse

type OperateSubscriptionResponse struct {

	// 操作失败的订阅个数
	FailedCount *int32 `json:"failed_count,omitempty"`

	// 失败信息
	Events         *[]SubscriptionOperateRespEvents `json:"events,omitempty"`
	HttpStatusCode int                              `json:"-"`
}

Response Object

func (OperateSubscriptionResponse) String

type PutEventsReq

type PutEventsReq struct {
	Events *[]CloudEvents `json:"events,omitempty"`
}

func (PutEventsReq) String

func (o PutEventsReq) String() string

type PutEventsRequest

type PutEventsRequest struct {

	// 指定查询的事件通道ID
	ChannelId string `json:"channel_id"`

	Body *PutEventsReq `json:"body,omitempty"`
}

Request Object

func (PutEventsRequest) String

func (o PutEventsRequest) String() string

type PutEventsRespEvents

type PutEventsRespEvents struct {

	// 发布失败的错误码
	ErrorCode *string `json:"error_code,omitempty"`

	// 发布失败的原因
	ErrorMsg *string `json:"error_msg,omitempty"`

	// 事件唯一标识串
	EventId *string `json:"event_id,omitempty"`
}

func (PutEventsRespEvents) String

func (o PutEventsRespEvents) String() string

type PutEventsResponse

type PutEventsResponse struct {

	// 发布失败的事件个数
	FailedCount *int32 `json:"failed_count,omitempty"`

	// 事件信息
	Events         *[]PutEventsRespEvents `json:"events,omitempty"`
	HttpStatusCode int                    `json:"-"`
}

Response Object

func (PutEventsResponse) String

func (o PutEventsResponse) String() string

type QuotaItemInfo

type QuotaItemInfo struct {

	// 名称
	Name *string `json:"name,omitempty"`

	// 配额类型
	Type *QuotaItemInfoType `json:"type,omitempty"`

	// 配额最大值
	Max *string `json:"max,omitempty"`

	// 配额最小值
	Min *string `json:"min,omitempty"`

	// 当前租户的配额
	Quota *string `json:"quota,omitempty"`

	// 当前租户已使用的配额
	Used *string `json:"used,omitempty"`
}

func (QuotaItemInfo) String

func (o QuotaItemInfo) String() string

type QuotaItemInfoType

type QuotaItemInfoType struct {
	// contains filtered or unexported fields
}

func (QuotaItemInfoType) MarshalJSON

func (c QuotaItemInfoType) MarshalJSON() ([]byte, error)

func (*QuotaItemInfoType) UnmarshalJSON

func (c *QuotaItemInfoType) UnmarshalJSON(b []byte) error

func (QuotaItemInfoType) Value

func (c QuotaItemInfoType) Value() string

type QuotaItemInfoTypeEnum

type QuotaItemInfoTypeEnum struct {
	CHANNEL              QuotaItemInfoType
	CHANNEL_SUBSCRIPTION QuotaItemInfoType
	SOURCE               QuotaItemInfoType
	SUBSCRIPTION         QuotaItemInfoType
	SUBSCRIPTION_TARGET  QuotaItemInfoType
	SCHEMA               QuotaItemInfoType
	SCHEMA_VERSION       QuotaItemInfoType
}

func GetQuotaItemInfoTypeEnum

func GetQuotaItemInfoTypeEnum() QuotaItemInfoTypeEnum

type QuotaResourceResp

type QuotaResourceResp struct {

	// 错误描述
	Resources *[]QuotaItemInfo `json:"resources,omitempty"`
}

func (QuotaResourceResp) String

func (o QuotaResourceResp) String() string

type ShowDetailOfChannelRequest

type ShowDetailOfChannelRequest struct {

	// 指定查询的事件通道ID
	ChannelId string `json:"channel_id"`
}

Request Object

func (ShowDetailOfChannelRequest) String

type ShowDetailOfChannelResponse

type ShowDetailOfChannelResponse struct {

	// 通道ID
	Id *string `json:"id,omitempty"`

	// 通道名称
	Name *string `json:"name,omitempty"`

	// 通道描述
	Description *string `json:"description,omitempty"`

	// 通道提供方类型,OFFICIAL:官方事件通道;CUSTOM:自定义事件通道
	ProviderType *ShowDetailOfChannelResponseProviderType `json:"provider_type,omitempty"`

	// 创建UTC时间
	CreatedTime *string `json:"created_time,omitempty"`

	// 更新UTC时间
	UpdatedTime    *string `json:"updated_time,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowDetailOfChannelResponse) String

type ShowDetailOfChannelResponseProviderType

type ShowDetailOfChannelResponseProviderType struct {
	// contains filtered or unexported fields
}

func (ShowDetailOfChannelResponseProviderType) MarshalJSON

func (c ShowDetailOfChannelResponseProviderType) MarshalJSON() ([]byte, error)

func (*ShowDetailOfChannelResponseProviderType) UnmarshalJSON

func (c *ShowDetailOfChannelResponseProviderType) UnmarshalJSON(b []byte) error

func (ShowDetailOfChannelResponseProviderType) Value

type ShowDetailOfChannelResponseProviderTypeEnum

type ShowDetailOfChannelResponseProviderTypeEnum struct {
	OFFICIAL ShowDetailOfChannelResponseProviderType
	CUSTOM   ShowDetailOfChannelResponseProviderType
}

func GetShowDetailOfChannelResponseProviderTypeEnum

func GetShowDetailOfChannelResponseProviderTypeEnum() ShowDetailOfChannelResponseProviderTypeEnum

type ShowDetailOfEventSourceRequest

type ShowDetailOfEventSourceRequest struct {

	// 指定查询的事件源ID
	SourceId string `json:"source_id"`
}

Request Object

func (ShowDetailOfEventSourceRequest) String

type ShowDetailOfEventSourceResponse

type ShowDetailOfEventSourceResponse struct {

	// 事件源ID
	Id *string `json:"id,omitempty"`

	// 事件源名称
	Name *string `json:"name,omitempty"`

	// 事件源名称展示
	Label *string `json:"label,omitempty"`

	// 事件源描述
	Description *string `json:"description,omitempty"`

	// 事件源提供方类型,OFFICIAL:官方云服务事件源;CUSTOM:用户创建的自定义事件源
	ProviderType *ShowDetailOfEventSourceResponseProviderType `json:"provider_type,omitempty"`

	// 创建UTC时间
	CreatedTime *string `json:"created_time,omitempty"`

	// 更新UTC时间
	UpdatedTime *string `json:"updated_time,omitempty"`

	// 事件源归属的事件通道ID
	ChannelId *string `json:"channel_id,omitempty"`

	// 事件源归属的事件通道名称
	ChannelName    *string `json:"channel_name,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowDetailOfEventSourceResponse) String

type ShowDetailOfEventSourceResponseProviderType

type ShowDetailOfEventSourceResponseProviderType struct {
	// contains filtered or unexported fields
}

func (ShowDetailOfEventSourceResponseProviderType) MarshalJSON

func (*ShowDetailOfEventSourceResponseProviderType) UnmarshalJSON

func (ShowDetailOfEventSourceResponseProviderType) Value

type ShowDetailOfEventSourceResponseProviderTypeEnum

type ShowDetailOfEventSourceResponseProviderTypeEnum struct {
	OFFICIAL ShowDetailOfEventSourceResponseProviderType
	CUSTOM   ShowDetailOfEventSourceResponseProviderType
}

func GetShowDetailOfEventSourceResponseProviderTypeEnum

func GetShowDetailOfEventSourceResponseProviderTypeEnum() ShowDetailOfEventSourceResponseProviderTypeEnum

type ShowDetailOfSubscriptionRequest

type ShowDetailOfSubscriptionRequest struct {

	// 事件订阅ID
	SubscriptionId string `json:"subscription_id"`
}

Request Object

func (ShowDetailOfSubscriptionRequest) String

type ShowDetailOfSubscriptionResponse

type ShowDetailOfSubscriptionResponse struct {

	// 事件订阅ID
	Id *string `json:"id,omitempty"`

	// 事件订阅名称
	Name *string `json:"name,omitempty"`

	// 事件订阅描述
	Description *string `json:"description,omitempty"`

	// 事件订阅类型
	Type *ShowDetailOfSubscriptionResponseType `json:"type,omitempty"`

	// 事件订阅状态
	Status *ShowDetailOfSubscriptionResponseStatus `json:"status,omitempty"`

	// 通道ID
	ChannelId *string `json:"channel_id,omitempty"`

	// 通道名称
	ChannelName *string `json:"channel_name,omitempty"`

	// 订阅源列表
	Sources *[]SubscriptionSourceInfo `json:"sources,omitempty"`

	// 订阅目标列表
	Targets *[]SubscriptionTargetInfo `json:"targets,omitempty"`

	// 创建时间
	CreatedTime *string `json:"created_time,omitempty"`

	// 更新时间
	UpdatedTime    *string `json:"updated_time,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowDetailOfSubscriptionResponse) String

type ShowDetailOfSubscriptionResponseStatus

type ShowDetailOfSubscriptionResponseStatus struct {
	// contains filtered or unexported fields
}

func (ShowDetailOfSubscriptionResponseStatus) MarshalJSON

func (c ShowDetailOfSubscriptionResponseStatus) MarshalJSON() ([]byte, error)

func (*ShowDetailOfSubscriptionResponseStatus) UnmarshalJSON

func (c *ShowDetailOfSubscriptionResponseStatus) UnmarshalJSON(b []byte) error

func (ShowDetailOfSubscriptionResponseStatus) Value

type ShowDetailOfSubscriptionResponseType

type ShowDetailOfSubscriptionResponseType struct {
	// contains filtered or unexported fields
}

func (ShowDetailOfSubscriptionResponseType) MarshalJSON

func (c ShowDetailOfSubscriptionResponseType) MarshalJSON() ([]byte, error)

func (*ShowDetailOfSubscriptionResponseType) UnmarshalJSON

func (c *ShowDetailOfSubscriptionResponseType) UnmarshalJSON(b []byte) error

func (ShowDetailOfSubscriptionResponseType) Value

type ShowDetailOfSubscriptionResponseTypeEnum

type ShowDetailOfSubscriptionResponseTypeEnum struct {
	EVENT     ShowDetailOfSubscriptionResponseType
	SCHEDULED ShowDetailOfSubscriptionResponseType
}

func GetShowDetailOfSubscriptionResponseTypeEnum

func GetShowDetailOfSubscriptionResponseTypeEnum() ShowDetailOfSubscriptionResponseTypeEnum

type ShowDetailOfSubscriptionTargetRequest

type ShowDetailOfSubscriptionTargetRequest struct {

	// 事件订阅ID
	SubscriptionId string `json:"subscription_id"`

	// 事件订阅目标ID
	TargetId string `json:"target_id"`
}

Request Object

func (ShowDetailOfSubscriptionTargetRequest) String

type ShowDetailOfSubscriptionTargetResponse

type ShowDetailOfSubscriptionTargetResponse struct {

	// 订阅目标ID
	Id *string `json:"id,omitempty"`

	// 订阅的事件目标名称
	Name *string `json:"name,omitempty"`

	// 订阅的事件目标的提供方类型
	ProviderType *string `json:"provider_type,omitempty"`

	// 订阅的事件目标参数列表
	Detail *interface{} `json:"detail,omitempty"`

	Transform *SubscriptionTargetInfoTransform `json:"transform,omitempty"`

	// 创建时间
	CreatedTime *string `json:"created_time,omitempty"`

	// 更新时间
	UpdatedTime    *string `json:"updated_time,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (ShowDetailOfSubscriptionTargetResponse) String

type SourceInfo

type SourceInfo struct {

	// 事件源ID
	Id *string `json:"id,omitempty"`

	// 事件源名称
	Name *string `json:"name,omitempty"`

	// 事件源名称展示
	Label *string `json:"label,omitempty"`

	// 事件源描述
	Description *string `json:"description,omitempty"`

	// 事件源提供方类型,OFFICIAL:官方云服务事件源;CUSTOM:用户创建的自定义事件源
	ProviderType *SourceInfoProviderType `json:"provider_type,omitempty"`

	// 事件源提供的事件类型列表,只有官方云服务事件源提供事件类型
	EventTypes *[]SourceInfoEventTypes `json:"event_types,omitempty"`

	// 创建UTC时间
	CreatedTime *string `json:"created_time,omitempty"`

	// 更新UTC时间
	UpdatedTime *string `json:"updated_time,omitempty"`

	// 事件源归属的事件通道ID
	ChannelId *string `json:"channel_id,omitempty"`

	// 事件源归属的事件通道名称
	ChannelName *string `json:"channel_name,omitempty"`
}

func (SourceInfo) String

func (o SourceInfo) String() string

type SourceInfoEventTypes

type SourceInfoEventTypes struct {

	// 事件类型名称
	Name *string `json:"name,omitempty"`

	// 事件类型描述
	Description *string `json:"description,omitempty"`
}

func (SourceInfoEventTypes) String

func (o SourceInfoEventTypes) String() string

type SourceInfoProviderType

type SourceInfoProviderType struct {
	// contains filtered or unexported fields
}

func (SourceInfoProviderType) MarshalJSON

func (c SourceInfoProviderType) MarshalJSON() ([]byte, error)

func (*SourceInfoProviderType) UnmarshalJSON

func (c *SourceInfoProviderType) UnmarshalJSON(b []byte) error

func (SourceInfoProviderType) Value

func (c SourceInfoProviderType) Value() string

type SourceInfoProviderTypeEnum

type SourceInfoProviderTypeEnum struct {
	OFFICIAL SourceInfoProviderType
	CUSTOM   SourceInfoProviderType
}

func GetSourceInfoProviderTypeEnum

func GetSourceInfoProviderTypeEnum() SourceInfoProviderTypeEnum

type SubscriptionCreateReq

type SubscriptionCreateReq struct {

	// 事件订阅名称,租户下唯一,由字母、数字、点、下划线和中划线组成,必须字母或数字开头,长度为1~128字符。
	Name string `json:"name"`

	// 事件订阅描述
	Description *string `json:"description,omitempty"`

	// 所属事件通道ID
	ChannelId string `json:"channel_id"`

	// 事件订阅的事件源列表,当前仅支持订阅一个事件源。
	Sources []SubscriptionSource `json:"sources"`

	// 事件目标列表,至少订阅一个,最多五个事件目标。
	Targets []SubscriptionTarget `json:"targets"`
}

func (SubscriptionCreateReq) String

func (o SubscriptionCreateReq) String() string

type SubscriptionInfo

type SubscriptionInfo struct {

	// 事件订阅ID
	Id *string `json:"id,omitempty"`

	// 事件订阅名称
	Name *string `json:"name,omitempty"`

	// 事件订阅描述
	Description *string `json:"description,omitempty"`

	// 事件订阅类型
	Type *SubscriptionInfoType `json:"type,omitempty"`

	// 事件订阅状态
	Status *SubscriptionInfoStatus `json:"status,omitempty"`

	// 通道ID
	ChannelId *string `json:"channel_id,omitempty"`

	// 通道名称
	ChannelName *string `json:"channel_name,omitempty"`

	// 订阅源列表
	Sources *[]SubscriptionSourceInfo `json:"sources,omitempty"`

	// 订阅目标列表
	Targets *[]SubscriptionTargetInfo `json:"targets,omitempty"`

	// 创建时间
	CreatedTime *string `json:"created_time,omitempty"`

	// 更新时间
	UpdatedTime *string `json:"updated_time,omitempty"`
}

func (SubscriptionInfo) String

func (o SubscriptionInfo) String() string

type SubscriptionInfoStatus

type SubscriptionInfoStatus struct {
	// contains filtered or unexported fields
}

func (SubscriptionInfoStatus) MarshalJSON

func (c SubscriptionInfoStatus) MarshalJSON() ([]byte, error)

func (*SubscriptionInfoStatus) UnmarshalJSON

func (c *SubscriptionInfoStatus) UnmarshalJSON(b []byte) error

func (SubscriptionInfoStatus) Value

func (c SubscriptionInfoStatus) Value() string

type SubscriptionInfoStatusEnum

type SubscriptionInfoStatusEnum struct {
	CREATED  SubscriptionInfoStatus
	ENABLED  SubscriptionInfoStatus
	DISABLED SubscriptionInfoStatus
	FROZEN   SubscriptionInfoStatus
	ERROR    SubscriptionInfoStatus
}

func GetSubscriptionInfoStatusEnum

func GetSubscriptionInfoStatusEnum() SubscriptionInfoStatusEnum

type SubscriptionInfoType

type SubscriptionInfoType struct {
	// contains filtered or unexported fields
}

func (SubscriptionInfoType) MarshalJSON

func (c SubscriptionInfoType) MarshalJSON() ([]byte, error)

func (*SubscriptionInfoType) UnmarshalJSON

func (c *SubscriptionInfoType) UnmarshalJSON(b []byte) error

func (SubscriptionInfoType) Value

func (c SubscriptionInfoType) Value() string

type SubscriptionInfoTypeEnum

type SubscriptionInfoTypeEnum struct {
	EVENT     SubscriptionInfoType
	SCHEDULED SubscriptionInfoType
}

func GetSubscriptionInfoTypeEnum

func GetSubscriptionInfoTypeEnum() SubscriptionInfoTypeEnum

type SubscriptionOperateReq

type SubscriptionOperateReq struct {

	// 订阅对象ID列表,单次批量操作最多支持10个订阅
	SubscriptionIds *[]string `json:"subscription_ids,omitempty"`

	// 操作类型
	Operation *SubscriptionOperateReqOperation `json:"operation,omitempty"`
}

订阅批量操作请求

func (SubscriptionOperateReq) String

func (o SubscriptionOperateReq) String() string

type SubscriptionOperateReqOperation

type SubscriptionOperateReqOperation struct {
	// contains filtered or unexported fields
}

func (SubscriptionOperateReqOperation) MarshalJSON

func (c SubscriptionOperateReqOperation) MarshalJSON() ([]byte, error)

func (*SubscriptionOperateReqOperation) UnmarshalJSON

func (c *SubscriptionOperateReqOperation) UnmarshalJSON(b []byte) error

func (SubscriptionOperateReqOperation) Value

type SubscriptionOperateReqOperationEnum

type SubscriptionOperateReqOperationEnum struct {
	DISABLE SubscriptionOperateReqOperation
	ENABLE  SubscriptionOperateReqOperation
}

func GetSubscriptionOperateReqOperationEnum

func GetSubscriptionOperateReqOperationEnum() SubscriptionOperateReqOperationEnum

type SubscriptionOperateRespEvents

type SubscriptionOperateRespEvents struct {

	// 失败的错误码
	ErrorCode *string `json:"error_code,omitempty"`

	// 失败的原因
	ErrorMsg *string `json:"error_msg,omitempty"`

	// 订阅ID
	SubscriptionId *string `json:"subscription_id,omitempty"`
}

func (SubscriptionOperateRespEvents) String

type SubscriptionSource

type SubscriptionSource struct {

	// 订阅源ID,需保证全局唯一。指定ID的订阅源存在时则进行更新,否则进行创建;未指定时由系统自动生成。  由小写字母、数字、中划线组成,必须字母或数字开头,长度为32~64字符。
	Id *string `json:"id,omitempty"`

	// 订阅的事件源名称
	Name string `json:"name"`

	// 订阅的事件源的提供方类型
	ProviderType SubscriptionSourceProviderType `json:"provider_type"`

	// 订阅的事件源参数列表,该字段序列化后总长度不超过1024字节。
	Detail *interface{} `json:"detail,omitempty"`

	// 订阅事件源的匹配过滤规则,该字段序列化后总长度不超过2048字节。
	Filter *interface{} `json:"filter"`
}

func (SubscriptionSource) String

func (o SubscriptionSource) String() string

type SubscriptionSourceInfo

type SubscriptionSourceInfo struct {

	// 订阅源ID
	Id *string `json:"id,omitempty"`

	// 订阅的事件源名称
	Name *string `json:"name,omitempty"`

	// 订阅的事件源的提供方类型
	ProviderType *string `json:"provider_type,omitempty"`

	// 订阅的事件源参数列表
	Detail *interface{} `json:"detail,omitempty"`

	// 订阅事件源的匹配过滤规则
	Filter *interface{} `json:"filter,omitempty"`

	// 创建时间
	CreatedTime *string `json:"created_time,omitempty"`

	// 更新时间
	UpdatedTime *string `json:"updated_time,omitempty"`
}

func (SubscriptionSourceInfo) String

func (o SubscriptionSourceInfo) String() string

type SubscriptionSourceProviderType

type SubscriptionSourceProviderType struct {
	// contains filtered or unexported fields
}

func (SubscriptionSourceProviderType) MarshalJSON

func (c SubscriptionSourceProviderType) MarshalJSON() ([]byte, error)

func (*SubscriptionSourceProviderType) UnmarshalJSON

func (c *SubscriptionSourceProviderType) UnmarshalJSON(b []byte) error

func (SubscriptionSourceProviderType) Value

type SubscriptionSourceProviderTypeEnum

type SubscriptionSourceProviderTypeEnum struct {
	CUSTOM   SubscriptionSourceProviderType
	OFFICIAL SubscriptionSourceProviderType
}

func GetSubscriptionSourceProviderTypeEnum

func GetSubscriptionSourceProviderTypeEnum() SubscriptionSourceProviderTypeEnum

type SubscriptionTarget

type SubscriptionTarget struct {

	// 订阅目标ID,需保证全局唯一,由小写字母、数字、中划线组成,必须字母或数字开头,长度为32~64字符。  创建订阅目标场景时,指定ID作为待创建的订阅目标对象ID,未指定时由系统自动生成。
	Id *string `json:"id,omitempty"`

	// 订阅的事件目标名称
	Name string `json:"name"`

	// 订阅的事件目标的提供方类型
	ProviderType SubscriptionTargetProviderType `json:"provider_type"`

	// 订阅的事件目标参数列表,该字段序列化后总长度不超过1024字节。
	Detail *interface{} `json:"detail,omitempty"`

	Transform *SubscriptionTargetTransform `json:"transform"`
}

func (SubscriptionTarget) String

func (o SubscriptionTarget) String() string

type SubscriptionTargetInfo

type SubscriptionTargetInfo struct {

	// 订阅目标ID
	Id *string `json:"id,omitempty"`

	// 订阅的事件目标名称
	Name *string `json:"name,omitempty"`

	// 订阅的事件目标的提供方类型
	ProviderType *string `json:"provider_type,omitempty"`

	// 订阅的事件目标参数列表
	Detail *interface{} `json:"detail,omitempty"`

	Transform *SubscriptionTargetInfoTransform `json:"transform,omitempty"`

	// 创建时间
	CreatedTime *string `json:"created_time,omitempty"`

	// 更新时间
	UpdatedTime *string `json:"updated_time,omitempty"`
}

func (SubscriptionTargetInfo) String

func (o SubscriptionTargetInfo) String() string

type SubscriptionTargetInfoTransform

type SubscriptionTargetInfoTransform struct {

	// 转换规则类型
	Type *string `json:"type,omitempty"`

	// 转换规则内容
	Value *string `json:"value,omitempty"`

	// 转换规则模板
	Template *string `json:"template,omitempty"`
}

订阅的事件目标转换规则

func (SubscriptionTargetInfoTransform) String

type SubscriptionTargetProviderType

type SubscriptionTargetProviderType struct {
	// contains filtered or unexported fields
}

func (SubscriptionTargetProviderType) MarshalJSON

func (c SubscriptionTargetProviderType) MarshalJSON() ([]byte, error)

func (*SubscriptionTargetProviderType) UnmarshalJSON

func (c *SubscriptionTargetProviderType) UnmarshalJSON(b []byte) error

func (SubscriptionTargetProviderType) Value

type SubscriptionTargetProviderTypeEnum

type SubscriptionTargetProviderTypeEnum struct {
	CUSTOM   SubscriptionTargetProviderType
	OFFICIAL SubscriptionTargetProviderType
}

func GetSubscriptionTargetProviderTypeEnum

func GetSubscriptionTargetProviderTypeEnum() SubscriptionTargetProviderTypeEnum

type SubscriptionTargetTransform

type SubscriptionTargetTransform struct {

	// 转换规则类型
	Type SubscriptionTargetTransformType `json:"type"`

	// - 转换类型规则为常量时,字段为常量内容定义;  - 转换类型规则为变量时,为变量定义,内容必须为JsonObject字符串。   - 变量最多支持100个,且不支持嵌套结构定义;   - 变量名由字母、数字、点、下划线和中划线组成,必须字母或数字开头不能以HC.开头,长度不超过64个字符;   - 变量值表达式支持常量或JsonPath表达式,字符串长度不超过1024个字符。
	Value *string `json:"value,omitempty"`

	// 转换规则类型为变量时,规则内容由模板定义,支持对已定义变量的引用。
	Template *string `json:"template,omitempty"`
}

订阅的事件目标转换规则

func (SubscriptionTargetTransform) String

type SubscriptionTargetTransformType

type SubscriptionTargetTransformType struct {
	// contains filtered or unexported fields
}

func (SubscriptionTargetTransformType) MarshalJSON

func (c SubscriptionTargetTransformType) MarshalJSON() ([]byte, error)

func (*SubscriptionTargetTransformType) UnmarshalJSON

func (c *SubscriptionTargetTransformType) UnmarshalJSON(b []byte) error

func (SubscriptionTargetTransformType) Value

type SubscriptionTargetTransformTypeEnum

type SubscriptionTargetTransformTypeEnum struct {
	ORIGINAL SubscriptionTargetTransformType
	CONSTANT SubscriptionTargetTransformType
	VARIABLE SubscriptionTargetTransformType
}

func GetSubscriptionTargetTransformTypeEnum

func GetSubscriptionTargetTransformTypeEnum() SubscriptionTargetTransformTypeEnum

type SubscriptionUpdateReq

type SubscriptionUpdateReq struct {

	// 订阅描述
	Description *string `json:"description,omitempty"`

	// 订阅事件源列表,字段存在则代表全量更新订阅源
	Sources *[]SubscriptionSource `json:"sources,omitempty"`

	// 订阅事件目标列表,字段存在则代表全量更新订阅目标
	Targets *[]SubscriptionTarget `json:"targets,omitempty"`
}

更新订阅,全量更新订阅源和目标

func (SubscriptionUpdateReq) String

func (o SubscriptionUpdateReq) String() string

type UpdateChannelRequest

type UpdateChannelRequest struct {

	// 指定查询的事件通道ID
	ChannelId string `json:"channel_id"`

	Body *ChannelUpdateReq `json:"body,omitempty"`
}

Request Object

func (UpdateChannelRequest) String

func (o UpdateChannelRequest) String() string

type UpdateChannelResponse

type UpdateChannelResponse struct {

	// 通道ID
	Id *string `json:"id,omitempty"`

	// 通道名称
	Name *string `json:"name,omitempty"`

	// 通道描述
	Description *string `json:"description,omitempty"`

	// 通道提供方类型,OFFICIAL:官方事件通道;CUSTOM:自定义事件通道
	ProviderType *UpdateChannelResponseProviderType `json:"provider_type,omitempty"`

	// 创建UTC时间
	CreatedTime *string `json:"created_time,omitempty"`

	// 更新UTC时间
	UpdatedTime    *string `json:"updated_time,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdateChannelResponse) String

func (o UpdateChannelResponse) String() string

type UpdateChannelResponseProviderType

type UpdateChannelResponseProviderType struct {
	// contains filtered or unexported fields
}

func (UpdateChannelResponseProviderType) MarshalJSON

func (c UpdateChannelResponseProviderType) MarshalJSON() ([]byte, error)

func (*UpdateChannelResponseProviderType) UnmarshalJSON

func (c *UpdateChannelResponseProviderType) UnmarshalJSON(b []byte) error

func (UpdateChannelResponseProviderType) Value

type UpdateChannelResponseProviderTypeEnum

type UpdateChannelResponseProviderTypeEnum struct {
	OFFICIAL UpdateChannelResponseProviderType
	CUSTOM   UpdateChannelResponseProviderType
}

func GetUpdateChannelResponseProviderTypeEnum

func GetUpdateChannelResponseProviderTypeEnum() UpdateChannelResponseProviderTypeEnum

type UpdateEventSourceRequest

type UpdateEventSourceRequest struct {

	// 指定查询的事件源ID
	SourceId string `json:"source_id"`

	Body *CustomizeSourceUpdateReq `json:"body,omitempty"`
}

Request Object

func (UpdateEventSourceRequest) String

func (o UpdateEventSourceRequest) String() string

type UpdateEventSourceResponse

type UpdateEventSourceResponse struct {

	// 事件源ID
	Id *string `json:"id,omitempty"`

	// 事件源名称
	Name *string `json:"name,omitempty"`

	// 事件源名称展示
	Label *string `json:"label,omitempty"`

	// 事件源描述
	Description *string `json:"description,omitempty"`

	// 事件源提供方类型,OFFICIAL:官方云服务事件源;CUSTOM:用户创建的自定义事件源
	ProviderType *UpdateEventSourceResponseProviderType `json:"provider_type,omitempty"`

	// 创建UTC时间
	CreatedTime *string `json:"created_time,omitempty"`

	// 更新UTC时间
	UpdatedTime *string `json:"updated_time,omitempty"`

	// 事件源归属的事件通道ID
	ChannelId *string `json:"channel_id,omitempty"`

	// 事件源归属的事件通道名称
	ChannelName    *string `json:"channel_name,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdateEventSourceResponse) String

func (o UpdateEventSourceResponse) String() string

type UpdateEventSourceResponseProviderType

type UpdateEventSourceResponseProviderType struct {
	// contains filtered or unexported fields
}

func (UpdateEventSourceResponseProviderType) MarshalJSON

func (c UpdateEventSourceResponseProviderType) MarshalJSON() ([]byte, error)

func (*UpdateEventSourceResponseProviderType) UnmarshalJSON

func (c *UpdateEventSourceResponseProviderType) UnmarshalJSON(b []byte) error

func (UpdateEventSourceResponseProviderType) Value

type UpdateEventSourceResponseProviderTypeEnum

type UpdateEventSourceResponseProviderTypeEnum struct {
	OFFICIAL UpdateEventSourceResponseProviderType
	CUSTOM   UpdateEventSourceResponseProviderType
}

func GetUpdateEventSourceResponseProviderTypeEnum

func GetUpdateEventSourceResponseProviderTypeEnum() UpdateEventSourceResponseProviderTypeEnum

type UpdateSubscriptionRequest

type UpdateSubscriptionRequest struct {

	// 事件订阅ID
	SubscriptionId string `json:"subscription_id"`

	Body *SubscriptionUpdateReq `json:"body,omitempty"`
}

Request Object

func (UpdateSubscriptionRequest) String

func (o UpdateSubscriptionRequest) String() string

type UpdateSubscriptionResponse

type UpdateSubscriptionResponse struct {

	// 事件订阅ID
	Id *string `json:"id,omitempty"`

	// 事件订阅名称
	Name *string `json:"name,omitempty"`

	// 事件订阅描述
	Description *string `json:"description,omitempty"`

	// 事件订阅类型
	Type *UpdateSubscriptionResponseType `json:"type,omitempty"`

	// 事件订阅状态
	Status *UpdateSubscriptionResponseStatus `json:"status,omitempty"`

	// 通道ID
	ChannelId *string `json:"channel_id,omitempty"`

	// 通道名称
	ChannelName *string `json:"channel_name,omitempty"`

	// 订阅源列表
	Sources *[]SubscriptionSourceInfo `json:"sources,omitempty"`

	// 订阅目标列表
	Targets *[]SubscriptionTargetInfo `json:"targets,omitempty"`

	// 创建时间
	CreatedTime *string `json:"created_time,omitempty"`

	// 更新时间
	UpdatedTime    *string `json:"updated_time,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdateSubscriptionResponse) String

type UpdateSubscriptionResponseStatus

type UpdateSubscriptionResponseStatus struct {
	// contains filtered or unexported fields
}

func (UpdateSubscriptionResponseStatus) MarshalJSON

func (c UpdateSubscriptionResponseStatus) MarshalJSON() ([]byte, error)

func (*UpdateSubscriptionResponseStatus) UnmarshalJSON

func (c *UpdateSubscriptionResponseStatus) UnmarshalJSON(b []byte) error

func (UpdateSubscriptionResponseStatus) Value

type UpdateSubscriptionResponseType

type UpdateSubscriptionResponseType struct {
	// contains filtered or unexported fields
}

func (UpdateSubscriptionResponseType) MarshalJSON

func (c UpdateSubscriptionResponseType) MarshalJSON() ([]byte, error)

func (*UpdateSubscriptionResponseType) UnmarshalJSON

func (c *UpdateSubscriptionResponseType) UnmarshalJSON(b []byte) error

func (UpdateSubscriptionResponseType) Value

type UpdateSubscriptionResponseTypeEnum

type UpdateSubscriptionResponseTypeEnum struct {
	EVENT     UpdateSubscriptionResponseType
	SCHEDULED UpdateSubscriptionResponseType
}

func GetUpdateSubscriptionResponseTypeEnum

func GetUpdateSubscriptionResponseTypeEnum() UpdateSubscriptionResponseTypeEnum

type UpdateSubscriptionSourceRequest

type UpdateSubscriptionSourceRequest struct {

	// 事件订阅ID
	SubscriptionId string `json:"subscription_id"`

	// 事件订阅源ID
	SourceId string `json:"source_id"`

	Body *SubscriptionSource `json:"body,omitempty"`
}

Request Object

func (UpdateSubscriptionSourceRequest) String

type UpdateSubscriptionSourceResponse

type UpdateSubscriptionSourceResponse struct {

	// 订阅源ID
	Id *string `json:"id,omitempty"`

	// 订阅的事件源名称
	Name *string `json:"name,omitempty"`

	// 订阅的事件源的提供方类型
	ProviderType *string `json:"provider_type,omitempty"`

	// 订阅的事件源参数列表
	Detail *interface{} `json:"detail,omitempty"`

	// 订阅事件源的匹配过滤规则
	Filter *interface{} `json:"filter,omitempty"`

	// 创建时间
	CreatedTime *string `json:"created_time,omitempty"`

	// 更新时间
	UpdatedTime    *string `json:"updated_time,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdateSubscriptionSourceResponse) String

type UpdateSubscriptionTargetRequest

type UpdateSubscriptionTargetRequest struct {

	// 事件订阅ID
	SubscriptionId string `json:"subscription_id"`

	// 事件订阅目标ID
	TargetId string `json:"target_id"`

	Body *SubscriptionTarget `json:"body,omitempty"`
}

Request Object

func (UpdateSubscriptionTargetRequest) String

type UpdateSubscriptionTargetResponse

type UpdateSubscriptionTargetResponse struct {

	// 订阅目标ID
	Id *string `json:"id,omitempty"`

	// 订阅的事件目标名称
	Name *string `json:"name,omitempty"`

	// 订阅的事件目标的提供方类型
	ProviderType *string `json:"provider_type,omitempty"`

	// 订阅的事件目标参数列表
	Detail *interface{} `json:"detail,omitempty"`

	Transform *SubscriptionTargetInfoTransform `json:"transform,omitempty"`

	// 创建时间
	CreatedTime *string `json:"created_time,omitempty"`

	// 更新时间
	UpdatedTime    *string `json:"updated_time,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (UpdateSubscriptionTargetResponse) String

Source Files

Jump to

Keyboard shortcuts

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