vo_d_rest_service

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for vo d rest service API

func (*Client) DeleteVoD

func (a *Client) DeleteVoD(params *DeleteVoDParams, opts ...ClientOption) (*DeleteVoDOK, error)

DeleteVoD deletes specific vo d file

func (*Client) DeleteVoDs

func (a *Client) DeleteVoDs(params *DeleteVoDsParams, opts ...ClientOption) (*DeleteVoDsOK, error)

DeleteVoDs deletes bulk vo d files based on vod Id

func (*Client) GetTotalVodNumber

func (a *Client) GetTotalVodNumber(params *GetTotalVodNumberParams, opts ...ClientOption) (*GetTotalVodNumberOK, error)

GetTotalVodNumber gets the partial number of vo ds depending on the searched items

func (*Client) GetVoD

func (a *Client) GetVoD(params *GetVoDParams, opts ...ClientOption) (*GetVoDOK, error)

GetVoD vos d file from database

func (*Client) GetVodList

func (a *Client) GetVodList(params *GetVodListParams, opts ...ClientOption) (*GetVodListOK, error)

GetVodList gets the vo d list from database it returns 50 items at max you can use offset value to get result page by page

func (*Client) ImportVoDsToStalker

func (a *Client) ImportVoDsToStalker(params *ImportVoDsToStalkerParams, opts ...ClientOption) (*ImportVoDsToStalkerOK, error)

ImportVoDsToStalker imports vo ds to stalker portal

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) SynchUserVodList

func (a *Client) SynchUserVodList(params *SynchUserVodListParams, opts ...ClientOption) (*SynchUserVodListOK, error)

SynchUserVodList synchronizes vo d folder and add them to vo d database if any file exist and create symbolic links to that folder

Notes here

func (*Client) UploadVoDFile

func (a *Client) UploadVoDFile(params *UploadVoDFileParams, opts ...ClientOption) (*UploadVoDFileOK, error)

UploadVoDFile uploads external vo d file to ant media server

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	DeleteVoD(params *DeleteVoDParams, opts ...ClientOption) (*DeleteVoDOK, error)

	DeleteVoDs(params *DeleteVoDsParams, opts ...ClientOption) (*DeleteVoDsOK, error)

	GetTotalVodNumber(params *GetTotalVodNumberParams, opts ...ClientOption) (*GetTotalVodNumberOK, error)

	GetVoD(params *GetVoDParams, opts ...ClientOption) (*GetVoDOK, error)

	GetVodList(params *GetVodListParams, opts ...ClientOption) (*GetVodListOK, error)

	ImportVoDsToStalker(params *ImportVoDsToStalkerParams, opts ...ClientOption) (*ImportVoDsToStalkerOK, error)

	SynchUserVodList(params *SynchUserVodListParams, opts ...ClientOption) (*SynchUserVodListOK, error)

	UploadVoDFile(params *UploadVoDFileParams, opts ...ClientOption) (*UploadVoDFileOK, 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 vo d rest service API client.

type DeleteVoDOK

type DeleteVoDOK struct {
	Payload *models.Result
}
DeleteVoDOK describes a response with status code 200, with default header values.

successful operation

func NewDeleteVoDOK

func NewDeleteVoDOK() *DeleteVoDOK

NewDeleteVoDOK creates a DeleteVoDOK with default headers values

func (*DeleteVoDOK) Error

func (o *DeleteVoDOK) Error() string

func (*DeleteVoDOK) GetPayload

func (o *DeleteVoDOK) GetPayload() *models.Result

type DeleteVoDParams

type DeleteVoDParams struct {

	/* ID.

	   the id of the VoD file
	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeleteVoDParams contains all the parameters to send to the API endpoint

for the delete vo d operation.

Typically these are written to a http.Request.

func NewDeleteVoDParams

func NewDeleteVoDParams() *DeleteVoDParams

NewDeleteVoDParams creates a new DeleteVoDParams 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 NewDeleteVoDParamsWithContext

func NewDeleteVoDParamsWithContext(ctx context.Context) *DeleteVoDParams

NewDeleteVoDParamsWithContext creates a new DeleteVoDParams object with the ability to set a context for a request.

func NewDeleteVoDParamsWithHTTPClient

func NewDeleteVoDParamsWithHTTPClient(client *http.Client) *DeleteVoDParams

NewDeleteVoDParamsWithHTTPClient creates a new DeleteVoDParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteVoDParamsWithTimeout

func NewDeleteVoDParamsWithTimeout(timeout time.Duration) *DeleteVoDParams

NewDeleteVoDParamsWithTimeout creates a new DeleteVoDParams object with the ability to set a timeout on a request.

func (*DeleteVoDParams) SetContext

func (o *DeleteVoDParams) SetContext(ctx context.Context)

SetContext adds the context to the delete vo d params

func (*DeleteVoDParams) SetDefaults

func (o *DeleteVoDParams) SetDefaults()

SetDefaults hydrates default values in the delete vo d params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteVoDParams) SetHTTPClient

func (o *DeleteVoDParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the delete vo d params

func (*DeleteVoDParams) SetID

func (o *DeleteVoDParams) SetID(id string)

SetID adds the id to the delete vo d params

func (*DeleteVoDParams) SetTimeout

func (o *DeleteVoDParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the delete vo d params

func (*DeleteVoDParams) WithContext

func (o *DeleteVoDParams) WithContext(ctx context.Context) *DeleteVoDParams

WithContext adds the context to the delete vo d params

func (*DeleteVoDParams) WithDefaults

func (o *DeleteVoDParams) WithDefaults() *DeleteVoDParams

WithDefaults hydrates default values in the delete vo d params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteVoDParams) WithHTTPClient

func (o *DeleteVoDParams) WithHTTPClient(client *http.Client) *DeleteVoDParams

WithHTTPClient adds the HTTPClient to the delete vo d params

func (*DeleteVoDParams) WithID

func (o *DeleteVoDParams) WithID(id string) *DeleteVoDParams

WithID adds the id to the delete vo d params

func (*DeleteVoDParams) WithTimeout

func (o *DeleteVoDParams) WithTimeout(timeout time.Duration) *DeleteVoDParams

WithTimeout adds the timeout to the delete vo d params

func (*DeleteVoDParams) WriteToRequest

func (o *DeleteVoDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type DeleteVoDReader

type DeleteVoDReader struct {
	// contains filtered or unexported fields
}

DeleteVoDReader is a Reader for the DeleteVoD structure.

func (*DeleteVoDReader) ReadResponse

func (o *DeleteVoDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type DeleteVoDsOK

type DeleteVoDsOK struct {
	Payload *models.Result
}
DeleteVoDsOK describes a response with status code 200, with default header values.

successful operation

func NewDeleteVoDsOK

func NewDeleteVoDsOK() *DeleteVoDsOK

NewDeleteVoDsOK creates a DeleteVoDsOK with default headers values

func (*DeleteVoDsOK) Error

func (o *DeleteVoDsOK) Error() string

func (*DeleteVoDsOK) GetPayload

func (o *DeleteVoDsOK) GetPayload() *models.Result

type DeleteVoDsParams

type DeleteVoDsParams struct {

	/* Body.

	   the ids of the VoD file
	*/
	Body []string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeleteVoDsParams contains all the parameters to send to the API endpoint

for the delete vo ds operation.

Typically these are written to a http.Request.

func NewDeleteVoDsParams

func NewDeleteVoDsParams() *DeleteVoDsParams

NewDeleteVoDsParams creates a new DeleteVoDsParams 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 NewDeleteVoDsParamsWithContext

func NewDeleteVoDsParamsWithContext(ctx context.Context) *DeleteVoDsParams

NewDeleteVoDsParamsWithContext creates a new DeleteVoDsParams object with the ability to set a context for a request.

func NewDeleteVoDsParamsWithHTTPClient

func NewDeleteVoDsParamsWithHTTPClient(client *http.Client) *DeleteVoDsParams

NewDeleteVoDsParamsWithHTTPClient creates a new DeleteVoDsParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteVoDsParamsWithTimeout

func NewDeleteVoDsParamsWithTimeout(timeout time.Duration) *DeleteVoDsParams

NewDeleteVoDsParamsWithTimeout creates a new DeleteVoDsParams object with the ability to set a timeout on a request.

func (*DeleteVoDsParams) SetBody

func (o *DeleteVoDsParams) SetBody(body []string)

SetBody adds the body to the delete vo ds params

func (*DeleteVoDsParams) SetContext

func (o *DeleteVoDsParams) SetContext(ctx context.Context)

SetContext adds the context to the delete vo ds params

func (*DeleteVoDsParams) SetDefaults

func (o *DeleteVoDsParams) SetDefaults()

SetDefaults hydrates default values in the delete vo ds params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteVoDsParams) SetHTTPClient

func (o *DeleteVoDsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the delete vo ds params

func (*DeleteVoDsParams) SetTimeout

func (o *DeleteVoDsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the delete vo ds params

func (*DeleteVoDsParams) WithBody

func (o *DeleteVoDsParams) WithBody(body []string) *DeleteVoDsParams

WithBody adds the body to the delete vo ds params

func (*DeleteVoDsParams) WithContext

func (o *DeleteVoDsParams) WithContext(ctx context.Context) *DeleteVoDsParams

WithContext adds the context to the delete vo ds params

func (*DeleteVoDsParams) WithDefaults

func (o *DeleteVoDsParams) WithDefaults() *DeleteVoDsParams

WithDefaults hydrates default values in the delete vo ds params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteVoDsParams) WithHTTPClient

func (o *DeleteVoDsParams) WithHTTPClient(client *http.Client) *DeleteVoDsParams

WithHTTPClient adds the HTTPClient to the delete vo ds params

func (*DeleteVoDsParams) WithTimeout

func (o *DeleteVoDsParams) WithTimeout(timeout time.Duration) *DeleteVoDsParams

WithTimeout adds the timeout to the delete vo ds params

func (*DeleteVoDsParams) WriteToRequest

func (o *DeleteVoDsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type DeleteVoDsReader

type DeleteVoDsReader struct {
	// contains filtered or unexported fields
}

DeleteVoDsReader is a Reader for the DeleteVoDs structure.

func (*DeleteVoDsReader) ReadResponse

func (o *DeleteVoDsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetTotalVodNumberOK

type GetTotalVodNumberOK struct {
	Payload int64
}
GetTotalVodNumberOK describes a response with status code 200, with default header values.

successful operation

func NewGetTotalVodNumberOK

func NewGetTotalVodNumberOK() *GetTotalVodNumberOK

NewGetTotalVodNumberOK creates a GetTotalVodNumberOK with default headers values

func (*GetTotalVodNumberOK) Error

func (o *GetTotalVodNumberOK) Error() string

func (*GetTotalVodNumberOK) GetPayload

func (o *GetTotalVodNumberOK) GetPayload() int64

type GetTotalVodNumberParams

type GetTotalVodNumberParams struct {

	/* Search.

	   Search parameter to get the number of items including it
	*/
	Search string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetTotalVodNumberParams contains all the parameters to send to the API endpoint

for the get total vod number operation.

Typically these are written to a http.Request.

func NewGetTotalVodNumberParams

func NewGetTotalVodNumberParams() *GetTotalVodNumberParams

NewGetTotalVodNumberParams creates a new GetTotalVodNumberParams 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 NewGetTotalVodNumberParamsWithContext

func NewGetTotalVodNumberParamsWithContext(ctx context.Context) *GetTotalVodNumberParams

NewGetTotalVodNumberParamsWithContext creates a new GetTotalVodNumberParams object with the ability to set a context for a request.

func NewGetTotalVodNumberParamsWithHTTPClient

func NewGetTotalVodNumberParamsWithHTTPClient(client *http.Client) *GetTotalVodNumberParams

NewGetTotalVodNumberParamsWithHTTPClient creates a new GetTotalVodNumberParams object with the ability to set a custom HTTPClient for a request.

func NewGetTotalVodNumberParamsWithTimeout

func NewGetTotalVodNumberParamsWithTimeout(timeout time.Duration) *GetTotalVodNumberParams

NewGetTotalVodNumberParamsWithTimeout creates a new GetTotalVodNumberParams object with the ability to set a timeout on a request.

func (*GetTotalVodNumberParams) SetContext

func (o *GetTotalVodNumberParams) SetContext(ctx context.Context)

SetContext adds the context to the get total vod number params

func (*GetTotalVodNumberParams) SetDefaults

func (o *GetTotalVodNumberParams) SetDefaults()

SetDefaults hydrates default values in the get total vod number params (not the query body).

All values with no default are reset to their zero value.

func (*GetTotalVodNumberParams) SetHTTPClient

func (o *GetTotalVodNumberParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get total vod number params

func (*GetTotalVodNumberParams) SetSearch

func (o *GetTotalVodNumberParams) SetSearch(search string)

SetSearch adds the search to the get total vod number params

func (*GetTotalVodNumberParams) SetTimeout

func (o *GetTotalVodNumberParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get total vod number params

func (*GetTotalVodNumberParams) WithContext

WithContext adds the context to the get total vod number params

func (*GetTotalVodNumberParams) WithDefaults

WithDefaults hydrates default values in the get total vod number params (not the query body).

All values with no default are reset to their zero value.

func (*GetTotalVodNumberParams) WithHTTPClient

func (o *GetTotalVodNumberParams) WithHTTPClient(client *http.Client) *GetTotalVodNumberParams

WithHTTPClient adds the HTTPClient to the get total vod number params

func (*GetTotalVodNumberParams) WithSearch

WithSearch adds the search to the get total vod number params

func (*GetTotalVodNumberParams) WithTimeout

WithTimeout adds the timeout to the get total vod number params

func (*GetTotalVodNumberParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetTotalVodNumberReader

type GetTotalVodNumberReader struct {
	// contains filtered or unexported fields
}

GetTotalVodNumberReader is a Reader for the GetTotalVodNumber structure.

func (*GetTotalVodNumberReader) ReadResponse

func (o *GetTotalVodNumberReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetVoDOK

type GetVoDOK struct {
	Payload *models.VoD
}
GetVoDOK describes a response with status code 200, with default header values.

successful operation

func NewGetVoDOK

func NewGetVoDOK() *GetVoDOK

NewGetVoDOK creates a GetVoDOK with default headers values

func (*GetVoDOK) Error

func (o *GetVoDOK) Error() string

func (*GetVoDOK) GetPayload

func (o *GetVoDOK) GetPayload() *models.VoD

type GetVoDParams

type GetVoDParams struct {

	/* ID.

	   id of the VoD
	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetVoDParams contains all the parameters to send to the API endpoint

for the get vo d operation.

Typically these are written to a http.Request.

func NewGetVoDParams

func NewGetVoDParams() *GetVoDParams

NewGetVoDParams creates a new GetVoDParams 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 NewGetVoDParamsWithContext

func NewGetVoDParamsWithContext(ctx context.Context) *GetVoDParams

NewGetVoDParamsWithContext creates a new GetVoDParams object with the ability to set a context for a request.

func NewGetVoDParamsWithHTTPClient

func NewGetVoDParamsWithHTTPClient(client *http.Client) *GetVoDParams

NewGetVoDParamsWithHTTPClient creates a new GetVoDParams object with the ability to set a custom HTTPClient for a request.

func NewGetVoDParamsWithTimeout

func NewGetVoDParamsWithTimeout(timeout time.Duration) *GetVoDParams

NewGetVoDParamsWithTimeout creates a new GetVoDParams object with the ability to set a timeout on a request.

func (*GetVoDParams) SetContext

func (o *GetVoDParams) SetContext(ctx context.Context)

SetContext adds the context to the get vo d params

func (*GetVoDParams) SetDefaults

func (o *GetVoDParams) SetDefaults()

SetDefaults hydrates default values in the get vo d params (not the query body).

All values with no default are reset to their zero value.

func (*GetVoDParams) SetHTTPClient

func (o *GetVoDParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get vo d params

func (*GetVoDParams) SetID

func (o *GetVoDParams) SetID(id string)

SetID adds the id to the get vo d params

func (*GetVoDParams) SetTimeout

func (o *GetVoDParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get vo d params

func (*GetVoDParams) WithContext

func (o *GetVoDParams) WithContext(ctx context.Context) *GetVoDParams

WithContext adds the context to the get vo d params

func (*GetVoDParams) WithDefaults

func (o *GetVoDParams) WithDefaults() *GetVoDParams

WithDefaults hydrates default values in the get vo d params (not the query body).

All values with no default are reset to their zero value.

func (*GetVoDParams) WithHTTPClient

func (o *GetVoDParams) WithHTTPClient(client *http.Client) *GetVoDParams

WithHTTPClient adds the HTTPClient to the get vo d params

func (*GetVoDParams) WithID

func (o *GetVoDParams) WithID(id string) *GetVoDParams

WithID adds the id to the get vo d params

func (*GetVoDParams) WithTimeout

func (o *GetVoDParams) WithTimeout(timeout time.Duration) *GetVoDParams

WithTimeout adds the timeout to the get vo d params

func (*GetVoDParams) WriteToRequest

func (o *GetVoDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetVoDReader

type GetVoDReader struct {
	// contains filtered or unexported fields
}

GetVoDReader is a Reader for the GetVoD structure.

func (*GetVoDReader) ReadResponse

func (o *GetVoDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetVodListOK

type GetVodListOK struct {
	Payload []*models.VoD
}
GetVodListOK describes a response with status code 200, with default header values.

successful operation

func NewGetVodListOK

func NewGetVodListOK() *GetVodListOK

NewGetVodListOK creates a GetVodListOK with default headers values

func (*GetVodListOK) Error

func (o *GetVodListOK) Error() string

func (*GetVodListOK) GetPayload

func (o *GetVodListOK) GetPayload() []*models.VoD

type GetVodListParams

type GetVodListParams struct {

	/* Offset.

	   Offset of the list

	   Format: int32
	*/
	Offset int32

	/* OrderBy.

	   "asc" for Ascending, "desc" Descening order
	*/
	OrderBy *string

	/* Search.

	   Search string
	*/
	Search *string

	/* Size.

	   Number of items that will be fetched

	   Format: int32
	*/
	Size int32

	/* SortBy.

	   Field to sort. Possible values are "name", "date"
	*/
	SortBy *string

	/* StreamID.

	   Id of the stream to filter the results by stream id
	*/
	StreamID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetVodListParams contains all the parameters to send to the API endpoint

for the get vod list operation.

Typically these are written to a http.Request.

func NewGetVodListParams

func NewGetVodListParams() *GetVodListParams

NewGetVodListParams creates a new GetVodListParams 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 NewGetVodListParamsWithContext

func NewGetVodListParamsWithContext(ctx context.Context) *GetVodListParams

NewGetVodListParamsWithContext creates a new GetVodListParams object with the ability to set a context for a request.

func NewGetVodListParamsWithHTTPClient

func NewGetVodListParamsWithHTTPClient(client *http.Client) *GetVodListParams

NewGetVodListParamsWithHTTPClient creates a new GetVodListParams object with the ability to set a custom HTTPClient for a request.

func NewGetVodListParamsWithTimeout

func NewGetVodListParamsWithTimeout(timeout time.Duration) *GetVodListParams

NewGetVodListParamsWithTimeout creates a new GetVodListParams object with the ability to set a timeout on a request.

func (*GetVodListParams) SetContext

func (o *GetVodListParams) SetContext(ctx context.Context)

SetContext adds the context to the get vod list params

func (*GetVodListParams) SetDefaults

func (o *GetVodListParams) SetDefaults()

SetDefaults hydrates default values in the get vod list params (not the query body).

All values with no default are reset to their zero value.

func (*GetVodListParams) SetHTTPClient

func (o *GetVodListParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get vod list params

func (*GetVodListParams) SetOffset

func (o *GetVodListParams) SetOffset(offset int32)

SetOffset adds the offset to the get vod list params

func (*GetVodListParams) SetOrderBy

func (o *GetVodListParams) SetOrderBy(orderBy *string)

SetOrderBy adds the orderBy to the get vod list params

func (*GetVodListParams) SetSearch

func (o *GetVodListParams) SetSearch(search *string)

SetSearch adds the search to the get vod list params

func (*GetVodListParams) SetSize

func (o *GetVodListParams) SetSize(size int32)

SetSize adds the size to the get vod list params

func (*GetVodListParams) SetSortBy

func (o *GetVodListParams) SetSortBy(sortBy *string)

SetSortBy adds the sortBy to the get vod list params

func (*GetVodListParams) SetStreamID

func (o *GetVodListParams) SetStreamID(streamID string)

SetStreamID adds the streamId to the get vod list params

func (*GetVodListParams) SetTimeout

func (o *GetVodListParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get vod list params

func (*GetVodListParams) WithContext

func (o *GetVodListParams) WithContext(ctx context.Context) *GetVodListParams

WithContext adds the context to the get vod list params

func (*GetVodListParams) WithDefaults

func (o *GetVodListParams) WithDefaults() *GetVodListParams

WithDefaults hydrates default values in the get vod list params (not the query body).

All values with no default are reset to their zero value.

func (*GetVodListParams) WithHTTPClient

func (o *GetVodListParams) WithHTTPClient(client *http.Client) *GetVodListParams

WithHTTPClient adds the HTTPClient to the get vod list params

func (*GetVodListParams) WithOffset

func (o *GetVodListParams) WithOffset(offset int32) *GetVodListParams

WithOffset adds the offset to the get vod list params

func (*GetVodListParams) WithOrderBy

func (o *GetVodListParams) WithOrderBy(orderBy *string) *GetVodListParams

WithOrderBy adds the orderBy to the get vod list params

func (*GetVodListParams) WithSearch

func (o *GetVodListParams) WithSearch(search *string) *GetVodListParams

WithSearch adds the search to the get vod list params

func (*GetVodListParams) WithSize

func (o *GetVodListParams) WithSize(size int32) *GetVodListParams

WithSize adds the size to the get vod list params

func (*GetVodListParams) WithSortBy

func (o *GetVodListParams) WithSortBy(sortBy *string) *GetVodListParams

WithSortBy adds the sortBy to the get vod list params

func (*GetVodListParams) WithStreamID

func (o *GetVodListParams) WithStreamID(streamID string) *GetVodListParams

WithStreamID adds the streamID to the get vod list params

func (*GetVodListParams) WithTimeout

func (o *GetVodListParams) WithTimeout(timeout time.Duration) *GetVodListParams

WithTimeout adds the timeout to the get vod list params

func (*GetVodListParams) WriteToRequest

func (o *GetVodListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetVodListReader

type GetVodListReader struct {
	// contains filtered or unexported fields
}

GetVodListReader is a Reader for the GetVodList structure.

func (*GetVodListReader) ReadResponse

func (o *GetVodListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ImportVoDsToStalkerOK

type ImportVoDsToStalkerOK struct {
	Payload *models.Result
}
ImportVoDsToStalkerOK describes a response with status code 200, with default header values.

successful operation

func NewImportVoDsToStalkerOK

func NewImportVoDsToStalkerOK() *ImportVoDsToStalkerOK

NewImportVoDsToStalkerOK creates a ImportVoDsToStalkerOK with default headers values

func (*ImportVoDsToStalkerOK) Error

func (o *ImportVoDsToStalkerOK) Error() string

func (*ImportVoDsToStalkerOK) GetPayload

func (o *ImportVoDsToStalkerOK) GetPayload() *models.Result

type ImportVoDsToStalkerParams

type ImportVoDsToStalkerParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ImportVoDsToStalkerParams contains all the parameters to send to the API endpoint

for the import vo ds to stalker operation.

Typically these are written to a http.Request.

func NewImportVoDsToStalkerParams

func NewImportVoDsToStalkerParams() *ImportVoDsToStalkerParams

NewImportVoDsToStalkerParams creates a new ImportVoDsToStalkerParams 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 NewImportVoDsToStalkerParamsWithContext

func NewImportVoDsToStalkerParamsWithContext(ctx context.Context) *ImportVoDsToStalkerParams

NewImportVoDsToStalkerParamsWithContext creates a new ImportVoDsToStalkerParams object with the ability to set a context for a request.

func NewImportVoDsToStalkerParamsWithHTTPClient

func NewImportVoDsToStalkerParamsWithHTTPClient(client *http.Client) *ImportVoDsToStalkerParams

NewImportVoDsToStalkerParamsWithHTTPClient creates a new ImportVoDsToStalkerParams object with the ability to set a custom HTTPClient for a request.

func NewImportVoDsToStalkerParamsWithTimeout

func NewImportVoDsToStalkerParamsWithTimeout(timeout time.Duration) *ImportVoDsToStalkerParams

NewImportVoDsToStalkerParamsWithTimeout creates a new ImportVoDsToStalkerParams object with the ability to set a timeout on a request.

func (*ImportVoDsToStalkerParams) SetContext

func (o *ImportVoDsToStalkerParams) SetContext(ctx context.Context)

SetContext adds the context to the import vo ds to stalker params

func (*ImportVoDsToStalkerParams) SetDefaults

func (o *ImportVoDsToStalkerParams) SetDefaults()

SetDefaults hydrates default values in the import vo ds to stalker params (not the query body).

All values with no default are reset to their zero value.

func (*ImportVoDsToStalkerParams) SetHTTPClient

func (o *ImportVoDsToStalkerParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the import vo ds to stalker params

func (*ImportVoDsToStalkerParams) SetTimeout

func (o *ImportVoDsToStalkerParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the import vo ds to stalker params

func (*ImportVoDsToStalkerParams) WithContext

WithContext adds the context to the import vo ds to stalker params

func (*ImportVoDsToStalkerParams) WithDefaults

WithDefaults hydrates default values in the import vo ds to stalker params (not the query body).

All values with no default are reset to their zero value.

func (*ImportVoDsToStalkerParams) WithHTTPClient

func (o *ImportVoDsToStalkerParams) WithHTTPClient(client *http.Client) *ImportVoDsToStalkerParams

WithHTTPClient adds the HTTPClient to the import vo ds to stalker params

func (*ImportVoDsToStalkerParams) WithTimeout

WithTimeout adds the timeout to the import vo ds to stalker params

func (*ImportVoDsToStalkerParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ImportVoDsToStalkerReader

type ImportVoDsToStalkerReader struct {
	// contains filtered or unexported fields
}

ImportVoDsToStalkerReader is a Reader for the ImportVoDsToStalker structure.

func (*ImportVoDsToStalkerReader) ReadResponse

func (o *ImportVoDsToStalkerReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type SynchUserVodListOK

type SynchUserVodListOK struct {
	Payload *models.Result
}
SynchUserVodListOK describes a response with status code 200, with default header values.

successful operation

func NewSynchUserVodListOK

func NewSynchUserVodListOK() *SynchUserVodListOK

NewSynchUserVodListOK creates a SynchUserVodListOK with default headers values

func (*SynchUserVodListOK) Error

func (o *SynchUserVodListOK) Error() string

func (*SynchUserVodListOK) GetPayload

func (o *SynchUserVodListOK) GetPayload() *models.Result

type SynchUserVodListParams

type SynchUserVodListParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

SynchUserVodListParams contains all the parameters to send to the API endpoint

for the synch user vod list operation.

Typically these are written to a http.Request.

func NewSynchUserVodListParams

func NewSynchUserVodListParams() *SynchUserVodListParams

NewSynchUserVodListParams creates a new SynchUserVodListParams 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 NewSynchUserVodListParamsWithContext

func NewSynchUserVodListParamsWithContext(ctx context.Context) *SynchUserVodListParams

NewSynchUserVodListParamsWithContext creates a new SynchUserVodListParams object with the ability to set a context for a request.

func NewSynchUserVodListParamsWithHTTPClient

func NewSynchUserVodListParamsWithHTTPClient(client *http.Client) *SynchUserVodListParams

NewSynchUserVodListParamsWithHTTPClient creates a new SynchUserVodListParams object with the ability to set a custom HTTPClient for a request.

func NewSynchUserVodListParamsWithTimeout

func NewSynchUserVodListParamsWithTimeout(timeout time.Duration) *SynchUserVodListParams

NewSynchUserVodListParamsWithTimeout creates a new SynchUserVodListParams object with the ability to set a timeout on a request.

func (*SynchUserVodListParams) SetContext

func (o *SynchUserVodListParams) SetContext(ctx context.Context)

SetContext adds the context to the synch user vod list params

func (*SynchUserVodListParams) SetDefaults

func (o *SynchUserVodListParams) SetDefaults()

SetDefaults hydrates default values in the synch user vod list params (not the query body).

All values with no default are reset to their zero value.

func (*SynchUserVodListParams) SetHTTPClient

func (o *SynchUserVodListParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the synch user vod list params

func (*SynchUserVodListParams) SetTimeout

func (o *SynchUserVodListParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the synch user vod list params

func (*SynchUserVodListParams) WithContext

WithContext adds the context to the synch user vod list params

func (*SynchUserVodListParams) WithDefaults

WithDefaults hydrates default values in the synch user vod list params (not the query body).

All values with no default are reset to their zero value.

func (*SynchUserVodListParams) WithHTTPClient

func (o *SynchUserVodListParams) WithHTTPClient(client *http.Client) *SynchUserVodListParams

WithHTTPClient adds the HTTPClient to the synch user vod list params

func (*SynchUserVodListParams) WithTimeout

WithTimeout adds the timeout to the synch user vod list params

func (*SynchUserVodListParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SynchUserVodListReader

type SynchUserVodListReader struct {
	// contains filtered or unexported fields
}

SynchUserVodListReader is a Reader for the SynchUserVodList structure.

func (*SynchUserVodListReader) ReadResponse

func (o *SynchUserVodListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type UploadVoDFileOK

type UploadVoDFileOK struct {
	Payload *models.Result
}
UploadVoDFileOK describes a response with status code 200, with default header values.

successful operation

func NewUploadVoDFileOK

func NewUploadVoDFileOK() *UploadVoDFileOK

NewUploadVoDFileOK creates a UploadVoDFileOK with default headers values

func (*UploadVoDFileOK) Error

func (o *UploadVoDFileOK) Error() string

func (*UploadVoDFileOK) GetPayload

func (o *UploadVoDFileOK) GetPayload() *models.Result

type UploadVoDFileParams

type UploadVoDFileParams struct {

	/* Body.

	   file
	*/
	Body runtime.NamedReadCloser

	/* Name.

	   the name of the VoD File
	*/
	Name string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

UploadVoDFileParams contains all the parameters to send to the API endpoint

for the upload vo d file operation.

Typically these are written to a http.Request.

func NewUploadVoDFileParams

func NewUploadVoDFileParams() *UploadVoDFileParams

NewUploadVoDFileParams creates a new UploadVoDFileParams 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 NewUploadVoDFileParamsWithContext

func NewUploadVoDFileParamsWithContext(ctx context.Context) *UploadVoDFileParams

NewUploadVoDFileParamsWithContext creates a new UploadVoDFileParams object with the ability to set a context for a request.

func NewUploadVoDFileParamsWithHTTPClient

func NewUploadVoDFileParamsWithHTTPClient(client *http.Client) *UploadVoDFileParams

NewUploadVoDFileParamsWithHTTPClient creates a new UploadVoDFileParams object with the ability to set a custom HTTPClient for a request.

func NewUploadVoDFileParamsWithTimeout

func NewUploadVoDFileParamsWithTimeout(timeout time.Duration) *UploadVoDFileParams

NewUploadVoDFileParamsWithTimeout creates a new UploadVoDFileParams object with the ability to set a timeout on a request.

func (*UploadVoDFileParams) SetBody

func (o *UploadVoDFileParams) SetBody(body runtime.NamedReadCloser)

SetBody adds the body to the upload vo d file params

func (*UploadVoDFileParams) SetContext

func (o *UploadVoDFileParams) SetContext(ctx context.Context)

SetContext adds the context to the upload vo d file params

func (*UploadVoDFileParams) SetDefaults

func (o *UploadVoDFileParams) SetDefaults()

SetDefaults hydrates default values in the upload vo d file params (not the query body).

All values with no default are reset to their zero value.

func (*UploadVoDFileParams) SetHTTPClient

func (o *UploadVoDFileParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the upload vo d file params

func (*UploadVoDFileParams) SetName

func (o *UploadVoDFileParams) SetName(name string)

SetName adds the name to the upload vo d file params

func (*UploadVoDFileParams) SetTimeout

func (o *UploadVoDFileParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the upload vo d file params

func (*UploadVoDFileParams) WithBody

WithBody adds the body to the upload vo d file params

func (*UploadVoDFileParams) WithContext

WithContext adds the context to the upload vo d file params

func (*UploadVoDFileParams) WithDefaults

func (o *UploadVoDFileParams) WithDefaults() *UploadVoDFileParams

WithDefaults hydrates default values in the upload vo d file params (not the query body).

All values with no default are reset to their zero value.

func (*UploadVoDFileParams) WithHTTPClient

func (o *UploadVoDFileParams) WithHTTPClient(client *http.Client) *UploadVoDFileParams

WithHTTPClient adds the HTTPClient to the upload vo d file params

func (*UploadVoDFileParams) WithName

func (o *UploadVoDFileParams) WithName(name string) *UploadVoDFileParams

WithName adds the name to the upload vo d file params

func (*UploadVoDFileParams) WithTimeout

func (o *UploadVoDFileParams) WithTimeout(timeout time.Duration) *UploadVoDFileParams

WithTimeout adds the timeout to the upload vo d file params

func (*UploadVoDFileParams) WriteToRequest

func (o *UploadVoDFileParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type UploadVoDFileReader

type UploadVoDFileReader struct {
	// contains filtered or unexported fields
}

UploadVoDFileReader is a Reader for the UploadVoDFile structure.

func (*UploadVoDFileReader) ReadResponse

func (o *UploadVoDFileReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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