get-calendar-events.asciidoc 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. --
  2. :api: get-calendar-events
  3. :request: GetCalendarEventsRequest
  4. :response: GetCalendarEventsResponse
  5. --
  6. [id="{upid}-{api}"]
  7. === Get calendar events API
  8. Retrieves a calendar's events.
  9. It accepts a +{request}+ and responds
  10. with a +{response}+ object.
  11. [id="{upid}-{api}-request"]
  12. ==== Get calendars request
  13. A +{request}+ requires a non-null calendar ID.
  14. Using the literal `_all` returns the events for all calendars.
  15. ["source","java",subs="attributes,callouts,macros"]
  16. --------------------------------------------------
  17. include-tagged::{doc-tests-file}[{api}-request]
  18. --------------------------------------------------
  19. <1> Constructing a new request for the specified calendarId.
  20. ==== Optional arguments
  21. The following arguments are optional:
  22. ["source","java",subs="attributes,callouts,macros"]
  23. --------------------------------------------------
  24. include-tagged::{doc-tests-file}[{api}-page]
  25. --------------------------------------------------
  26. <1> The page parameters `from` and `size`. `from` specifies the number of events to skip.
  27. `size` specifies the maximum number of events to get. Defaults to `0` and `100` respectively.
  28. ["source","java",subs="attributes,callouts,macros"]
  29. --------------------------------------------------
  30. include-tagged::{doc-tests-file}[{api}-start]
  31. --------------------------------------------------
  32. <1> Specifies to get events with timestamps after this time.
  33. ["source","java",subs="attributes,callouts,macros"]
  34. --------------------------------------------------
  35. include-tagged::{doc-tests-file}[{api}-end]
  36. --------------------------------------------------
  37. <1> Specifies to get events with timestamps earlier than this time.
  38. ["source","java",subs="attributes,callouts,macros"]
  39. --------------------------------------------------
  40. include-tagged::{doc-tests-file}[{api}-jobid]
  41. --------------------------------------------------
  42. <1> Get events for the job. When this option is used calendar_id must be `_all`.
  43. include::../execution.asciidoc[]
  44. [id="{upid}-{api}-response"]
  45. ==== Get calendars response
  46. The returned +{response}+ contains the requested events:
  47. ["source","java",subs="attributes,callouts,macros"]
  48. --------------------------------------------------
  49. include-tagged::{doc-tests-file}[{api}-response]
  50. --------------------------------------------------
  51. <1> The count of events that were matched.
  52. <2> The events retrieved.