upload_task

package
v0.0.0-...-67cd95e Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for upload task API

func (*Client) GetUploadTasks

func (a *Client) GetUploadTasks(params *GetUploadTasksParams, opts ...ClientOption) (*GetUploadTasksOK, error)

GetUploadTasks get upload tasks API

func (*Client) GetUploadTasksConnection

func (a *Client) GetUploadTasksConnection(params *GetUploadTasksConnectionParams, opts ...ClientOption) (*GetUploadTasksConnectionOK, error)

GetUploadTasksConnection get upload tasks connection API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetUploadTasks(params *GetUploadTasksParams, opts ...ClientOption) (*GetUploadTasksOK, error)

	GetUploadTasksConnection(params *GetUploadTasksConnectionParams, opts ...ClientOption) (*GetUploadTasksConnectionOK, 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 upload task API client.

type GetUploadTasksBadRequest

type GetUploadTasksBadRequest struct {
	Payload string
}
GetUploadTasksBadRequest describes a response with status code 400, with default header values.

GetUploadTasksBadRequest get upload tasks bad request

func NewGetUploadTasksBadRequest

func NewGetUploadTasksBadRequest() *GetUploadTasksBadRequest

NewGetUploadTasksBadRequest creates a GetUploadTasksBadRequest with default headers values

func (*GetUploadTasksBadRequest) Error

func (o *GetUploadTasksBadRequest) Error() string

func (*GetUploadTasksBadRequest) GetPayload

func (o *GetUploadTasksBadRequest) GetPayload() string

type GetUploadTasksConnectionBadRequest

type GetUploadTasksConnectionBadRequest struct {
	Payload string
}
GetUploadTasksConnectionBadRequest describes a response with status code 400, with default header values.

GetUploadTasksConnectionBadRequest get upload tasks connection bad request

func NewGetUploadTasksConnectionBadRequest

func NewGetUploadTasksConnectionBadRequest() *GetUploadTasksConnectionBadRequest

NewGetUploadTasksConnectionBadRequest creates a GetUploadTasksConnectionBadRequest with default headers values

func (*GetUploadTasksConnectionBadRequest) Error

func (*GetUploadTasksConnectionBadRequest) GetPayload

type GetUploadTasksConnectionOK

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

Ok

func NewGetUploadTasksConnectionOK

func NewGetUploadTasksConnectionOK() *GetUploadTasksConnectionOK

NewGetUploadTasksConnectionOK creates a GetUploadTasksConnectionOK with default headers values

func (*GetUploadTasksConnectionOK) Error

func (*GetUploadTasksConnectionOK) GetPayload

type GetUploadTasksConnectionParams

type GetUploadTasksConnectionParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody *models.GetUploadTasksConnectionRequestBody

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

GetUploadTasksConnectionParams contains all the parameters to send to the API endpoint

for the get upload tasks connection operation.

Typically these are written to a http.Request.

func NewGetUploadTasksConnectionParams

func NewGetUploadTasksConnectionParams() *GetUploadTasksConnectionParams

NewGetUploadTasksConnectionParams creates a new GetUploadTasksConnectionParams 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 NewGetUploadTasksConnectionParamsWithContext

func NewGetUploadTasksConnectionParamsWithContext(ctx context.Context) *GetUploadTasksConnectionParams

NewGetUploadTasksConnectionParamsWithContext creates a new GetUploadTasksConnectionParams object with the ability to set a context for a request.

func NewGetUploadTasksConnectionParamsWithHTTPClient

func NewGetUploadTasksConnectionParamsWithHTTPClient(client *http.Client) *GetUploadTasksConnectionParams

NewGetUploadTasksConnectionParamsWithHTTPClient creates a new GetUploadTasksConnectionParams object with the ability to set a custom HTTPClient for a request.

func NewGetUploadTasksConnectionParamsWithTimeout

func NewGetUploadTasksConnectionParamsWithTimeout(timeout time.Duration) *GetUploadTasksConnectionParams

NewGetUploadTasksConnectionParamsWithTimeout creates a new GetUploadTasksConnectionParams object with the ability to set a timeout on a request.

func (*GetUploadTasksConnectionParams) SetContentLanguage

func (o *GetUploadTasksConnectionParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the get upload tasks connection params

func (*GetUploadTasksConnectionParams) SetContext

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

SetContext adds the context to the get upload tasks connection params

func (*GetUploadTasksConnectionParams) SetDefaults

func (o *GetUploadTasksConnectionParams) SetDefaults()

SetDefaults hydrates default values in the get upload tasks connection params (not the query body).

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

func (*GetUploadTasksConnectionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get upload tasks connection params

func (*GetUploadTasksConnectionParams) SetRequestBody

SetRequestBody adds the requestBody to the get upload tasks connection params

func (*GetUploadTasksConnectionParams) SetTimeout

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

SetTimeout adds the timeout to the get upload tasks connection params

func (*GetUploadTasksConnectionParams) WithContentLanguage

func (o *GetUploadTasksConnectionParams) WithContentLanguage(contentLanguage *string) *GetUploadTasksConnectionParams

WithContentLanguage adds the contentLanguage to the get upload tasks connection params

func (*GetUploadTasksConnectionParams) WithContext

WithContext adds the context to the get upload tasks connection params

func (*GetUploadTasksConnectionParams) WithDefaults

WithDefaults hydrates default values in the get upload tasks connection params (not the query body).

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

func (*GetUploadTasksConnectionParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get upload tasks connection params

func (*GetUploadTasksConnectionParams) WithRequestBody

WithRequestBody adds the requestBody to the get upload tasks connection params

func (*GetUploadTasksConnectionParams) WithTimeout

WithTimeout adds the timeout to the get upload tasks connection params

func (*GetUploadTasksConnectionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetUploadTasksConnectionReader

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

GetUploadTasksConnectionReader is a Reader for the GetUploadTasksConnection structure.

func (*GetUploadTasksConnectionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetUploadTasksOK

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

Ok

func NewGetUploadTasksOK

func NewGetUploadTasksOK() *GetUploadTasksOK

NewGetUploadTasksOK creates a GetUploadTasksOK with default headers values

func (*GetUploadTasksOK) Error

func (o *GetUploadTasksOK) Error() string

func (*GetUploadTasksOK) GetPayload

func (o *GetUploadTasksOK) GetPayload() []*models.UploadTask

type GetUploadTasksParams

type GetUploadTasksParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody *models.GetUploadTasksRequestBody

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

GetUploadTasksParams contains all the parameters to send to the API endpoint

for the get upload tasks operation.

Typically these are written to a http.Request.

func NewGetUploadTasksParams

func NewGetUploadTasksParams() *GetUploadTasksParams

NewGetUploadTasksParams creates a new GetUploadTasksParams 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 NewGetUploadTasksParamsWithContext

func NewGetUploadTasksParamsWithContext(ctx context.Context) *GetUploadTasksParams

NewGetUploadTasksParamsWithContext creates a new GetUploadTasksParams object with the ability to set a context for a request.

func NewGetUploadTasksParamsWithHTTPClient

func NewGetUploadTasksParamsWithHTTPClient(client *http.Client) *GetUploadTasksParams

NewGetUploadTasksParamsWithHTTPClient creates a new GetUploadTasksParams object with the ability to set a custom HTTPClient for a request.

func NewGetUploadTasksParamsWithTimeout

func NewGetUploadTasksParamsWithTimeout(timeout time.Duration) *GetUploadTasksParams

NewGetUploadTasksParamsWithTimeout creates a new GetUploadTasksParams object with the ability to set a timeout on a request.

func (*GetUploadTasksParams) SetContentLanguage

func (o *GetUploadTasksParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the get upload tasks params

func (*GetUploadTasksParams) SetContext

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

SetContext adds the context to the get upload tasks params

func (*GetUploadTasksParams) SetDefaults

func (o *GetUploadTasksParams) SetDefaults()

SetDefaults hydrates default values in the get upload tasks params (not the query body).

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

func (*GetUploadTasksParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get upload tasks params

func (*GetUploadTasksParams) SetRequestBody

func (o *GetUploadTasksParams) SetRequestBody(requestBody *models.GetUploadTasksRequestBody)

SetRequestBody adds the requestBody to the get upload tasks params

func (*GetUploadTasksParams) SetTimeout

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

SetTimeout adds the timeout to the get upload tasks params

func (*GetUploadTasksParams) WithContentLanguage

func (o *GetUploadTasksParams) WithContentLanguage(contentLanguage *string) *GetUploadTasksParams

WithContentLanguage adds the contentLanguage to the get upload tasks params

func (*GetUploadTasksParams) WithContext

WithContext adds the context to the get upload tasks params

func (*GetUploadTasksParams) WithDefaults

func (o *GetUploadTasksParams) WithDefaults() *GetUploadTasksParams

WithDefaults hydrates default values in the get upload tasks params (not the query body).

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

func (*GetUploadTasksParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get upload tasks params

func (*GetUploadTasksParams) WithRequestBody

WithRequestBody adds the requestBody to the get upload tasks params

func (*GetUploadTasksParams) WithTimeout

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

WithTimeout adds the timeout to the get upload tasks params

func (*GetUploadTasksParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetUploadTasksReader

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

GetUploadTasksReader is a Reader for the GetUploadTasks structure.

func (*GetUploadTasksReader) ReadResponse

func (o *GetUploadTasksReader) 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