zz_generated.model.go 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. // Licensed under the Apache License, Version 2.0 (the "License");
  2. // you may not use this file except in compliance with the License.
  3. // You may obtain a copy of the License at
  4. //
  5. // http://www.apache.org/licenses/LICENSE-2.0
  6. //
  7. // Unless required by applicable law or agreed to in writing, software
  8. // distributed under the License is distributed on an "AS IS" BASIS,
  9. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. // See the License for the specific language governing permissions and
  11. // limitations under the License.
  12. // Code generated by model-api-gen. DO NOT EDIT.
  13. package notify
  14. import (
  15. time "time"
  16. jsonutils "yunion.io/x/jsonutils"
  17. "yunion.io/x/onecloud/pkg/apis"
  18. )
  19. // SConfig is an autogenerated struct via yunion.io/x/onecloud/pkg/notify/models.SConfig.
  20. type SConfig struct {
  21. apis.SDomainLevelResourceBase
  22. Type string `json:"type"`
  23. Content *SNotifyConfigContent `json:"content"`
  24. Attribution string `json:"attribution"`
  25. }
  26. // SEmailQueue is an autogenerated struct via yunion.io/x/onecloud/pkg/notify/models.SEmailQueue.
  27. type SEmailQueue struct {
  28. apis.SLogBase
  29. RecvAt time.Time `json:"recv_at"`
  30. Dest string `json:"dest"`
  31. Subject string `json:"subject"`
  32. DestCc string `json:"dest_cc"`
  33. DestBcc string `json:"dest_bcc"`
  34. SessionId string `json:"session_id"`
  35. Content jsonutils.JSONObject `json:"content"`
  36. MoreDetails jsonutils.JSONObject `json:"more_details"`
  37. ProjectId string `json:"project_id"`
  38. Project string `json:"project"`
  39. ProjectDomainId string `json:"project_domain_id"`
  40. ProjectDomain string `json:"project_domain"`
  41. UserId string `json:"user_id"`
  42. User string `json:"user"`
  43. DomainId string `json:"domain_id"`
  44. Domain string `json:"domain"`
  45. Roles string `json:"roles"`
  46. }
  47. // SEmailQueueStatus is an autogenerated struct via yunion.io/x/onecloud/pkg/notify/models.SEmailQueueStatus.
  48. type SEmailQueueStatus struct {
  49. Id int64 `json:"id"`
  50. SentAt time.Time `json:"sent_at"`
  51. Status string `json:"status"`
  52. Results string `json:"results"`
  53. }
  54. // SEvent is an autogenerated struct via yunion.io/x/onecloud/pkg/notify/models.SEvent.
  55. type SEvent struct {
  56. apis.SLogBase
  57. // 资源创建时间
  58. CreatedAt time.Time `json:"created_at"`
  59. Message string `json:"message"`
  60. Event string `json:"event"`
  61. ResourceType string `json:"resource_type"`
  62. Action string `json:"action"`
  63. AdvanceDays int `json:"advance_days"`
  64. TopicId string `json:"topic_id"`
  65. }
  66. // SNotification is an autogenerated struct via yunion.io/x/onecloud/pkg/notify/models.SNotification.
  67. type SNotification struct {
  68. apis.SStatusStandaloneResourceBase
  69. ContactType string `json:"contact_type"`
  70. // swagger:ignore
  71. Topic string `json:"topic"`
  72. Priority string `json:"priority"`
  73. // swagger:ignore
  74. Message string `json:"message"`
  75. // swagger:ignore
  76. TopicType string `json:"topic_type"`
  77. // swagger:ignore
  78. TopicId string `json:"topic_id"`
  79. ReceivedAt time.Time `json:"received_at"`
  80. EventId string `json:"event_id"`
  81. SendTimes int `json:"send_times"`
  82. }
  83. // SNotificationGroup is an autogenerated struct via yunion.io/x/onecloud/pkg/notify/models.SNotificationGroup.
  84. type SNotificationGroup struct {
  85. Id string `json:"id"`
  86. GroupKey string `json:"group_key"`
  87. Title string `json:"title"`
  88. // swagger:ignore
  89. Message string `json:"message"`
  90. ReceiverId string `json:"receiver_id"`
  91. Body jsonutils.JSONObject `json:"body"`
  92. Header jsonutils.JSONObject `json:"header"`
  93. MsgKey string `json:"msg_key"`
  94. ContactType string `json:"contact_type"`
  95. Contact string `json:"contact"`
  96. DomainId string `json:"domain_id"`
  97. }
  98. // SNotificationLog is an autogenerated struct via yunion.io/x/onecloud/pkg/notify/models.SNotificationLog.
  99. type SNotificationLog struct {
  100. apis.SLogBase
  101. ContactType string `json:"contact_type"`
  102. // swagger:ignore
  103. Topic string `json:"topic"`
  104. Priority string `json:"priority"`
  105. // swagger:ignore
  106. Message string `json:"message"`
  107. // swagger:ignore
  108. TopicType string `json:"topic_type"`
  109. ReceivedAt time.Time `json:"received_at"`
  110. EventId string `json:"event_id"`
  111. SendTimes int `json:"send_times"`
  112. }
  113. // SReceiver is an autogenerated struct via yunion.io/x/onecloud/pkg/notify/models.SReceiver.
  114. type SReceiver struct {
  115. apis.SVirtualResourceBase
  116. apis.SEnabledResourceBase
  117. Email string `json:"email"`
  118. // swagger:ignore
  119. Mobile string `json:"mobile"`
  120. Lang string `json:"lang"`
  121. // swagger:ignore
  122. EnabledEmail *bool `json:"enabled_email,omitempty"`
  123. // swagger:ignore
  124. VerifiedEmail *bool `json:"verified_email,omitempty"`
  125. // swagger:ignore
  126. EnabledMobile *bool `json:"enabled_mobile,omitempty"`
  127. // swagger:ignore
  128. VerifiedMobile *bool `json:"verified_mobile,omitempty"`
  129. }
  130. // SRobot is an autogenerated struct via yunion.io/x/onecloud/pkg/notify/models.SRobot.
  131. type SRobot struct {
  132. apis.SSharableVirtualResourceBase
  133. apis.SEnabledResourceBase
  134. Type string `json:"type"`
  135. Address string `json:"address"`
  136. Lang string `json:"lang"`
  137. Header jsonutils.JSONObject `json:"header"`
  138. Body jsonutils.JSONObject `json:"body"`
  139. MsgKey string `json:"msg_key"`
  140. // webhook 签名加密
  141. SecretKey string `json:"secret_key"`
  142. UseTemplate *bool `json:"use_template,omitempty"`
  143. }
  144. // SSubscriber is an autogenerated struct via yunion.io/x/onecloud/pkg/notify/models.SSubscriber.
  145. type SSubscriber struct {
  146. apis.SStandaloneAnonResourceBase
  147. apis.SEnabledResourceBase
  148. TopicId string `json:"topic_id"`
  149. Type string `json:"type"`
  150. Identification string `json:"identification"`
  151. RoleScope string `json:"role_scope"`
  152. ResourceScope string `json:"resource_scope"`
  153. ResourceAttributionId string `json:"resource_attribution_id"`
  154. ResourceAttributionName string `json:"resource_attribution_name"`
  155. Scope string `json:"scope"`
  156. DomainId string `json:"domain_id"`
  157. // minutes
  158. GroupTimes uint32 `json:"group_times"`
  159. }
  160. // SSubscriberReceiver is an autogenerated struct via yunion.io/x/onecloud/pkg/notify/models.SSubscriberReceiver.
  161. type SSubscriberReceiver struct {
  162. apis.SJointResourceBase
  163. SubscriberId string `json:"subscriber_id"`
  164. ReceiverId string `json:"receiver_id"`
  165. }
  166. // STemplate is an autogenerated struct via yunion.io/x/onecloud/pkg/notify/models.STemplate.
  167. type STemplate struct {
  168. apis.SStandaloneAnonResourceBase
  169. ContactType string `json:"contact_type"`
  170. Topic string `json:"topic"`
  171. // title | content | remote
  172. TemplateType string `json:"template_type"`
  173. Content string `json:"content"`
  174. Lang string `json:"lang"`
  175. Example string `json:"example"`
  176. }
  177. // STopic is an autogenerated struct via yunion.io/x/onecloud/pkg/notify/models.STopic.
  178. type STopic struct {
  179. apis.SEnabledStatusStandaloneResourceBase
  180. Type string `json:"type"`
  181. Results *bool `json:"results,omitempty"`
  182. TitleCn string `json:"title_cn"`
  183. TitleEn string `json:"title_en"`
  184. ContentCn string `json:"content_cn"`
  185. ContentEn string `json:"content_en"`
  186. GroupKeys *STopicGroupKeys `json:"group_keys"`
  187. AdvanceDays []int `json:"advance_days"`
  188. WebconsoleDisable *bool `json:"webconsole_disable,omitempty"`
  189. }
  190. // STopicAction is an autogenerated struct via yunion.io/x/onecloud/pkg/notify/models.STopicAction.
  191. type STopicAction struct {
  192. apis.SResourceBase
  193. ActionId string `json:"action_id"`
  194. TopicId string `json:"topic_id"`
  195. }
  196. // STopicResource is an autogenerated struct via yunion.io/x/onecloud/pkg/notify/models.STopicResource.
  197. type STopicResource struct {
  198. apis.SResourceBase
  199. ResourceId string `json:"resource_id"`
  200. TopicId string `json:"topic_id"`
  201. }