Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(configuration *configuration.Configuration, apiClient client.HttpClient) *Client
func (*Client) GetAllReports ¶
func (c *Client) GetAllReports(query QueryFilter) (*QueryResponse, error)
func (*Client) GetReportDetails ¶
func (c *Client) GetReportDetails(reportId string) (*ReportResponse, error)
func (*Client) GetReportFile ¶
func (c *Client) GetReportFile(reportId, fileId string) (*common.ContentResponse, error)
type QueryFilter ¶
type QueryFilter struct { CreatedAfter *time.Time `url:"created_after,omitempty" layout:"2006-01-02"` CreatedBefore *time.Time `url:"created_before,omitempty" layout:"2006-01-02"` EntityId string `url:"entity_id,omitempty"` Limit int `url:"limit,omitempty"` PaginationToken string `url:"pagination_token,omitempty"` }
type QueryResponse ¶
type QueryResponse struct { HttpMetadata common.HttpMetadata Count int `json:"count,omitempty"` Limit uint8 `json:"limit,omitempty"` Data []ReportResponse `json:"data,omitempty"` Links map[string]common.Link `json:"_links"` }
type ReportResponse ¶
type ReportResponse struct { HttpMetadata common.HttpMetadata Id string `json:"id,omitempty"` CreatedOn string `json:"created_on,omitempty"` LastModifiedOn string `json:"last_modified_on,omitempty"` Type string `json:"type,omitempty"` Description string `json:"description,omitempty"` Account *Account `json:"account,omitempty"` Tags []string `json:"tags,omitempty"` From *time.Time `json:"from,omitempty"` To *time.Time `json:"to,omitempty"` Files []File `json:"files,omitempty"` Links map[string]common.Link `json:"_links"` }
Click to show internal directories.
Click to hide internal directories.