Documentation
¶
Index ¶
- type Client
- func (a *Client) GetUpdatedQuery(params *GetUpdatedQueryParams, authInfo runtime.ClientAuthInfoWriter) (*GetUpdatedQueryOK, error)
- func (a *Client) GetUpdatedQueryParams(params *GetUpdatedQueryParamsParams, authInfo runtime.ClientAuthInfoWriter) (*GetUpdatedQueryParamsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type GetUpdatedQueryNotFound
- type GetUpdatedQueryOK
- type GetUpdatedQueryParams
- func NewGetUpdatedQueryParams() *GetUpdatedQueryParams
- func NewGetUpdatedQueryParamsWithContext(ctx context.Context) *GetUpdatedQueryParams
- func NewGetUpdatedQueryParamsWithHTTPClient(client *http.Client) *GetUpdatedQueryParams
- func NewGetUpdatedQueryParamsWithTimeout(timeout time.Duration) *GetUpdatedQueryParams
- func (o *GetUpdatedQueryParams) SetAcceptLanguage(acceptLanguage *string)
- func (o *GetUpdatedQueryParams) SetContext(ctx context.Context)
- func (o *GetUpdatedQueryParams) SetFromTime(fromTime string)
- func (o *GetUpdatedQueryParams) SetHTTPClient(client *http.Client)
- func (o *GetUpdatedQueryParams) SetTimeout(timeout time.Duration)
- func (o *GetUpdatedQueryParams) SetToTime(toTime *string)
- func (o *GetUpdatedQueryParams) WithAcceptLanguage(acceptLanguage *string) *GetUpdatedQueryParams
- func (o *GetUpdatedQueryParams) WithContext(ctx context.Context) *GetUpdatedQueryParams
- func (o *GetUpdatedQueryParams) WithFromTime(fromTime string) *GetUpdatedQueryParams
- func (o *GetUpdatedQueryParams) WithHTTPClient(client *http.Client) *GetUpdatedQueryParams
- func (o *GetUpdatedQueryParams) WithTimeout(timeout time.Duration) *GetUpdatedQueryParams
- func (o *GetUpdatedQueryParams) WithToTime(toTime *string) *GetUpdatedQueryParams
- func (o *GetUpdatedQueryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetUpdatedQueryParamsNotFound
- type GetUpdatedQueryParamsOK
- type GetUpdatedQueryParamsParams
- func NewGetUpdatedQueryParamsParams() *GetUpdatedQueryParamsParams
- func NewGetUpdatedQueryParamsParamsWithContext(ctx context.Context) *GetUpdatedQueryParamsParams
- func NewGetUpdatedQueryParamsParamsWithHTTPClient(client *http.Client) *GetUpdatedQueryParamsParams
- func NewGetUpdatedQueryParamsParamsWithTimeout(timeout time.Duration) *GetUpdatedQueryParamsParams
- func (o *GetUpdatedQueryParamsParams) SetContext(ctx context.Context)
- func (o *GetUpdatedQueryParamsParams) SetHTTPClient(client *http.Client)
- func (o *GetUpdatedQueryParamsParams) SetTimeout(timeout time.Duration)
- func (o *GetUpdatedQueryParamsParams) WithContext(ctx context.Context) *GetUpdatedQueryParamsParams
- func (o *GetUpdatedQueryParamsParams) WithHTTPClient(client *http.Client) *GetUpdatedQueryParamsParams
- func (o *GetUpdatedQueryParamsParams) WithTimeout(timeout time.Duration) *GetUpdatedQueryParamsParams
- func (o *GetUpdatedQueryParamsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetUpdatedQueryParamsReader
- type GetUpdatedQueryParamsUnauthorized
- type GetUpdatedQueryReader
- type GetUpdatedQueryUnauthorized
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
}
Client for updates API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new updates API client.
func (*Client) GetUpdatedQuery ¶
func (a *Client) GetUpdatedQuery(params *GetUpdatedQueryParams, authInfo runtime.ClientAuthInfoWriter) (*GetUpdatedQueryOK, error)
GetUpdatedQuery Returns an array of series that have changed in a maximum of one week blocks since the provided `fromTime`.
The user may specify a `toTime` to grab results for less than a week. Any timespan larger than a week will be reduced down to one week automatically.
func (*Client) GetUpdatedQueryParams ¶
func (a *Client) GetUpdatedQueryParams(params *GetUpdatedQueryParamsParams, authInfo runtime.ClientAuthInfoWriter) (*GetUpdatedQueryParamsOK, error)
GetUpdatedQueryParams Returns an array of valid query keys for the `/updated/query/params` route.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type GetUpdatedQueryNotFound ¶
GetUpdatedQueryNotFound handles this case with default header values.
Returned if no records exist for the given timespan
func NewGetUpdatedQueryNotFound ¶
func NewGetUpdatedQueryNotFound() *GetUpdatedQueryNotFound
NewGetUpdatedQueryNotFound creates a GetUpdatedQueryNotFound with default headers values
func (*GetUpdatedQueryNotFound) Error ¶
func (o *GetUpdatedQueryNotFound) Error() string
func (*GetUpdatedQueryNotFound) GetPayload ¶
func (o *GetUpdatedQueryNotFound) GetPayload() *models.NotFound
type GetUpdatedQueryOK ¶
type GetUpdatedQueryOK struct {
Payload *models.UpdateData
}
GetUpdatedQueryOK handles this case with default header values.
An array of Update objects that match the given timeframe.
func NewGetUpdatedQueryOK ¶
func NewGetUpdatedQueryOK() *GetUpdatedQueryOK
NewGetUpdatedQueryOK creates a GetUpdatedQueryOK with default headers values
func (*GetUpdatedQueryOK) Error ¶
func (o *GetUpdatedQueryOK) Error() string
func (*GetUpdatedQueryOK) GetPayload ¶
func (o *GetUpdatedQueryOK) GetPayload() *models.UpdateData
type GetUpdatedQueryParams ¶
type GetUpdatedQueryParams struct { /*AcceptLanguage Records are returned with the some fields in the desired language, if it exists. If there is no translation for the given language, then the record is still returned but with empty values for the translated fields. */ AcceptLanguage *string /*FromTime Epoch time to start your date range. */ FromTime string /*ToTime Epoch time to end your date range. Must be one week from `fromTime`. */ ToTime *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetUpdatedQueryParams contains all the parameters to send to the API endpoint for the get updated query operation typically these are written to a http.Request
func NewGetUpdatedQueryParams ¶
func NewGetUpdatedQueryParams() *GetUpdatedQueryParams
NewGetUpdatedQueryParams creates a new GetUpdatedQueryParams object with the default values initialized.
func NewGetUpdatedQueryParamsWithContext ¶
func NewGetUpdatedQueryParamsWithContext(ctx context.Context) *GetUpdatedQueryParams
NewGetUpdatedQueryParamsWithContext creates a new GetUpdatedQueryParams object with the default values initialized, and the ability to set a context for a request
func NewGetUpdatedQueryParamsWithHTTPClient ¶
func NewGetUpdatedQueryParamsWithHTTPClient(client *http.Client) *GetUpdatedQueryParams
NewGetUpdatedQueryParamsWithHTTPClient creates a new GetUpdatedQueryParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetUpdatedQueryParamsWithTimeout ¶
func NewGetUpdatedQueryParamsWithTimeout(timeout time.Duration) *GetUpdatedQueryParams
NewGetUpdatedQueryParamsWithTimeout creates a new GetUpdatedQueryParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetUpdatedQueryParams) SetAcceptLanguage ¶
func (o *GetUpdatedQueryParams) SetAcceptLanguage(acceptLanguage *string)
SetAcceptLanguage adds the acceptLanguage to the get updated query params
func (*GetUpdatedQueryParams) SetContext ¶
func (o *GetUpdatedQueryParams) SetContext(ctx context.Context)
SetContext adds the context to the get updated query params
func (*GetUpdatedQueryParams) SetFromTime ¶
func (o *GetUpdatedQueryParams) SetFromTime(fromTime string)
SetFromTime adds the fromTime to the get updated query params
func (*GetUpdatedQueryParams) SetHTTPClient ¶
func (o *GetUpdatedQueryParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get updated query params
func (*GetUpdatedQueryParams) SetTimeout ¶
func (o *GetUpdatedQueryParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get updated query params
func (*GetUpdatedQueryParams) SetToTime ¶
func (o *GetUpdatedQueryParams) SetToTime(toTime *string)
SetToTime adds the toTime to the get updated query params
func (*GetUpdatedQueryParams) WithAcceptLanguage ¶
func (o *GetUpdatedQueryParams) WithAcceptLanguage(acceptLanguage *string) *GetUpdatedQueryParams
WithAcceptLanguage adds the acceptLanguage to the get updated query params
func (*GetUpdatedQueryParams) WithContext ¶
func (o *GetUpdatedQueryParams) WithContext(ctx context.Context) *GetUpdatedQueryParams
WithContext adds the context to the get updated query params
func (*GetUpdatedQueryParams) WithFromTime ¶
func (o *GetUpdatedQueryParams) WithFromTime(fromTime string) *GetUpdatedQueryParams
WithFromTime adds the fromTime to the get updated query params
func (*GetUpdatedQueryParams) WithHTTPClient ¶
func (o *GetUpdatedQueryParams) WithHTTPClient(client *http.Client) *GetUpdatedQueryParams
WithHTTPClient adds the HTTPClient to the get updated query params
func (*GetUpdatedQueryParams) WithTimeout ¶
func (o *GetUpdatedQueryParams) WithTimeout(timeout time.Duration) *GetUpdatedQueryParams
WithTimeout adds the timeout to the get updated query params
func (*GetUpdatedQueryParams) WithToTime ¶
func (o *GetUpdatedQueryParams) WithToTime(toTime *string) *GetUpdatedQueryParams
WithToTime adds the toTime to the get updated query params
func (*GetUpdatedQueryParams) WriteToRequest ¶
func (o *GetUpdatedQueryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetUpdatedQueryParamsNotFound ¶
GetUpdatedQueryParamsNotFound handles this case with default header values.
Returned if no records exist for the given timespan
func NewGetUpdatedQueryParamsNotFound ¶
func NewGetUpdatedQueryParamsNotFound() *GetUpdatedQueryParamsNotFound
NewGetUpdatedQueryParamsNotFound creates a GetUpdatedQueryParamsNotFound with default headers values
func (*GetUpdatedQueryParamsNotFound) Error ¶
func (o *GetUpdatedQueryParamsNotFound) Error() string
func (*GetUpdatedQueryParamsNotFound) GetPayload ¶
func (o *GetUpdatedQueryParamsNotFound) GetPayload() *models.NotFound
type GetUpdatedQueryParamsOK ¶
type GetUpdatedQueryParamsOK struct {
Payload *models.UpdateDataQueryParams
}
GetUpdatedQueryParamsOK handles this case with default header values.
An array of Update objects that match the given timeframe.
func NewGetUpdatedQueryParamsOK ¶
func NewGetUpdatedQueryParamsOK() *GetUpdatedQueryParamsOK
NewGetUpdatedQueryParamsOK creates a GetUpdatedQueryParamsOK with default headers values
func (*GetUpdatedQueryParamsOK) Error ¶
func (o *GetUpdatedQueryParamsOK) Error() string
func (*GetUpdatedQueryParamsOK) GetPayload ¶
func (o *GetUpdatedQueryParamsOK) GetPayload() *models.UpdateDataQueryParams
type GetUpdatedQueryParamsParams ¶
type GetUpdatedQueryParamsParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetUpdatedQueryParamsParams contains all the parameters to send to the API endpoint for the get updated query params operation typically these are written to a http.Request
func NewGetUpdatedQueryParamsParams ¶
func NewGetUpdatedQueryParamsParams() *GetUpdatedQueryParamsParams
NewGetUpdatedQueryParamsParams creates a new GetUpdatedQueryParamsParams object with the default values initialized.
func NewGetUpdatedQueryParamsParamsWithContext ¶
func NewGetUpdatedQueryParamsParamsWithContext(ctx context.Context) *GetUpdatedQueryParamsParams
NewGetUpdatedQueryParamsParamsWithContext creates a new GetUpdatedQueryParamsParams object with the default values initialized, and the ability to set a context for a request
func NewGetUpdatedQueryParamsParamsWithHTTPClient ¶
func NewGetUpdatedQueryParamsParamsWithHTTPClient(client *http.Client) *GetUpdatedQueryParamsParams
NewGetUpdatedQueryParamsParamsWithHTTPClient creates a new GetUpdatedQueryParamsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetUpdatedQueryParamsParamsWithTimeout ¶
func NewGetUpdatedQueryParamsParamsWithTimeout(timeout time.Duration) *GetUpdatedQueryParamsParams
NewGetUpdatedQueryParamsParamsWithTimeout creates a new GetUpdatedQueryParamsParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetUpdatedQueryParamsParams) SetContext ¶
func (o *GetUpdatedQueryParamsParams) SetContext(ctx context.Context)
SetContext adds the context to the get updated query params params
func (*GetUpdatedQueryParamsParams) SetHTTPClient ¶
func (o *GetUpdatedQueryParamsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get updated query params params
func (*GetUpdatedQueryParamsParams) SetTimeout ¶
func (o *GetUpdatedQueryParamsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get updated query params params
func (*GetUpdatedQueryParamsParams) WithContext ¶
func (o *GetUpdatedQueryParamsParams) WithContext(ctx context.Context) *GetUpdatedQueryParamsParams
WithContext adds the context to the get updated query params params
func (*GetUpdatedQueryParamsParams) WithHTTPClient ¶
func (o *GetUpdatedQueryParamsParams) WithHTTPClient(client *http.Client) *GetUpdatedQueryParamsParams
WithHTTPClient adds the HTTPClient to the get updated query params params
func (*GetUpdatedQueryParamsParams) WithTimeout ¶
func (o *GetUpdatedQueryParamsParams) WithTimeout(timeout time.Duration) *GetUpdatedQueryParamsParams
WithTimeout adds the timeout to the get updated query params params
func (*GetUpdatedQueryParamsParams) WriteToRequest ¶
func (o *GetUpdatedQueryParamsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetUpdatedQueryParamsReader ¶
type GetUpdatedQueryParamsReader struct {
// contains filtered or unexported fields
}
GetUpdatedQueryParamsReader is a Reader for the GetUpdatedQueryParams structure.
func (*GetUpdatedQueryParamsReader) ReadResponse ¶
func (o *GetUpdatedQueryParamsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetUpdatedQueryParamsUnauthorized ¶
type GetUpdatedQueryParamsUnauthorized struct {
}GetUpdatedQueryParamsUnauthorized handles this case with default header values.
Returned if your JWT token is missing or expired
func NewGetUpdatedQueryParamsUnauthorized ¶
func NewGetUpdatedQueryParamsUnauthorized() *GetUpdatedQueryParamsUnauthorized
NewGetUpdatedQueryParamsUnauthorized creates a GetUpdatedQueryParamsUnauthorized with default headers values
func (*GetUpdatedQueryParamsUnauthorized) Error ¶
func (o *GetUpdatedQueryParamsUnauthorized) Error() string
func (*GetUpdatedQueryParamsUnauthorized) GetPayload ¶
func (o *GetUpdatedQueryParamsUnauthorized) GetPayload() *models.NotAuthorized
type GetUpdatedQueryReader ¶
type GetUpdatedQueryReader struct {
// contains filtered or unexported fields
}
GetUpdatedQueryReader is a Reader for the GetUpdatedQuery structure.
func (*GetUpdatedQueryReader) ReadResponse ¶
func (o *GetUpdatedQueryReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetUpdatedQueryUnauthorized ¶
type GetUpdatedQueryUnauthorized struct {
}GetUpdatedQueryUnauthorized handles this case with default header values.
Returned if your JWT token is missing or expired
func NewGetUpdatedQueryUnauthorized ¶
func NewGetUpdatedQueryUnauthorized() *GetUpdatedQueryUnauthorized
NewGetUpdatedQueryUnauthorized creates a GetUpdatedQueryUnauthorized with default headers values
func (*GetUpdatedQueryUnauthorized) Error ¶
func (o *GetUpdatedQueryUnauthorized) Error() string
func (*GetUpdatedQueryUnauthorized) GetPayload ¶
func (o *GetUpdatedQueryUnauthorized) GetPayload() *models.NotAuthorized