Documentation ¶
Index ¶
- type Client
- func (a *Client) CreatePlaylist(body *models.CreatePlaylistCommand, opts ...ClientOption) (*CreatePlaylistOK, error)
- func (a *Client) CreatePlaylistWithParams(params *CreatePlaylistParams, opts ...ClientOption) (*CreatePlaylistOK, error)
- func (a *Client) DeletePlaylist(uid string, opts ...ClientOption) (*DeletePlaylistOK, error)
- func (a *Client) DeletePlaylistWithParams(params *DeletePlaylistParams, opts ...ClientOption) (*DeletePlaylistOK, error)
- func (a *Client) GetPlaylist(uid string, opts ...ClientOption) (*GetPlaylistOK, error)
- func (a *Client) GetPlaylistItems(uid string, opts ...ClientOption) (*GetPlaylistItemsOK, error)
- func (a *Client) GetPlaylistItemsWithParams(params *GetPlaylistItemsParams, opts ...ClientOption) (*GetPlaylistItemsOK, error)
- func (a *Client) GetPlaylistWithParams(params *GetPlaylistParams, opts ...ClientOption) (*GetPlaylistOK, error)
- func (a *Client) SearchPlaylists(params *SearchPlaylistsParams, opts ...ClientOption) (*SearchPlaylistsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdatePlaylist(uid string, body *models.UpdatePlaylistCommand, opts ...ClientOption) (*UpdatePlaylistOK, error)
- func (a *Client) UpdatePlaylistWithParams(params *UpdatePlaylistParams, opts ...ClientOption) (*UpdatePlaylistOK, error)
- type ClientOption
- type ClientService
- type CreatePlaylistForbidden
- func (o *CreatePlaylistForbidden) Code() int
- func (o *CreatePlaylistForbidden) Error() string
- func (o *CreatePlaylistForbidden) GetPayload() *models.ErrorResponseBody
- func (o *CreatePlaylistForbidden) IsClientError() bool
- func (o *CreatePlaylistForbidden) IsCode(code int) bool
- func (o *CreatePlaylistForbidden) IsRedirect() bool
- func (o *CreatePlaylistForbidden) IsServerError() bool
- func (o *CreatePlaylistForbidden) IsSuccess() bool
- func (o *CreatePlaylistForbidden) String() string
- type CreatePlaylistInternalServerError
- func (o *CreatePlaylistInternalServerError) Code() int
- func (o *CreatePlaylistInternalServerError) Error() string
- func (o *CreatePlaylistInternalServerError) GetPayload() *models.ErrorResponseBody
- func (o *CreatePlaylistInternalServerError) IsClientError() bool
- func (o *CreatePlaylistInternalServerError) IsCode(code int) bool
- func (o *CreatePlaylistInternalServerError) IsRedirect() bool
- func (o *CreatePlaylistInternalServerError) IsServerError() bool
- func (o *CreatePlaylistInternalServerError) IsSuccess() bool
- func (o *CreatePlaylistInternalServerError) String() string
- type CreatePlaylistNotFound
- func (o *CreatePlaylistNotFound) Code() int
- func (o *CreatePlaylistNotFound) Error() string
- func (o *CreatePlaylistNotFound) GetPayload() *models.ErrorResponseBody
- func (o *CreatePlaylistNotFound) IsClientError() bool
- func (o *CreatePlaylistNotFound) IsCode(code int) bool
- func (o *CreatePlaylistNotFound) IsRedirect() bool
- func (o *CreatePlaylistNotFound) IsServerError() bool
- func (o *CreatePlaylistNotFound) IsSuccess() bool
- func (o *CreatePlaylistNotFound) String() string
- type CreatePlaylistOK
- func (o *CreatePlaylistOK) Code() int
- func (o *CreatePlaylistOK) Error() string
- func (o *CreatePlaylistOK) GetPayload() *models.Playlist
- func (o *CreatePlaylistOK) IsClientError() bool
- func (o *CreatePlaylistOK) IsCode(code int) bool
- func (o *CreatePlaylistOK) IsRedirect() bool
- func (o *CreatePlaylistOK) IsServerError() bool
- func (o *CreatePlaylistOK) IsSuccess() bool
- func (o *CreatePlaylistOK) String() string
- type CreatePlaylistParams
- func NewCreatePlaylistParams() *CreatePlaylistParams
- func NewCreatePlaylistParamsWithContext(ctx context.Context) *CreatePlaylistParams
- func NewCreatePlaylistParamsWithHTTPClient(client *http.Client) *CreatePlaylistParams
- func NewCreatePlaylistParamsWithTimeout(timeout time.Duration) *CreatePlaylistParams
- func (o *CreatePlaylistParams) SetBody(body *models.CreatePlaylistCommand)
- func (o *CreatePlaylistParams) SetContext(ctx context.Context)
- func (o *CreatePlaylistParams) SetDefaults()
- func (o *CreatePlaylistParams) SetHTTPClient(client *http.Client)
- func (o *CreatePlaylistParams) SetTimeout(timeout time.Duration)
- func (o *CreatePlaylistParams) WithBody(body *models.CreatePlaylistCommand) *CreatePlaylistParams
- func (o *CreatePlaylistParams) WithContext(ctx context.Context) *CreatePlaylistParams
- func (o *CreatePlaylistParams) WithDefaults() *CreatePlaylistParams
- func (o *CreatePlaylistParams) WithHTTPClient(client *http.Client) *CreatePlaylistParams
- func (o *CreatePlaylistParams) WithTimeout(timeout time.Duration) *CreatePlaylistParams
- func (o *CreatePlaylistParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreatePlaylistReader
- type CreatePlaylistUnauthorized
- func (o *CreatePlaylistUnauthorized) Code() int
- func (o *CreatePlaylistUnauthorized) Error() string
- func (o *CreatePlaylistUnauthorized) GetPayload() *models.ErrorResponseBody
- func (o *CreatePlaylistUnauthorized) IsClientError() bool
- func (o *CreatePlaylistUnauthorized) IsCode(code int) bool
- func (o *CreatePlaylistUnauthorized) IsRedirect() bool
- func (o *CreatePlaylistUnauthorized) IsServerError() bool
- func (o *CreatePlaylistUnauthorized) IsSuccess() bool
- func (o *CreatePlaylistUnauthorized) String() string
- type DeletePlaylistForbidden
- func (o *DeletePlaylistForbidden) Code() int
- func (o *DeletePlaylistForbidden) Error() string
- func (o *DeletePlaylistForbidden) GetPayload() *models.ErrorResponseBody
- func (o *DeletePlaylistForbidden) IsClientError() bool
- func (o *DeletePlaylistForbidden) IsCode(code int) bool
- func (o *DeletePlaylistForbidden) IsRedirect() bool
- func (o *DeletePlaylistForbidden) IsServerError() bool
- func (o *DeletePlaylistForbidden) IsSuccess() bool
- func (o *DeletePlaylistForbidden) String() string
- type DeletePlaylistInternalServerError
- func (o *DeletePlaylistInternalServerError) Code() int
- func (o *DeletePlaylistInternalServerError) Error() string
- func (o *DeletePlaylistInternalServerError) GetPayload() *models.ErrorResponseBody
- func (o *DeletePlaylistInternalServerError) IsClientError() bool
- func (o *DeletePlaylistInternalServerError) IsCode(code int) bool
- func (o *DeletePlaylistInternalServerError) IsRedirect() bool
- func (o *DeletePlaylistInternalServerError) IsServerError() bool
- func (o *DeletePlaylistInternalServerError) IsSuccess() bool
- func (o *DeletePlaylistInternalServerError) String() string
- type DeletePlaylistNotFound
- func (o *DeletePlaylistNotFound) Code() int
- func (o *DeletePlaylistNotFound) Error() string
- func (o *DeletePlaylistNotFound) GetPayload() *models.ErrorResponseBody
- func (o *DeletePlaylistNotFound) IsClientError() bool
- func (o *DeletePlaylistNotFound) IsCode(code int) bool
- func (o *DeletePlaylistNotFound) IsRedirect() bool
- func (o *DeletePlaylistNotFound) IsServerError() bool
- func (o *DeletePlaylistNotFound) IsSuccess() bool
- func (o *DeletePlaylistNotFound) String() string
- type DeletePlaylistOK
- func (o *DeletePlaylistOK) Code() int
- func (o *DeletePlaylistOK) Error() string
- func (o *DeletePlaylistOK) GetPayload() *models.SuccessResponseBody
- func (o *DeletePlaylistOK) IsClientError() bool
- func (o *DeletePlaylistOK) IsCode(code int) bool
- func (o *DeletePlaylistOK) IsRedirect() bool
- func (o *DeletePlaylistOK) IsServerError() bool
- func (o *DeletePlaylistOK) IsSuccess() bool
- func (o *DeletePlaylistOK) String() string
- type DeletePlaylistParams
- func NewDeletePlaylistParams() *DeletePlaylistParams
- func NewDeletePlaylistParamsWithContext(ctx context.Context) *DeletePlaylistParams
- func NewDeletePlaylistParamsWithHTTPClient(client *http.Client) *DeletePlaylistParams
- func NewDeletePlaylistParamsWithTimeout(timeout time.Duration) *DeletePlaylistParams
- func (o *DeletePlaylistParams) SetContext(ctx context.Context)
- func (o *DeletePlaylistParams) SetDefaults()
- func (o *DeletePlaylistParams) SetHTTPClient(client *http.Client)
- func (o *DeletePlaylistParams) SetTimeout(timeout time.Duration)
- func (o *DeletePlaylistParams) SetUID(uid string)
- func (o *DeletePlaylistParams) WithContext(ctx context.Context) *DeletePlaylistParams
- func (o *DeletePlaylistParams) WithDefaults() *DeletePlaylistParams
- func (o *DeletePlaylistParams) WithHTTPClient(client *http.Client) *DeletePlaylistParams
- func (o *DeletePlaylistParams) WithTimeout(timeout time.Duration) *DeletePlaylistParams
- func (o *DeletePlaylistParams) WithUID(uid string) *DeletePlaylistParams
- func (o *DeletePlaylistParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeletePlaylistReader
- type DeletePlaylistUnauthorized
- func (o *DeletePlaylistUnauthorized) Code() int
- func (o *DeletePlaylistUnauthorized) Error() string
- func (o *DeletePlaylistUnauthorized) GetPayload() *models.ErrorResponseBody
- func (o *DeletePlaylistUnauthorized) IsClientError() bool
- func (o *DeletePlaylistUnauthorized) IsCode(code int) bool
- func (o *DeletePlaylistUnauthorized) IsRedirect() bool
- func (o *DeletePlaylistUnauthorized) IsServerError() bool
- func (o *DeletePlaylistUnauthorized) IsSuccess() bool
- func (o *DeletePlaylistUnauthorized) String() string
- type GetPlaylistForbidden
- func (o *GetPlaylistForbidden) Code() int
- func (o *GetPlaylistForbidden) Error() string
- func (o *GetPlaylistForbidden) GetPayload() *models.ErrorResponseBody
- func (o *GetPlaylistForbidden) IsClientError() bool
- func (o *GetPlaylistForbidden) IsCode(code int) bool
- func (o *GetPlaylistForbidden) IsRedirect() bool
- func (o *GetPlaylistForbidden) IsServerError() bool
- func (o *GetPlaylistForbidden) IsSuccess() bool
- func (o *GetPlaylistForbidden) String() string
- type GetPlaylistInternalServerError
- func (o *GetPlaylistInternalServerError) Code() int
- func (o *GetPlaylistInternalServerError) Error() string
- func (o *GetPlaylistInternalServerError) GetPayload() *models.ErrorResponseBody
- func (o *GetPlaylistInternalServerError) IsClientError() bool
- func (o *GetPlaylistInternalServerError) IsCode(code int) bool
- func (o *GetPlaylistInternalServerError) IsRedirect() bool
- func (o *GetPlaylistInternalServerError) IsServerError() bool
- func (o *GetPlaylistInternalServerError) IsSuccess() bool
- func (o *GetPlaylistInternalServerError) String() string
- type GetPlaylistItemsForbidden
- func (o *GetPlaylistItemsForbidden) Code() int
- func (o *GetPlaylistItemsForbidden) Error() string
- func (o *GetPlaylistItemsForbidden) GetPayload() *models.ErrorResponseBody
- func (o *GetPlaylistItemsForbidden) IsClientError() bool
- func (o *GetPlaylistItemsForbidden) IsCode(code int) bool
- func (o *GetPlaylistItemsForbidden) IsRedirect() bool
- func (o *GetPlaylistItemsForbidden) IsServerError() bool
- func (o *GetPlaylistItemsForbidden) IsSuccess() bool
- func (o *GetPlaylistItemsForbidden) String() string
- type GetPlaylistItemsInternalServerError
- func (o *GetPlaylistItemsInternalServerError) Code() int
- func (o *GetPlaylistItemsInternalServerError) Error() string
- func (o *GetPlaylistItemsInternalServerError) GetPayload() *models.ErrorResponseBody
- func (o *GetPlaylistItemsInternalServerError) IsClientError() bool
- func (o *GetPlaylistItemsInternalServerError) IsCode(code int) bool
- func (o *GetPlaylistItemsInternalServerError) IsRedirect() bool
- func (o *GetPlaylistItemsInternalServerError) IsServerError() bool
- func (o *GetPlaylistItemsInternalServerError) IsSuccess() bool
- func (o *GetPlaylistItemsInternalServerError) String() string
- type GetPlaylistItemsNotFound
- func (o *GetPlaylistItemsNotFound) Code() int
- func (o *GetPlaylistItemsNotFound) Error() string
- func (o *GetPlaylistItemsNotFound) GetPayload() *models.ErrorResponseBody
- func (o *GetPlaylistItemsNotFound) IsClientError() bool
- func (o *GetPlaylistItemsNotFound) IsCode(code int) bool
- func (o *GetPlaylistItemsNotFound) IsRedirect() bool
- func (o *GetPlaylistItemsNotFound) IsServerError() bool
- func (o *GetPlaylistItemsNotFound) IsSuccess() bool
- func (o *GetPlaylistItemsNotFound) String() string
- type GetPlaylistItemsOK
- func (o *GetPlaylistItemsOK) Code() int
- func (o *GetPlaylistItemsOK) Error() string
- func (o *GetPlaylistItemsOK) GetPayload() []*models.PlaylistItem
- func (o *GetPlaylistItemsOK) IsClientError() bool
- func (o *GetPlaylistItemsOK) IsCode(code int) bool
- func (o *GetPlaylistItemsOK) IsRedirect() bool
- func (o *GetPlaylistItemsOK) IsServerError() bool
- func (o *GetPlaylistItemsOK) IsSuccess() bool
- func (o *GetPlaylistItemsOK) String() string
- type GetPlaylistItemsParams
- func NewGetPlaylistItemsParams() *GetPlaylistItemsParams
- func NewGetPlaylistItemsParamsWithContext(ctx context.Context) *GetPlaylistItemsParams
- func NewGetPlaylistItemsParamsWithHTTPClient(client *http.Client) *GetPlaylistItemsParams
- func NewGetPlaylistItemsParamsWithTimeout(timeout time.Duration) *GetPlaylistItemsParams
- func (o *GetPlaylistItemsParams) SetContext(ctx context.Context)
- func (o *GetPlaylistItemsParams) SetDefaults()
- func (o *GetPlaylistItemsParams) SetHTTPClient(client *http.Client)
- func (o *GetPlaylistItemsParams) SetTimeout(timeout time.Duration)
- func (o *GetPlaylistItemsParams) SetUID(uid string)
- func (o *GetPlaylistItemsParams) WithContext(ctx context.Context) *GetPlaylistItemsParams
- func (o *GetPlaylistItemsParams) WithDefaults() *GetPlaylistItemsParams
- func (o *GetPlaylistItemsParams) WithHTTPClient(client *http.Client) *GetPlaylistItemsParams
- func (o *GetPlaylistItemsParams) WithTimeout(timeout time.Duration) *GetPlaylistItemsParams
- func (o *GetPlaylistItemsParams) WithUID(uid string) *GetPlaylistItemsParams
- func (o *GetPlaylistItemsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPlaylistItemsReader
- type GetPlaylistItemsUnauthorized
- func (o *GetPlaylistItemsUnauthorized) Code() int
- func (o *GetPlaylistItemsUnauthorized) Error() string
- func (o *GetPlaylistItemsUnauthorized) GetPayload() *models.ErrorResponseBody
- func (o *GetPlaylistItemsUnauthorized) IsClientError() bool
- func (o *GetPlaylistItemsUnauthorized) IsCode(code int) bool
- func (o *GetPlaylistItemsUnauthorized) IsRedirect() bool
- func (o *GetPlaylistItemsUnauthorized) IsServerError() bool
- func (o *GetPlaylistItemsUnauthorized) IsSuccess() bool
- func (o *GetPlaylistItemsUnauthorized) String() string
- type GetPlaylistNotFound
- func (o *GetPlaylistNotFound) Code() int
- func (o *GetPlaylistNotFound) Error() string
- func (o *GetPlaylistNotFound) GetPayload() *models.ErrorResponseBody
- func (o *GetPlaylistNotFound) IsClientError() bool
- func (o *GetPlaylistNotFound) IsCode(code int) bool
- func (o *GetPlaylistNotFound) IsRedirect() bool
- func (o *GetPlaylistNotFound) IsServerError() bool
- func (o *GetPlaylistNotFound) IsSuccess() bool
- func (o *GetPlaylistNotFound) String() string
- type GetPlaylistOK
- func (o *GetPlaylistOK) Code() int
- func (o *GetPlaylistOK) Error() string
- func (o *GetPlaylistOK) GetPayload() *models.Playlist
- func (o *GetPlaylistOK) IsClientError() bool
- func (o *GetPlaylistOK) IsCode(code int) bool
- func (o *GetPlaylistOK) IsRedirect() bool
- func (o *GetPlaylistOK) IsServerError() bool
- func (o *GetPlaylistOK) IsSuccess() bool
- func (o *GetPlaylistOK) String() string
- type GetPlaylistParams
- func (o *GetPlaylistParams) SetContext(ctx context.Context)
- func (o *GetPlaylistParams) SetDefaults()
- func (o *GetPlaylistParams) SetHTTPClient(client *http.Client)
- func (o *GetPlaylistParams) SetTimeout(timeout time.Duration)
- func (o *GetPlaylistParams) SetUID(uid string)
- func (o *GetPlaylistParams) WithContext(ctx context.Context) *GetPlaylistParams
- func (o *GetPlaylistParams) WithDefaults() *GetPlaylistParams
- func (o *GetPlaylistParams) WithHTTPClient(client *http.Client) *GetPlaylistParams
- func (o *GetPlaylistParams) WithTimeout(timeout time.Duration) *GetPlaylistParams
- func (o *GetPlaylistParams) WithUID(uid string) *GetPlaylistParams
- func (o *GetPlaylistParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPlaylistReader
- type GetPlaylistUnauthorized
- func (o *GetPlaylistUnauthorized) Code() int
- func (o *GetPlaylistUnauthorized) Error() string
- func (o *GetPlaylistUnauthorized) GetPayload() *models.ErrorResponseBody
- func (o *GetPlaylistUnauthorized) IsClientError() bool
- func (o *GetPlaylistUnauthorized) IsCode(code int) bool
- func (o *GetPlaylistUnauthorized) IsRedirect() bool
- func (o *GetPlaylistUnauthorized) IsServerError() bool
- func (o *GetPlaylistUnauthorized) IsSuccess() bool
- func (o *GetPlaylistUnauthorized) String() string
- type SearchPlaylistsInternalServerError
- func (o *SearchPlaylistsInternalServerError) Code() int
- func (o *SearchPlaylistsInternalServerError) Error() string
- func (o *SearchPlaylistsInternalServerError) GetPayload() *models.ErrorResponseBody
- func (o *SearchPlaylistsInternalServerError) IsClientError() bool
- func (o *SearchPlaylistsInternalServerError) IsCode(code int) bool
- func (o *SearchPlaylistsInternalServerError) IsRedirect() bool
- func (o *SearchPlaylistsInternalServerError) IsServerError() bool
- func (o *SearchPlaylistsInternalServerError) IsSuccess() bool
- func (o *SearchPlaylistsInternalServerError) String() string
- type SearchPlaylistsOK
- func (o *SearchPlaylistsOK) Code() int
- func (o *SearchPlaylistsOK) Error() string
- func (o *SearchPlaylistsOK) GetPayload() models.Playlists
- func (o *SearchPlaylistsOK) IsClientError() bool
- func (o *SearchPlaylistsOK) IsCode(code int) bool
- func (o *SearchPlaylistsOK) IsRedirect() bool
- func (o *SearchPlaylistsOK) IsServerError() bool
- func (o *SearchPlaylistsOK) IsSuccess() bool
- func (o *SearchPlaylistsOK) String() string
- type SearchPlaylistsParams
- func NewSearchPlaylistsParams() *SearchPlaylistsParams
- func NewSearchPlaylistsParamsWithContext(ctx context.Context) *SearchPlaylistsParams
- func NewSearchPlaylistsParamsWithHTTPClient(client *http.Client) *SearchPlaylistsParams
- func NewSearchPlaylistsParamsWithTimeout(timeout time.Duration) *SearchPlaylistsParams
- func (o *SearchPlaylistsParams) SetContext(ctx context.Context)
- func (o *SearchPlaylistsParams) SetDefaults()
- func (o *SearchPlaylistsParams) SetHTTPClient(client *http.Client)
- func (o *SearchPlaylistsParams) SetLimit(limit *int64)
- func (o *SearchPlaylistsParams) SetQuery(query *string)
- func (o *SearchPlaylistsParams) SetTimeout(timeout time.Duration)
- func (o *SearchPlaylistsParams) WithContext(ctx context.Context) *SearchPlaylistsParams
- func (o *SearchPlaylistsParams) WithDefaults() *SearchPlaylistsParams
- func (o *SearchPlaylistsParams) WithHTTPClient(client *http.Client) *SearchPlaylistsParams
- func (o *SearchPlaylistsParams) WithLimit(limit *int64) *SearchPlaylistsParams
- func (o *SearchPlaylistsParams) WithQuery(query *string) *SearchPlaylistsParams
- func (o *SearchPlaylistsParams) WithTimeout(timeout time.Duration) *SearchPlaylistsParams
- func (o *SearchPlaylistsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SearchPlaylistsReader
- type UpdatePlaylistForbidden
- func (o *UpdatePlaylistForbidden) Code() int
- func (o *UpdatePlaylistForbidden) Error() string
- func (o *UpdatePlaylistForbidden) GetPayload() *models.ErrorResponseBody
- func (o *UpdatePlaylistForbidden) IsClientError() bool
- func (o *UpdatePlaylistForbidden) IsCode(code int) bool
- func (o *UpdatePlaylistForbidden) IsRedirect() bool
- func (o *UpdatePlaylistForbidden) IsServerError() bool
- func (o *UpdatePlaylistForbidden) IsSuccess() bool
- func (o *UpdatePlaylistForbidden) String() string
- type UpdatePlaylistInternalServerError
- func (o *UpdatePlaylistInternalServerError) Code() int
- func (o *UpdatePlaylistInternalServerError) Error() string
- func (o *UpdatePlaylistInternalServerError) GetPayload() *models.ErrorResponseBody
- func (o *UpdatePlaylistInternalServerError) IsClientError() bool
- func (o *UpdatePlaylistInternalServerError) IsCode(code int) bool
- func (o *UpdatePlaylistInternalServerError) IsRedirect() bool
- func (o *UpdatePlaylistInternalServerError) IsServerError() bool
- func (o *UpdatePlaylistInternalServerError) IsSuccess() bool
- func (o *UpdatePlaylistInternalServerError) String() string
- type UpdatePlaylistNotFound
- func (o *UpdatePlaylistNotFound) Code() int
- func (o *UpdatePlaylistNotFound) Error() string
- func (o *UpdatePlaylistNotFound) GetPayload() *models.ErrorResponseBody
- func (o *UpdatePlaylistNotFound) IsClientError() bool
- func (o *UpdatePlaylistNotFound) IsCode(code int) bool
- func (o *UpdatePlaylistNotFound) IsRedirect() bool
- func (o *UpdatePlaylistNotFound) IsServerError() bool
- func (o *UpdatePlaylistNotFound) IsSuccess() bool
- func (o *UpdatePlaylistNotFound) String() string
- type UpdatePlaylistOK
- func (o *UpdatePlaylistOK) Code() int
- func (o *UpdatePlaylistOK) Error() string
- func (o *UpdatePlaylistOK) GetPayload() *models.Playlist
- func (o *UpdatePlaylistOK) IsClientError() bool
- func (o *UpdatePlaylistOK) IsCode(code int) bool
- func (o *UpdatePlaylistOK) IsRedirect() bool
- func (o *UpdatePlaylistOK) IsServerError() bool
- func (o *UpdatePlaylistOK) IsSuccess() bool
- func (o *UpdatePlaylistOK) String() string
- type UpdatePlaylistParams
- func NewUpdatePlaylistParams() *UpdatePlaylistParams
- func NewUpdatePlaylistParamsWithContext(ctx context.Context) *UpdatePlaylistParams
- func NewUpdatePlaylistParamsWithHTTPClient(client *http.Client) *UpdatePlaylistParams
- func NewUpdatePlaylistParamsWithTimeout(timeout time.Duration) *UpdatePlaylistParams
- func (o *UpdatePlaylistParams) SetBody(body *models.UpdatePlaylistCommand)
- func (o *UpdatePlaylistParams) SetContext(ctx context.Context)
- func (o *UpdatePlaylistParams) SetDefaults()
- func (o *UpdatePlaylistParams) SetHTTPClient(client *http.Client)
- func (o *UpdatePlaylistParams) SetTimeout(timeout time.Duration)
- func (o *UpdatePlaylistParams) SetUID(uid string)
- func (o *UpdatePlaylistParams) WithBody(body *models.UpdatePlaylistCommand) *UpdatePlaylistParams
- func (o *UpdatePlaylistParams) WithContext(ctx context.Context) *UpdatePlaylistParams
- func (o *UpdatePlaylistParams) WithDefaults() *UpdatePlaylistParams
- func (o *UpdatePlaylistParams) WithHTTPClient(client *http.Client) *UpdatePlaylistParams
- func (o *UpdatePlaylistParams) WithTimeout(timeout time.Duration) *UpdatePlaylistParams
- func (o *UpdatePlaylistParams) WithUID(uid string) *UpdatePlaylistParams
- func (o *UpdatePlaylistParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdatePlaylistReader
- type UpdatePlaylistUnauthorized
- func (o *UpdatePlaylistUnauthorized) Code() int
- func (o *UpdatePlaylistUnauthorized) Error() string
- func (o *UpdatePlaylistUnauthorized) GetPayload() *models.ErrorResponseBody
- func (o *UpdatePlaylistUnauthorized) IsClientError() bool
- func (o *UpdatePlaylistUnauthorized) IsCode(code int) bool
- func (o *UpdatePlaylistUnauthorized) IsRedirect() bool
- func (o *UpdatePlaylistUnauthorized) IsServerError() bool
- func (o *UpdatePlaylistUnauthorized) IsSuccess() bool
- func (o *UpdatePlaylistUnauthorized) String() string
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 playlists API
func (*Client) CreatePlaylist ¶
func (a *Client) CreatePlaylist(body *models.CreatePlaylistCommand, opts ...ClientOption) (*CreatePlaylistOK, error)
CreatePlaylist creates playlist
func (*Client) CreatePlaylistWithParams ¶
func (a *Client) CreatePlaylistWithParams(params *CreatePlaylistParams, opts ...ClientOption) (*CreatePlaylistOK, error)
func (*Client) DeletePlaylist ¶
func (a *Client) DeletePlaylist(uid string, opts ...ClientOption) (*DeletePlaylistOK, error)
DeletePlaylist deletes playlist
func (*Client) DeletePlaylistWithParams ¶
func (a *Client) DeletePlaylistWithParams(params *DeletePlaylistParams, opts ...ClientOption) (*DeletePlaylistOK, error)
func (*Client) GetPlaylist ¶
func (a *Client) GetPlaylist(uid string, opts ...ClientOption) (*GetPlaylistOK, error)
GetPlaylist gets playlist
func (*Client) GetPlaylistItems ¶
func (a *Client) GetPlaylistItems(uid string, opts ...ClientOption) (*GetPlaylistItemsOK, error)
GetPlaylistItems gets playlist items
func (*Client) GetPlaylistItemsWithParams ¶
func (a *Client) GetPlaylistItemsWithParams(params *GetPlaylistItemsParams, opts ...ClientOption) (*GetPlaylistItemsOK, error)
func (*Client) GetPlaylistWithParams ¶
func (a *Client) GetPlaylistWithParams(params *GetPlaylistParams, opts ...ClientOption) (*GetPlaylistOK, error)
func (*Client) SearchPlaylists ¶
func (a *Client) SearchPlaylists(params *SearchPlaylistsParams, opts ...ClientOption) (*SearchPlaylistsOK, error)
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdatePlaylist ¶
func (a *Client) UpdatePlaylist(uid string, body *models.UpdatePlaylistCommand, opts ...ClientOption) (*UpdatePlaylistOK, error)
UpdatePlaylist updates playlist
func (*Client) UpdatePlaylistWithParams ¶
func (a *Client) UpdatePlaylistWithParams(params *UpdatePlaylistParams, opts ...ClientOption) (*UpdatePlaylistOK, error)
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
func WithAuthInfo ¶
func WithAuthInfo(authInfo runtime.ClientAuthInfoWriter) ClientOption
WithAuthInfo changes the transport on the client
type ClientService ¶
type ClientService interface { CreatePlaylist(body *models.CreatePlaylistCommand, opts ...ClientOption) (*CreatePlaylistOK, error) CreatePlaylistWithParams(params *CreatePlaylistParams, opts ...ClientOption) (*CreatePlaylistOK, error) DeletePlaylist(uid string, opts ...ClientOption) (*DeletePlaylistOK, error) DeletePlaylistWithParams(params *DeletePlaylistParams, opts ...ClientOption) (*DeletePlaylistOK, error) GetPlaylist(uid string, opts ...ClientOption) (*GetPlaylistOK, error) GetPlaylistWithParams(params *GetPlaylistParams, opts ...ClientOption) (*GetPlaylistOK, error) GetPlaylistItems(uid string, opts ...ClientOption) (*GetPlaylistItemsOK, error) GetPlaylistItemsWithParams(params *GetPlaylistItemsParams, opts ...ClientOption) (*GetPlaylistItemsOK, error) SearchPlaylists(params *SearchPlaylistsParams, opts ...ClientOption) (*SearchPlaylistsOK, error) UpdatePlaylist(uid string, body *models.UpdatePlaylistCommand, opts ...ClientOption) (*UpdatePlaylistOK, error) UpdatePlaylistWithParams(params *UpdatePlaylistParams, opts ...ClientOption) (*UpdatePlaylistOK, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new playlists API client.
type CreatePlaylistForbidden ¶
type CreatePlaylistForbidden struct {
Payload *models.ErrorResponseBody
}
CreatePlaylistForbidden describes a response with status code 403, with default header values.
ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.
func NewCreatePlaylistForbidden ¶
func NewCreatePlaylistForbidden() *CreatePlaylistForbidden
NewCreatePlaylistForbidden creates a CreatePlaylistForbidden with default headers values
func (*CreatePlaylistForbidden) Code ¶
func (o *CreatePlaylistForbidden) Code() int
Code gets the status code for the create playlist forbidden response
func (*CreatePlaylistForbidden) Error ¶
func (o *CreatePlaylistForbidden) Error() string
func (*CreatePlaylistForbidden) GetPayload ¶
func (o *CreatePlaylistForbidden) GetPayload() *models.ErrorResponseBody
func (*CreatePlaylistForbidden) IsClientError ¶
func (o *CreatePlaylistForbidden) IsClientError() bool
IsClientError returns true when this create playlist forbidden response has a 4xx status code
func (*CreatePlaylistForbidden) IsCode ¶
func (o *CreatePlaylistForbidden) IsCode(code int) bool
IsCode returns true when this create playlist forbidden response a status code equal to that given
func (*CreatePlaylistForbidden) IsRedirect ¶
func (o *CreatePlaylistForbidden) IsRedirect() bool
IsRedirect returns true when this create playlist forbidden response has a 3xx status code
func (*CreatePlaylistForbidden) IsServerError ¶
func (o *CreatePlaylistForbidden) IsServerError() bool
IsServerError returns true when this create playlist forbidden response has a 5xx status code
func (*CreatePlaylistForbidden) IsSuccess ¶
func (o *CreatePlaylistForbidden) IsSuccess() bool
IsSuccess returns true when this create playlist forbidden response has a 2xx status code
func (*CreatePlaylistForbidden) String ¶
func (o *CreatePlaylistForbidden) String() string
type CreatePlaylistInternalServerError ¶
type CreatePlaylistInternalServerError struct {
Payload *models.ErrorResponseBody
}
CreatePlaylistInternalServerError describes a response with status code 500, with default header values.
InternalServerError is a general error indicating something went wrong internally.
func NewCreatePlaylistInternalServerError ¶
func NewCreatePlaylistInternalServerError() *CreatePlaylistInternalServerError
NewCreatePlaylistInternalServerError creates a CreatePlaylistInternalServerError with default headers values
func (*CreatePlaylistInternalServerError) Code ¶
func (o *CreatePlaylistInternalServerError) Code() int
Code gets the status code for the create playlist internal server error response
func (*CreatePlaylistInternalServerError) Error ¶
func (o *CreatePlaylistInternalServerError) Error() string
func (*CreatePlaylistInternalServerError) GetPayload ¶
func (o *CreatePlaylistInternalServerError) GetPayload() *models.ErrorResponseBody
func (*CreatePlaylistInternalServerError) IsClientError ¶
func (o *CreatePlaylistInternalServerError) IsClientError() bool
IsClientError returns true when this create playlist internal server error response has a 4xx status code
func (*CreatePlaylistInternalServerError) IsCode ¶
func (o *CreatePlaylistInternalServerError) IsCode(code int) bool
IsCode returns true when this create playlist internal server error response a status code equal to that given
func (*CreatePlaylistInternalServerError) IsRedirect ¶
func (o *CreatePlaylistInternalServerError) IsRedirect() bool
IsRedirect returns true when this create playlist internal server error response has a 3xx status code
func (*CreatePlaylistInternalServerError) IsServerError ¶
func (o *CreatePlaylistInternalServerError) IsServerError() bool
IsServerError returns true when this create playlist internal server error response has a 5xx status code
func (*CreatePlaylistInternalServerError) IsSuccess ¶
func (o *CreatePlaylistInternalServerError) IsSuccess() bool
IsSuccess returns true when this create playlist internal server error response has a 2xx status code
func (*CreatePlaylistInternalServerError) String ¶
func (o *CreatePlaylistInternalServerError) String() string
type CreatePlaylistNotFound ¶
type CreatePlaylistNotFound struct {
Payload *models.ErrorResponseBody
}
CreatePlaylistNotFound describes a response with status code 404, with default header values.
NotFoundError is returned when the requested resource was not found.
func NewCreatePlaylistNotFound ¶
func NewCreatePlaylistNotFound() *CreatePlaylistNotFound
NewCreatePlaylistNotFound creates a CreatePlaylistNotFound with default headers values
func (*CreatePlaylistNotFound) Code ¶
func (o *CreatePlaylistNotFound) Code() int
Code gets the status code for the create playlist not found response
func (*CreatePlaylistNotFound) Error ¶
func (o *CreatePlaylistNotFound) Error() string
func (*CreatePlaylistNotFound) GetPayload ¶
func (o *CreatePlaylistNotFound) GetPayload() *models.ErrorResponseBody
func (*CreatePlaylistNotFound) IsClientError ¶
func (o *CreatePlaylistNotFound) IsClientError() bool
IsClientError returns true when this create playlist not found response has a 4xx status code
func (*CreatePlaylistNotFound) IsCode ¶
func (o *CreatePlaylistNotFound) IsCode(code int) bool
IsCode returns true when this create playlist not found response a status code equal to that given
func (*CreatePlaylistNotFound) IsRedirect ¶
func (o *CreatePlaylistNotFound) IsRedirect() bool
IsRedirect returns true when this create playlist not found response has a 3xx status code
func (*CreatePlaylistNotFound) IsServerError ¶
func (o *CreatePlaylistNotFound) IsServerError() bool
IsServerError returns true when this create playlist not found response has a 5xx status code
func (*CreatePlaylistNotFound) IsSuccess ¶
func (o *CreatePlaylistNotFound) IsSuccess() bool
IsSuccess returns true when this create playlist not found response has a 2xx status code
func (*CreatePlaylistNotFound) String ¶
func (o *CreatePlaylistNotFound) String() string
type CreatePlaylistOK ¶
CreatePlaylistOK describes a response with status code 200, with default header values.
(empty)
func NewCreatePlaylistOK ¶
func NewCreatePlaylistOK() *CreatePlaylistOK
NewCreatePlaylistOK creates a CreatePlaylistOK with default headers values
func (*CreatePlaylistOK) Code ¶
func (o *CreatePlaylistOK) Code() int
Code gets the status code for the create playlist Ok response
func (*CreatePlaylistOK) Error ¶
func (o *CreatePlaylistOK) Error() string
func (*CreatePlaylistOK) GetPayload ¶
func (o *CreatePlaylistOK) GetPayload() *models.Playlist
func (*CreatePlaylistOK) IsClientError ¶
func (o *CreatePlaylistOK) IsClientError() bool
IsClientError returns true when this create playlist Ok response has a 4xx status code
func (*CreatePlaylistOK) IsCode ¶
func (o *CreatePlaylistOK) IsCode(code int) bool
IsCode returns true when this create playlist Ok response a status code equal to that given
func (*CreatePlaylistOK) IsRedirect ¶
func (o *CreatePlaylistOK) IsRedirect() bool
IsRedirect returns true when this create playlist Ok response has a 3xx status code
func (*CreatePlaylistOK) IsServerError ¶
func (o *CreatePlaylistOK) IsServerError() bool
IsServerError returns true when this create playlist Ok response has a 5xx status code
func (*CreatePlaylistOK) IsSuccess ¶
func (o *CreatePlaylistOK) IsSuccess() bool
IsSuccess returns true when this create playlist Ok response has a 2xx status code
func (*CreatePlaylistOK) String ¶
func (o *CreatePlaylistOK) String() string
type CreatePlaylistParams ¶
type CreatePlaylistParams struct { // Body. Body *models.CreatePlaylistCommand Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreatePlaylistParams contains all the parameters to send to the API endpoint
for the create playlist operation. Typically these are written to a http.Request.
func NewCreatePlaylistParams ¶
func NewCreatePlaylistParams() *CreatePlaylistParams
NewCreatePlaylistParams creates a new CreatePlaylistParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewCreatePlaylistParamsWithContext ¶
func NewCreatePlaylistParamsWithContext(ctx context.Context) *CreatePlaylistParams
NewCreatePlaylistParamsWithContext creates a new CreatePlaylistParams object with the ability to set a context for a request.
func NewCreatePlaylistParamsWithHTTPClient ¶
func NewCreatePlaylistParamsWithHTTPClient(client *http.Client) *CreatePlaylistParams
NewCreatePlaylistParamsWithHTTPClient creates a new CreatePlaylistParams object with the ability to set a custom HTTPClient for a request.
func NewCreatePlaylistParamsWithTimeout ¶
func NewCreatePlaylistParamsWithTimeout(timeout time.Duration) *CreatePlaylistParams
NewCreatePlaylistParamsWithTimeout creates a new CreatePlaylistParams object with the ability to set a timeout on a request.
func (*CreatePlaylistParams) SetBody ¶
func (o *CreatePlaylistParams) SetBody(body *models.CreatePlaylistCommand)
SetBody adds the body to the create playlist params
func (*CreatePlaylistParams) SetContext ¶
func (o *CreatePlaylistParams) SetContext(ctx context.Context)
SetContext adds the context to the create playlist params
func (*CreatePlaylistParams) SetDefaults ¶
func (o *CreatePlaylistParams) SetDefaults()
SetDefaults hydrates default values in the create playlist params (not the query body).
All values with no default are reset to their zero value.
func (*CreatePlaylistParams) SetHTTPClient ¶
func (o *CreatePlaylistParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create playlist params
func (*CreatePlaylistParams) SetTimeout ¶
func (o *CreatePlaylistParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create playlist params
func (*CreatePlaylistParams) WithBody ¶
func (o *CreatePlaylistParams) WithBody(body *models.CreatePlaylistCommand) *CreatePlaylistParams
WithBody adds the body to the create playlist params
func (*CreatePlaylistParams) WithContext ¶
func (o *CreatePlaylistParams) WithContext(ctx context.Context) *CreatePlaylistParams
WithContext adds the context to the create playlist params
func (*CreatePlaylistParams) WithDefaults ¶
func (o *CreatePlaylistParams) WithDefaults() *CreatePlaylistParams
WithDefaults hydrates default values in the create playlist params (not the query body).
All values with no default are reset to their zero value.
func (*CreatePlaylistParams) WithHTTPClient ¶
func (o *CreatePlaylistParams) WithHTTPClient(client *http.Client) *CreatePlaylistParams
WithHTTPClient adds the HTTPClient to the create playlist params
func (*CreatePlaylistParams) WithTimeout ¶
func (o *CreatePlaylistParams) WithTimeout(timeout time.Duration) *CreatePlaylistParams
WithTimeout adds the timeout to the create playlist params
func (*CreatePlaylistParams) WriteToRequest ¶
func (o *CreatePlaylistParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreatePlaylistReader ¶
type CreatePlaylistReader struct {
// contains filtered or unexported fields
}
CreatePlaylistReader is a Reader for the CreatePlaylist structure.
func (*CreatePlaylistReader) ReadResponse ¶
func (o *CreatePlaylistReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CreatePlaylistUnauthorized ¶
type CreatePlaylistUnauthorized struct {
}CreatePlaylistUnauthorized describes a response with status code 401, with default header values.
UnauthorizedError is returned when the request is not authenticated.
func NewCreatePlaylistUnauthorized ¶
func NewCreatePlaylistUnauthorized() *CreatePlaylistUnauthorized
NewCreatePlaylistUnauthorized creates a CreatePlaylistUnauthorized with default headers values
func (*CreatePlaylistUnauthorized) Code ¶
func (o *CreatePlaylistUnauthorized) Code() int
Code gets the status code for the create playlist unauthorized response
func (*CreatePlaylistUnauthorized) Error ¶
func (o *CreatePlaylistUnauthorized) Error() string
func (*CreatePlaylistUnauthorized) GetPayload ¶
func (o *CreatePlaylistUnauthorized) GetPayload() *models.ErrorResponseBody
func (*CreatePlaylistUnauthorized) IsClientError ¶
func (o *CreatePlaylistUnauthorized) IsClientError() bool
IsClientError returns true when this create playlist unauthorized response has a 4xx status code
func (*CreatePlaylistUnauthorized) IsCode ¶
func (o *CreatePlaylistUnauthorized) IsCode(code int) bool
IsCode returns true when this create playlist unauthorized response a status code equal to that given
func (*CreatePlaylistUnauthorized) IsRedirect ¶
func (o *CreatePlaylistUnauthorized) IsRedirect() bool
IsRedirect returns true when this create playlist unauthorized response has a 3xx status code
func (*CreatePlaylistUnauthorized) IsServerError ¶
func (o *CreatePlaylistUnauthorized) IsServerError() bool
IsServerError returns true when this create playlist unauthorized response has a 5xx status code
func (*CreatePlaylistUnauthorized) IsSuccess ¶
func (o *CreatePlaylistUnauthorized) IsSuccess() bool
IsSuccess returns true when this create playlist unauthorized response has a 2xx status code
func (*CreatePlaylistUnauthorized) String ¶
func (o *CreatePlaylistUnauthorized) String() string
type DeletePlaylistForbidden ¶
type DeletePlaylistForbidden struct {
Payload *models.ErrorResponseBody
}
DeletePlaylistForbidden describes a response with status code 403, with default header values.
ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.
func NewDeletePlaylistForbidden ¶
func NewDeletePlaylistForbidden() *DeletePlaylistForbidden
NewDeletePlaylistForbidden creates a DeletePlaylistForbidden with default headers values
func (*DeletePlaylistForbidden) Code ¶
func (o *DeletePlaylistForbidden) Code() int
Code gets the status code for the delete playlist forbidden response
func (*DeletePlaylistForbidden) Error ¶
func (o *DeletePlaylistForbidden) Error() string
func (*DeletePlaylistForbidden) GetPayload ¶
func (o *DeletePlaylistForbidden) GetPayload() *models.ErrorResponseBody
func (*DeletePlaylistForbidden) IsClientError ¶
func (o *DeletePlaylistForbidden) IsClientError() bool
IsClientError returns true when this delete playlist forbidden response has a 4xx status code
func (*DeletePlaylistForbidden) IsCode ¶
func (o *DeletePlaylistForbidden) IsCode(code int) bool
IsCode returns true when this delete playlist forbidden response a status code equal to that given
func (*DeletePlaylistForbidden) IsRedirect ¶
func (o *DeletePlaylistForbidden) IsRedirect() bool
IsRedirect returns true when this delete playlist forbidden response has a 3xx status code
func (*DeletePlaylistForbidden) IsServerError ¶
func (o *DeletePlaylistForbidden) IsServerError() bool
IsServerError returns true when this delete playlist forbidden response has a 5xx status code
func (*DeletePlaylistForbidden) IsSuccess ¶
func (o *DeletePlaylistForbidden) IsSuccess() bool
IsSuccess returns true when this delete playlist forbidden response has a 2xx status code
func (*DeletePlaylistForbidden) String ¶
func (o *DeletePlaylistForbidden) String() string
type DeletePlaylistInternalServerError ¶
type DeletePlaylistInternalServerError struct {
Payload *models.ErrorResponseBody
}
DeletePlaylistInternalServerError describes a response with status code 500, with default header values.
InternalServerError is a general error indicating something went wrong internally.
func NewDeletePlaylistInternalServerError ¶
func NewDeletePlaylistInternalServerError() *DeletePlaylistInternalServerError
NewDeletePlaylistInternalServerError creates a DeletePlaylistInternalServerError with default headers values
func (*DeletePlaylistInternalServerError) Code ¶
func (o *DeletePlaylistInternalServerError) Code() int
Code gets the status code for the delete playlist internal server error response
func (*DeletePlaylistInternalServerError) Error ¶
func (o *DeletePlaylistInternalServerError) Error() string
func (*DeletePlaylistInternalServerError) GetPayload ¶
func (o *DeletePlaylistInternalServerError) GetPayload() *models.ErrorResponseBody
func (*DeletePlaylistInternalServerError) IsClientError ¶
func (o *DeletePlaylistInternalServerError) IsClientError() bool
IsClientError returns true when this delete playlist internal server error response has a 4xx status code
func (*DeletePlaylistInternalServerError) IsCode ¶
func (o *DeletePlaylistInternalServerError) IsCode(code int) bool
IsCode returns true when this delete playlist internal server error response a status code equal to that given
func (*DeletePlaylistInternalServerError) IsRedirect ¶
func (o *DeletePlaylistInternalServerError) IsRedirect() bool
IsRedirect returns true when this delete playlist internal server error response has a 3xx status code
func (*DeletePlaylistInternalServerError) IsServerError ¶
func (o *DeletePlaylistInternalServerError) IsServerError() bool
IsServerError returns true when this delete playlist internal server error response has a 5xx status code
func (*DeletePlaylistInternalServerError) IsSuccess ¶
func (o *DeletePlaylistInternalServerError) IsSuccess() bool
IsSuccess returns true when this delete playlist internal server error response has a 2xx status code
func (*DeletePlaylistInternalServerError) String ¶
func (o *DeletePlaylistInternalServerError) String() string
type DeletePlaylistNotFound ¶
type DeletePlaylistNotFound struct {
Payload *models.ErrorResponseBody
}
DeletePlaylistNotFound describes a response with status code 404, with default header values.
NotFoundError is returned when the requested resource was not found.
func NewDeletePlaylistNotFound ¶
func NewDeletePlaylistNotFound() *DeletePlaylistNotFound
NewDeletePlaylistNotFound creates a DeletePlaylistNotFound with default headers values
func (*DeletePlaylistNotFound) Code ¶
func (o *DeletePlaylistNotFound) Code() int
Code gets the status code for the delete playlist not found response
func (*DeletePlaylistNotFound) Error ¶
func (o *DeletePlaylistNotFound) Error() string
func (*DeletePlaylistNotFound) GetPayload ¶
func (o *DeletePlaylistNotFound) GetPayload() *models.ErrorResponseBody
func (*DeletePlaylistNotFound) IsClientError ¶
func (o *DeletePlaylistNotFound) IsClientError() bool
IsClientError returns true when this delete playlist not found response has a 4xx status code
func (*DeletePlaylistNotFound) IsCode ¶
func (o *DeletePlaylistNotFound) IsCode(code int) bool
IsCode returns true when this delete playlist not found response a status code equal to that given
func (*DeletePlaylistNotFound) IsRedirect ¶
func (o *DeletePlaylistNotFound) IsRedirect() bool
IsRedirect returns true when this delete playlist not found response has a 3xx status code
func (*DeletePlaylistNotFound) IsServerError ¶
func (o *DeletePlaylistNotFound) IsServerError() bool
IsServerError returns true when this delete playlist not found response has a 5xx status code
func (*DeletePlaylistNotFound) IsSuccess ¶
func (o *DeletePlaylistNotFound) IsSuccess() bool
IsSuccess returns true when this delete playlist not found response has a 2xx status code
func (*DeletePlaylistNotFound) String ¶
func (o *DeletePlaylistNotFound) String() string
type DeletePlaylistOK ¶
type DeletePlaylistOK struct {
Payload *models.SuccessResponseBody
}
DeletePlaylistOK describes a response with status code 200, with default header values.
An OKResponse is returned if the request was successful.
func NewDeletePlaylistOK ¶
func NewDeletePlaylistOK() *DeletePlaylistOK
NewDeletePlaylistOK creates a DeletePlaylistOK with default headers values
func (*DeletePlaylistOK) Code ¶
func (o *DeletePlaylistOK) Code() int
Code gets the status code for the delete playlist Ok response
func (*DeletePlaylistOK) Error ¶
func (o *DeletePlaylistOK) Error() string
func (*DeletePlaylistOK) GetPayload ¶
func (o *DeletePlaylistOK) GetPayload() *models.SuccessResponseBody
func (*DeletePlaylistOK) IsClientError ¶
func (o *DeletePlaylistOK) IsClientError() bool
IsClientError returns true when this delete playlist Ok response has a 4xx status code
func (*DeletePlaylistOK) IsCode ¶
func (o *DeletePlaylistOK) IsCode(code int) bool
IsCode returns true when this delete playlist Ok response a status code equal to that given
func (*DeletePlaylistOK) IsRedirect ¶
func (o *DeletePlaylistOK) IsRedirect() bool
IsRedirect returns true when this delete playlist Ok response has a 3xx status code
func (*DeletePlaylistOK) IsServerError ¶
func (o *DeletePlaylistOK) IsServerError() bool
IsServerError returns true when this delete playlist Ok response has a 5xx status code
func (*DeletePlaylistOK) IsSuccess ¶
func (o *DeletePlaylistOK) IsSuccess() bool
IsSuccess returns true when this delete playlist Ok response has a 2xx status code
func (*DeletePlaylistOK) String ¶
func (o *DeletePlaylistOK) String() string
type DeletePlaylistParams ¶
type DeletePlaylistParams struct { // UID. UID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeletePlaylistParams contains all the parameters to send to the API endpoint
for the delete playlist operation. Typically these are written to a http.Request.
func NewDeletePlaylistParams ¶
func NewDeletePlaylistParams() *DeletePlaylistParams
NewDeletePlaylistParams creates a new DeletePlaylistParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewDeletePlaylistParamsWithContext ¶
func NewDeletePlaylistParamsWithContext(ctx context.Context) *DeletePlaylistParams
NewDeletePlaylistParamsWithContext creates a new DeletePlaylistParams object with the ability to set a context for a request.
func NewDeletePlaylistParamsWithHTTPClient ¶
func NewDeletePlaylistParamsWithHTTPClient(client *http.Client) *DeletePlaylistParams
NewDeletePlaylistParamsWithHTTPClient creates a new DeletePlaylistParams object with the ability to set a custom HTTPClient for a request.
func NewDeletePlaylistParamsWithTimeout ¶
func NewDeletePlaylistParamsWithTimeout(timeout time.Duration) *DeletePlaylistParams
NewDeletePlaylistParamsWithTimeout creates a new DeletePlaylistParams object with the ability to set a timeout on a request.
func (*DeletePlaylistParams) SetContext ¶
func (o *DeletePlaylistParams) SetContext(ctx context.Context)
SetContext adds the context to the delete playlist params
func (*DeletePlaylistParams) SetDefaults ¶
func (o *DeletePlaylistParams) SetDefaults()
SetDefaults hydrates default values in the delete playlist params (not the query body).
All values with no default are reset to their zero value.
func (*DeletePlaylistParams) SetHTTPClient ¶
func (o *DeletePlaylistParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete playlist params
func (*DeletePlaylistParams) SetTimeout ¶
func (o *DeletePlaylistParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete playlist params
func (*DeletePlaylistParams) SetUID ¶
func (o *DeletePlaylistParams) SetUID(uid string)
SetUID adds the uid to the delete playlist params
func (*DeletePlaylistParams) WithContext ¶
func (o *DeletePlaylistParams) WithContext(ctx context.Context) *DeletePlaylistParams
WithContext adds the context to the delete playlist params
func (*DeletePlaylistParams) WithDefaults ¶
func (o *DeletePlaylistParams) WithDefaults() *DeletePlaylistParams
WithDefaults hydrates default values in the delete playlist params (not the query body).
All values with no default are reset to their zero value.
func (*DeletePlaylistParams) WithHTTPClient ¶
func (o *DeletePlaylistParams) WithHTTPClient(client *http.Client) *DeletePlaylistParams
WithHTTPClient adds the HTTPClient to the delete playlist params
func (*DeletePlaylistParams) WithTimeout ¶
func (o *DeletePlaylistParams) WithTimeout(timeout time.Duration) *DeletePlaylistParams
WithTimeout adds the timeout to the delete playlist params
func (*DeletePlaylistParams) WithUID ¶
func (o *DeletePlaylistParams) WithUID(uid string) *DeletePlaylistParams
WithUID adds the uid to the delete playlist params
func (*DeletePlaylistParams) WriteToRequest ¶
func (o *DeletePlaylistParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeletePlaylistReader ¶
type DeletePlaylistReader struct {
// contains filtered or unexported fields
}
DeletePlaylistReader is a Reader for the DeletePlaylist structure.
func (*DeletePlaylistReader) ReadResponse ¶
func (o *DeletePlaylistReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeletePlaylistUnauthorized ¶
type DeletePlaylistUnauthorized struct {
}DeletePlaylistUnauthorized describes a response with status code 401, with default header values.
UnauthorizedError is returned when the request is not authenticated.
func NewDeletePlaylistUnauthorized ¶
func NewDeletePlaylistUnauthorized() *DeletePlaylistUnauthorized
NewDeletePlaylistUnauthorized creates a DeletePlaylistUnauthorized with default headers values
func (*DeletePlaylistUnauthorized) Code ¶
func (o *DeletePlaylistUnauthorized) Code() int
Code gets the status code for the delete playlist unauthorized response
func (*DeletePlaylistUnauthorized) Error ¶
func (o *DeletePlaylistUnauthorized) Error() string
func (*DeletePlaylistUnauthorized) GetPayload ¶
func (o *DeletePlaylistUnauthorized) GetPayload() *models.ErrorResponseBody
func (*DeletePlaylistUnauthorized) IsClientError ¶
func (o *DeletePlaylistUnauthorized) IsClientError() bool
IsClientError returns true when this delete playlist unauthorized response has a 4xx status code
func (*DeletePlaylistUnauthorized) IsCode ¶
func (o *DeletePlaylistUnauthorized) IsCode(code int) bool
IsCode returns true when this delete playlist unauthorized response a status code equal to that given
func (*DeletePlaylistUnauthorized) IsRedirect ¶
func (o *DeletePlaylistUnauthorized) IsRedirect() bool
IsRedirect returns true when this delete playlist unauthorized response has a 3xx status code
func (*DeletePlaylistUnauthorized) IsServerError ¶
func (o *DeletePlaylistUnauthorized) IsServerError() bool
IsServerError returns true when this delete playlist unauthorized response has a 5xx status code
func (*DeletePlaylistUnauthorized) IsSuccess ¶
func (o *DeletePlaylistUnauthorized) IsSuccess() bool
IsSuccess returns true when this delete playlist unauthorized response has a 2xx status code
func (*DeletePlaylistUnauthorized) String ¶
func (o *DeletePlaylistUnauthorized) String() string
type GetPlaylistForbidden ¶
type GetPlaylistForbidden struct {
Payload *models.ErrorResponseBody
}
GetPlaylistForbidden describes a response with status code 403, with default header values.
ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.
func NewGetPlaylistForbidden ¶
func NewGetPlaylistForbidden() *GetPlaylistForbidden
NewGetPlaylistForbidden creates a GetPlaylistForbidden with default headers values
func (*GetPlaylistForbidden) Code ¶
func (o *GetPlaylistForbidden) Code() int
Code gets the status code for the get playlist forbidden response
func (*GetPlaylistForbidden) Error ¶
func (o *GetPlaylistForbidden) Error() string
func (*GetPlaylistForbidden) GetPayload ¶
func (o *GetPlaylistForbidden) GetPayload() *models.ErrorResponseBody
func (*GetPlaylistForbidden) IsClientError ¶
func (o *GetPlaylistForbidden) IsClientError() bool
IsClientError returns true when this get playlist forbidden response has a 4xx status code
func (*GetPlaylistForbidden) IsCode ¶
func (o *GetPlaylistForbidden) IsCode(code int) bool
IsCode returns true when this get playlist forbidden response a status code equal to that given
func (*GetPlaylistForbidden) IsRedirect ¶
func (o *GetPlaylistForbidden) IsRedirect() bool
IsRedirect returns true when this get playlist forbidden response has a 3xx status code
func (*GetPlaylistForbidden) IsServerError ¶
func (o *GetPlaylistForbidden) IsServerError() bool
IsServerError returns true when this get playlist forbidden response has a 5xx status code
func (*GetPlaylistForbidden) IsSuccess ¶
func (o *GetPlaylistForbidden) IsSuccess() bool
IsSuccess returns true when this get playlist forbidden response has a 2xx status code
func (*GetPlaylistForbidden) String ¶
func (o *GetPlaylistForbidden) String() string
type GetPlaylistInternalServerError ¶
type GetPlaylistInternalServerError struct {
Payload *models.ErrorResponseBody
}
GetPlaylistInternalServerError describes a response with status code 500, with default header values.
InternalServerError is a general error indicating something went wrong internally.
func NewGetPlaylistInternalServerError ¶
func NewGetPlaylistInternalServerError() *GetPlaylistInternalServerError
NewGetPlaylistInternalServerError creates a GetPlaylistInternalServerError with default headers values
func (*GetPlaylistInternalServerError) Code ¶
func (o *GetPlaylistInternalServerError) Code() int
Code gets the status code for the get playlist internal server error response
func (*GetPlaylistInternalServerError) Error ¶
func (o *GetPlaylistInternalServerError) Error() string
func (*GetPlaylistInternalServerError) GetPayload ¶
func (o *GetPlaylistInternalServerError) GetPayload() *models.ErrorResponseBody
func (*GetPlaylistInternalServerError) IsClientError ¶
func (o *GetPlaylistInternalServerError) IsClientError() bool
IsClientError returns true when this get playlist internal server error response has a 4xx status code
func (*GetPlaylistInternalServerError) IsCode ¶
func (o *GetPlaylistInternalServerError) IsCode(code int) bool
IsCode returns true when this get playlist internal server error response a status code equal to that given
func (*GetPlaylistInternalServerError) IsRedirect ¶
func (o *GetPlaylistInternalServerError) IsRedirect() bool
IsRedirect returns true when this get playlist internal server error response has a 3xx status code
func (*GetPlaylistInternalServerError) IsServerError ¶
func (o *GetPlaylistInternalServerError) IsServerError() bool
IsServerError returns true when this get playlist internal server error response has a 5xx status code
func (*GetPlaylistInternalServerError) IsSuccess ¶
func (o *GetPlaylistInternalServerError) IsSuccess() bool
IsSuccess returns true when this get playlist internal server error response has a 2xx status code
func (*GetPlaylistInternalServerError) String ¶
func (o *GetPlaylistInternalServerError) String() string
type GetPlaylistItemsForbidden ¶
type GetPlaylistItemsForbidden struct {
Payload *models.ErrorResponseBody
}
GetPlaylistItemsForbidden describes a response with status code 403, with default header values.
ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.
func NewGetPlaylistItemsForbidden ¶
func NewGetPlaylistItemsForbidden() *GetPlaylistItemsForbidden
NewGetPlaylistItemsForbidden creates a GetPlaylistItemsForbidden with default headers values
func (*GetPlaylistItemsForbidden) Code ¶
func (o *GetPlaylistItemsForbidden) Code() int
Code gets the status code for the get playlist items forbidden response
func (*GetPlaylistItemsForbidden) Error ¶
func (o *GetPlaylistItemsForbidden) Error() string
func (*GetPlaylistItemsForbidden) GetPayload ¶
func (o *GetPlaylistItemsForbidden) GetPayload() *models.ErrorResponseBody
func (*GetPlaylistItemsForbidden) IsClientError ¶
func (o *GetPlaylistItemsForbidden) IsClientError() bool
IsClientError returns true when this get playlist items forbidden response has a 4xx status code
func (*GetPlaylistItemsForbidden) IsCode ¶
func (o *GetPlaylistItemsForbidden) IsCode(code int) bool
IsCode returns true when this get playlist items forbidden response a status code equal to that given
func (*GetPlaylistItemsForbidden) IsRedirect ¶
func (o *GetPlaylistItemsForbidden) IsRedirect() bool
IsRedirect returns true when this get playlist items forbidden response has a 3xx status code
func (*GetPlaylistItemsForbidden) IsServerError ¶
func (o *GetPlaylistItemsForbidden) IsServerError() bool
IsServerError returns true when this get playlist items forbidden response has a 5xx status code
func (*GetPlaylistItemsForbidden) IsSuccess ¶
func (o *GetPlaylistItemsForbidden) IsSuccess() bool
IsSuccess returns true when this get playlist items forbidden response has a 2xx status code
func (*GetPlaylistItemsForbidden) String ¶
func (o *GetPlaylistItemsForbidden) String() string
type GetPlaylistItemsInternalServerError ¶
type GetPlaylistItemsInternalServerError struct {
Payload *models.ErrorResponseBody
}
GetPlaylistItemsInternalServerError describes a response with status code 500, with default header values.
InternalServerError is a general error indicating something went wrong internally.
func NewGetPlaylistItemsInternalServerError ¶
func NewGetPlaylistItemsInternalServerError() *GetPlaylistItemsInternalServerError
NewGetPlaylistItemsInternalServerError creates a GetPlaylistItemsInternalServerError with default headers values
func (*GetPlaylistItemsInternalServerError) Code ¶
func (o *GetPlaylistItemsInternalServerError) Code() int
Code gets the status code for the get playlist items internal server error response
func (*GetPlaylistItemsInternalServerError) Error ¶
func (o *GetPlaylistItemsInternalServerError) Error() string
func (*GetPlaylistItemsInternalServerError) GetPayload ¶
func (o *GetPlaylistItemsInternalServerError) GetPayload() *models.ErrorResponseBody
func (*GetPlaylistItemsInternalServerError) IsClientError ¶
func (o *GetPlaylistItemsInternalServerError) IsClientError() bool
IsClientError returns true when this get playlist items internal server error response has a 4xx status code
func (*GetPlaylistItemsInternalServerError) IsCode ¶
func (o *GetPlaylistItemsInternalServerError) IsCode(code int) bool
IsCode returns true when this get playlist items internal server error response a status code equal to that given
func (*GetPlaylistItemsInternalServerError) IsRedirect ¶
func (o *GetPlaylistItemsInternalServerError) IsRedirect() bool
IsRedirect returns true when this get playlist items internal server error response has a 3xx status code
func (*GetPlaylistItemsInternalServerError) IsServerError ¶
func (o *GetPlaylistItemsInternalServerError) IsServerError() bool
IsServerError returns true when this get playlist items internal server error response has a 5xx status code
func (*GetPlaylistItemsInternalServerError) IsSuccess ¶
func (o *GetPlaylistItemsInternalServerError) IsSuccess() bool
IsSuccess returns true when this get playlist items internal server error response has a 2xx status code
func (*GetPlaylistItemsInternalServerError) String ¶
func (o *GetPlaylistItemsInternalServerError) String() string
type GetPlaylistItemsNotFound ¶
type GetPlaylistItemsNotFound struct {
Payload *models.ErrorResponseBody
}
GetPlaylistItemsNotFound describes a response with status code 404, with default header values.
NotFoundError is returned when the requested resource was not found.
func NewGetPlaylistItemsNotFound ¶
func NewGetPlaylistItemsNotFound() *GetPlaylistItemsNotFound
NewGetPlaylistItemsNotFound creates a GetPlaylistItemsNotFound with default headers values
func (*GetPlaylistItemsNotFound) Code ¶
func (o *GetPlaylistItemsNotFound) Code() int
Code gets the status code for the get playlist items not found response
func (*GetPlaylistItemsNotFound) Error ¶
func (o *GetPlaylistItemsNotFound) Error() string
func (*GetPlaylistItemsNotFound) GetPayload ¶
func (o *GetPlaylistItemsNotFound) GetPayload() *models.ErrorResponseBody
func (*GetPlaylistItemsNotFound) IsClientError ¶
func (o *GetPlaylistItemsNotFound) IsClientError() bool
IsClientError returns true when this get playlist items not found response has a 4xx status code
func (*GetPlaylistItemsNotFound) IsCode ¶
func (o *GetPlaylistItemsNotFound) IsCode(code int) bool
IsCode returns true when this get playlist items not found response a status code equal to that given
func (*GetPlaylistItemsNotFound) IsRedirect ¶
func (o *GetPlaylistItemsNotFound) IsRedirect() bool
IsRedirect returns true when this get playlist items not found response has a 3xx status code
func (*GetPlaylistItemsNotFound) IsServerError ¶
func (o *GetPlaylistItemsNotFound) IsServerError() bool
IsServerError returns true when this get playlist items not found response has a 5xx status code
func (*GetPlaylistItemsNotFound) IsSuccess ¶
func (o *GetPlaylistItemsNotFound) IsSuccess() bool
IsSuccess returns true when this get playlist items not found response has a 2xx status code
func (*GetPlaylistItemsNotFound) String ¶
func (o *GetPlaylistItemsNotFound) String() string
type GetPlaylistItemsOK ¶
type GetPlaylistItemsOK struct {
Payload []*models.PlaylistItem
}
GetPlaylistItemsOK describes a response with status code 200, with default header values.
(empty)
func NewGetPlaylistItemsOK ¶
func NewGetPlaylistItemsOK() *GetPlaylistItemsOK
NewGetPlaylistItemsOK creates a GetPlaylistItemsOK with default headers values
func (*GetPlaylistItemsOK) Code ¶
func (o *GetPlaylistItemsOK) Code() int
Code gets the status code for the get playlist items Ok response
func (*GetPlaylistItemsOK) Error ¶
func (o *GetPlaylistItemsOK) Error() string
func (*GetPlaylistItemsOK) GetPayload ¶
func (o *GetPlaylistItemsOK) GetPayload() []*models.PlaylistItem
func (*GetPlaylistItemsOK) IsClientError ¶
func (o *GetPlaylistItemsOK) IsClientError() bool
IsClientError returns true when this get playlist items Ok response has a 4xx status code
func (*GetPlaylistItemsOK) IsCode ¶
func (o *GetPlaylistItemsOK) IsCode(code int) bool
IsCode returns true when this get playlist items Ok response a status code equal to that given
func (*GetPlaylistItemsOK) IsRedirect ¶
func (o *GetPlaylistItemsOK) IsRedirect() bool
IsRedirect returns true when this get playlist items Ok response has a 3xx status code
func (*GetPlaylistItemsOK) IsServerError ¶
func (o *GetPlaylistItemsOK) IsServerError() bool
IsServerError returns true when this get playlist items Ok response has a 5xx status code
func (*GetPlaylistItemsOK) IsSuccess ¶
func (o *GetPlaylistItemsOK) IsSuccess() bool
IsSuccess returns true when this get playlist items Ok response has a 2xx status code
func (*GetPlaylistItemsOK) String ¶
func (o *GetPlaylistItemsOK) String() string
type GetPlaylistItemsParams ¶
type GetPlaylistItemsParams struct { // UID. UID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetPlaylistItemsParams contains all the parameters to send to the API endpoint
for the get playlist items operation. Typically these are written to a http.Request.
func NewGetPlaylistItemsParams ¶
func NewGetPlaylistItemsParams() *GetPlaylistItemsParams
NewGetPlaylistItemsParams creates a new GetPlaylistItemsParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetPlaylistItemsParamsWithContext ¶
func NewGetPlaylistItemsParamsWithContext(ctx context.Context) *GetPlaylistItemsParams
NewGetPlaylistItemsParamsWithContext creates a new GetPlaylistItemsParams object with the ability to set a context for a request.
func NewGetPlaylistItemsParamsWithHTTPClient ¶
func NewGetPlaylistItemsParamsWithHTTPClient(client *http.Client) *GetPlaylistItemsParams
NewGetPlaylistItemsParamsWithHTTPClient creates a new GetPlaylistItemsParams object with the ability to set a custom HTTPClient for a request.
func NewGetPlaylistItemsParamsWithTimeout ¶
func NewGetPlaylistItemsParamsWithTimeout(timeout time.Duration) *GetPlaylistItemsParams
NewGetPlaylistItemsParamsWithTimeout creates a new GetPlaylistItemsParams object with the ability to set a timeout on a request.
func (*GetPlaylistItemsParams) SetContext ¶
func (o *GetPlaylistItemsParams) SetContext(ctx context.Context)
SetContext adds the context to the get playlist items params
func (*GetPlaylistItemsParams) SetDefaults ¶
func (o *GetPlaylistItemsParams) SetDefaults()
SetDefaults hydrates default values in the get playlist items params (not the query body).
All values with no default are reset to their zero value.
func (*GetPlaylistItemsParams) SetHTTPClient ¶
func (o *GetPlaylistItemsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get playlist items params
func (*GetPlaylistItemsParams) SetTimeout ¶
func (o *GetPlaylistItemsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get playlist items params
func (*GetPlaylistItemsParams) SetUID ¶
func (o *GetPlaylistItemsParams) SetUID(uid string)
SetUID adds the uid to the get playlist items params
func (*GetPlaylistItemsParams) WithContext ¶
func (o *GetPlaylistItemsParams) WithContext(ctx context.Context) *GetPlaylistItemsParams
WithContext adds the context to the get playlist items params
func (*GetPlaylistItemsParams) WithDefaults ¶
func (o *GetPlaylistItemsParams) WithDefaults() *GetPlaylistItemsParams
WithDefaults hydrates default values in the get playlist items params (not the query body).
All values with no default are reset to their zero value.
func (*GetPlaylistItemsParams) WithHTTPClient ¶
func (o *GetPlaylistItemsParams) WithHTTPClient(client *http.Client) *GetPlaylistItemsParams
WithHTTPClient adds the HTTPClient to the get playlist items params
func (*GetPlaylistItemsParams) WithTimeout ¶
func (o *GetPlaylistItemsParams) WithTimeout(timeout time.Duration) *GetPlaylistItemsParams
WithTimeout adds the timeout to the get playlist items params
func (*GetPlaylistItemsParams) WithUID ¶
func (o *GetPlaylistItemsParams) WithUID(uid string) *GetPlaylistItemsParams
WithUID adds the uid to the get playlist items params
func (*GetPlaylistItemsParams) WriteToRequest ¶
func (o *GetPlaylistItemsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetPlaylistItemsReader ¶
type GetPlaylistItemsReader struct {
// contains filtered or unexported fields
}
GetPlaylistItemsReader is a Reader for the GetPlaylistItems structure.
func (*GetPlaylistItemsReader) ReadResponse ¶
func (o *GetPlaylistItemsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetPlaylistItemsUnauthorized ¶
type GetPlaylistItemsUnauthorized struct {
}GetPlaylistItemsUnauthorized describes a response with status code 401, with default header values.
UnauthorizedError is returned when the request is not authenticated.
func NewGetPlaylistItemsUnauthorized ¶
func NewGetPlaylistItemsUnauthorized() *GetPlaylistItemsUnauthorized
NewGetPlaylistItemsUnauthorized creates a GetPlaylistItemsUnauthorized with default headers values
func (*GetPlaylistItemsUnauthorized) Code ¶
func (o *GetPlaylistItemsUnauthorized) Code() int
Code gets the status code for the get playlist items unauthorized response
func (*GetPlaylistItemsUnauthorized) Error ¶
func (o *GetPlaylistItemsUnauthorized) Error() string
func (*GetPlaylistItemsUnauthorized) GetPayload ¶
func (o *GetPlaylistItemsUnauthorized) GetPayload() *models.ErrorResponseBody
func (*GetPlaylistItemsUnauthorized) IsClientError ¶
func (o *GetPlaylistItemsUnauthorized) IsClientError() bool
IsClientError returns true when this get playlist items unauthorized response has a 4xx status code
func (*GetPlaylistItemsUnauthorized) IsCode ¶
func (o *GetPlaylistItemsUnauthorized) IsCode(code int) bool
IsCode returns true when this get playlist items unauthorized response a status code equal to that given
func (*GetPlaylistItemsUnauthorized) IsRedirect ¶
func (o *GetPlaylistItemsUnauthorized) IsRedirect() bool
IsRedirect returns true when this get playlist items unauthorized response has a 3xx status code
func (*GetPlaylistItemsUnauthorized) IsServerError ¶
func (o *GetPlaylistItemsUnauthorized) IsServerError() bool
IsServerError returns true when this get playlist items unauthorized response has a 5xx status code
func (*GetPlaylistItemsUnauthorized) IsSuccess ¶
func (o *GetPlaylistItemsUnauthorized) IsSuccess() bool
IsSuccess returns true when this get playlist items unauthorized response has a 2xx status code
func (*GetPlaylistItemsUnauthorized) String ¶
func (o *GetPlaylistItemsUnauthorized) String() string
type GetPlaylistNotFound ¶
type GetPlaylistNotFound struct {
Payload *models.ErrorResponseBody
}
GetPlaylistNotFound describes a response with status code 404, with default header values.
NotFoundError is returned when the requested resource was not found.
func NewGetPlaylistNotFound ¶
func NewGetPlaylistNotFound() *GetPlaylistNotFound
NewGetPlaylistNotFound creates a GetPlaylistNotFound with default headers values
func (*GetPlaylistNotFound) Code ¶
func (o *GetPlaylistNotFound) Code() int
Code gets the status code for the get playlist not found response
func (*GetPlaylistNotFound) Error ¶
func (o *GetPlaylistNotFound) Error() string
func (*GetPlaylistNotFound) GetPayload ¶
func (o *GetPlaylistNotFound) GetPayload() *models.ErrorResponseBody
func (*GetPlaylistNotFound) IsClientError ¶
func (o *GetPlaylistNotFound) IsClientError() bool
IsClientError returns true when this get playlist not found response has a 4xx status code
func (*GetPlaylistNotFound) IsCode ¶
func (o *GetPlaylistNotFound) IsCode(code int) bool
IsCode returns true when this get playlist not found response a status code equal to that given
func (*GetPlaylistNotFound) IsRedirect ¶
func (o *GetPlaylistNotFound) IsRedirect() bool
IsRedirect returns true when this get playlist not found response has a 3xx status code
func (*GetPlaylistNotFound) IsServerError ¶
func (o *GetPlaylistNotFound) IsServerError() bool
IsServerError returns true when this get playlist not found response has a 5xx status code
func (*GetPlaylistNotFound) IsSuccess ¶
func (o *GetPlaylistNotFound) IsSuccess() bool
IsSuccess returns true when this get playlist not found response has a 2xx status code
func (*GetPlaylistNotFound) String ¶
func (o *GetPlaylistNotFound) String() string
type GetPlaylistOK ¶
GetPlaylistOK describes a response with status code 200, with default header values.
(empty)
func NewGetPlaylistOK ¶
func NewGetPlaylistOK() *GetPlaylistOK
NewGetPlaylistOK creates a GetPlaylistOK with default headers values
func (*GetPlaylistOK) Code ¶
func (o *GetPlaylistOK) Code() int
Code gets the status code for the get playlist Ok response
func (*GetPlaylistOK) Error ¶
func (o *GetPlaylistOK) Error() string
func (*GetPlaylistOK) GetPayload ¶
func (o *GetPlaylistOK) GetPayload() *models.Playlist
func (*GetPlaylistOK) IsClientError ¶
func (o *GetPlaylistOK) IsClientError() bool
IsClientError returns true when this get playlist Ok response has a 4xx status code
func (*GetPlaylistOK) IsCode ¶
func (o *GetPlaylistOK) IsCode(code int) bool
IsCode returns true when this get playlist Ok response a status code equal to that given
func (*GetPlaylistOK) IsRedirect ¶
func (o *GetPlaylistOK) IsRedirect() bool
IsRedirect returns true when this get playlist Ok response has a 3xx status code
func (*GetPlaylistOK) IsServerError ¶
func (o *GetPlaylistOK) IsServerError() bool
IsServerError returns true when this get playlist Ok response has a 5xx status code
func (*GetPlaylistOK) IsSuccess ¶
func (o *GetPlaylistOK) IsSuccess() bool
IsSuccess returns true when this get playlist Ok response has a 2xx status code
func (*GetPlaylistOK) String ¶
func (o *GetPlaylistOK) String() string
type GetPlaylistParams ¶
type GetPlaylistParams struct { // UID. UID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetPlaylistParams contains all the parameters to send to the API endpoint
for the get playlist operation. Typically these are written to a http.Request.
func NewGetPlaylistParams ¶
func NewGetPlaylistParams() *GetPlaylistParams
NewGetPlaylistParams creates a new GetPlaylistParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetPlaylistParamsWithContext ¶
func NewGetPlaylistParamsWithContext(ctx context.Context) *GetPlaylistParams
NewGetPlaylistParamsWithContext creates a new GetPlaylistParams object with the ability to set a context for a request.
func NewGetPlaylistParamsWithHTTPClient ¶
func NewGetPlaylistParamsWithHTTPClient(client *http.Client) *GetPlaylistParams
NewGetPlaylistParamsWithHTTPClient creates a new GetPlaylistParams object with the ability to set a custom HTTPClient for a request.
func NewGetPlaylistParamsWithTimeout ¶
func NewGetPlaylistParamsWithTimeout(timeout time.Duration) *GetPlaylistParams
NewGetPlaylistParamsWithTimeout creates a new GetPlaylistParams object with the ability to set a timeout on a request.
func (*GetPlaylistParams) SetContext ¶
func (o *GetPlaylistParams) SetContext(ctx context.Context)
SetContext adds the context to the get playlist params
func (*GetPlaylistParams) SetDefaults ¶
func (o *GetPlaylistParams) SetDefaults()
SetDefaults hydrates default values in the get playlist params (not the query body).
All values with no default are reset to their zero value.
func (*GetPlaylistParams) SetHTTPClient ¶
func (o *GetPlaylistParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get playlist params
func (*GetPlaylistParams) SetTimeout ¶
func (o *GetPlaylistParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get playlist params
func (*GetPlaylistParams) SetUID ¶
func (o *GetPlaylistParams) SetUID(uid string)
SetUID adds the uid to the get playlist params
func (*GetPlaylistParams) WithContext ¶
func (o *GetPlaylistParams) WithContext(ctx context.Context) *GetPlaylistParams
WithContext adds the context to the get playlist params
func (*GetPlaylistParams) WithDefaults ¶
func (o *GetPlaylistParams) WithDefaults() *GetPlaylistParams
WithDefaults hydrates default values in the get playlist params (not the query body).
All values with no default are reset to their zero value.
func (*GetPlaylistParams) WithHTTPClient ¶
func (o *GetPlaylistParams) WithHTTPClient(client *http.Client) *GetPlaylistParams
WithHTTPClient adds the HTTPClient to the get playlist params
func (*GetPlaylistParams) WithTimeout ¶
func (o *GetPlaylistParams) WithTimeout(timeout time.Duration) *GetPlaylistParams
WithTimeout adds the timeout to the get playlist params
func (*GetPlaylistParams) WithUID ¶
func (o *GetPlaylistParams) WithUID(uid string) *GetPlaylistParams
WithUID adds the uid to the get playlist params
func (*GetPlaylistParams) WriteToRequest ¶
func (o *GetPlaylistParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetPlaylistReader ¶
type GetPlaylistReader struct {
// contains filtered or unexported fields
}
GetPlaylistReader is a Reader for the GetPlaylist structure.
func (*GetPlaylistReader) ReadResponse ¶
func (o *GetPlaylistReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetPlaylistUnauthorized ¶
type GetPlaylistUnauthorized struct {
}GetPlaylistUnauthorized describes a response with status code 401, with default header values.
UnauthorizedError is returned when the request is not authenticated.
func NewGetPlaylistUnauthorized ¶
func NewGetPlaylistUnauthorized() *GetPlaylistUnauthorized
NewGetPlaylistUnauthorized creates a GetPlaylistUnauthorized with default headers values
func (*GetPlaylistUnauthorized) Code ¶
func (o *GetPlaylistUnauthorized) Code() int
Code gets the status code for the get playlist unauthorized response
func (*GetPlaylistUnauthorized) Error ¶
func (o *GetPlaylistUnauthorized) Error() string
func (*GetPlaylistUnauthorized) GetPayload ¶
func (o *GetPlaylistUnauthorized) GetPayload() *models.ErrorResponseBody
func (*GetPlaylistUnauthorized) IsClientError ¶
func (o *GetPlaylistUnauthorized) IsClientError() bool
IsClientError returns true when this get playlist unauthorized response has a 4xx status code
func (*GetPlaylistUnauthorized) IsCode ¶
func (o *GetPlaylistUnauthorized) IsCode(code int) bool
IsCode returns true when this get playlist unauthorized response a status code equal to that given
func (*GetPlaylistUnauthorized) IsRedirect ¶
func (o *GetPlaylistUnauthorized) IsRedirect() bool
IsRedirect returns true when this get playlist unauthorized response has a 3xx status code
func (*GetPlaylistUnauthorized) IsServerError ¶
func (o *GetPlaylistUnauthorized) IsServerError() bool
IsServerError returns true when this get playlist unauthorized response has a 5xx status code
func (*GetPlaylistUnauthorized) IsSuccess ¶
func (o *GetPlaylistUnauthorized) IsSuccess() bool
IsSuccess returns true when this get playlist unauthorized response has a 2xx status code
func (*GetPlaylistUnauthorized) String ¶
func (o *GetPlaylistUnauthorized) String() string
type SearchPlaylistsInternalServerError ¶
type SearchPlaylistsInternalServerError struct {
Payload *models.ErrorResponseBody
}
SearchPlaylistsInternalServerError describes a response with status code 500, with default header values.
InternalServerError is a general error indicating something went wrong internally.
func NewSearchPlaylistsInternalServerError ¶
func NewSearchPlaylistsInternalServerError() *SearchPlaylistsInternalServerError
NewSearchPlaylistsInternalServerError creates a SearchPlaylistsInternalServerError with default headers values
func (*SearchPlaylistsInternalServerError) Code ¶
func (o *SearchPlaylistsInternalServerError) Code() int
Code gets the status code for the search playlists internal server error response
func (*SearchPlaylistsInternalServerError) Error ¶
func (o *SearchPlaylistsInternalServerError) Error() string
func (*SearchPlaylistsInternalServerError) GetPayload ¶
func (o *SearchPlaylistsInternalServerError) GetPayload() *models.ErrorResponseBody
func (*SearchPlaylistsInternalServerError) IsClientError ¶
func (o *SearchPlaylistsInternalServerError) IsClientError() bool
IsClientError returns true when this search playlists internal server error response has a 4xx status code
func (*SearchPlaylistsInternalServerError) IsCode ¶
func (o *SearchPlaylistsInternalServerError) IsCode(code int) bool
IsCode returns true when this search playlists internal server error response a status code equal to that given
func (*SearchPlaylistsInternalServerError) IsRedirect ¶
func (o *SearchPlaylistsInternalServerError) IsRedirect() bool
IsRedirect returns true when this search playlists internal server error response has a 3xx status code
func (*SearchPlaylistsInternalServerError) IsServerError ¶
func (o *SearchPlaylistsInternalServerError) IsServerError() bool
IsServerError returns true when this search playlists internal server error response has a 5xx status code
func (*SearchPlaylistsInternalServerError) IsSuccess ¶
func (o *SearchPlaylistsInternalServerError) IsSuccess() bool
IsSuccess returns true when this search playlists internal server error response has a 2xx status code
func (*SearchPlaylistsInternalServerError) String ¶
func (o *SearchPlaylistsInternalServerError) String() string
type SearchPlaylistsOK ¶
SearchPlaylistsOK describes a response with status code 200, with default header values.
(empty)
func NewSearchPlaylistsOK ¶
func NewSearchPlaylistsOK() *SearchPlaylistsOK
NewSearchPlaylistsOK creates a SearchPlaylistsOK with default headers values
func (*SearchPlaylistsOK) Code ¶
func (o *SearchPlaylistsOK) Code() int
Code gets the status code for the search playlists Ok response
func (*SearchPlaylistsOK) Error ¶
func (o *SearchPlaylistsOK) Error() string
func (*SearchPlaylistsOK) GetPayload ¶
func (o *SearchPlaylistsOK) GetPayload() models.Playlists
func (*SearchPlaylistsOK) IsClientError ¶
func (o *SearchPlaylistsOK) IsClientError() bool
IsClientError returns true when this search playlists Ok response has a 4xx status code
func (*SearchPlaylistsOK) IsCode ¶
func (o *SearchPlaylistsOK) IsCode(code int) bool
IsCode returns true when this search playlists Ok response a status code equal to that given
func (*SearchPlaylistsOK) IsRedirect ¶
func (o *SearchPlaylistsOK) IsRedirect() bool
IsRedirect returns true when this search playlists Ok response has a 3xx status code
func (*SearchPlaylistsOK) IsServerError ¶
func (o *SearchPlaylistsOK) IsServerError() bool
IsServerError returns true when this search playlists Ok response has a 5xx status code
func (*SearchPlaylistsOK) IsSuccess ¶
func (o *SearchPlaylistsOK) IsSuccess() bool
IsSuccess returns true when this search playlists Ok response has a 2xx status code
func (*SearchPlaylistsOK) String ¶
func (o *SearchPlaylistsOK) String() string
type SearchPlaylistsParams ¶
type SearchPlaylistsParams struct { /* Limit. in:limit Format: int64 */ Limit *int64 // Query. Query *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SearchPlaylistsParams contains all the parameters to send to the API endpoint
for the search playlists operation. Typically these are written to a http.Request.
func NewSearchPlaylistsParams ¶
func NewSearchPlaylistsParams() *SearchPlaylistsParams
NewSearchPlaylistsParams creates a new SearchPlaylistsParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewSearchPlaylistsParamsWithContext ¶
func NewSearchPlaylistsParamsWithContext(ctx context.Context) *SearchPlaylistsParams
NewSearchPlaylistsParamsWithContext creates a new SearchPlaylistsParams object with the ability to set a context for a request.
func NewSearchPlaylistsParamsWithHTTPClient ¶
func NewSearchPlaylistsParamsWithHTTPClient(client *http.Client) *SearchPlaylistsParams
NewSearchPlaylistsParamsWithHTTPClient creates a new SearchPlaylistsParams object with the ability to set a custom HTTPClient for a request.
func NewSearchPlaylistsParamsWithTimeout ¶
func NewSearchPlaylistsParamsWithTimeout(timeout time.Duration) *SearchPlaylistsParams
NewSearchPlaylistsParamsWithTimeout creates a new SearchPlaylistsParams object with the ability to set a timeout on a request.
func (*SearchPlaylistsParams) SetContext ¶
func (o *SearchPlaylistsParams) SetContext(ctx context.Context)
SetContext adds the context to the search playlists params
func (*SearchPlaylistsParams) SetDefaults ¶
func (o *SearchPlaylistsParams) SetDefaults()
SetDefaults hydrates default values in the search playlists params (not the query body).
All values with no default are reset to their zero value.
func (*SearchPlaylistsParams) SetHTTPClient ¶
func (o *SearchPlaylistsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the search playlists params
func (*SearchPlaylistsParams) SetLimit ¶
func (o *SearchPlaylistsParams) SetLimit(limit *int64)
SetLimit adds the limit to the search playlists params
func (*SearchPlaylistsParams) SetQuery ¶
func (o *SearchPlaylistsParams) SetQuery(query *string)
SetQuery adds the query to the search playlists params
func (*SearchPlaylistsParams) SetTimeout ¶
func (o *SearchPlaylistsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the search playlists params
func (*SearchPlaylistsParams) WithContext ¶
func (o *SearchPlaylistsParams) WithContext(ctx context.Context) *SearchPlaylistsParams
WithContext adds the context to the search playlists params
func (*SearchPlaylistsParams) WithDefaults ¶
func (o *SearchPlaylistsParams) WithDefaults() *SearchPlaylistsParams
WithDefaults hydrates default values in the search playlists params (not the query body).
All values with no default are reset to their zero value.
func (*SearchPlaylistsParams) WithHTTPClient ¶
func (o *SearchPlaylistsParams) WithHTTPClient(client *http.Client) *SearchPlaylistsParams
WithHTTPClient adds the HTTPClient to the search playlists params
func (*SearchPlaylistsParams) WithLimit ¶
func (o *SearchPlaylistsParams) WithLimit(limit *int64) *SearchPlaylistsParams
WithLimit adds the limit to the search playlists params
func (*SearchPlaylistsParams) WithQuery ¶
func (o *SearchPlaylistsParams) WithQuery(query *string) *SearchPlaylistsParams
WithQuery adds the query to the search playlists params
func (*SearchPlaylistsParams) WithTimeout ¶
func (o *SearchPlaylistsParams) WithTimeout(timeout time.Duration) *SearchPlaylistsParams
WithTimeout adds the timeout to the search playlists params
func (*SearchPlaylistsParams) WriteToRequest ¶
func (o *SearchPlaylistsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SearchPlaylistsReader ¶
type SearchPlaylistsReader struct {
// contains filtered or unexported fields
}
SearchPlaylistsReader is a Reader for the SearchPlaylists structure.
func (*SearchPlaylistsReader) ReadResponse ¶
func (o *SearchPlaylistsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdatePlaylistForbidden ¶
type UpdatePlaylistForbidden struct {
Payload *models.ErrorResponseBody
}
UpdatePlaylistForbidden describes a response with status code 403, with default header values.
ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.
func NewUpdatePlaylistForbidden ¶
func NewUpdatePlaylistForbidden() *UpdatePlaylistForbidden
NewUpdatePlaylistForbidden creates a UpdatePlaylistForbidden with default headers values
func (*UpdatePlaylistForbidden) Code ¶
func (o *UpdatePlaylistForbidden) Code() int
Code gets the status code for the update playlist forbidden response
func (*UpdatePlaylistForbidden) Error ¶
func (o *UpdatePlaylistForbidden) Error() string
func (*UpdatePlaylistForbidden) GetPayload ¶
func (o *UpdatePlaylistForbidden) GetPayload() *models.ErrorResponseBody
func (*UpdatePlaylistForbidden) IsClientError ¶
func (o *UpdatePlaylistForbidden) IsClientError() bool
IsClientError returns true when this update playlist forbidden response has a 4xx status code
func (*UpdatePlaylistForbidden) IsCode ¶
func (o *UpdatePlaylistForbidden) IsCode(code int) bool
IsCode returns true when this update playlist forbidden response a status code equal to that given
func (*UpdatePlaylistForbidden) IsRedirect ¶
func (o *UpdatePlaylistForbidden) IsRedirect() bool
IsRedirect returns true when this update playlist forbidden response has a 3xx status code
func (*UpdatePlaylistForbidden) IsServerError ¶
func (o *UpdatePlaylistForbidden) IsServerError() bool
IsServerError returns true when this update playlist forbidden response has a 5xx status code
func (*UpdatePlaylistForbidden) IsSuccess ¶
func (o *UpdatePlaylistForbidden) IsSuccess() bool
IsSuccess returns true when this update playlist forbidden response has a 2xx status code
func (*UpdatePlaylistForbidden) String ¶
func (o *UpdatePlaylistForbidden) String() string
type UpdatePlaylistInternalServerError ¶
type UpdatePlaylistInternalServerError struct {
Payload *models.ErrorResponseBody
}
UpdatePlaylistInternalServerError describes a response with status code 500, with default header values.
InternalServerError is a general error indicating something went wrong internally.
func NewUpdatePlaylistInternalServerError ¶
func NewUpdatePlaylistInternalServerError() *UpdatePlaylistInternalServerError
NewUpdatePlaylistInternalServerError creates a UpdatePlaylistInternalServerError with default headers values
func (*UpdatePlaylistInternalServerError) Code ¶
func (o *UpdatePlaylistInternalServerError) Code() int
Code gets the status code for the update playlist internal server error response
func (*UpdatePlaylistInternalServerError) Error ¶
func (o *UpdatePlaylistInternalServerError) Error() string
func (*UpdatePlaylistInternalServerError) GetPayload ¶
func (o *UpdatePlaylistInternalServerError) GetPayload() *models.ErrorResponseBody
func (*UpdatePlaylistInternalServerError) IsClientError ¶
func (o *UpdatePlaylistInternalServerError) IsClientError() bool
IsClientError returns true when this update playlist internal server error response has a 4xx status code
func (*UpdatePlaylistInternalServerError) IsCode ¶
func (o *UpdatePlaylistInternalServerError) IsCode(code int) bool
IsCode returns true when this update playlist internal server error response a status code equal to that given
func (*UpdatePlaylistInternalServerError) IsRedirect ¶
func (o *UpdatePlaylistInternalServerError) IsRedirect() bool
IsRedirect returns true when this update playlist internal server error response has a 3xx status code
func (*UpdatePlaylistInternalServerError) IsServerError ¶
func (o *UpdatePlaylistInternalServerError) IsServerError() bool
IsServerError returns true when this update playlist internal server error response has a 5xx status code
func (*UpdatePlaylistInternalServerError) IsSuccess ¶
func (o *UpdatePlaylistInternalServerError) IsSuccess() bool
IsSuccess returns true when this update playlist internal server error response has a 2xx status code
func (*UpdatePlaylistInternalServerError) String ¶
func (o *UpdatePlaylistInternalServerError) String() string
type UpdatePlaylistNotFound ¶
type UpdatePlaylistNotFound struct {
Payload *models.ErrorResponseBody
}
UpdatePlaylistNotFound describes a response with status code 404, with default header values.
NotFoundError is returned when the requested resource was not found.
func NewUpdatePlaylistNotFound ¶
func NewUpdatePlaylistNotFound() *UpdatePlaylistNotFound
NewUpdatePlaylistNotFound creates a UpdatePlaylistNotFound with default headers values
func (*UpdatePlaylistNotFound) Code ¶
func (o *UpdatePlaylistNotFound) Code() int
Code gets the status code for the update playlist not found response
func (*UpdatePlaylistNotFound) Error ¶
func (o *UpdatePlaylistNotFound) Error() string
func (*UpdatePlaylistNotFound) GetPayload ¶
func (o *UpdatePlaylistNotFound) GetPayload() *models.ErrorResponseBody
func (*UpdatePlaylistNotFound) IsClientError ¶
func (o *UpdatePlaylistNotFound) IsClientError() bool
IsClientError returns true when this update playlist not found response has a 4xx status code
func (*UpdatePlaylistNotFound) IsCode ¶
func (o *UpdatePlaylistNotFound) IsCode(code int) bool
IsCode returns true when this update playlist not found response a status code equal to that given
func (*UpdatePlaylistNotFound) IsRedirect ¶
func (o *UpdatePlaylistNotFound) IsRedirect() bool
IsRedirect returns true when this update playlist not found response has a 3xx status code
func (*UpdatePlaylistNotFound) IsServerError ¶
func (o *UpdatePlaylistNotFound) IsServerError() bool
IsServerError returns true when this update playlist not found response has a 5xx status code
func (*UpdatePlaylistNotFound) IsSuccess ¶
func (o *UpdatePlaylistNotFound) IsSuccess() bool
IsSuccess returns true when this update playlist not found response has a 2xx status code
func (*UpdatePlaylistNotFound) String ¶
func (o *UpdatePlaylistNotFound) String() string
type UpdatePlaylistOK ¶
UpdatePlaylistOK describes a response with status code 200, with default header values.
(empty)
func NewUpdatePlaylistOK ¶
func NewUpdatePlaylistOK() *UpdatePlaylistOK
NewUpdatePlaylistOK creates a UpdatePlaylistOK with default headers values
func (*UpdatePlaylistOK) Code ¶
func (o *UpdatePlaylistOK) Code() int
Code gets the status code for the update playlist Ok response
func (*UpdatePlaylistOK) Error ¶
func (o *UpdatePlaylistOK) Error() string
func (*UpdatePlaylistOK) GetPayload ¶
func (o *UpdatePlaylistOK) GetPayload() *models.Playlist
func (*UpdatePlaylistOK) IsClientError ¶
func (o *UpdatePlaylistOK) IsClientError() bool
IsClientError returns true when this update playlist Ok response has a 4xx status code
func (*UpdatePlaylistOK) IsCode ¶
func (o *UpdatePlaylistOK) IsCode(code int) bool
IsCode returns true when this update playlist Ok response a status code equal to that given
func (*UpdatePlaylistOK) IsRedirect ¶
func (o *UpdatePlaylistOK) IsRedirect() bool
IsRedirect returns true when this update playlist Ok response has a 3xx status code
func (*UpdatePlaylistOK) IsServerError ¶
func (o *UpdatePlaylistOK) IsServerError() bool
IsServerError returns true when this update playlist Ok response has a 5xx status code
func (*UpdatePlaylistOK) IsSuccess ¶
func (o *UpdatePlaylistOK) IsSuccess() bool
IsSuccess returns true when this update playlist Ok response has a 2xx status code
func (*UpdatePlaylistOK) String ¶
func (o *UpdatePlaylistOK) String() string
type UpdatePlaylistParams ¶
type UpdatePlaylistParams struct { // Body. Body *models.UpdatePlaylistCommand // UID. UID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdatePlaylistParams contains all the parameters to send to the API endpoint
for the update playlist operation. Typically these are written to a http.Request.
func NewUpdatePlaylistParams ¶
func NewUpdatePlaylistParams() *UpdatePlaylistParams
NewUpdatePlaylistParams creates a new UpdatePlaylistParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewUpdatePlaylistParamsWithContext ¶
func NewUpdatePlaylistParamsWithContext(ctx context.Context) *UpdatePlaylistParams
NewUpdatePlaylistParamsWithContext creates a new UpdatePlaylistParams object with the ability to set a context for a request.
func NewUpdatePlaylistParamsWithHTTPClient ¶
func NewUpdatePlaylistParamsWithHTTPClient(client *http.Client) *UpdatePlaylistParams
NewUpdatePlaylistParamsWithHTTPClient creates a new UpdatePlaylistParams object with the ability to set a custom HTTPClient for a request.
func NewUpdatePlaylistParamsWithTimeout ¶
func NewUpdatePlaylistParamsWithTimeout(timeout time.Duration) *UpdatePlaylistParams
NewUpdatePlaylistParamsWithTimeout creates a new UpdatePlaylistParams object with the ability to set a timeout on a request.
func (*UpdatePlaylistParams) SetBody ¶
func (o *UpdatePlaylistParams) SetBody(body *models.UpdatePlaylistCommand)
SetBody adds the body to the update playlist params
func (*UpdatePlaylistParams) SetContext ¶
func (o *UpdatePlaylistParams) SetContext(ctx context.Context)
SetContext adds the context to the update playlist params
func (*UpdatePlaylistParams) SetDefaults ¶
func (o *UpdatePlaylistParams) SetDefaults()
SetDefaults hydrates default values in the update playlist params (not the query body).
All values with no default are reset to their zero value.
func (*UpdatePlaylistParams) SetHTTPClient ¶
func (o *UpdatePlaylistParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update playlist params
func (*UpdatePlaylistParams) SetTimeout ¶
func (o *UpdatePlaylistParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update playlist params
func (*UpdatePlaylistParams) SetUID ¶
func (o *UpdatePlaylistParams) SetUID(uid string)
SetUID adds the uid to the update playlist params
func (*UpdatePlaylistParams) WithBody ¶
func (o *UpdatePlaylistParams) WithBody(body *models.UpdatePlaylistCommand) *UpdatePlaylistParams
WithBody adds the body to the update playlist params
func (*UpdatePlaylistParams) WithContext ¶
func (o *UpdatePlaylistParams) WithContext(ctx context.Context) *UpdatePlaylistParams
WithContext adds the context to the update playlist params
func (*UpdatePlaylistParams) WithDefaults ¶
func (o *UpdatePlaylistParams) WithDefaults() *UpdatePlaylistParams
WithDefaults hydrates default values in the update playlist params (not the query body).
All values with no default are reset to their zero value.
func (*UpdatePlaylistParams) WithHTTPClient ¶
func (o *UpdatePlaylistParams) WithHTTPClient(client *http.Client) *UpdatePlaylistParams
WithHTTPClient adds the HTTPClient to the update playlist params
func (*UpdatePlaylistParams) WithTimeout ¶
func (o *UpdatePlaylistParams) WithTimeout(timeout time.Duration) *UpdatePlaylistParams
WithTimeout adds the timeout to the update playlist params
func (*UpdatePlaylistParams) WithUID ¶
func (o *UpdatePlaylistParams) WithUID(uid string) *UpdatePlaylistParams
WithUID adds the uid to the update playlist params
func (*UpdatePlaylistParams) WriteToRequest ¶
func (o *UpdatePlaylistParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdatePlaylistReader ¶
type UpdatePlaylistReader struct {
// contains filtered or unexported fields
}
UpdatePlaylistReader is a Reader for the UpdatePlaylist structure.
func (*UpdatePlaylistReader) ReadResponse ¶
func (o *UpdatePlaylistReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdatePlaylistUnauthorized ¶
type UpdatePlaylistUnauthorized struct {
}UpdatePlaylistUnauthorized describes a response with status code 401, with default header values.
UnauthorizedError is returned when the request is not authenticated.
func NewUpdatePlaylistUnauthorized ¶
func NewUpdatePlaylistUnauthorized() *UpdatePlaylistUnauthorized
NewUpdatePlaylistUnauthorized creates a UpdatePlaylistUnauthorized with default headers values
func (*UpdatePlaylistUnauthorized) Code ¶
func (o *UpdatePlaylistUnauthorized) Code() int
Code gets the status code for the update playlist unauthorized response
func (*UpdatePlaylistUnauthorized) Error ¶
func (o *UpdatePlaylistUnauthorized) Error() string
func (*UpdatePlaylistUnauthorized) GetPayload ¶
func (o *UpdatePlaylistUnauthorized) GetPayload() *models.ErrorResponseBody
func (*UpdatePlaylistUnauthorized) IsClientError ¶
func (o *UpdatePlaylistUnauthorized) IsClientError() bool
IsClientError returns true when this update playlist unauthorized response has a 4xx status code
func (*UpdatePlaylistUnauthorized) IsCode ¶
func (o *UpdatePlaylistUnauthorized) IsCode(code int) bool
IsCode returns true when this update playlist unauthorized response a status code equal to that given
func (*UpdatePlaylistUnauthorized) IsRedirect ¶
func (o *UpdatePlaylistUnauthorized) IsRedirect() bool
IsRedirect returns true when this update playlist unauthorized response has a 3xx status code
func (*UpdatePlaylistUnauthorized) IsServerError ¶
func (o *UpdatePlaylistUnauthorized) IsServerError() bool
IsServerError returns true when this update playlist unauthorized response has a 5xx status code
func (*UpdatePlaylistUnauthorized) IsSuccess ¶
func (o *UpdatePlaylistUnauthorized) IsSuccess() bool
IsSuccess returns true when this update playlist unauthorized response has a 2xx status code
func (*UpdatePlaylistUnauthorized) String ¶
func (o *UpdatePlaylistUnauthorized) String() string
Source Files ¶
- create_playlist_parameters.go
- create_playlist_responses.go
- delete_playlist_parameters.go
- delete_playlist_responses.go
- get_playlist_items_parameters.go
- get_playlist_items_responses.go
- get_playlist_parameters.go
- get_playlist_responses.go
- playlists_client.go
- search_playlists_parameters.go
- search_playlists_responses.go
- update_playlist_parameters.go
- update_playlist_responses.go