upload_task

package
v2.15.1 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: ISC Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CancelUploadTaskBadRequest added in v2.1.0

type CancelUploadTaskBadRequest struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
CancelUploadTaskBadRequest describes a response with status code 400, with default header values.

Bad request

func NewCancelUploadTaskBadRequest added in v2.1.0

func NewCancelUploadTaskBadRequest() *CancelUploadTaskBadRequest

NewCancelUploadTaskBadRequest creates a CancelUploadTaskBadRequest with default headers values

func (*CancelUploadTaskBadRequest) Error added in v2.1.0

func (*CancelUploadTaskBadRequest) GetPayload added in v2.1.0

func (o *CancelUploadTaskBadRequest) GetPayload() *models.ErrorBody

type CancelUploadTaskInternalServerError added in v2.1.0

type CancelUploadTaskInternalServerError struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
CancelUploadTaskInternalServerError describes a response with status code 500, with default header values.

Server error

func NewCancelUploadTaskInternalServerError added in v2.1.0

func NewCancelUploadTaskInternalServerError() *CancelUploadTaskInternalServerError

NewCancelUploadTaskInternalServerError creates a CancelUploadTaskInternalServerError with default headers values

func (*CancelUploadTaskInternalServerError) Error added in v2.1.0

func (*CancelUploadTaskInternalServerError) GetPayload added in v2.1.0

type CancelUploadTaskNotFound added in v2.1.0

type CancelUploadTaskNotFound struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
CancelUploadTaskNotFound describes a response with status code 404, with default header values.

Not found

func NewCancelUploadTaskNotFound added in v2.1.0

func NewCancelUploadTaskNotFound() *CancelUploadTaskNotFound

NewCancelUploadTaskNotFound creates a CancelUploadTaskNotFound with default headers values

func (*CancelUploadTaskNotFound) Error added in v2.1.0

func (o *CancelUploadTaskNotFound) Error() string

func (*CancelUploadTaskNotFound) GetPayload added in v2.1.0

func (o *CancelUploadTaskNotFound) GetPayload() *models.ErrorBody

type CancelUploadTaskNotModified added in v2.1.0

type CancelUploadTaskNotModified struct {
}
CancelUploadTaskNotModified describes a response with status code 304, with default header values.

Not modified

func NewCancelUploadTaskNotModified added in v2.1.0

func NewCancelUploadTaskNotModified() *CancelUploadTaskNotModified

NewCancelUploadTaskNotModified creates a CancelUploadTaskNotModified with default headers values

func (*CancelUploadTaskNotModified) Error added in v2.1.0

type CancelUploadTaskOK added in v2.1.0

type CancelUploadTaskOK struct {
	XTowerRequestID string

	Payload []string
}
CancelUploadTaskOK describes a response with status code 200, with default header values.

CancelUploadTaskOK cancel upload task o k

func NewCancelUploadTaskOK added in v2.1.0

func NewCancelUploadTaskOK() *CancelUploadTaskOK

NewCancelUploadTaskOK creates a CancelUploadTaskOK with default headers values

func (*CancelUploadTaskOK) Error added in v2.1.0

func (o *CancelUploadTaskOK) Error() string

func (*CancelUploadTaskOK) GetPayload added in v2.1.0

func (o *CancelUploadTaskOK) GetPayload() []string

type CancelUploadTaskParams added in v2.1.0

type CancelUploadTaskParams struct {

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

	// RequestBody.
	RequestBody *models.CancelUploadTaskParams

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

CancelUploadTaskParams contains all the parameters to send to the API endpoint

for the cancel upload task operation.

Typically these are written to a http.Request.

func NewCancelUploadTaskParams added in v2.1.0

func NewCancelUploadTaskParams() *CancelUploadTaskParams

NewCancelUploadTaskParams creates a new CancelUploadTaskParams 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 NewCancelUploadTaskParamsWithContext added in v2.1.0

func NewCancelUploadTaskParamsWithContext(ctx context.Context) *CancelUploadTaskParams

NewCancelUploadTaskParamsWithContext creates a new CancelUploadTaskParams object with the ability to set a context for a request.

func NewCancelUploadTaskParamsWithHTTPClient added in v2.1.0

func NewCancelUploadTaskParamsWithHTTPClient(client *http.Client) *CancelUploadTaskParams

NewCancelUploadTaskParamsWithHTTPClient creates a new CancelUploadTaskParams object with the ability to set a custom HTTPClient for a request.

func NewCancelUploadTaskParamsWithTimeout added in v2.1.0

func NewCancelUploadTaskParamsWithTimeout(timeout time.Duration) *CancelUploadTaskParams

NewCancelUploadTaskParamsWithTimeout creates a new CancelUploadTaskParams object with the ability to set a timeout on a request.

func (*CancelUploadTaskParams) SetContentLanguage added in v2.1.0

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

SetContentLanguage adds the contentLanguage to the cancel upload task params

func (*CancelUploadTaskParams) SetContext added in v2.1.0

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

SetContext adds the context to the cancel upload task params

func (*CancelUploadTaskParams) SetDefaults added in v2.1.0

func (o *CancelUploadTaskParams) SetDefaults()

SetDefaults hydrates default values in the cancel upload task params (not the query body).

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

func (*CancelUploadTaskParams) SetHTTPClient added in v2.1.0

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

SetHTTPClient adds the HTTPClient to the cancel upload task params

func (*CancelUploadTaskParams) SetRequestBody added in v2.1.0

func (o *CancelUploadTaskParams) SetRequestBody(requestBody *models.CancelUploadTaskParams)

SetRequestBody adds the requestBody to the cancel upload task params

func (*CancelUploadTaskParams) SetTimeout added in v2.1.0

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

SetTimeout adds the timeout to the cancel upload task params

func (*CancelUploadTaskParams) WithContentLanguage added in v2.1.0

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

WithContentLanguage adds the contentLanguage to the cancel upload task params

func (*CancelUploadTaskParams) WithContext added in v2.1.0

WithContext adds the context to the cancel upload task params

func (*CancelUploadTaskParams) WithDefaults added in v2.1.0

WithDefaults hydrates default values in the cancel upload task params (not the query body).

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

func (*CancelUploadTaskParams) WithHTTPClient added in v2.1.0

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

WithHTTPClient adds the HTTPClient to the cancel upload task params

func (*CancelUploadTaskParams) WithRequestBody added in v2.1.0

WithRequestBody adds the requestBody to the cancel upload task params

func (*CancelUploadTaskParams) WithTimeout added in v2.1.0

WithTimeout adds the timeout to the cancel upload task params

func (*CancelUploadTaskParams) WriteToRequest added in v2.1.0

WriteToRequest writes these params to a swagger request

type CancelUploadTaskReader added in v2.1.0

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

CancelUploadTaskReader is a Reader for the CancelUploadTask structure.

func (*CancelUploadTaskReader) ReadResponse added in v2.1.0

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

ReadResponse reads a server response into the received o.

type Client

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

Client for upload task API

func (*Client) CancelUploadTask added in v2.1.0

func (a *Client) CancelUploadTask(params *CancelUploadTaskParams, opts ...ClientOption) (*CancelUploadTaskOK, error)

CancelUploadTask cancel 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 {
	CancelUploadTask(params *CancelUploadTaskParams, opts ...ClientOption) (*CancelUploadTaskOK, error)

	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 {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetUploadTasksBadRequest describes a response with status code 400, with default header values.

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() *models.ErrorBody

type GetUploadTasksConnectionBadRequest

type GetUploadTasksConnectionBadRequest struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetUploadTasksConnectionBadRequest describes a response with status code 400, with default header values.

Bad request

func NewGetUploadTasksConnectionBadRequest

func NewGetUploadTasksConnectionBadRequest() *GetUploadTasksConnectionBadRequest

NewGetUploadTasksConnectionBadRequest creates a GetUploadTasksConnectionBadRequest with default headers values

func (*GetUploadTasksConnectionBadRequest) Error

func (*GetUploadTasksConnectionBadRequest) GetPayload

type GetUploadTasksConnectionInternalServerError

type GetUploadTasksConnectionInternalServerError struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetUploadTasksConnectionInternalServerError describes a response with status code 500, with default header values.

Server error

func NewGetUploadTasksConnectionInternalServerError

func NewGetUploadTasksConnectionInternalServerError() *GetUploadTasksConnectionInternalServerError

NewGetUploadTasksConnectionInternalServerError creates a GetUploadTasksConnectionInternalServerError with default headers values

func (*GetUploadTasksConnectionInternalServerError) Error

func (*GetUploadTasksConnectionInternalServerError) GetPayload

type GetUploadTasksConnectionNotFound

type GetUploadTasksConnectionNotFound struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetUploadTasksConnectionNotFound describes a response with status code 404, with default header values.

Not found

func NewGetUploadTasksConnectionNotFound

func NewGetUploadTasksConnectionNotFound() *GetUploadTasksConnectionNotFound

NewGetUploadTasksConnectionNotFound creates a GetUploadTasksConnectionNotFound with default headers values

func (*GetUploadTasksConnectionNotFound) Error

func (*GetUploadTasksConnectionNotFound) GetPayload

type GetUploadTasksConnectionOK

type GetUploadTasksConnectionOK struct {
	XTowerRequestID string

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

GetUploadTasksConnectionOK get upload tasks connection o k

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 GetUploadTasksInternalServerError

type GetUploadTasksInternalServerError struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetUploadTasksInternalServerError describes a response with status code 500, with default header values.

Server error

func NewGetUploadTasksInternalServerError

func NewGetUploadTasksInternalServerError() *GetUploadTasksInternalServerError

NewGetUploadTasksInternalServerError creates a GetUploadTasksInternalServerError with default headers values

func (*GetUploadTasksInternalServerError) Error

func (*GetUploadTasksInternalServerError) GetPayload

type GetUploadTasksNotFound

type GetUploadTasksNotFound struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetUploadTasksNotFound describes a response with status code 404, with default header values.

Not found

func NewGetUploadTasksNotFound

func NewGetUploadTasksNotFound() *GetUploadTasksNotFound

NewGetUploadTasksNotFound creates a GetUploadTasksNotFound with default headers values

func (*GetUploadTasksNotFound) Error

func (o *GetUploadTasksNotFound) Error() string

func (*GetUploadTasksNotFound) GetPayload

func (o *GetUploadTasksNotFound) GetPayload() *models.ErrorBody

type GetUploadTasksOK

type GetUploadTasksOK struct {
	XTowerRequestID string

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

GetUploadTasksOK get upload tasks o k

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