Documentation ¶
Index ¶
- type Client
- type GetEpisodesIDNotFound
- type GetEpisodesIDOK
- type GetEpisodesIDParams
- func (o *GetEpisodesIDParams) SetAcceptLanguage(acceptLanguage *string)
- func (o *GetEpisodesIDParams) SetContext(ctx context.Context)
- func (o *GetEpisodesIDParams) SetHTTPClient(client *http.Client)
- func (o *GetEpisodesIDParams) SetID(id int64)
- func (o *GetEpisodesIDParams) SetTimeout(timeout time.Duration)
- func (o *GetEpisodesIDParams) WithAcceptLanguage(acceptLanguage *string) *GetEpisodesIDParams
- func (o *GetEpisodesIDParams) WithContext(ctx context.Context) *GetEpisodesIDParams
- func (o *GetEpisodesIDParams) WithHTTPClient(client *http.Client) *GetEpisodesIDParams
- func (o *GetEpisodesIDParams) WithID(id int64) *GetEpisodesIDParams
- func (o *GetEpisodesIDParams) WithTimeout(timeout time.Duration) *GetEpisodesIDParams
- func (o *GetEpisodesIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetEpisodesIDReader
- type GetEpisodesIDUnauthorized
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 episodes API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new episodes API client.
func (*Client) GetEpisodesID ¶
func (a *Client) GetEpisodesID(params *GetEpisodesIDParams, authInfo runtime.ClientAuthInfoWriter) (*GetEpisodesIDOK, error)
GetEpisodesID Returns the full information for a given episode id. __Deprecation Warning:__ The _director_ key will be deprecated in favor of the new _directors_ key in a future release.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type GetEpisodesIDNotFound ¶
GetEpisodesIDNotFound handles this case with default header values.
Returned if the given episode ID does not exist.
func NewGetEpisodesIDNotFound ¶
func NewGetEpisodesIDNotFound() *GetEpisodesIDNotFound
NewGetEpisodesIDNotFound creates a GetEpisodesIDNotFound with default headers values
func (*GetEpisodesIDNotFound) Error ¶
func (o *GetEpisodesIDNotFound) Error() string
func (*GetEpisodesIDNotFound) GetPayload ¶
func (o *GetEpisodesIDNotFound) GetPayload() *models.NotFound
type GetEpisodesIDOK ¶
type GetEpisodesIDOK struct {
Payload *models.EpisodeRecordData
}
GetEpisodesIDOK handles this case with default header values.
An array of query keys as strings
func NewGetEpisodesIDOK ¶
func NewGetEpisodesIDOK() *GetEpisodesIDOK
NewGetEpisodesIDOK creates a GetEpisodesIDOK with default headers values
func (*GetEpisodesIDOK) Error ¶
func (o *GetEpisodesIDOK) Error() string
func (*GetEpisodesIDOK) GetPayload ¶
func (o *GetEpisodesIDOK) GetPayload() *models.EpisodeRecordData
type GetEpisodesIDParams ¶
type GetEpisodesIDParams 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 episode */ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetEpisodesIDParams contains all the parameters to send to the API endpoint for the get episodes ID operation typically these are written to a http.Request
func NewGetEpisodesIDParams ¶
func NewGetEpisodesIDParams() *GetEpisodesIDParams
NewGetEpisodesIDParams creates a new GetEpisodesIDParams object with the default values initialized.
func NewGetEpisodesIDParamsWithContext ¶
func NewGetEpisodesIDParamsWithContext(ctx context.Context) *GetEpisodesIDParams
NewGetEpisodesIDParamsWithContext creates a new GetEpisodesIDParams object with the default values initialized, and the ability to set a context for a request
func NewGetEpisodesIDParamsWithHTTPClient ¶
func NewGetEpisodesIDParamsWithHTTPClient(client *http.Client) *GetEpisodesIDParams
NewGetEpisodesIDParamsWithHTTPClient creates a new GetEpisodesIDParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetEpisodesIDParamsWithTimeout ¶
func NewGetEpisodesIDParamsWithTimeout(timeout time.Duration) *GetEpisodesIDParams
NewGetEpisodesIDParamsWithTimeout creates a new GetEpisodesIDParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetEpisodesIDParams) SetAcceptLanguage ¶
func (o *GetEpisodesIDParams) SetAcceptLanguage(acceptLanguage *string)
SetAcceptLanguage adds the acceptLanguage to the get episodes ID params
func (*GetEpisodesIDParams) SetContext ¶
func (o *GetEpisodesIDParams) SetContext(ctx context.Context)
SetContext adds the context to the get episodes ID params
func (*GetEpisodesIDParams) SetHTTPClient ¶
func (o *GetEpisodesIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get episodes ID params
func (*GetEpisodesIDParams) SetID ¶
func (o *GetEpisodesIDParams) SetID(id int64)
SetID adds the id to the get episodes ID params
func (*GetEpisodesIDParams) SetTimeout ¶
func (o *GetEpisodesIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get episodes ID params
func (*GetEpisodesIDParams) WithAcceptLanguage ¶
func (o *GetEpisodesIDParams) WithAcceptLanguage(acceptLanguage *string) *GetEpisodesIDParams
WithAcceptLanguage adds the acceptLanguage to the get episodes ID params
func (*GetEpisodesIDParams) WithContext ¶
func (o *GetEpisodesIDParams) WithContext(ctx context.Context) *GetEpisodesIDParams
WithContext adds the context to the get episodes ID params
func (*GetEpisodesIDParams) WithHTTPClient ¶
func (o *GetEpisodesIDParams) WithHTTPClient(client *http.Client) *GetEpisodesIDParams
WithHTTPClient adds the HTTPClient to the get episodes ID params
func (*GetEpisodesIDParams) WithID ¶
func (o *GetEpisodesIDParams) WithID(id int64) *GetEpisodesIDParams
WithID adds the id to the get episodes ID params
func (*GetEpisodesIDParams) WithTimeout ¶
func (o *GetEpisodesIDParams) WithTimeout(timeout time.Duration) *GetEpisodesIDParams
WithTimeout adds the timeout to the get episodes ID params
func (*GetEpisodesIDParams) WriteToRequest ¶
func (o *GetEpisodesIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetEpisodesIDReader ¶
type GetEpisodesIDReader struct {
// contains filtered or unexported fields
}
GetEpisodesIDReader is a Reader for the GetEpisodesID structure.
func (*GetEpisodesIDReader) ReadResponse ¶
func (o *GetEpisodesIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetEpisodesIDUnauthorized ¶
type GetEpisodesIDUnauthorized struct {
}GetEpisodesIDUnauthorized handles this case with default header values.
Returned if your JWT token is missing or expired
func NewGetEpisodesIDUnauthorized ¶
func NewGetEpisodesIDUnauthorized() *GetEpisodesIDUnauthorized
NewGetEpisodesIDUnauthorized creates a GetEpisodesIDUnauthorized with default headers values
func (*GetEpisodesIDUnauthorized) Error ¶
func (o *GetEpisodesIDUnauthorized) Error() string
func (*GetEpisodesIDUnauthorized) GetPayload ¶
func (o *GetEpisodesIDUnauthorized) GetPayload() *models.NotAuthorized