Documentation
¶
Index ¶
- type CatalogTargetInfo
- type CatalogTargetInfoProviderType
- type CatalogTargetInfoProviderTypeEnum
- type CatalogTargetParameters
- type ChannelCreateReq
- type ChannelInfo
- type ChannelInfoProviderType
- type ChannelInfoProviderTypeEnum
- type ChannelUpdateReq
- type CloudEvents
- type CreateChannelRequest
- type CreateChannelResponse
- type CreateChannelResponseProviderType
- type CreateChannelResponseProviderTypeEnum
- type CreateEventSourceRequest
- type CreateEventSourceResponse
- type CreateEventSourceResponseProviderType
- type CreateEventSourceResponseProviderTypeEnum
- type CreateSubscriptionRequest
- type CreateSubscriptionResponse
- type CreateSubscriptionResponseStatus
- type CreateSubscriptionResponseStatusEnum
- type CreateSubscriptionResponseType
- type CreateSubscriptionResponseTypeEnum
- type CreateSubscriptionTargetRequest
- type CreateSubscriptionTargetResponse
- type CustomizeSourceCreateReq
- type CustomizeSourceUpdateReq
- type DeleteChannelRequest
- type DeleteChannelResponse
- type DeleteEventSourceRequest
- type DeleteEventSourceResponse
- type DeleteSubscriptionRequest
- type DeleteSubscriptionResponse
- type DeleteSubscriptionTargetRequest
- type DeleteSubscriptionTargetResponse
- type ListChannelsRequest
- type ListChannelsRequestProviderType
- type ListChannelsRequestProviderTypeEnum
- type ListChannelsResponse
- type ListEventSourcesRequest
- type ListEventSourcesRequestProviderType
- type ListEventSourcesRequestProviderTypeEnum
- type ListEventSourcesResponse
- type ListEventTargetRequest
- type ListEventTargetResponse
- type ListQuotasRequest
- type ListQuotasRequestType
- type ListQuotasRequestTypeEnum
- type ListQuotasResponse
- type ListSubscriptionsRequest
- type ListSubscriptionsResponse
- type OperateSubscriptionRequest
- type OperateSubscriptionResponse
- type PutEventsReq
- type PutEventsRequest
- type PutEventsRespEvents
- type PutEventsResponse
- type QuotaItemInfo
- type QuotaItemInfoType
- type QuotaItemInfoTypeEnum
- type QuotaResourceResp
- type ShowDetailOfChannelRequest
- type ShowDetailOfChannelResponse
- type ShowDetailOfChannelResponseProviderType
- type ShowDetailOfChannelResponseProviderTypeEnum
- type ShowDetailOfEventSourceRequest
- type ShowDetailOfEventSourceResponse
- type ShowDetailOfEventSourceResponseProviderType
- type ShowDetailOfEventSourceResponseProviderTypeEnum
- type ShowDetailOfSubscriptionRequest
- type ShowDetailOfSubscriptionResponse
- type ShowDetailOfSubscriptionResponseStatus
- type ShowDetailOfSubscriptionResponseStatusEnum
- type ShowDetailOfSubscriptionResponseType
- type ShowDetailOfSubscriptionResponseTypeEnum
- type ShowDetailOfSubscriptionTargetRequest
- type ShowDetailOfSubscriptionTargetResponse
- type SourceInfo
- type SourceInfoEventTypes
- type SourceInfoProviderType
- type SourceInfoProviderTypeEnum
- type SubscriptionCreateReq
- type SubscriptionInfo
- type SubscriptionInfoStatus
- type SubscriptionInfoStatusEnum
- type SubscriptionInfoType
- type SubscriptionInfoTypeEnum
- type SubscriptionOperateReq
- type SubscriptionOperateReqOperation
- type SubscriptionOperateReqOperationEnum
- type SubscriptionOperateRespEvents
- type SubscriptionSource
- type SubscriptionSourceInfo
- type SubscriptionSourceProviderType
- type SubscriptionSourceProviderTypeEnum
- type SubscriptionTarget
- type SubscriptionTargetInfo
- type SubscriptionTargetInfoTransform
- type SubscriptionTargetProviderType
- type SubscriptionTargetProviderTypeEnum
- type SubscriptionTargetTransform
- type SubscriptionTargetTransformType
- type SubscriptionTargetTransformTypeEnum
- type SubscriptionUpdateReq
- type UpdateChannelRequest
- type UpdateChannelResponse
- type UpdateChannelResponseProviderType
- type UpdateChannelResponseProviderTypeEnum
- type UpdateEventSourceRequest
- type UpdateEventSourceResponse
- type UpdateEventSourceResponseProviderType
- type UpdateEventSourceResponseProviderTypeEnum
- type UpdateSubscriptionRequest
- type UpdateSubscriptionResponse
- type UpdateSubscriptionResponseStatus
- type UpdateSubscriptionResponseStatusEnum
- type UpdateSubscriptionResponseType
- type UpdateSubscriptionResponseTypeEnum
- type UpdateSubscriptionSourceRequest
- type UpdateSubscriptionSourceResponse
- type UpdateSubscriptionTargetRequest
- type UpdateSubscriptionTargetResponse
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 ¶
func (c CatalogTargetInfoProviderType) Value() string
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 ¶
func (c CreateChannelResponseProviderType) Value() string
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 ¶
func (c CreateEventSourceResponseProviderType) Value() string
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 ¶
func (o CreateSubscriptionResponse) String() 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 ¶
func (c CreateSubscriptionResponseStatus) Value() string
type CreateSubscriptionResponseStatusEnum ¶
type CreateSubscriptionResponseStatusEnum struct { CREATED CreateSubscriptionResponseStatus ENABLED CreateSubscriptionResponseStatus DISABLED CreateSubscriptionResponseStatus FROZEN CreateSubscriptionResponseStatus ERROR CreateSubscriptionResponseStatus }
func GetCreateSubscriptionResponseStatusEnum ¶
func GetCreateSubscriptionResponseStatusEnum() CreateSubscriptionResponseStatusEnum
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 ¶
func (c CreateSubscriptionResponseType) Value() string
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 ¶
func (o CreateSubscriptionTargetRequest) String() 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 ¶
func (o CreateSubscriptionTargetResponse) String() 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 ¶
func (o DeleteSubscriptionResponse) String() string
type DeleteSubscriptionTargetRequest ¶
type DeleteSubscriptionTargetRequest struct { // 事件订阅ID SubscriptionId string `json:"subscription_id"` // 事件订阅目标ID TargetId string `json:"target_id"` }
Request Object
func (DeleteSubscriptionTargetRequest) String ¶
func (o DeleteSubscriptionTargetRequest) String() string
type DeleteSubscriptionTargetResponse ¶
type DeleteSubscriptionTargetResponse struct {
HttpStatusCode int `json:"-"`
}
Response Object
func (DeleteSubscriptionTargetResponse) String ¶
func (o DeleteSubscriptionTargetResponse) String() 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 ¶
func (c ListChannelsRequestProviderType) Value() string
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 ¶
func (c ListEventSourcesRequestProviderType) Value() string
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 ¶
func (o OperateSubscriptionRequest) String() 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 ¶
func (o OperateSubscriptionResponse) String() 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 ¶
func (o ShowDetailOfChannelRequest) String() 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 ¶
func (o ShowDetailOfChannelResponse) String() 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 ¶
func (c ShowDetailOfChannelResponseProviderType) Value() string
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 ¶
func (o ShowDetailOfEventSourceRequest) String() 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 ¶
func (o ShowDetailOfEventSourceResponse) String() string
type ShowDetailOfEventSourceResponseProviderType ¶
type ShowDetailOfEventSourceResponseProviderType struct {
// contains filtered or unexported fields
}
func (ShowDetailOfEventSourceResponseProviderType) MarshalJSON ¶
func (c ShowDetailOfEventSourceResponseProviderType) MarshalJSON() ([]byte, error)
func (*ShowDetailOfEventSourceResponseProviderType) UnmarshalJSON ¶
func (c *ShowDetailOfEventSourceResponseProviderType) UnmarshalJSON(b []byte) error
func (ShowDetailOfEventSourceResponseProviderType) Value ¶
func (c ShowDetailOfEventSourceResponseProviderType) Value() string
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 ¶
func (o ShowDetailOfSubscriptionRequest) String() 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 ¶
func (o ShowDetailOfSubscriptionResponse) String() 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 ¶
func (c ShowDetailOfSubscriptionResponseStatus) Value() string
type ShowDetailOfSubscriptionResponseStatusEnum ¶
type ShowDetailOfSubscriptionResponseStatusEnum struct { CREATED ShowDetailOfSubscriptionResponseStatus ENABLED ShowDetailOfSubscriptionResponseStatus DISABLED ShowDetailOfSubscriptionResponseStatus FROZEN ShowDetailOfSubscriptionResponseStatus ERROR ShowDetailOfSubscriptionResponseStatus }
func GetShowDetailOfSubscriptionResponseStatusEnum ¶
func GetShowDetailOfSubscriptionResponseStatusEnum() ShowDetailOfSubscriptionResponseStatusEnum
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 ¶
func (c ShowDetailOfSubscriptionResponseType) Value() string
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 ¶
func (o ShowDetailOfSubscriptionTargetRequest) String() 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 ¶
func (o ShowDetailOfSubscriptionTargetResponse) String() 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 ¶
func (c SubscriptionOperateReqOperation) Value() string
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 ¶
func (o SubscriptionOperateRespEvents) String() 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 ¶
func (c SubscriptionSourceProviderType) Value() string
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 ¶
func (o SubscriptionTargetInfoTransform) String() 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 ¶
func (c SubscriptionTargetProviderType) Value() string
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 ¶
func (o SubscriptionTargetTransform) String() 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 ¶
func (c SubscriptionTargetTransformType) Value() string
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 ¶
func (c UpdateChannelResponseProviderType) Value() string
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 ¶
func (c UpdateEventSourceResponseProviderType) Value() string
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 ¶
func (o UpdateSubscriptionResponse) String() 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 ¶
func (c UpdateSubscriptionResponseStatus) Value() string
type UpdateSubscriptionResponseStatusEnum ¶
type UpdateSubscriptionResponseStatusEnum struct { CREATED UpdateSubscriptionResponseStatus ENABLED UpdateSubscriptionResponseStatus DISABLED UpdateSubscriptionResponseStatus FROZEN UpdateSubscriptionResponseStatus ERROR UpdateSubscriptionResponseStatus }
func GetUpdateSubscriptionResponseStatusEnum ¶
func GetUpdateSubscriptionResponseStatusEnum() UpdateSubscriptionResponseStatusEnum
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 ¶
func (c UpdateSubscriptionResponseType) Value() string
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 ¶
func (o UpdateSubscriptionSourceRequest) String() 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 ¶
func (o UpdateSubscriptionSourceResponse) String() 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 ¶
func (o UpdateSubscriptionTargetRequest) String() 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 ¶
func (o UpdateSubscriptionTargetResponse) String() string
Source Files
¶
- model_catalog_target_info.go
- model_catalog_target_parameters.go
- model_channel_create_req.go
- model_channel_info.go
- model_channel_update_req.go
- model_cloud_events.go
- model_create_channel_request.go
- model_create_channel_response.go
- model_create_event_source_request.go
- model_create_event_source_response.go
- model_create_subscription_request.go
- model_create_subscription_response.go
- model_create_subscription_target_request.go
- model_create_subscription_target_response.go
- model_customize_source_create_req.go
- model_customize_source_update_req.go
- model_delete_channel_request.go
- model_delete_channel_response.go
- model_delete_event_source_request.go
- model_delete_event_source_response.go
- model_delete_subscription_request.go
- model_delete_subscription_response.go
- model_delete_subscription_target_request.go
- model_delete_subscription_target_response.go
- model_list_channels_request.go
- model_list_channels_response.go
- model_list_event_sources_request.go
- model_list_event_sources_response.go
- model_list_event_target_request.go
- model_list_event_target_response.go
- model_list_quotas_request.go
- model_list_quotas_response.go
- model_list_subscriptions_request.go
- model_list_subscriptions_response.go
- model_operate_subscription_request.go
- model_operate_subscription_response.go
- model_put_events_req.go
- model_put_events_request.go
- model_put_events_resp_events.go
- model_put_events_response.go
- model_quota_item_info.go
- model_quota_resource_resp.go
- model_show_detail_of_channel_request.go
- model_show_detail_of_channel_response.go
- model_show_detail_of_event_source_request.go
- model_show_detail_of_event_source_response.go
- model_show_detail_of_subscription_request.go
- model_show_detail_of_subscription_response.go
- model_show_detail_of_subscription_target_request.go
- model_show_detail_of_subscription_target_response.go
- model_source_info.go
- model_source_info_event_types.go
- model_subscription_create_req.go
- model_subscription_info.go
- model_subscription_operate_req.go
- model_subscription_operate_resp_events.go
- model_subscription_source.go
- model_subscription_source_info.go
- model_subscription_target.go
- model_subscription_target_info.go
- model_subscription_target_info_transform.go
- model_subscription_target_transform.go
- model_subscription_update_req.go
- model_update_channel_request.go
- model_update_channel_response.go
- model_update_event_source_request.go
- model_update_event_source_response.go
- model_update_subscription_request.go
- model_update_subscription_response.go
- model_update_subscription_source_request.go
- model_update_subscription_source_response.go
- model_update_subscription_target_request.go
- model_update_subscription_target_response.go