updates

package
v0.0.0-...-6fcb5ef Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2020 License: MPL-2.0 Imports: 10 Imported by: 0

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
}

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

type GetUpdatedQueryNotFound struct {
	Payload *models.NotFound
}

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

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

type GetUpdatedQueryParamsNotFound struct {
	Payload *models.NotFound
}

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 (*GetUpdatedQueryParamsNotFound) GetPayload

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

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

WithContext adds the context to the get updated query params params

func (*GetUpdatedQueryParamsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get updated query params params

func (*GetUpdatedQueryParamsParams) WithTimeout

WithTimeout adds the timeout to the get updated query params params

func (*GetUpdatedQueryParamsParams) WriteToRequest

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 {
	Payload *models.NotAuthorized
}

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 (*GetUpdatedQueryParamsUnauthorized) GetPayload

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 {
	Payload *models.NotAuthorized
}

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 (*GetUpdatedQueryUnauthorized) GetPayload

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL