Advertisement
infogulch

openapi-generated go code for linode api

Sep 22nd, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 0.72 KB | None | 0 0
  1. // model_pagination_envelope.go
  2. package openapi
  3.  
  4. // An envelope for paginated response. When accessing a collection through a GET endpoint, the results are wrapped in this envelope which includes metadata about those results.
  5. type PaginationEnvelope struct {
  6.     Data []map[string]interface{} `json:"data"`
  7.     Pages int32 `json:"pages"`
  8.     Page int32 `json:"page"`
  9.     Results int32 `json:"results"`
  10. }
  11.  
  12. // model_inline_response_200.go
  13. package openapi
  14.  
  15. type InlineResponse200 struct {
  16.     Data []Event `json:"data,omitempty"`
  17.     Page Page `json:"page,omitempty"`           // !!! Page doesn't exist. Should be int32 or something
  18.     Pages Pages `json:"pages,omitempty"`        // !!!
  19.     Results Results `json:"results,omitempty"`  // !!!
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement