Documentation ¶
Index ¶
- type API
- type Client
- type UploadFilesBadRequest
- func (o *UploadFilesBadRequest) Error() string
- func (o *UploadFilesBadRequest) GetPayload() *models.ErrorResponse
- func (o *UploadFilesBadRequest) IsClientError() bool
- func (o *UploadFilesBadRequest) IsCode(code int) bool
- func (o *UploadFilesBadRequest) IsRedirect() bool
- func (o *UploadFilesBadRequest) IsServerError() bool
- func (o *UploadFilesBadRequest) IsSuccess() bool
- func (o *UploadFilesBadRequest) String() string
- type UploadFilesInternalServerError
- func (o *UploadFilesInternalServerError) Error() string
- func (o *UploadFilesInternalServerError) GetPayload() *models.ErrorResponse
- func (o *UploadFilesInternalServerError) IsClientError() bool
- func (o *UploadFilesInternalServerError) IsCode(code int) bool
- func (o *UploadFilesInternalServerError) IsRedirect() bool
- func (o *UploadFilesInternalServerError) IsServerError() bool
- func (o *UploadFilesInternalServerError) IsSuccess() bool
- func (o *UploadFilesInternalServerError) String() string
- type UploadFilesOK
- func (o *UploadFilesOK) Error() string
- func (o *UploadFilesOK) GetPayload() *models.UploadFilesResponse
- func (o *UploadFilesOK) IsClientError() bool
- func (o *UploadFilesOK) IsCode(code int) bool
- func (o *UploadFilesOK) IsRedirect() bool
- func (o *UploadFilesOK) IsServerError() bool
- func (o *UploadFilesOK) IsSuccess() bool
- func (o *UploadFilesOK) String() string
- type UploadFilesParams
- func (o *UploadFilesParams) SetContext(ctx context.Context)
- func (o *UploadFilesParams) SetDefaults()
- func (o *UploadFilesParams) SetFile(file runtime.NamedReadCloser)
- func (o *UploadFilesParams) SetHTTPClient(client *http.Client)
- func (o *UploadFilesParams) SetTimeout(timeout time.Duration)
- func (o *UploadFilesParams) WithContext(ctx context.Context) *UploadFilesParams
- func (o *UploadFilesParams) WithDefaults() *UploadFilesParams
- func (o *UploadFilesParams) WithFile(file runtime.NamedReadCloser) *UploadFilesParams
- func (o *UploadFilesParams) WithHTTPClient(client *http.Client) *UploadFilesParams
- func (o *UploadFilesParams) WithTimeout(timeout time.Duration) *UploadFilesParams
- func (o *UploadFilesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UploadFilesReader
- type UploadFilesUnauthorized
- func (o *UploadFilesUnauthorized) Error() string
- func (o *UploadFilesUnauthorized) GetPayload() *models.ErrorResponse
- func (o *UploadFilesUnauthorized) IsClientError() bool
- func (o *UploadFilesUnauthorized) IsCode(code int) bool
- func (o *UploadFilesUnauthorized) IsRedirect() bool
- func (o *UploadFilesUnauthorized) IsServerError() bool
- func (o *UploadFilesUnauthorized) IsSuccess() bool
- func (o *UploadFilesUnauthorized) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface { /* UploadFiles uploads new audio files*/ UploadFiles(ctx context.Context, params *UploadFilesParams) (*UploadFilesOK, error) }
API is the interface of the files client
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for files API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry, authInfo runtime.ClientAuthInfoWriter) *Client
New creates a new files API client.
func (*Client) UploadFiles ¶
func (a *Client) UploadFiles(ctx context.Context, params *UploadFilesParams) (*UploadFilesOK, error)
UploadFiles uploads new audio files
type UploadFilesBadRequest ¶
type UploadFilesBadRequest struct {
Payload *models.ErrorResponse
}
UploadFilesBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewUploadFilesBadRequest ¶
func NewUploadFilesBadRequest() *UploadFilesBadRequest
NewUploadFilesBadRequest creates a UploadFilesBadRequest with default headers values
func (*UploadFilesBadRequest) Error ¶
func (o *UploadFilesBadRequest) Error() string
func (*UploadFilesBadRequest) GetPayload ¶
func (o *UploadFilesBadRequest) GetPayload() *models.ErrorResponse
func (*UploadFilesBadRequest) IsClientError ¶
func (o *UploadFilesBadRequest) IsClientError() bool
IsClientError returns true when this upload files bad request response has a 4xx status code
func (*UploadFilesBadRequest) IsCode ¶
func (o *UploadFilesBadRequest) IsCode(code int) bool
IsCode returns true when this upload files bad request response a status code equal to that given
func (*UploadFilesBadRequest) IsRedirect ¶
func (o *UploadFilesBadRequest) IsRedirect() bool
IsRedirect returns true when this upload files bad request response has a 3xx status code
func (*UploadFilesBadRequest) IsServerError ¶
func (o *UploadFilesBadRequest) IsServerError() bool
IsServerError returns true when this upload files bad request response has a 5xx status code
func (*UploadFilesBadRequest) IsSuccess ¶
func (o *UploadFilesBadRequest) IsSuccess() bool
IsSuccess returns true when this upload files bad request response has a 2xx status code
func (*UploadFilesBadRequest) String ¶
func (o *UploadFilesBadRequest) String() string
type UploadFilesInternalServerError ¶
type UploadFilesInternalServerError struct {
Payload *models.ErrorResponse
}
UploadFilesInternalServerError describes a response with status code 500, with default header values.
Internal Server Error
func NewUploadFilesInternalServerError ¶
func NewUploadFilesInternalServerError() *UploadFilesInternalServerError
NewUploadFilesInternalServerError creates a UploadFilesInternalServerError with default headers values
func (*UploadFilesInternalServerError) Error ¶
func (o *UploadFilesInternalServerError) Error() string
func (*UploadFilesInternalServerError) GetPayload ¶
func (o *UploadFilesInternalServerError) GetPayload() *models.ErrorResponse
func (*UploadFilesInternalServerError) IsClientError ¶
func (o *UploadFilesInternalServerError) IsClientError() bool
IsClientError returns true when this upload files internal server error response has a 4xx status code
func (*UploadFilesInternalServerError) IsCode ¶
func (o *UploadFilesInternalServerError) IsCode(code int) bool
IsCode returns true when this upload files internal server error response a status code equal to that given
func (*UploadFilesInternalServerError) IsRedirect ¶
func (o *UploadFilesInternalServerError) IsRedirect() bool
IsRedirect returns true when this upload files internal server error response has a 3xx status code
func (*UploadFilesInternalServerError) IsServerError ¶
func (o *UploadFilesInternalServerError) IsServerError() bool
IsServerError returns true when this upload files internal server error response has a 5xx status code
func (*UploadFilesInternalServerError) IsSuccess ¶
func (o *UploadFilesInternalServerError) IsSuccess() bool
IsSuccess returns true when this upload files internal server error response has a 2xx status code
func (*UploadFilesInternalServerError) String ¶
func (o *UploadFilesInternalServerError) String() string
type UploadFilesOK ¶
type UploadFilesOK struct {
Payload *models.UploadFilesResponse
}
UploadFilesOK describes a response with status code 200, with default header values.
OK
func NewUploadFilesOK ¶
func NewUploadFilesOK() *UploadFilesOK
NewUploadFilesOK creates a UploadFilesOK with default headers values
func (*UploadFilesOK) Error ¶
func (o *UploadFilesOK) Error() string
func (*UploadFilesOK) GetPayload ¶
func (o *UploadFilesOK) GetPayload() *models.UploadFilesResponse
func (*UploadFilesOK) IsClientError ¶
func (o *UploadFilesOK) IsClientError() bool
IsClientError returns true when this upload files o k response has a 4xx status code
func (*UploadFilesOK) IsCode ¶
func (o *UploadFilesOK) IsCode(code int) bool
IsCode returns true when this upload files o k response a status code equal to that given
func (*UploadFilesOK) IsRedirect ¶
func (o *UploadFilesOK) IsRedirect() bool
IsRedirect returns true when this upload files o k response has a 3xx status code
func (*UploadFilesOK) IsServerError ¶
func (o *UploadFilesOK) IsServerError() bool
IsServerError returns true when this upload files o k response has a 5xx status code
func (*UploadFilesOK) IsSuccess ¶
func (o *UploadFilesOK) IsSuccess() bool
IsSuccess returns true when this upload files o k response has a 2xx status code
func (*UploadFilesOK) String ¶
func (o *UploadFilesOK) String() string
type UploadFilesParams ¶
type UploadFilesParams struct { /* File. File to upload (can be repeated multiple times) */ File runtime.NamedReadCloser Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UploadFilesParams contains all the parameters to send to the API endpoint
for the upload files operation. Typically these are written to a http.Request.
func NewUploadFilesParams ¶
func NewUploadFilesParams() *UploadFilesParams
NewUploadFilesParams creates a new UploadFilesParams 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 NewUploadFilesParamsWithContext ¶
func NewUploadFilesParamsWithContext(ctx context.Context) *UploadFilesParams
NewUploadFilesParamsWithContext creates a new UploadFilesParams object with the ability to set a context for a request.
func NewUploadFilesParamsWithHTTPClient ¶
func NewUploadFilesParamsWithHTTPClient(client *http.Client) *UploadFilesParams
NewUploadFilesParamsWithHTTPClient creates a new UploadFilesParams object with the ability to set a custom HTTPClient for a request.
func NewUploadFilesParamsWithTimeout ¶
func NewUploadFilesParamsWithTimeout(timeout time.Duration) *UploadFilesParams
NewUploadFilesParamsWithTimeout creates a new UploadFilesParams object with the ability to set a timeout on a request.
func (*UploadFilesParams) SetContext ¶
func (o *UploadFilesParams) SetContext(ctx context.Context)
SetContext adds the context to the upload files params
func (*UploadFilesParams) SetDefaults ¶
func (o *UploadFilesParams) SetDefaults()
SetDefaults hydrates default values in the upload files params (not the query body).
All values with no default are reset to their zero value.
func (*UploadFilesParams) SetFile ¶
func (o *UploadFilesParams) SetFile(file runtime.NamedReadCloser)
SetFile adds the file to the upload files params
func (*UploadFilesParams) SetHTTPClient ¶
func (o *UploadFilesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the upload files params
func (*UploadFilesParams) SetTimeout ¶
func (o *UploadFilesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the upload files params
func (*UploadFilesParams) WithContext ¶
func (o *UploadFilesParams) WithContext(ctx context.Context) *UploadFilesParams
WithContext adds the context to the upload files params
func (*UploadFilesParams) WithDefaults ¶
func (o *UploadFilesParams) WithDefaults() *UploadFilesParams
WithDefaults hydrates default values in the upload files params (not the query body).
All values with no default are reset to their zero value.
func (*UploadFilesParams) WithFile ¶
func (o *UploadFilesParams) WithFile(file runtime.NamedReadCloser) *UploadFilesParams
WithFile adds the file to the upload files params
func (*UploadFilesParams) WithHTTPClient ¶
func (o *UploadFilesParams) WithHTTPClient(client *http.Client) *UploadFilesParams
WithHTTPClient adds the HTTPClient to the upload files params
func (*UploadFilesParams) WithTimeout ¶
func (o *UploadFilesParams) WithTimeout(timeout time.Duration) *UploadFilesParams
WithTimeout adds the timeout to the upload files params
func (*UploadFilesParams) WriteToRequest ¶
func (o *UploadFilesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UploadFilesReader ¶
type UploadFilesReader struct {
// contains filtered or unexported fields
}
UploadFilesReader is a Reader for the UploadFiles structure.
func (*UploadFilesReader) ReadResponse ¶
func (o *UploadFilesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UploadFilesUnauthorized ¶
type UploadFilesUnauthorized struct {
}UploadFilesUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewUploadFilesUnauthorized ¶
func NewUploadFilesUnauthorized() *UploadFilesUnauthorized
NewUploadFilesUnauthorized creates a UploadFilesUnauthorized with default headers values
func (*UploadFilesUnauthorized) Error ¶
func (o *UploadFilesUnauthorized) Error() string
func (*UploadFilesUnauthorized) GetPayload ¶
func (o *UploadFilesUnauthorized) GetPayload() *models.ErrorResponse
func (*UploadFilesUnauthorized) IsClientError ¶
func (o *UploadFilesUnauthorized) IsClientError() bool
IsClientError returns true when this upload files unauthorized response has a 4xx status code
func (*UploadFilesUnauthorized) IsCode ¶
func (o *UploadFilesUnauthorized) IsCode(code int) bool
IsCode returns true when this upload files unauthorized response a status code equal to that given
func (*UploadFilesUnauthorized) IsRedirect ¶
func (o *UploadFilesUnauthorized) IsRedirect() bool
IsRedirect returns true when this upload files unauthorized response has a 3xx status code
func (*UploadFilesUnauthorized) IsServerError ¶
func (o *UploadFilesUnauthorized) IsServerError() bool
IsServerError returns true when this upload files unauthorized response has a 5xx status code
func (*UploadFilesUnauthorized) IsSuccess ¶
func (o *UploadFilesUnauthorized) IsSuccess() bool
IsSuccess returns true when this upload files unauthorized response has a 2xx status code
func (*UploadFilesUnauthorized) String ¶
func (o *UploadFilesUnauthorized) String() string