Documentation ¶
Index ¶
- type Client
- func (a *Client) GetMoviesID(params *GetMoviesIDParams, authInfo runtime.ClientAuthInfoWriter) (*GetMoviesIDOK, error)
- func (a *Client) GetMovieupdates(params *GetMovieupdatesParams, authInfo runtime.ClientAuthInfoWriter) (*GetMovieupdatesOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type GetMoviesIDNotFound
- type GetMoviesIDOK
- type GetMoviesIDParams
- func (o *GetMoviesIDParams) SetAcceptLanguage(acceptLanguage *string)
- func (o *GetMoviesIDParams) SetContext(ctx context.Context)
- func (o *GetMoviesIDParams) SetHTTPClient(client *http.Client)
- func (o *GetMoviesIDParams) SetID(id int64)
- func (o *GetMoviesIDParams) SetTimeout(timeout time.Duration)
- func (o *GetMoviesIDParams) WithAcceptLanguage(acceptLanguage *string) *GetMoviesIDParams
- func (o *GetMoviesIDParams) WithContext(ctx context.Context) *GetMoviesIDParams
- func (o *GetMoviesIDParams) WithHTTPClient(client *http.Client) *GetMoviesIDParams
- func (o *GetMoviesIDParams) WithID(id int64) *GetMoviesIDParams
- func (o *GetMoviesIDParams) WithTimeout(timeout time.Duration) *GetMoviesIDParams
- func (o *GetMoviesIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetMoviesIDReader
- type GetMoviesIDUnauthorized
- type GetMovieupdatesMethodNotAllowed
- type GetMovieupdatesOK
- type GetMovieupdatesParams
- func NewGetMovieupdatesParams() *GetMovieupdatesParams
- func NewGetMovieupdatesParamsWithContext(ctx context.Context) *GetMovieupdatesParams
- func NewGetMovieupdatesParamsWithHTTPClient(client *http.Client) *GetMovieupdatesParams
- func NewGetMovieupdatesParamsWithTimeout(timeout time.Duration) *GetMovieupdatesParams
- func (o *GetMovieupdatesParams) SetContext(ctx context.Context)
- func (o *GetMovieupdatesParams) SetHTTPClient(client *http.Client)
- func (o *GetMovieupdatesParams) SetSince(since string)
- func (o *GetMovieupdatesParams) SetTimeout(timeout time.Duration)
- func (o *GetMovieupdatesParams) WithContext(ctx context.Context) *GetMovieupdatesParams
- func (o *GetMovieupdatesParams) WithHTTPClient(client *http.Client) *GetMovieupdatesParams
- func (o *GetMovieupdatesParams) WithSince(since string) *GetMovieupdatesParams
- func (o *GetMovieupdatesParams) WithTimeout(timeout time.Duration) *GetMovieupdatesParams
- func (o *GetMovieupdatesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetMovieupdatesReader
- type GetMovieupdatesUnauthorized
- type GetMovieupdatesUnprocessableEntity
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 movies API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new movies API client.
func (*Client) GetMoviesID ¶
func (a *Client) GetMoviesID(params *GetMoviesIDParams, authInfo runtime.ClientAuthInfoWriter) (*GetMoviesIDOK, error)
GetMoviesID Returns a movies records that contains all information known about a particular movies id.
func (*Client) GetMovieupdates ¶
func (a *Client) GetMovieupdates(params *GetMovieupdatesParams, authInfo runtime.ClientAuthInfoWriter) (*GetMovieupdatesOK, error)
GetMovieupdates Returns all movies ids updated since a given timestamp.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type GetMoviesIDNotFound ¶
GetMoviesIDNotFound handles this case with default header values.
Returned if the given series ID does not exist
func NewGetMoviesIDNotFound ¶
func NewGetMoviesIDNotFound() *GetMoviesIDNotFound
NewGetMoviesIDNotFound creates a GetMoviesIDNotFound with default headers values
func (*GetMoviesIDNotFound) Error ¶
func (o *GetMoviesIDNotFound) Error() string
func (*GetMoviesIDNotFound) GetPayload ¶
func (o *GetMoviesIDNotFound) GetPayload() *models.NotFound
type GetMoviesIDOK ¶
GetMoviesIDOK handles this case with default header values.
A movie record.
func NewGetMoviesIDOK ¶
func NewGetMoviesIDOK() *GetMoviesIDOK
NewGetMoviesIDOK creates a GetMoviesIDOK with default headers values
func (*GetMoviesIDOK) Error ¶
func (o *GetMoviesIDOK) Error() string
func (*GetMoviesIDOK) GetPayload ¶
func (o *GetMoviesIDOK) GetPayload() *models.Movie
type GetMoviesIDParams ¶
type GetMoviesIDParams 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 /*ID ID of the movie */ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetMoviesIDParams contains all the parameters to send to the API endpoint for the get movies ID operation typically these are written to a http.Request
func NewGetMoviesIDParams ¶
func NewGetMoviesIDParams() *GetMoviesIDParams
NewGetMoviesIDParams creates a new GetMoviesIDParams object with the default values initialized.
func NewGetMoviesIDParamsWithContext ¶
func NewGetMoviesIDParamsWithContext(ctx context.Context) *GetMoviesIDParams
NewGetMoviesIDParamsWithContext creates a new GetMoviesIDParams object with the default values initialized, and the ability to set a context for a request
func NewGetMoviesIDParamsWithHTTPClient ¶
func NewGetMoviesIDParamsWithHTTPClient(client *http.Client) *GetMoviesIDParams
NewGetMoviesIDParamsWithHTTPClient creates a new GetMoviesIDParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetMoviesIDParamsWithTimeout ¶
func NewGetMoviesIDParamsWithTimeout(timeout time.Duration) *GetMoviesIDParams
NewGetMoviesIDParamsWithTimeout creates a new GetMoviesIDParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetMoviesIDParams) SetAcceptLanguage ¶
func (o *GetMoviesIDParams) SetAcceptLanguage(acceptLanguage *string)
SetAcceptLanguage adds the acceptLanguage to the get movies ID params
func (*GetMoviesIDParams) SetContext ¶
func (o *GetMoviesIDParams) SetContext(ctx context.Context)
SetContext adds the context to the get movies ID params
func (*GetMoviesIDParams) SetHTTPClient ¶
func (o *GetMoviesIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get movies ID params
func (*GetMoviesIDParams) SetID ¶
func (o *GetMoviesIDParams) SetID(id int64)
SetID adds the id to the get movies ID params
func (*GetMoviesIDParams) SetTimeout ¶
func (o *GetMoviesIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get movies ID params
func (*GetMoviesIDParams) WithAcceptLanguage ¶
func (o *GetMoviesIDParams) WithAcceptLanguage(acceptLanguage *string) *GetMoviesIDParams
WithAcceptLanguage adds the acceptLanguage to the get movies ID params
func (*GetMoviesIDParams) WithContext ¶
func (o *GetMoviesIDParams) WithContext(ctx context.Context) *GetMoviesIDParams
WithContext adds the context to the get movies ID params
func (*GetMoviesIDParams) WithHTTPClient ¶
func (o *GetMoviesIDParams) WithHTTPClient(client *http.Client) *GetMoviesIDParams
WithHTTPClient adds the HTTPClient to the get movies ID params
func (*GetMoviesIDParams) WithID ¶
func (o *GetMoviesIDParams) WithID(id int64) *GetMoviesIDParams
WithID adds the id to the get movies ID params
func (*GetMoviesIDParams) WithTimeout ¶
func (o *GetMoviesIDParams) WithTimeout(timeout time.Duration) *GetMoviesIDParams
WithTimeout adds the timeout to the get movies ID params
func (*GetMoviesIDParams) WriteToRequest ¶
func (o *GetMoviesIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetMoviesIDReader ¶
type GetMoviesIDReader struct {
// contains filtered or unexported fields
}
GetMoviesIDReader is a Reader for the GetMoviesID structure.
func (*GetMoviesIDReader) ReadResponse ¶
func (o *GetMoviesIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetMoviesIDUnauthorized ¶
type GetMoviesIDUnauthorized struct {
}GetMoviesIDUnauthorized handles this case with default header values.
Returned if your JWT token is missing or expired
func NewGetMoviesIDUnauthorized ¶
func NewGetMoviesIDUnauthorized() *GetMoviesIDUnauthorized
NewGetMoviesIDUnauthorized creates a GetMoviesIDUnauthorized with default headers values
func (*GetMoviesIDUnauthorized) Error ¶
func (o *GetMoviesIDUnauthorized) Error() string
func (*GetMoviesIDUnauthorized) GetPayload ¶
func (o *GetMoviesIDUnauthorized) GetPayload() *models.NotAuthorized
type GetMovieupdatesMethodNotAllowed ¶
type GetMovieupdatesMethodNotAllowed struct {
Payload *models.InvalidQueryParams
}
GetMovieupdatesMethodNotAllowed handles this case with default header values.
Missing query params are given
func NewGetMovieupdatesMethodNotAllowed ¶
func NewGetMovieupdatesMethodNotAllowed() *GetMovieupdatesMethodNotAllowed
NewGetMovieupdatesMethodNotAllowed creates a GetMovieupdatesMethodNotAllowed with default headers values
func (*GetMovieupdatesMethodNotAllowed) Error ¶
func (o *GetMovieupdatesMethodNotAllowed) Error() string
func (*GetMovieupdatesMethodNotAllowed) GetPayload ¶
func (o *GetMovieupdatesMethodNotAllowed) GetPayload() *models.InvalidQueryParams
type GetMovieupdatesOK ¶
type GetMovieupdatesOK struct {
Payload *models.UpdatedMovies
}
GetMovieupdatesOK handles this case with default header values.
All movies ids updated since a given date
func NewGetMovieupdatesOK ¶
func NewGetMovieupdatesOK() *GetMovieupdatesOK
NewGetMovieupdatesOK creates a GetMovieupdatesOK with default headers values
func (*GetMovieupdatesOK) Error ¶
func (o *GetMovieupdatesOK) Error() string
func (*GetMovieupdatesOK) GetPayload ¶
func (o *GetMovieupdatesOK) GetPayload() *models.UpdatedMovies
type GetMovieupdatesParams ¶
type GetMovieupdatesParams struct { /*Since Epoch time to start your date range. */ Since string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetMovieupdatesParams contains all the parameters to send to the API endpoint for the get movieupdates operation typically these are written to a http.Request
func NewGetMovieupdatesParams ¶
func NewGetMovieupdatesParams() *GetMovieupdatesParams
NewGetMovieupdatesParams creates a new GetMovieupdatesParams object with the default values initialized.
func NewGetMovieupdatesParamsWithContext ¶
func NewGetMovieupdatesParamsWithContext(ctx context.Context) *GetMovieupdatesParams
NewGetMovieupdatesParamsWithContext creates a new GetMovieupdatesParams object with the default values initialized, and the ability to set a context for a request
func NewGetMovieupdatesParamsWithHTTPClient ¶
func NewGetMovieupdatesParamsWithHTTPClient(client *http.Client) *GetMovieupdatesParams
NewGetMovieupdatesParamsWithHTTPClient creates a new GetMovieupdatesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetMovieupdatesParamsWithTimeout ¶
func NewGetMovieupdatesParamsWithTimeout(timeout time.Duration) *GetMovieupdatesParams
NewGetMovieupdatesParamsWithTimeout creates a new GetMovieupdatesParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetMovieupdatesParams) SetContext ¶
func (o *GetMovieupdatesParams) SetContext(ctx context.Context)
SetContext adds the context to the get movieupdates params
func (*GetMovieupdatesParams) SetHTTPClient ¶
func (o *GetMovieupdatesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get movieupdates params
func (*GetMovieupdatesParams) SetSince ¶
func (o *GetMovieupdatesParams) SetSince(since string)
SetSince adds the since to the get movieupdates params
func (*GetMovieupdatesParams) SetTimeout ¶
func (o *GetMovieupdatesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get movieupdates params
func (*GetMovieupdatesParams) WithContext ¶
func (o *GetMovieupdatesParams) WithContext(ctx context.Context) *GetMovieupdatesParams
WithContext adds the context to the get movieupdates params
func (*GetMovieupdatesParams) WithHTTPClient ¶
func (o *GetMovieupdatesParams) WithHTTPClient(client *http.Client) *GetMovieupdatesParams
WithHTTPClient adds the HTTPClient to the get movieupdates params
func (*GetMovieupdatesParams) WithSince ¶
func (o *GetMovieupdatesParams) WithSince(since string) *GetMovieupdatesParams
WithSince adds the since to the get movieupdates params
func (*GetMovieupdatesParams) WithTimeout ¶
func (o *GetMovieupdatesParams) WithTimeout(timeout time.Duration) *GetMovieupdatesParams
WithTimeout adds the timeout to the get movieupdates params
func (*GetMovieupdatesParams) WriteToRequest ¶
func (o *GetMovieupdatesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetMovieupdatesReader ¶
type GetMovieupdatesReader struct {
// contains filtered or unexported fields
}
GetMovieupdatesReader is a Reader for the GetMovieupdates structure.
func (*GetMovieupdatesReader) ReadResponse ¶
func (o *GetMovieupdatesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetMovieupdatesUnauthorized ¶
type GetMovieupdatesUnauthorized struct {
}GetMovieupdatesUnauthorized handles this case with default header values.
Returned if your JWT token is missing or expired
func NewGetMovieupdatesUnauthorized ¶
func NewGetMovieupdatesUnauthorized() *GetMovieupdatesUnauthorized
NewGetMovieupdatesUnauthorized creates a GetMovieupdatesUnauthorized with default headers values
func (*GetMovieupdatesUnauthorized) Error ¶
func (o *GetMovieupdatesUnauthorized) Error() string
func (*GetMovieupdatesUnauthorized) GetPayload ¶
func (o *GetMovieupdatesUnauthorized) GetPayload() *models.NotAuthorized
type GetMovieupdatesUnprocessableEntity ¶
type GetMovieupdatesUnprocessableEntity struct {
Payload *models.InvalidQueryParams
}
GetMovieupdatesUnprocessableEntity handles this case with default header values.
Invalid query params provided
func NewGetMovieupdatesUnprocessableEntity ¶
func NewGetMovieupdatesUnprocessableEntity() *GetMovieupdatesUnprocessableEntity
NewGetMovieupdatesUnprocessableEntity creates a GetMovieupdatesUnprocessableEntity with default headers values
func (*GetMovieupdatesUnprocessableEntity) Error ¶
func (o *GetMovieupdatesUnprocessableEntity) Error() string
func (*GetMovieupdatesUnprocessableEntity) GetPayload ¶
func (o *GetMovieupdatesUnprocessableEntity) GetPayload() *models.InvalidQueryParams