model.go 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. package ots
  2. //Licensed under the Apache License, Version 2.0 (the "License");
  3. //you may not use this file except in compliance with the License.
  4. //You may obtain a copy of the License at
  5. //
  6. //http://www.apache.org/licenses/LICENSE-2.0
  7. //
  8. //Unless required by applicable law or agreed to in writing, software
  9. //distributed under the License is distributed on an "AS IS" BASIS,
  10. //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  11. //See the License for the specific language governing permissions and
  12. //limitations under the License.
  13. const ApiVersion = "v1"
  14. type CreateTriggerRequestBody struct {
  15. RoleArn string
  16. TriggerName string
  17. TriggerArn string
  18. UdfInfo *UdfInfo
  19. }
  20. type TriggerResponseBase struct {
  21. Code string
  22. Message string
  23. }
  24. type CreateTriggerResponseBody struct {
  25. TriggerResponseBase
  26. Etag string
  27. }
  28. type GetTriggerResponseBody struct {
  29. TriggerResponseBase
  30. Trigger *TriggerInfo
  31. }
  32. type ListTriggerResponseBody struct {
  33. TriggerResponseBase
  34. Triggers []*TriggerInfo
  35. }
  36. type UdfInfo struct {
  37. ServiceName string
  38. FunctionName string
  39. }
  40. type TriggerInfo struct {
  41. TriggerName string
  42. TriggerArn string
  43. AssumeRole string
  44. CreateTime int64
  45. InstanceName string
  46. DataTable string
  47. UdfInfo *UdfInfo
  48. Etag string
  49. TimerId string
  50. }