files

package
v0.0.0-...-208ba13 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MulanPSL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAcceptApplicationBase64

func WithAcceptApplicationBase64(r *runtime.ClientOperation)

WithAcceptApplicationBase64 sets the Accept header to "application/base64".

func WithAcceptApplicationHalJSON

func WithAcceptApplicationHalJSON(r *runtime.ClientOperation)

WithAcceptApplicationHalJSON sets the Accept header to "application/hal+json".

func WithAcceptApplicationJSON

func WithAcceptApplicationJSON(r *runtime.ClientOperation)

WithAcceptApplicationJSON sets the Accept header to "application/json".

func WithAcceptApplicationOctetStream

func WithAcceptApplicationOctetStream(r *runtime.ClientOperation)

WithAcceptApplicationOctetStream sets the Accept header to "application/octet-stream".

func WithAcceptApplicationVndErrorJSON

func WithAcceptApplicationVndErrorJSON(r *runtime.ClientOperation)

WithAcceptApplicationVndErrorJSON sets the Accept header to "application/vnd.error+json".

func WithContentTypeApplicationJSON

func WithContentTypeApplicationJSON(r *runtime.ClientOperation)

WithContentTypeApplicationJSON sets the Content-Type header to "application/json".

func WithContentTypeMultipartFormData

func WithContentTypeMultipartFormData(r *runtime.ClientOperation)

WithContentTypeMultipartFormData sets the Content-Type header to "multipart/form-data".

Types

type Client

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

Client for files API

func (*Client) DeleteFile

func (a *Client) DeleteFile(params *DeleteFileParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteFileNoContent, error)

DeleteFile deletes a file

* Deletion is blocked if there are any file assignment with the given fileId.

func (*Client) DownloadFile

func (a *Client) DownloadFile(params *DownloadFileParams, authInfo runtime.ClientAuthInfoWriter, writer io.Writer, opts ...ClientOption) (*DownloadFileOK, error)

DownloadFile returns a file by its id

Returns a file by its id

func (*Client) GetFile

func (a *Client) GetFile(params *GetFileParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetFileOK, error)

GetFile returns a file s metadata by its id

Returns a file's metadata by its id

func (*Client) ListFiles

func (a *Client) ListFiles(params *ListFilesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListFilesOK, error)

ListFiles gets metadata of uploaded files

Returns all visible file metadata for the tenant. Will NOT return the files.

func (*Client) ReplaceFile

func (a *Client) ReplaceFile(params *ReplaceFileParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ReplaceFileOK, error)
ReplaceFile updates a file

Update a previously uploaded file

* Max file size is 5 MB.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UploadFile

func (a *Client) UploadFile(params *UploadFileParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UploadFileCreated, error)
UploadFile uploads files to be used in asset management

* Uploaded files are only visible for the uploader tenant.

* Max file size is 5 MB.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption may be used to customize the behavior of Client methods.

func WithAccept

func WithAccept(mime string) ClientOption

WithAccept allows the client to force the Accept header to negotiate a specific Producer from the server.

You may use this option to set arbitrary extensions to your MIME media type.

func WithContentType

func WithContentType(mime string) ClientOption

WithContentType allows the client to force the Content-Type header to negotiate a specific Consumer from the server.

You may use this option to set arbitrary extensions to your MIME media type.

type ClientService

type ClientService interface {
	DeleteFile(params *DeleteFileParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteFileNoContent, error)

	DownloadFile(params *DownloadFileParams, authInfo runtime.ClientAuthInfoWriter, writer io.Writer, opts ...ClientOption) (*DownloadFileOK, error)

	GetFile(params *GetFileParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetFileOK, error)

	ListFiles(params *ListFilesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListFilesOK, error)

	ReplaceFile(params *ReplaceFileParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ReplaceFileOK, error)

	UploadFile(params *UploadFileParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UploadFileCreated, 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 files API client.

func NewClientWithBasicAuth

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new files API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.

func NewClientWithBearerToken

func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService

New creates a new files API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.

type DeleteFileBadRequest

type DeleteFileBadRequest struct {
	Payload *models.Errors
}

DeleteFileBadRequest describes a response with status code 400, with default header values.

Invalid request

func NewDeleteFileBadRequest

func NewDeleteFileBadRequest() *DeleteFileBadRequest

NewDeleteFileBadRequest creates a DeleteFileBadRequest with default headers values

func (*DeleteFileBadRequest) Code

func (o *DeleteFileBadRequest) Code() int

Code gets the status code for the delete file bad request response

func (*DeleteFileBadRequest) Error

func (o *DeleteFileBadRequest) Error() string

func (*DeleteFileBadRequest) GetPayload

func (o *DeleteFileBadRequest) GetPayload() *models.Errors

func (*DeleteFileBadRequest) IsClientError

func (o *DeleteFileBadRequest) IsClientError() bool

IsClientError returns true when this delete file bad request response has a 4xx status code

func (*DeleteFileBadRequest) IsCode

func (o *DeleteFileBadRequest) IsCode(code int) bool

IsCode returns true when this delete file bad request response a status code equal to that given

func (*DeleteFileBadRequest) IsRedirect

func (o *DeleteFileBadRequest) IsRedirect() bool

IsRedirect returns true when this delete file bad request response has a 3xx status code

func (*DeleteFileBadRequest) IsServerError

func (o *DeleteFileBadRequest) IsServerError() bool

IsServerError returns true when this delete file bad request response has a 5xx status code

func (*DeleteFileBadRequest) IsSuccess

func (o *DeleteFileBadRequest) IsSuccess() bool

IsSuccess returns true when this delete file bad request response has a 2xx status code

func (*DeleteFileBadRequest) String

func (o *DeleteFileBadRequest) String() string

type DeleteFileForbidden

type DeleteFileForbidden struct {
	Payload *models.Errors
}

DeleteFileForbidden describes a response with status code 403, with default header values.

User is not authorized for request

func NewDeleteFileForbidden

func NewDeleteFileForbidden() *DeleteFileForbidden

NewDeleteFileForbidden creates a DeleteFileForbidden with default headers values

func (*DeleteFileForbidden) Code

func (o *DeleteFileForbidden) Code() int

Code gets the status code for the delete file forbidden response

func (*DeleteFileForbidden) Error

func (o *DeleteFileForbidden) Error() string

func (*DeleteFileForbidden) GetPayload

func (o *DeleteFileForbidden) GetPayload() *models.Errors

func (*DeleteFileForbidden) IsClientError

func (o *DeleteFileForbidden) IsClientError() bool

IsClientError returns true when this delete file forbidden response has a 4xx status code

func (*DeleteFileForbidden) IsCode

func (o *DeleteFileForbidden) IsCode(code int) bool

IsCode returns true when this delete file forbidden response a status code equal to that given

func (*DeleteFileForbidden) IsRedirect

func (o *DeleteFileForbidden) IsRedirect() bool

IsRedirect returns true when this delete file forbidden response has a 3xx status code

func (*DeleteFileForbidden) IsServerError

func (o *DeleteFileForbidden) IsServerError() bool

IsServerError returns true when this delete file forbidden response has a 5xx status code

func (*DeleteFileForbidden) IsSuccess

func (o *DeleteFileForbidden) IsSuccess() bool

IsSuccess returns true when this delete file forbidden response has a 2xx status code

func (*DeleteFileForbidden) String

func (o *DeleteFileForbidden) String() string

type DeleteFileInternalServerError

type DeleteFileInternalServerError struct {
	Payload *models.Errors
}

DeleteFileInternalServerError describes a response with status code 500, with default header values.

Server error, for more information see errorcode and message

func NewDeleteFileInternalServerError

func NewDeleteFileInternalServerError() *DeleteFileInternalServerError

NewDeleteFileInternalServerError creates a DeleteFileInternalServerError with default headers values

func (*DeleteFileInternalServerError) Code

Code gets the status code for the delete file internal server error response

func (*DeleteFileInternalServerError) Error

func (*DeleteFileInternalServerError) GetPayload

func (o *DeleteFileInternalServerError) GetPayload() *models.Errors

func (*DeleteFileInternalServerError) IsClientError

func (o *DeleteFileInternalServerError) IsClientError() bool

IsClientError returns true when this delete file internal server error response has a 4xx status code

func (*DeleteFileInternalServerError) IsCode

func (o *DeleteFileInternalServerError) IsCode(code int) bool

IsCode returns true when this delete file internal server error response a status code equal to that given

func (*DeleteFileInternalServerError) IsRedirect

func (o *DeleteFileInternalServerError) IsRedirect() bool

IsRedirect returns true when this delete file internal server error response has a 3xx status code

func (*DeleteFileInternalServerError) IsServerError

func (o *DeleteFileInternalServerError) IsServerError() bool

IsServerError returns true when this delete file internal server error response has a 5xx status code

func (*DeleteFileInternalServerError) IsSuccess

func (o *DeleteFileInternalServerError) IsSuccess() bool

IsSuccess returns true when this delete file internal server error response has a 2xx status code

func (*DeleteFileInternalServerError) String

type DeleteFileNoContent

type DeleteFileNoContent struct {
}

DeleteFileNoContent describes a response with status code 204, with default header values.

File has been successfully deleted

func NewDeleteFileNoContent

func NewDeleteFileNoContent() *DeleteFileNoContent

NewDeleteFileNoContent creates a DeleteFileNoContent with default headers values

func (*DeleteFileNoContent) Code

func (o *DeleteFileNoContent) Code() int

Code gets the status code for the delete file no content response

func (*DeleteFileNoContent) Error

func (o *DeleteFileNoContent) Error() string

func (*DeleteFileNoContent) IsClientError

func (o *DeleteFileNoContent) IsClientError() bool

IsClientError returns true when this delete file no content response has a 4xx status code

func (*DeleteFileNoContent) IsCode

func (o *DeleteFileNoContent) IsCode(code int) bool

IsCode returns true when this delete file no content response a status code equal to that given

func (*DeleteFileNoContent) IsRedirect

func (o *DeleteFileNoContent) IsRedirect() bool

IsRedirect returns true when this delete file no content response has a 3xx status code

func (*DeleteFileNoContent) IsServerError

func (o *DeleteFileNoContent) IsServerError() bool

IsServerError returns true when this delete file no content response has a 5xx status code

func (*DeleteFileNoContent) IsSuccess

func (o *DeleteFileNoContent) IsSuccess() bool

IsSuccess returns true when this delete file no content response has a 2xx status code

func (*DeleteFileNoContent) String

func (o *DeleteFileNoContent) String() string

type DeleteFileNotFound

type DeleteFileNotFound struct {
	Payload *models.Errors
}

DeleteFileNotFound describes a response with status code 404, with default header values.

File not found

func NewDeleteFileNotFound

func NewDeleteFileNotFound() *DeleteFileNotFound

NewDeleteFileNotFound creates a DeleteFileNotFound with default headers values

func (*DeleteFileNotFound) Code

func (o *DeleteFileNotFound) Code() int

Code gets the status code for the delete file not found response

func (*DeleteFileNotFound) Error

func (o *DeleteFileNotFound) Error() string

func (*DeleteFileNotFound) GetPayload

func (o *DeleteFileNotFound) GetPayload() *models.Errors

func (*DeleteFileNotFound) IsClientError

func (o *DeleteFileNotFound) IsClientError() bool

IsClientError returns true when this delete file not found response has a 4xx status code

func (*DeleteFileNotFound) IsCode

func (o *DeleteFileNotFound) IsCode(code int) bool

IsCode returns true when this delete file not found response a status code equal to that given

func (*DeleteFileNotFound) IsRedirect

func (o *DeleteFileNotFound) IsRedirect() bool

IsRedirect returns true when this delete file not found response has a 3xx status code

func (*DeleteFileNotFound) IsServerError

func (o *DeleteFileNotFound) IsServerError() bool

IsServerError returns true when this delete file not found response has a 5xx status code

func (*DeleteFileNotFound) IsSuccess

func (o *DeleteFileNotFound) IsSuccess() bool

IsSuccess returns true when this delete file not found response has a 2xx status code

func (*DeleteFileNotFound) String

func (o *DeleteFileNotFound) String() string

type DeleteFileParams

type DeleteFileParams struct {

	/* IfMatch.

	   Last known version to facilitate optimistic locking
	*/
	IfMatch string

	/* FileID.

	   Unique identifier of the file.
	*/
	FileID string

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

DeleteFileParams contains all the parameters to send to the API endpoint

for the delete file operation.

Typically these are written to a http.Request.

func NewDeleteFileParams

func NewDeleteFileParams() *DeleteFileParams

NewDeleteFileParams creates a new DeleteFileParams 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 NewDeleteFileParamsWithContext

func NewDeleteFileParamsWithContext(ctx context.Context) *DeleteFileParams

NewDeleteFileParamsWithContext creates a new DeleteFileParams object with the ability to set a context for a request.

func NewDeleteFileParamsWithHTTPClient

func NewDeleteFileParamsWithHTTPClient(client *http.Client) *DeleteFileParams

NewDeleteFileParamsWithHTTPClient creates a new DeleteFileParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteFileParamsWithTimeout

func NewDeleteFileParamsWithTimeout(timeout time.Duration) *DeleteFileParams

NewDeleteFileParamsWithTimeout creates a new DeleteFileParams object with the ability to set a timeout on a request.

func (*DeleteFileParams) SetContext

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

SetContext adds the context to the delete file params

func (*DeleteFileParams) SetDefaults

func (o *DeleteFileParams) SetDefaults()

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

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

func (*DeleteFileParams) SetFileID

func (o *DeleteFileParams) SetFileID(fileID string)

SetFileID adds the fileId to the delete file params

func (*DeleteFileParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete file params

func (*DeleteFileParams) SetIfMatch

func (o *DeleteFileParams) SetIfMatch(ifMatch string)

SetIfMatch adds the ifMatch to the delete file params

func (*DeleteFileParams) SetTimeout

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

SetTimeout adds the timeout to the delete file params

func (*DeleteFileParams) WithContext

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

WithContext adds the context to the delete file params

func (*DeleteFileParams) WithDefaults

func (o *DeleteFileParams) WithDefaults() *DeleteFileParams

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

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

func (*DeleteFileParams) WithFileID

func (o *DeleteFileParams) WithFileID(fileID string) *DeleteFileParams

WithFileID adds the fileID to the delete file params

func (*DeleteFileParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete file params

func (*DeleteFileParams) WithIfMatch

func (o *DeleteFileParams) WithIfMatch(ifMatch string) *DeleteFileParams

WithIfMatch adds the ifMatch to the delete file params

func (*DeleteFileParams) WithTimeout

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

WithTimeout adds the timeout to the delete file params

func (*DeleteFileParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteFilePreconditionFailed

type DeleteFilePreconditionFailed struct {
	Payload *models.Errors
}

DeleteFilePreconditionFailed describes a response with status code 412, with default header values.

File changed in the background

func NewDeleteFilePreconditionFailed

func NewDeleteFilePreconditionFailed() *DeleteFilePreconditionFailed

NewDeleteFilePreconditionFailed creates a DeleteFilePreconditionFailed with default headers values

func (*DeleteFilePreconditionFailed) Code

Code gets the status code for the delete file precondition failed response

func (*DeleteFilePreconditionFailed) Error

func (*DeleteFilePreconditionFailed) GetPayload

func (o *DeleteFilePreconditionFailed) GetPayload() *models.Errors

func (*DeleteFilePreconditionFailed) IsClientError

func (o *DeleteFilePreconditionFailed) IsClientError() bool

IsClientError returns true when this delete file precondition failed response has a 4xx status code

func (*DeleteFilePreconditionFailed) IsCode

func (o *DeleteFilePreconditionFailed) IsCode(code int) bool

IsCode returns true when this delete file precondition failed response a status code equal to that given

func (*DeleteFilePreconditionFailed) IsRedirect

func (o *DeleteFilePreconditionFailed) IsRedirect() bool

IsRedirect returns true when this delete file precondition failed response has a 3xx status code

func (*DeleteFilePreconditionFailed) IsServerError

func (o *DeleteFilePreconditionFailed) IsServerError() bool

IsServerError returns true when this delete file precondition failed response has a 5xx status code

func (*DeleteFilePreconditionFailed) IsSuccess

func (o *DeleteFilePreconditionFailed) IsSuccess() bool

IsSuccess returns true when this delete file precondition failed response has a 2xx status code

func (*DeleteFilePreconditionFailed) String

type DeleteFileReader

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

DeleteFileReader is a Reader for the DeleteFile structure.

func (*DeleteFileReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteFileUnauthorized

type DeleteFileUnauthorized struct {
	Payload *models.Errors
}

DeleteFileUnauthorized describes a response with status code 401, with default header values.

User is not authenticated

func NewDeleteFileUnauthorized

func NewDeleteFileUnauthorized() *DeleteFileUnauthorized

NewDeleteFileUnauthorized creates a DeleteFileUnauthorized with default headers values

func (*DeleteFileUnauthorized) Code

func (o *DeleteFileUnauthorized) Code() int

Code gets the status code for the delete file unauthorized response

func (*DeleteFileUnauthorized) Error

func (o *DeleteFileUnauthorized) Error() string

func (*DeleteFileUnauthorized) GetPayload

func (o *DeleteFileUnauthorized) GetPayload() *models.Errors

func (*DeleteFileUnauthorized) IsClientError

func (o *DeleteFileUnauthorized) IsClientError() bool

IsClientError returns true when this delete file unauthorized response has a 4xx status code

func (*DeleteFileUnauthorized) IsCode

func (o *DeleteFileUnauthorized) IsCode(code int) bool

IsCode returns true when this delete file unauthorized response a status code equal to that given

func (*DeleteFileUnauthorized) IsRedirect

func (o *DeleteFileUnauthorized) IsRedirect() bool

IsRedirect returns true when this delete file unauthorized response has a 3xx status code

func (*DeleteFileUnauthorized) IsServerError

func (o *DeleteFileUnauthorized) IsServerError() bool

IsServerError returns true when this delete file unauthorized response has a 5xx status code

func (*DeleteFileUnauthorized) IsSuccess

func (o *DeleteFileUnauthorized) IsSuccess() bool

IsSuccess returns true when this delete file unauthorized response has a 2xx status code

func (*DeleteFileUnauthorized) String

func (o *DeleteFileUnauthorized) String() string

type DownloadFileForbidden

type DownloadFileForbidden struct {
	Payload *models.Errors
}

DownloadFileForbidden describes a response with status code 403, with default header values.

User is not authorized for request

func NewDownloadFileForbidden

func NewDownloadFileForbidden() *DownloadFileForbidden

NewDownloadFileForbidden creates a DownloadFileForbidden with default headers values

func (*DownloadFileForbidden) Code

func (o *DownloadFileForbidden) Code() int

Code gets the status code for the download file forbidden response

func (*DownloadFileForbidden) Error

func (o *DownloadFileForbidden) Error() string

func (*DownloadFileForbidden) GetPayload

func (o *DownloadFileForbidden) GetPayload() *models.Errors

func (*DownloadFileForbidden) IsClientError

func (o *DownloadFileForbidden) IsClientError() bool

IsClientError returns true when this download file forbidden response has a 4xx status code

func (*DownloadFileForbidden) IsCode

func (o *DownloadFileForbidden) IsCode(code int) bool

IsCode returns true when this download file forbidden response a status code equal to that given

func (*DownloadFileForbidden) IsRedirect

func (o *DownloadFileForbidden) IsRedirect() bool

IsRedirect returns true when this download file forbidden response has a 3xx status code

func (*DownloadFileForbidden) IsServerError

func (o *DownloadFileForbidden) IsServerError() bool

IsServerError returns true when this download file forbidden response has a 5xx status code

func (*DownloadFileForbidden) IsSuccess

func (o *DownloadFileForbidden) IsSuccess() bool

IsSuccess returns true when this download file forbidden response has a 2xx status code

func (*DownloadFileForbidden) String

func (o *DownloadFileForbidden) String() string

type DownloadFileInternalServerError

type DownloadFileInternalServerError struct {
	Payload *models.Errors
}

DownloadFileInternalServerError describes a response with status code 500, with default header values.

Server error, for more information see errorcode and message

func NewDownloadFileInternalServerError

func NewDownloadFileInternalServerError() *DownloadFileInternalServerError

NewDownloadFileInternalServerError creates a DownloadFileInternalServerError with default headers values

func (*DownloadFileInternalServerError) Code

Code gets the status code for the download file internal server error response

func (*DownloadFileInternalServerError) Error

func (*DownloadFileInternalServerError) GetPayload

func (*DownloadFileInternalServerError) IsClientError

func (o *DownloadFileInternalServerError) IsClientError() bool

IsClientError returns true when this download file internal server error response has a 4xx status code

func (*DownloadFileInternalServerError) IsCode

func (o *DownloadFileInternalServerError) IsCode(code int) bool

IsCode returns true when this download file internal server error response a status code equal to that given

func (*DownloadFileInternalServerError) IsRedirect

func (o *DownloadFileInternalServerError) IsRedirect() bool

IsRedirect returns true when this download file internal server error response has a 3xx status code

func (*DownloadFileInternalServerError) IsServerError

func (o *DownloadFileInternalServerError) IsServerError() bool

IsServerError returns true when this download file internal server error response has a 5xx status code

func (*DownloadFileInternalServerError) IsSuccess

func (o *DownloadFileInternalServerError) IsSuccess() bool

IsSuccess returns true when this download file internal server error response has a 2xx status code

func (*DownloadFileInternalServerError) String

type DownloadFileNotAcceptable

type DownloadFileNotAcceptable struct {
	Payload *models.Errors
}

DownloadFileNotAcceptable describes a response with status code 406, with default header values.

The resource cannot be represented in the format that would be acceptable to the user agent

func NewDownloadFileNotAcceptable

func NewDownloadFileNotAcceptable() *DownloadFileNotAcceptable

NewDownloadFileNotAcceptable creates a DownloadFileNotAcceptable with default headers values

func (*DownloadFileNotAcceptable) Code

func (o *DownloadFileNotAcceptable) Code() int

Code gets the status code for the download file not acceptable response

func (*DownloadFileNotAcceptable) Error

func (o *DownloadFileNotAcceptable) Error() string

func (*DownloadFileNotAcceptable) GetPayload

func (o *DownloadFileNotAcceptable) GetPayload() *models.Errors

func (*DownloadFileNotAcceptable) IsClientError

func (o *DownloadFileNotAcceptable) IsClientError() bool

IsClientError returns true when this download file not acceptable response has a 4xx status code

func (*DownloadFileNotAcceptable) IsCode

func (o *DownloadFileNotAcceptable) IsCode(code int) bool

IsCode returns true when this download file not acceptable response a status code equal to that given

func (*DownloadFileNotAcceptable) IsRedirect

func (o *DownloadFileNotAcceptable) IsRedirect() bool

IsRedirect returns true when this download file not acceptable response has a 3xx status code

func (*DownloadFileNotAcceptable) IsServerError

func (o *DownloadFileNotAcceptable) IsServerError() bool

IsServerError returns true when this download file not acceptable response has a 5xx status code

func (*DownloadFileNotAcceptable) IsSuccess

func (o *DownloadFileNotAcceptable) IsSuccess() bool

IsSuccess returns true when this download file not acceptable response has a 2xx status code

func (*DownloadFileNotAcceptable) String

func (o *DownloadFileNotAcceptable) String() string

type DownloadFileNotFound

type DownloadFileNotFound struct {
	Payload *models.Errors
}

DownloadFileNotFound describes a response with status code 404, with default header values.

File not found

func NewDownloadFileNotFound

func NewDownloadFileNotFound() *DownloadFileNotFound

NewDownloadFileNotFound creates a DownloadFileNotFound with default headers values

func (*DownloadFileNotFound) Code

func (o *DownloadFileNotFound) Code() int

Code gets the status code for the download file not found response

func (*DownloadFileNotFound) Error

func (o *DownloadFileNotFound) Error() string

func (*DownloadFileNotFound) GetPayload

func (o *DownloadFileNotFound) GetPayload() *models.Errors

func (*DownloadFileNotFound) IsClientError

func (o *DownloadFileNotFound) IsClientError() bool

IsClientError returns true when this download file not found response has a 4xx status code

func (*DownloadFileNotFound) IsCode

func (o *DownloadFileNotFound) IsCode(code int) bool

IsCode returns true when this download file not found response a status code equal to that given

func (*DownloadFileNotFound) IsRedirect

func (o *DownloadFileNotFound) IsRedirect() bool

IsRedirect returns true when this download file not found response has a 3xx status code

func (*DownloadFileNotFound) IsServerError

func (o *DownloadFileNotFound) IsServerError() bool

IsServerError returns true when this download file not found response has a 5xx status code

func (*DownloadFileNotFound) IsSuccess

func (o *DownloadFileNotFound) IsSuccess() bool

IsSuccess returns true when this download file not found response has a 2xx status code

func (*DownloadFileNotFound) String

func (o *DownloadFileNotFound) String() string

type DownloadFileOK

type DownloadFileOK struct {

	/* The uploaded file resource's media type

	   Format: Media type
	*/
	ContentType string

	Payload io.Writer
}

DownloadFileOK describes a response with status code 200, with default header values.

Returns the file

func NewDownloadFileOK

func NewDownloadFileOK(writer io.Writer) *DownloadFileOK

NewDownloadFileOK creates a DownloadFileOK with default headers values

func (*DownloadFileOK) Code

func (o *DownloadFileOK) Code() int

Code gets the status code for the download file o k response

func (*DownloadFileOK) Error

func (o *DownloadFileOK) Error() string

func (*DownloadFileOK) GetPayload

func (o *DownloadFileOK) GetPayload() io.Writer

func (*DownloadFileOK) IsClientError

func (o *DownloadFileOK) IsClientError() bool

IsClientError returns true when this download file o k response has a 4xx status code

func (*DownloadFileOK) IsCode

func (o *DownloadFileOK) IsCode(code int) bool

IsCode returns true when this download file o k response a status code equal to that given

func (*DownloadFileOK) IsRedirect

func (o *DownloadFileOK) IsRedirect() bool

IsRedirect returns true when this download file o k response has a 3xx status code

func (*DownloadFileOK) IsServerError

func (o *DownloadFileOK) IsServerError() bool

IsServerError returns true when this download file o k response has a 5xx status code

func (*DownloadFileOK) IsSuccess

func (o *DownloadFileOK) IsSuccess() bool

IsSuccess returns true when this download file o k response has a 2xx status code

func (*DownloadFileOK) String

func (o *DownloadFileOK) String() string

type DownloadFileParams

type DownloadFileParams struct {

	/* FileID.

	   Unique identifier of the file.
	*/
	FileID string

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

DownloadFileParams contains all the parameters to send to the API endpoint

for the download file operation.

Typically these are written to a http.Request.

func NewDownloadFileParams

func NewDownloadFileParams() *DownloadFileParams

NewDownloadFileParams creates a new DownloadFileParams 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 NewDownloadFileParamsWithContext

func NewDownloadFileParamsWithContext(ctx context.Context) *DownloadFileParams

NewDownloadFileParamsWithContext creates a new DownloadFileParams object with the ability to set a context for a request.

func NewDownloadFileParamsWithHTTPClient

func NewDownloadFileParamsWithHTTPClient(client *http.Client) *DownloadFileParams

NewDownloadFileParamsWithHTTPClient creates a new DownloadFileParams object with the ability to set a custom HTTPClient for a request.

func NewDownloadFileParamsWithTimeout

func NewDownloadFileParamsWithTimeout(timeout time.Duration) *DownloadFileParams

NewDownloadFileParamsWithTimeout creates a new DownloadFileParams object with the ability to set a timeout on a request.

func (*DownloadFileParams) SetContext

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

SetContext adds the context to the download file params

func (*DownloadFileParams) SetDefaults

func (o *DownloadFileParams) SetDefaults()

SetDefaults hydrates default values in the download file params (not the query body).

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

func (*DownloadFileParams) SetFileID

func (o *DownloadFileParams) SetFileID(fileID string)

SetFileID adds the fileId to the download file params

func (*DownloadFileParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the download file params

func (*DownloadFileParams) SetTimeout

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

SetTimeout adds the timeout to the download file params

func (*DownloadFileParams) WithContext

WithContext adds the context to the download file params

func (*DownloadFileParams) WithDefaults

func (o *DownloadFileParams) WithDefaults() *DownloadFileParams

WithDefaults hydrates default values in the download file params (not the query body).

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

func (*DownloadFileParams) WithFileID

func (o *DownloadFileParams) WithFileID(fileID string) *DownloadFileParams

WithFileID adds the fileID to the download file params

func (*DownloadFileParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the download file params

func (*DownloadFileParams) WithTimeout

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

WithTimeout adds the timeout to the download file params

func (*DownloadFileParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DownloadFileReader

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

DownloadFileReader is a Reader for the DownloadFile structure.

func (*DownloadFileReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DownloadFileUnauthorized

type DownloadFileUnauthorized struct {
	Payload *models.Errors
}

DownloadFileUnauthorized describes a response with status code 401, with default header values.

User is not authenticated

func NewDownloadFileUnauthorized

func NewDownloadFileUnauthorized() *DownloadFileUnauthorized

NewDownloadFileUnauthorized creates a DownloadFileUnauthorized with default headers values

func (*DownloadFileUnauthorized) Code

func (o *DownloadFileUnauthorized) Code() int

Code gets the status code for the download file unauthorized response

func (*DownloadFileUnauthorized) Error

func (o *DownloadFileUnauthorized) Error() string

func (*DownloadFileUnauthorized) GetPayload

func (o *DownloadFileUnauthorized) GetPayload() *models.Errors

func (*DownloadFileUnauthorized) IsClientError

func (o *DownloadFileUnauthorized) IsClientError() bool

IsClientError returns true when this download file unauthorized response has a 4xx status code

func (*DownloadFileUnauthorized) IsCode

func (o *DownloadFileUnauthorized) IsCode(code int) bool

IsCode returns true when this download file unauthorized response a status code equal to that given

func (*DownloadFileUnauthorized) IsRedirect

func (o *DownloadFileUnauthorized) IsRedirect() bool

IsRedirect returns true when this download file unauthorized response has a 3xx status code

func (*DownloadFileUnauthorized) IsServerError

func (o *DownloadFileUnauthorized) IsServerError() bool

IsServerError returns true when this download file unauthorized response has a 5xx status code

func (*DownloadFileUnauthorized) IsSuccess

func (o *DownloadFileUnauthorized) IsSuccess() bool

IsSuccess returns true when this download file unauthorized response has a 2xx status code

func (*DownloadFileUnauthorized) String

func (o *DownloadFileUnauthorized) String() string

type GetFileForbidden

type GetFileForbidden struct {
	Payload *models.Errors
}

GetFileForbidden describes a response with status code 403, with default header values.

User is not authorized for request

func NewGetFileForbidden

func NewGetFileForbidden() *GetFileForbidden

NewGetFileForbidden creates a GetFileForbidden with default headers values

func (*GetFileForbidden) Code

func (o *GetFileForbidden) Code() int

Code gets the status code for the get file forbidden response

func (*GetFileForbidden) Error

func (o *GetFileForbidden) Error() string

func (*GetFileForbidden) GetPayload

func (o *GetFileForbidden) GetPayload() *models.Errors

func (*GetFileForbidden) IsClientError

func (o *GetFileForbidden) IsClientError() bool

IsClientError returns true when this get file forbidden response has a 4xx status code

func (*GetFileForbidden) IsCode

func (o *GetFileForbidden) IsCode(code int) bool

IsCode returns true when this get file forbidden response a status code equal to that given

func (*GetFileForbidden) IsRedirect

func (o *GetFileForbidden) IsRedirect() bool

IsRedirect returns true when this get file forbidden response has a 3xx status code

func (*GetFileForbidden) IsServerError

func (o *GetFileForbidden) IsServerError() bool

IsServerError returns true when this get file forbidden response has a 5xx status code

func (*GetFileForbidden) IsSuccess

func (o *GetFileForbidden) IsSuccess() bool

IsSuccess returns true when this get file forbidden response has a 2xx status code

func (*GetFileForbidden) String

func (o *GetFileForbidden) String() string

type GetFileInternalServerError

type GetFileInternalServerError struct {
	Payload *models.Errors
}

GetFileInternalServerError describes a response with status code 500, with default header values.

Server error, for more information see errorcode and message

func NewGetFileInternalServerError

func NewGetFileInternalServerError() *GetFileInternalServerError

NewGetFileInternalServerError creates a GetFileInternalServerError with default headers values

func (*GetFileInternalServerError) Code

func (o *GetFileInternalServerError) Code() int

Code gets the status code for the get file internal server error response

func (*GetFileInternalServerError) Error

func (*GetFileInternalServerError) GetPayload

func (o *GetFileInternalServerError) GetPayload() *models.Errors

func (*GetFileInternalServerError) IsClientError

func (o *GetFileInternalServerError) IsClientError() bool

IsClientError returns true when this get file internal server error response has a 4xx status code

func (*GetFileInternalServerError) IsCode

func (o *GetFileInternalServerError) IsCode(code int) bool

IsCode returns true when this get file internal server error response a status code equal to that given

func (*GetFileInternalServerError) IsRedirect

func (o *GetFileInternalServerError) IsRedirect() bool

IsRedirect returns true when this get file internal server error response has a 3xx status code

func (*GetFileInternalServerError) IsServerError

func (o *GetFileInternalServerError) IsServerError() bool

IsServerError returns true when this get file internal server error response has a 5xx status code

func (*GetFileInternalServerError) IsSuccess

func (o *GetFileInternalServerError) IsSuccess() bool

IsSuccess returns true when this get file internal server error response has a 2xx status code

func (*GetFileInternalServerError) String

func (o *GetFileInternalServerError) String() string

type GetFileNotFound

type GetFileNotFound struct {
	Payload *models.Errors
}

GetFileNotFound describes a response with status code 404, with default header values.

File not found

func NewGetFileNotFound

func NewGetFileNotFound() *GetFileNotFound

NewGetFileNotFound creates a GetFileNotFound with default headers values

func (*GetFileNotFound) Code

func (o *GetFileNotFound) Code() int

Code gets the status code for the get file not found response

func (*GetFileNotFound) Error

func (o *GetFileNotFound) Error() string

func (*GetFileNotFound) GetPayload

func (o *GetFileNotFound) GetPayload() *models.Errors

func (*GetFileNotFound) IsClientError

func (o *GetFileNotFound) IsClientError() bool

IsClientError returns true when this get file not found response has a 4xx status code

func (*GetFileNotFound) IsCode

func (o *GetFileNotFound) IsCode(code int) bool

IsCode returns true when this get file not found response a status code equal to that given

func (*GetFileNotFound) IsRedirect

func (o *GetFileNotFound) IsRedirect() bool

IsRedirect returns true when this get file not found response has a 3xx status code

func (*GetFileNotFound) IsServerError

func (o *GetFileNotFound) IsServerError() bool

IsServerError returns true when this get file not found response has a 5xx status code

func (*GetFileNotFound) IsSuccess

func (o *GetFileNotFound) IsSuccess() bool

IsSuccess returns true when this get file not found response has a 2xx status code

func (*GetFileNotFound) String

func (o *GetFileNotFound) String() string

type GetFileNotModified

type GetFileNotModified struct {
}

GetFileNotModified describes a response with status code 304, with default header values.

Resource have not been modified

func NewGetFileNotModified

func NewGetFileNotModified() *GetFileNotModified

NewGetFileNotModified creates a GetFileNotModified with default headers values

func (*GetFileNotModified) Code

func (o *GetFileNotModified) Code() int

Code gets the status code for the get file not modified response

func (*GetFileNotModified) Error

func (o *GetFileNotModified) Error() string

func (*GetFileNotModified) IsClientError

func (o *GetFileNotModified) IsClientError() bool

IsClientError returns true when this get file not modified response has a 4xx status code

func (*GetFileNotModified) IsCode

func (o *GetFileNotModified) IsCode(code int) bool

IsCode returns true when this get file not modified response a status code equal to that given

func (*GetFileNotModified) IsRedirect

func (o *GetFileNotModified) IsRedirect() bool

IsRedirect returns true when this get file not modified response has a 3xx status code

func (*GetFileNotModified) IsServerError

func (o *GetFileNotModified) IsServerError() bool

IsServerError returns true when this get file not modified response has a 5xx status code

func (*GetFileNotModified) IsSuccess

func (o *GetFileNotModified) IsSuccess() bool

IsSuccess returns true when this get file not modified response has a 2xx status code

func (*GetFileNotModified) String

func (o *GetFileNotModified) String() string

type GetFileOK

type GetFileOK struct {
	Payload *models.FileMetadataResource
}

GetFileOK describes a response with status code 200, with default header values.

Returns the file's metadata

func NewGetFileOK

func NewGetFileOK() *GetFileOK

NewGetFileOK creates a GetFileOK with default headers values

func (*GetFileOK) Code

func (o *GetFileOK) Code() int

Code gets the status code for the get file o k response

func (*GetFileOK) Error

func (o *GetFileOK) Error() string

func (*GetFileOK) GetPayload

func (o *GetFileOK) GetPayload() *models.FileMetadataResource

func (*GetFileOK) IsClientError

func (o *GetFileOK) IsClientError() bool

IsClientError returns true when this get file o k response has a 4xx status code

func (*GetFileOK) IsCode

func (o *GetFileOK) IsCode(code int) bool

IsCode returns true when this get file o k response a status code equal to that given

func (*GetFileOK) IsRedirect

func (o *GetFileOK) IsRedirect() bool

IsRedirect returns true when this get file o k response has a 3xx status code

func (*GetFileOK) IsServerError

func (o *GetFileOK) IsServerError() bool

IsServerError returns true when this get file o k response has a 5xx status code

func (*GetFileOK) IsSuccess

func (o *GetFileOK) IsSuccess() bool

IsSuccess returns true when this get file o k response has a 2xx status code

func (*GetFileOK) String

func (o *GetFileOK) String() string

type GetFileParams

type GetFileParams struct {

	/* IfNoneMatch.

	   ETag hash of previous request to allow caching
	*/
	IfNoneMatch *string

	/* FileID.

	   Unique identifier of the file.
	*/
	FileID string

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

GetFileParams contains all the parameters to send to the API endpoint

for the get file operation.

Typically these are written to a http.Request.

func NewGetFileParams

func NewGetFileParams() *GetFileParams

NewGetFileParams creates a new GetFileParams 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 NewGetFileParamsWithContext

func NewGetFileParamsWithContext(ctx context.Context) *GetFileParams

NewGetFileParamsWithContext creates a new GetFileParams object with the ability to set a context for a request.

func NewGetFileParamsWithHTTPClient

func NewGetFileParamsWithHTTPClient(client *http.Client) *GetFileParams

NewGetFileParamsWithHTTPClient creates a new GetFileParams object with the ability to set a custom HTTPClient for a request.

func NewGetFileParamsWithTimeout

func NewGetFileParamsWithTimeout(timeout time.Duration) *GetFileParams

NewGetFileParamsWithTimeout creates a new GetFileParams object with the ability to set a timeout on a request.

func (*GetFileParams) SetContext

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

SetContext adds the context to the get file params

func (*GetFileParams) SetDefaults

func (o *GetFileParams) SetDefaults()

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

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

func (*GetFileParams) SetFileID

func (o *GetFileParams) SetFileID(fileID string)

SetFileID adds the fileId to the get file params

func (*GetFileParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get file params

func (*GetFileParams) SetIfNoneMatch

func (o *GetFileParams) SetIfNoneMatch(ifNoneMatch *string)

SetIfNoneMatch adds the ifNoneMatch to the get file params

func (*GetFileParams) SetTimeout

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

SetTimeout adds the timeout to the get file params

func (*GetFileParams) WithContext

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

WithContext adds the context to the get file params

func (*GetFileParams) WithDefaults

func (o *GetFileParams) WithDefaults() *GetFileParams

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

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

func (*GetFileParams) WithFileID

func (o *GetFileParams) WithFileID(fileID string) *GetFileParams

WithFileID adds the fileID to the get file params

func (*GetFileParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get file params

func (*GetFileParams) WithIfNoneMatch

func (o *GetFileParams) WithIfNoneMatch(ifNoneMatch *string) *GetFileParams

WithIfNoneMatch adds the ifNoneMatch to the get file params

func (*GetFileParams) WithTimeout

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

WithTimeout adds the timeout to the get file params

func (*GetFileParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetFileReader

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

GetFileReader is a Reader for the GetFile structure.

func (*GetFileReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetFileUnauthorized

type GetFileUnauthorized struct {
	Payload *models.Errors
}

GetFileUnauthorized describes a response with status code 401, with default header values.

User is not authenticated

func NewGetFileUnauthorized

func NewGetFileUnauthorized() *GetFileUnauthorized

NewGetFileUnauthorized creates a GetFileUnauthorized with default headers values

func (*GetFileUnauthorized) Code

func (o *GetFileUnauthorized) Code() int

Code gets the status code for the get file unauthorized response

func (*GetFileUnauthorized) Error

func (o *GetFileUnauthorized) Error() string

func (*GetFileUnauthorized) GetPayload

func (o *GetFileUnauthorized) GetPayload() *models.Errors

func (*GetFileUnauthorized) IsClientError

func (o *GetFileUnauthorized) IsClientError() bool

IsClientError returns true when this get file unauthorized response has a 4xx status code

func (*GetFileUnauthorized) IsCode

func (o *GetFileUnauthorized) IsCode(code int) bool

IsCode returns true when this get file unauthorized response a status code equal to that given

func (*GetFileUnauthorized) IsRedirect

func (o *GetFileUnauthorized) IsRedirect() bool

IsRedirect returns true when this get file unauthorized response has a 3xx status code

func (*GetFileUnauthorized) IsServerError

func (o *GetFileUnauthorized) IsServerError() bool

IsServerError returns true when this get file unauthorized response has a 5xx status code

func (*GetFileUnauthorized) IsSuccess

func (o *GetFileUnauthorized) IsSuccess() bool

IsSuccess returns true when this get file unauthorized response has a 2xx status code

func (*GetFileUnauthorized) String

func (o *GetFileUnauthorized) String() string

type ListFilesBadRequest

type ListFilesBadRequest struct {
	Payload *models.Errors
}

ListFilesBadRequest describes a response with status code 400, with default header values.

Invalid request

func NewListFilesBadRequest

func NewListFilesBadRequest() *ListFilesBadRequest

NewListFilesBadRequest creates a ListFilesBadRequest with default headers values

func (*ListFilesBadRequest) Code

func (o *ListFilesBadRequest) Code() int

Code gets the status code for the list files bad request response

func (*ListFilesBadRequest) Error

func (o *ListFilesBadRequest) Error() string

func (*ListFilesBadRequest) GetPayload

func (o *ListFilesBadRequest) GetPayload() *models.Errors

func (*ListFilesBadRequest) IsClientError

func (o *ListFilesBadRequest) IsClientError() bool

IsClientError returns true when this list files bad request response has a 4xx status code

func (*ListFilesBadRequest) IsCode

func (o *ListFilesBadRequest) IsCode(code int) bool

IsCode returns true when this list files bad request response a status code equal to that given

func (*ListFilesBadRequest) IsRedirect

func (o *ListFilesBadRequest) IsRedirect() bool

IsRedirect returns true when this list files bad request response has a 3xx status code

func (*ListFilesBadRequest) IsServerError

func (o *ListFilesBadRequest) IsServerError() bool

IsServerError returns true when this list files bad request response has a 5xx status code

func (*ListFilesBadRequest) IsSuccess

func (o *ListFilesBadRequest) IsSuccess() bool

IsSuccess returns true when this list files bad request response has a 2xx status code

func (*ListFilesBadRequest) String

func (o *ListFilesBadRequest) String() string

type ListFilesForbidden

type ListFilesForbidden struct {
	Payload *models.Errors
}

ListFilesForbidden describes a response with status code 403, with default header values.

User is not authorized for request

func NewListFilesForbidden

func NewListFilesForbidden() *ListFilesForbidden

NewListFilesForbidden creates a ListFilesForbidden with default headers values

func (*ListFilesForbidden) Code

func (o *ListFilesForbidden) Code() int

Code gets the status code for the list files forbidden response

func (*ListFilesForbidden) Error

func (o *ListFilesForbidden) Error() string

func (*ListFilesForbidden) GetPayload

func (o *ListFilesForbidden) GetPayload() *models.Errors

func (*ListFilesForbidden) IsClientError

func (o *ListFilesForbidden) IsClientError() bool

IsClientError returns true when this list files forbidden response has a 4xx status code

func (*ListFilesForbidden) IsCode

func (o *ListFilesForbidden) IsCode(code int) bool

IsCode returns true when this list files forbidden response a status code equal to that given

func (*ListFilesForbidden) IsRedirect

func (o *ListFilesForbidden) IsRedirect() bool

IsRedirect returns true when this list files forbidden response has a 3xx status code

func (*ListFilesForbidden) IsServerError

func (o *ListFilesForbidden) IsServerError() bool

IsServerError returns true when this list files forbidden response has a 5xx status code

func (*ListFilesForbidden) IsSuccess

func (o *ListFilesForbidden) IsSuccess() bool

IsSuccess returns true when this list files forbidden response has a 2xx status code

func (*ListFilesForbidden) String

func (o *ListFilesForbidden) String() string

type ListFilesInternalServerError

type ListFilesInternalServerError struct {
	Payload *models.Errors
}

ListFilesInternalServerError describes a response with status code 500, with default header values.

Server error, for more information see errorcode and message

func NewListFilesInternalServerError

func NewListFilesInternalServerError() *ListFilesInternalServerError

NewListFilesInternalServerError creates a ListFilesInternalServerError with default headers values

func (*ListFilesInternalServerError) Code

Code gets the status code for the list files internal server error response

func (*ListFilesInternalServerError) Error

func (*ListFilesInternalServerError) GetPayload

func (o *ListFilesInternalServerError) GetPayload() *models.Errors

func (*ListFilesInternalServerError) IsClientError

func (o *ListFilesInternalServerError) IsClientError() bool

IsClientError returns true when this list files internal server error response has a 4xx status code

func (*ListFilesInternalServerError) IsCode

func (o *ListFilesInternalServerError) IsCode(code int) bool

IsCode returns true when this list files internal server error response a status code equal to that given

func (*ListFilesInternalServerError) IsRedirect

func (o *ListFilesInternalServerError) IsRedirect() bool

IsRedirect returns true when this list files internal server error response has a 3xx status code

func (*ListFilesInternalServerError) IsServerError

func (o *ListFilesInternalServerError) IsServerError() bool

IsServerError returns true when this list files internal server error response has a 5xx status code

func (*ListFilesInternalServerError) IsSuccess

func (o *ListFilesInternalServerError) IsSuccess() bool

IsSuccess returns true when this list files internal server error response has a 2xx status code

func (*ListFilesInternalServerError) String

type ListFilesNotModified

type ListFilesNotModified struct {
}

ListFilesNotModified describes a response with status code 304, with default header values.

Resource have not been modified

func NewListFilesNotModified

func NewListFilesNotModified() *ListFilesNotModified

NewListFilesNotModified creates a ListFilesNotModified with default headers values

func (*ListFilesNotModified) Code

func (o *ListFilesNotModified) Code() int

Code gets the status code for the list files not modified response

func (*ListFilesNotModified) Error

func (o *ListFilesNotModified) Error() string

func (*ListFilesNotModified) IsClientError

func (o *ListFilesNotModified) IsClientError() bool

IsClientError returns true when this list files not modified response has a 4xx status code

func (*ListFilesNotModified) IsCode

func (o *ListFilesNotModified) IsCode(code int) bool

IsCode returns true when this list files not modified response a status code equal to that given

func (*ListFilesNotModified) IsRedirect

func (o *ListFilesNotModified) IsRedirect() bool

IsRedirect returns true when this list files not modified response has a 3xx status code

func (*ListFilesNotModified) IsServerError

func (o *ListFilesNotModified) IsServerError() bool

IsServerError returns true when this list files not modified response has a 5xx status code

func (*ListFilesNotModified) IsSuccess

func (o *ListFilesNotModified) IsSuccess() bool

IsSuccess returns true when this list files not modified response has a 2xx status code

func (*ListFilesNotModified) String

func (o *ListFilesNotModified) String() string

type ListFilesOK

type ListFilesOK struct {
	Payload *models.FileMetadataListResource
}

ListFilesOK describes a response with status code 200, with default header values.

Metadata of files visible for the tenant

func NewListFilesOK

func NewListFilesOK() *ListFilesOK

NewListFilesOK creates a ListFilesOK with default headers values

func (*ListFilesOK) Code

func (o *ListFilesOK) Code() int

Code gets the status code for the list files o k response

func (*ListFilesOK) Error

func (o *ListFilesOK) Error() string

func (*ListFilesOK) GetPayload

func (o *ListFilesOK) GetPayload() *models.FileMetadataListResource

func (*ListFilesOK) IsClientError

func (o *ListFilesOK) IsClientError() bool

IsClientError returns true when this list files o k response has a 4xx status code

func (*ListFilesOK) IsCode

func (o *ListFilesOK) IsCode(code int) bool

IsCode returns true when this list files o k response a status code equal to that given

func (*ListFilesOK) IsRedirect

func (o *ListFilesOK) IsRedirect() bool

IsRedirect returns true when this list files o k response has a 3xx status code

func (*ListFilesOK) IsServerError

func (o *ListFilesOK) IsServerError() bool

IsServerError returns true when this list files o k response has a 5xx status code

func (*ListFilesOK) IsSuccess

func (o *ListFilesOK) IsSuccess() bool

IsSuccess returns true when this list files o k response has a 2xx status code

func (*ListFilesOK) String

func (o *ListFilesOK) String() string

type ListFilesParams

type ListFilesParams struct {

	/* IfNoneMatch.

	   ETag hash of previous request to allow caching
	*/
	IfNoneMatch *string

	/* Filter.

	   Specifies the additional filtering criteria
	*/
	Filter *string

	/* Page.

	   Specifies the requested page index
	*/
	Page *int64

	/* Size.

	   Specifies the number of elements in a page (default size is 10)
	*/
	Size *int64

	/* Sort.

	   Specifies the ordering of returned elements
	*/
	Sort *string

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

ListFilesParams contains all the parameters to send to the API endpoint

for the list files operation.

Typically these are written to a http.Request.

func NewListFilesParams

func NewListFilesParams() *ListFilesParams

NewListFilesParams creates a new ListFilesParams 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 NewListFilesParamsWithContext

func NewListFilesParamsWithContext(ctx context.Context) *ListFilesParams

NewListFilesParamsWithContext creates a new ListFilesParams object with the ability to set a context for a request.

func NewListFilesParamsWithHTTPClient

func NewListFilesParamsWithHTTPClient(client *http.Client) *ListFilesParams

NewListFilesParamsWithHTTPClient creates a new ListFilesParams object with the ability to set a custom HTTPClient for a request.

func NewListFilesParamsWithTimeout

func NewListFilesParamsWithTimeout(timeout time.Duration) *ListFilesParams

NewListFilesParamsWithTimeout creates a new ListFilesParams object with the ability to set a timeout on a request.

func (*ListFilesParams) SetContext

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

SetContext adds the context to the list files params

func (*ListFilesParams) SetDefaults

func (o *ListFilesParams) SetDefaults()

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

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

func (*ListFilesParams) SetFilter

func (o *ListFilesParams) SetFilter(filter *string)

SetFilter adds the filter to the list files params

func (*ListFilesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list files params

func (*ListFilesParams) SetIfNoneMatch

func (o *ListFilesParams) SetIfNoneMatch(ifNoneMatch *string)

SetIfNoneMatch adds the ifNoneMatch to the list files params

func (*ListFilesParams) SetPage

func (o *ListFilesParams) SetPage(page *int64)

SetPage adds the page to the list files params

func (*ListFilesParams) SetSize

func (o *ListFilesParams) SetSize(size *int64)

SetSize adds the size to the list files params

func (*ListFilesParams) SetSort

func (o *ListFilesParams) SetSort(sort *string)

SetSort adds the sort to the list files params

func (*ListFilesParams) SetTimeout

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

SetTimeout adds the timeout to the list files params

func (*ListFilesParams) WithContext

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

WithContext adds the context to the list files params

func (*ListFilesParams) WithDefaults

func (o *ListFilesParams) WithDefaults() *ListFilesParams

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

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

func (*ListFilesParams) WithFilter

func (o *ListFilesParams) WithFilter(filter *string) *ListFilesParams

WithFilter adds the filter to the list files params

func (*ListFilesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list files params

func (*ListFilesParams) WithIfNoneMatch

func (o *ListFilesParams) WithIfNoneMatch(ifNoneMatch *string) *ListFilesParams

WithIfNoneMatch adds the ifNoneMatch to the list files params

func (*ListFilesParams) WithPage

func (o *ListFilesParams) WithPage(page *int64) *ListFilesParams

WithPage adds the page to the list files params

func (*ListFilesParams) WithSize

func (o *ListFilesParams) WithSize(size *int64) *ListFilesParams

WithSize adds the size to the list files params

func (*ListFilesParams) WithSort

func (o *ListFilesParams) WithSort(sort *string) *ListFilesParams

WithSort adds the sort to the list files params

func (*ListFilesParams) WithTimeout

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

WithTimeout adds the timeout to the list files params

func (*ListFilesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListFilesReader

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

ListFilesReader is a Reader for the ListFiles structure.

func (*ListFilesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListFilesUnauthorized

type ListFilesUnauthorized struct {
	Payload *models.Errors
}

ListFilesUnauthorized describes a response with status code 401, with default header values.

User is not authenticated

func NewListFilesUnauthorized

func NewListFilesUnauthorized() *ListFilesUnauthorized

NewListFilesUnauthorized creates a ListFilesUnauthorized with default headers values

func (*ListFilesUnauthorized) Code

func (o *ListFilesUnauthorized) Code() int

Code gets the status code for the list files unauthorized response

func (*ListFilesUnauthorized) Error

func (o *ListFilesUnauthorized) Error() string

func (*ListFilesUnauthorized) GetPayload

func (o *ListFilesUnauthorized) GetPayload() *models.Errors

func (*ListFilesUnauthorized) IsClientError

func (o *ListFilesUnauthorized) IsClientError() bool

IsClientError returns true when this list files unauthorized response has a 4xx status code

func (*ListFilesUnauthorized) IsCode

func (o *ListFilesUnauthorized) IsCode(code int) bool

IsCode returns true when this list files unauthorized response a status code equal to that given

func (*ListFilesUnauthorized) IsRedirect

func (o *ListFilesUnauthorized) IsRedirect() bool

IsRedirect returns true when this list files unauthorized response has a 3xx status code

func (*ListFilesUnauthorized) IsServerError

func (o *ListFilesUnauthorized) IsServerError() bool

IsServerError returns true when this list files unauthorized response has a 5xx status code

func (*ListFilesUnauthorized) IsSuccess

func (o *ListFilesUnauthorized) IsSuccess() bool

IsSuccess returns true when this list files unauthorized response has a 2xx status code

func (*ListFilesUnauthorized) String

func (o *ListFilesUnauthorized) String() string

type ReplaceFileBadRequest

type ReplaceFileBadRequest struct {
	Payload *models.Errors
}

ReplaceFileBadRequest describes a response with status code 400, with default header values.

Invalid request

func NewReplaceFileBadRequest

func NewReplaceFileBadRequest() *ReplaceFileBadRequest

NewReplaceFileBadRequest creates a ReplaceFileBadRequest with default headers values

func (*ReplaceFileBadRequest) Code

func (o *ReplaceFileBadRequest) Code() int

Code gets the status code for the replace file bad request response

func (*ReplaceFileBadRequest) Error

func (o *ReplaceFileBadRequest) Error() string

func (*ReplaceFileBadRequest) GetPayload

func (o *ReplaceFileBadRequest) GetPayload() *models.Errors

func (*ReplaceFileBadRequest) IsClientError

func (o *ReplaceFileBadRequest) IsClientError() bool

IsClientError returns true when this replace file bad request response has a 4xx status code

func (*ReplaceFileBadRequest) IsCode

func (o *ReplaceFileBadRequest) IsCode(code int) bool

IsCode returns true when this replace file bad request response a status code equal to that given

func (*ReplaceFileBadRequest) IsRedirect

func (o *ReplaceFileBadRequest) IsRedirect() bool

IsRedirect returns true when this replace file bad request response has a 3xx status code

func (*ReplaceFileBadRequest) IsServerError

func (o *ReplaceFileBadRequest) IsServerError() bool

IsServerError returns true when this replace file bad request response has a 5xx status code

func (*ReplaceFileBadRequest) IsSuccess

func (o *ReplaceFileBadRequest) IsSuccess() bool

IsSuccess returns true when this replace file bad request response has a 2xx status code

func (*ReplaceFileBadRequest) String

func (o *ReplaceFileBadRequest) String() string

type ReplaceFileForbidden

type ReplaceFileForbidden struct {
	Payload *models.Errors
}

ReplaceFileForbidden describes a response with status code 403, with default header values.

User is not authorized for request

func NewReplaceFileForbidden

func NewReplaceFileForbidden() *ReplaceFileForbidden

NewReplaceFileForbidden creates a ReplaceFileForbidden with default headers values

func (*ReplaceFileForbidden) Code

func (o *ReplaceFileForbidden) Code() int

Code gets the status code for the replace file forbidden response

func (*ReplaceFileForbidden) Error

func (o *ReplaceFileForbidden) Error() string

func (*ReplaceFileForbidden) GetPayload

func (o *ReplaceFileForbidden) GetPayload() *models.Errors

func (*ReplaceFileForbidden) IsClientError

func (o *ReplaceFileForbidden) IsClientError() bool

IsClientError returns true when this replace file forbidden response has a 4xx status code

func (*ReplaceFileForbidden) IsCode

func (o *ReplaceFileForbidden) IsCode(code int) bool

IsCode returns true when this replace file forbidden response a status code equal to that given

func (*ReplaceFileForbidden) IsRedirect

func (o *ReplaceFileForbidden) IsRedirect() bool

IsRedirect returns true when this replace file forbidden response has a 3xx status code

func (*ReplaceFileForbidden) IsServerError

func (o *ReplaceFileForbidden) IsServerError() bool

IsServerError returns true when this replace file forbidden response has a 5xx status code

func (*ReplaceFileForbidden) IsSuccess

func (o *ReplaceFileForbidden) IsSuccess() bool

IsSuccess returns true when this replace file forbidden response has a 2xx status code

func (*ReplaceFileForbidden) String

func (o *ReplaceFileForbidden) String() string

type ReplaceFileInternalServerError

type ReplaceFileInternalServerError struct {
	Payload *models.Errors
}

ReplaceFileInternalServerError describes a response with status code 500, with default header values.

Server error, for more information see errorcode and message

func NewReplaceFileInternalServerError

func NewReplaceFileInternalServerError() *ReplaceFileInternalServerError

NewReplaceFileInternalServerError creates a ReplaceFileInternalServerError with default headers values

func (*ReplaceFileInternalServerError) Code

Code gets the status code for the replace file internal server error response

func (*ReplaceFileInternalServerError) Error

func (*ReplaceFileInternalServerError) GetPayload

func (o *ReplaceFileInternalServerError) GetPayload() *models.Errors

func (*ReplaceFileInternalServerError) IsClientError

func (o *ReplaceFileInternalServerError) IsClientError() bool

IsClientError returns true when this replace file internal server error response has a 4xx status code

func (*ReplaceFileInternalServerError) IsCode

func (o *ReplaceFileInternalServerError) IsCode(code int) bool

IsCode returns true when this replace file internal server error response a status code equal to that given

func (*ReplaceFileInternalServerError) IsRedirect

func (o *ReplaceFileInternalServerError) IsRedirect() bool

IsRedirect returns true when this replace file internal server error response has a 3xx status code

func (*ReplaceFileInternalServerError) IsServerError

func (o *ReplaceFileInternalServerError) IsServerError() bool

IsServerError returns true when this replace file internal server error response has a 5xx status code

func (*ReplaceFileInternalServerError) IsSuccess

func (o *ReplaceFileInternalServerError) IsSuccess() bool

IsSuccess returns true when this replace file internal server error response has a 2xx status code

func (*ReplaceFileInternalServerError) String

type ReplaceFileNotFound

type ReplaceFileNotFound struct {
	Payload *models.Errors
}

ReplaceFileNotFound describes a response with status code 404, with default header values.

File not found

func NewReplaceFileNotFound

func NewReplaceFileNotFound() *ReplaceFileNotFound

NewReplaceFileNotFound creates a ReplaceFileNotFound with default headers values

func (*ReplaceFileNotFound) Code

func (o *ReplaceFileNotFound) Code() int

Code gets the status code for the replace file not found response

func (*ReplaceFileNotFound) Error

func (o *ReplaceFileNotFound) Error() string

func (*ReplaceFileNotFound) GetPayload

func (o *ReplaceFileNotFound) GetPayload() *models.Errors

func (*ReplaceFileNotFound) IsClientError

func (o *ReplaceFileNotFound) IsClientError() bool

IsClientError returns true when this replace file not found response has a 4xx status code

func (*ReplaceFileNotFound) IsCode

func (o *ReplaceFileNotFound) IsCode(code int) bool

IsCode returns true when this replace file not found response a status code equal to that given

func (*ReplaceFileNotFound) IsRedirect

func (o *ReplaceFileNotFound) IsRedirect() bool

IsRedirect returns true when this replace file not found response has a 3xx status code

func (*ReplaceFileNotFound) IsServerError

func (o *ReplaceFileNotFound) IsServerError() bool

IsServerError returns true when this replace file not found response has a 5xx status code

func (*ReplaceFileNotFound) IsSuccess

func (o *ReplaceFileNotFound) IsSuccess() bool

IsSuccess returns true when this replace file not found response has a 2xx status code

func (*ReplaceFileNotFound) String

func (o *ReplaceFileNotFound) String() string

type ReplaceFileOK

type ReplaceFileOK struct {
	Payload *models.FileMetadataResource
}

ReplaceFileOK describes a response with status code 200, with default header values.

File has been successfully updated

func NewReplaceFileOK

func NewReplaceFileOK() *ReplaceFileOK

NewReplaceFileOK creates a ReplaceFileOK with default headers values

func (*ReplaceFileOK) Code

func (o *ReplaceFileOK) Code() int

Code gets the status code for the replace file o k response

func (*ReplaceFileOK) Error

func (o *ReplaceFileOK) Error() string

func (*ReplaceFileOK) GetPayload

func (o *ReplaceFileOK) GetPayload() *models.FileMetadataResource

func (*ReplaceFileOK) IsClientError

func (o *ReplaceFileOK) IsClientError() bool

IsClientError returns true when this replace file o k response has a 4xx status code

func (*ReplaceFileOK) IsCode

func (o *ReplaceFileOK) IsCode(code int) bool

IsCode returns true when this replace file o k response a status code equal to that given

func (*ReplaceFileOK) IsRedirect

func (o *ReplaceFileOK) IsRedirect() bool

IsRedirect returns true when this replace file o k response has a 3xx status code

func (*ReplaceFileOK) IsServerError

func (o *ReplaceFileOK) IsServerError() bool

IsServerError returns true when this replace file o k response has a 5xx status code

func (*ReplaceFileOK) IsSuccess

func (o *ReplaceFileOK) IsSuccess() bool

IsSuccess returns true when this replace file o k response has a 2xx status code

func (*ReplaceFileOK) String

func (o *ReplaceFileOK) String() string

type ReplaceFileParams

type ReplaceFileParams struct {

	/* IfMatch.

	   Last known version to facilitate optimistic locking
	*/
	IfMatch string

	/* Description.

	   The description of the file
	*/
	Description *string

	/* File.

	   The file to upload. The file size cannot be more than 5 MB.

	   Format: binary
	*/
	File runtime.NamedReadCloser

	/* FileID.

	   Unique identifier of the file.
	*/
	FileID string

	/* Name.

	   The name of the file
	*/
	Name string

	/* Scope.

	   The scope of the file

	   Default: "private"
	*/
	Scope string

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

ReplaceFileParams contains all the parameters to send to the API endpoint

for the replace file operation.

Typically these are written to a http.Request.

func NewReplaceFileParams

func NewReplaceFileParams() *ReplaceFileParams

NewReplaceFileParams creates a new ReplaceFileParams 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 NewReplaceFileParamsWithContext

func NewReplaceFileParamsWithContext(ctx context.Context) *ReplaceFileParams

NewReplaceFileParamsWithContext creates a new ReplaceFileParams object with the ability to set a context for a request.

func NewReplaceFileParamsWithHTTPClient

func NewReplaceFileParamsWithHTTPClient(client *http.Client) *ReplaceFileParams

NewReplaceFileParamsWithHTTPClient creates a new ReplaceFileParams object with the ability to set a custom HTTPClient for a request.

func NewReplaceFileParamsWithTimeout

func NewReplaceFileParamsWithTimeout(timeout time.Duration) *ReplaceFileParams

NewReplaceFileParamsWithTimeout creates a new ReplaceFileParams object with the ability to set a timeout on a request.

func (*ReplaceFileParams) SetContext

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

SetContext adds the context to the replace file params

func (*ReplaceFileParams) SetDefaults

func (o *ReplaceFileParams) SetDefaults()

SetDefaults hydrates default values in the replace file params (not the query body).

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

func (*ReplaceFileParams) SetDescription

func (o *ReplaceFileParams) SetDescription(description *string)

SetDescription adds the description to the replace file params

func (*ReplaceFileParams) SetFile

func (o *ReplaceFileParams) SetFile(file runtime.NamedReadCloser)

SetFile adds the file to the replace file params

func (*ReplaceFileParams) SetFileID

func (o *ReplaceFileParams) SetFileID(fileID string)

SetFileID adds the fileId to the replace file params

func (*ReplaceFileParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the replace file params

func (*ReplaceFileParams) SetIfMatch

func (o *ReplaceFileParams) SetIfMatch(ifMatch string)

SetIfMatch adds the ifMatch to the replace file params

func (*ReplaceFileParams) SetName

func (o *ReplaceFileParams) SetName(name string)

SetName adds the name to the replace file params

func (*ReplaceFileParams) SetScope

func (o *ReplaceFileParams) SetScope(scope string)

SetScope adds the scope to the replace file params

func (*ReplaceFileParams) SetTimeout

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

SetTimeout adds the timeout to the replace file params

func (*ReplaceFileParams) WithContext

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

WithContext adds the context to the replace file params

func (*ReplaceFileParams) WithDefaults

func (o *ReplaceFileParams) WithDefaults() *ReplaceFileParams

WithDefaults hydrates default values in the replace file params (not the query body).

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

func (*ReplaceFileParams) WithDescription

func (o *ReplaceFileParams) WithDescription(description *string) *ReplaceFileParams

WithDescription adds the description to the replace file params

func (*ReplaceFileParams) WithFile

WithFile adds the file to the replace file params

func (*ReplaceFileParams) WithFileID

func (o *ReplaceFileParams) WithFileID(fileID string) *ReplaceFileParams

WithFileID adds the fileID to the replace file params

func (*ReplaceFileParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the replace file params

func (*ReplaceFileParams) WithIfMatch

func (o *ReplaceFileParams) WithIfMatch(ifMatch string) *ReplaceFileParams

WithIfMatch adds the ifMatch to the replace file params

func (*ReplaceFileParams) WithName

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

WithName adds the name to the replace file params

func (*ReplaceFileParams) WithScope

func (o *ReplaceFileParams) WithScope(scope string) *ReplaceFileParams

WithScope adds the scope to the replace file params

func (*ReplaceFileParams) WithTimeout

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

WithTimeout adds the timeout to the replace file params

func (*ReplaceFileParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ReplaceFilePreconditionFailed

type ReplaceFilePreconditionFailed struct {
	Payload *models.Errors
}

ReplaceFilePreconditionFailed describes a response with status code 412, with default header values.

File is changed in the background

func NewReplaceFilePreconditionFailed

func NewReplaceFilePreconditionFailed() *ReplaceFilePreconditionFailed

NewReplaceFilePreconditionFailed creates a ReplaceFilePreconditionFailed with default headers values

func (*ReplaceFilePreconditionFailed) Code

Code gets the status code for the replace file precondition failed response

func (*ReplaceFilePreconditionFailed) Error

func (*ReplaceFilePreconditionFailed) GetPayload

func (o *ReplaceFilePreconditionFailed) GetPayload() *models.Errors

func (*ReplaceFilePreconditionFailed) IsClientError

func (o *ReplaceFilePreconditionFailed) IsClientError() bool

IsClientError returns true when this replace file precondition failed response has a 4xx status code

func (*ReplaceFilePreconditionFailed) IsCode

func (o *ReplaceFilePreconditionFailed) IsCode(code int) bool

IsCode returns true when this replace file precondition failed response a status code equal to that given

func (*ReplaceFilePreconditionFailed) IsRedirect

func (o *ReplaceFilePreconditionFailed) IsRedirect() bool

IsRedirect returns true when this replace file precondition failed response has a 3xx status code

func (*ReplaceFilePreconditionFailed) IsServerError

func (o *ReplaceFilePreconditionFailed) IsServerError() bool

IsServerError returns true when this replace file precondition failed response has a 5xx status code

func (*ReplaceFilePreconditionFailed) IsSuccess

func (o *ReplaceFilePreconditionFailed) IsSuccess() bool

IsSuccess returns true when this replace file precondition failed response has a 2xx status code

func (*ReplaceFilePreconditionFailed) String

type ReplaceFileReader

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

ReplaceFileReader is a Reader for the ReplaceFile structure.

func (*ReplaceFileReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ReplaceFileUnauthorized

type ReplaceFileUnauthorized struct {
	Payload *models.Errors
}

ReplaceFileUnauthorized describes a response with status code 401, with default header values.

User is not authenticated

func NewReplaceFileUnauthorized

func NewReplaceFileUnauthorized() *ReplaceFileUnauthorized

NewReplaceFileUnauthorized creates a ReplaceFileUnauthorized with default headers values

func (*ReplaceFileUnauthorized) Code

func (o *ReplaceFileUnauthorized) Code() int

Code gets the status code for the replace file unauthorized response

func (*ReplaceFileUnauthorized) Error

func (o *ReplaceFileUnauthorized) Error() string

func (*ReplaceFileUnauthorized) GetPayload

func (o *ReplaceFileUnauthorized) GetPayload() *models.Errors

func (*ReplaceFileUnauthorized) IsClientError

func (o *ReplaceFileUnauthorized) IsClientError() bool

IsClientError returns true when this replace file unauthorized response has a 4xx status code

func (*ReplaceFileUnauthorized) IsCode

func (o *ReplaceFileUnauthorized) IsCode(code int) bool

IsCode returns true when this replace file unauthorized response a status code equal to that given

func (*ReplaceFileUnauthorized) IsRedirect

func (o *ReplaceFileUnauthorized) IsRedirect() bool

IsRedirect returns true when this replace file unauthorized response has a 3xx status code

func (*ReplaceFileUnauthorized) IsServerError

func (o *ReplaceFileUnauthorized) IsServerError() bool

IsServerError returns true when this replace file unauthorized response has a 5xx status code

func (*ReplaceFileUnauthorized) IsSuccess

func (o *ReplaceFileUnauthorized) IsSuccess() bool

IsSuccess returns true when this replace file unauthorized response has a 2xx status code

func (*ReplaceFileUnauthorized) String

func (o *ReplaceFileUnauthorized) String() string

type UploadFileBadRequest

type UploadFileBadRequest struct {
	Payload *models.Errors
}

UploadFileBadRequest describes a response with status code 400, with default header values.

Invalid request

func NewUploadFileBadRequest

func NewUploadFileBadRequest() *UploadFileBadRequest

NewUploadFileBadRequest creates a UploadFileBadRequest with default headers values

func (*UploadFileBadRequest) Code

func (o *UploadFileBadRequest) Code() int

Code gets the status code for the upload file bad request response

func (*UploadFileBadRequest) Error

func (o *UploadFileBadRequest) Error() string

func (*UploadFileBadRequest) GetPayload

func (o *UploadFileBadRequest) GetPayload() *models.Errors

func (*UploadFileBadRequest) IsClientError

func (o *UploadFileBadRequest) IsClientError() bool

IsClientError returns true when this upload file bad request response has a 4xx status code

func (*UploadFileBadRequest) IsCode

func (o *UploadFileBadRequest) IsCode(code int) bool

IsCode returns true when this upload file bad request response a status code equal to that given

func (*UploadFileBadRequest) IsRedirect

func (o *UploadFileBadRequest) IsRedirect() bool

IsRedirect returns true when this upload file bad request response has a 3xx status code

func (*UploadFileBadRequest) IsServerError

func (o *UploadFileBadRequest) IsServerError() bool

IsServerError returns true when this upload file bad request response has a 5xx status code

func (*UploadFileBadRequest) IsSuccess

func (o *UploadFileBadRequest) IsSuccess() bool

IsSuccess returns true when this upload file bad request response has a 2xx status code

func (*UploadFileBadRequest) String

func (o *UploadFileBadRequest) String() string

type UploadFileCreated

type UploadFileCreated struct {

	/* URL of the created resource

	   Format: uri
	*/
	Location strfmt.URI

	Payload *models.FileMetadataResource
}

UploadFileCreated describes a response with status code 201, with default header values.

File has been successfully uploaded

func NewUploadFileCreated

func NewUploadFileCreated() *UploadFileCreated

NewUploadFileCreated creates a UploadFileCreated with default headers values

func (*UploadFileCreated) Code

func (o *UploadFileCreated) Code() int

Code gets the status code for the upload file created response

func (*UploadFileCreated) Error

func (o *UploadFileCreated) Error() string

func (*UploadFileCreated) GetPayload

func (*UploadFileCreated) IsClientError

func (o *UploadFileCreated) IsClientError() bool

IsClientError returns true when this upload file created response has a 4xx status code

func (*UploadFileCreated) IsCode

func (o *UploadFileCreated) IsCode(code int) bool

IsCode returns true when this upload file created response a status code equal to that given

func (*UploadFileCreated) IsRedirect

func (o *UploadFileCreated) IsRedirect() bool

IsRedirect returns true when this upload file created response has a 3xx status code

func (*UploadFileCreated) IsServerError

func (o *UploadFileCreated) IsServerError() bool

IsServerError returns true when this upload file created response has a 5xx status code

func (*UploadFileCreated) IsSuccess

func (o *UploadFileCreated) IsSuccess() bool

IsSuccess returns true when this upload file created response has a 2xx status code

func (*UploadFileCreated) String

func (o *UploadFileCreated) String() string

type UploadFileForbidden

type UploadFileForbidden struct {
	Payload *models.Errors
}

UploadFileForbidden describes a response with status code 403, with default header values.

User is not authorized for request

func NewUploadFileForbidden

func NewUploadFileForbidden() *UploadFileForbidden

NewUploadFileForbidden creates a UploadFileForbidden with default headers values

func (*UploadFileForbidden) Code

func (o *UploadFileForbidden) Code() int

Code gets the status code for the upload file forbidden response

func (*UploadFileForbidden) Error

func (o *UploadFileForbidden) Error() string

func (*UploadFileForbidden) GetPayload

func (o *UploadFileForbidden) GetPayload() *models.Errors

func (*UploadFileForbidden) IsClientError

func (o *UploadFileForbidden) IsClientError() bool

IsClientError returns true when this upload file forbidden response has a 4xx status code

func (*UploadFileForbidden) IsCode

func (o *UploadFileForbidden) IsCode(code int) bool

IsCode returns true when this upload file forbidden response a status code equal to that given

func (*UploadFileForbidden) IsRedirect

func (o *UploadFileForbidden) IsRedirect() bool

IsRedirect returns true when this upload file forbidden response has a 3xx status code

func (*UploadFileForbidden) IsServerError

func (o *UploadFileForbidden) IsServerError() bool

IsServerError returns true when this upload file forbidden response has a 5xx status code

func (*UploadFileForbidden) IsSuccess

func (o *UploadFileForbidden) IsSuccess() bool

IsSuccess returns true when this upload file forbidden response has a 2xx status code

func (*UploadFileForbidden) String

func (o *UploadFileForbidden) String() string

type UploadFileInternalServerError

type UploadFileInternalServerError struct {
	Payload *models.Errors
}

UploadFileInternalServerError describes a response with status code 500, with default header values.

Server error, for more information see errorcode and message

func NewUploadFileInternalServerError

func NewUploadFileInternalServerError() *UploadFileInternalServerError

NewUploadFileInternalServerError creates a UploadFileInternalServerError with default headers values

func (*UploadFileInternalServerError) Code

Code gets the status code for the upload file internal server error response

func (*UploadFileInternalServerError) Error

func (*UploadFileInternalServerError) GetPayload

func (o *UploadFileInternalServerError) GetPayload() *models.Errors

func (*UploadFileInternalServerError) IsClientError

func (o *UploadFileInternalServerError) IsClientError() bool

IsClientError returns true when this upload file internal server error response has a 4xx status code

func (*UploadFileInternalServerError) IsCode

func (o *UploadFileInternalServerError) IsCode(code int) bool

IsCode returns true when this upload file internal server error response a status code equal to that given

func (*UploadFileInternalServerError) IsRedirect

func (o *UploadFileInternalServerError) IsRedirect() bool

IsRedirect returns true when this upload file internal server error response has a 3xx status code

func (*UploadFileInternalServerError) IsServerError

func (o *UploadFileInternalServerError) IsServerError() bool

IsServerError returns true when this upload file internal server error response has a 5xx status code

func (*UploadFileInternalServerError) IsSuccess

func (o *UploadFileInternalServerError) IsSuccess() bool

IsSuccess returns true when this upload file internal server error response has a 2xx status code

func (*UploadFileInternalServerError) String

type UploadFileParams

type UploadFileParams struct {

	/* Description.

	   The description of the file
	*/
	Description *string

	/* File.

	   The file to upload. The file size cannot be more than 5 MB.

	   Format: binary
	*/
	File runtime.NamedReadCloser

	/* Name.

	   The name of the file
	*/
	Name string

	/* Scope.

	   The scope of the file

	   Default: "private"
	*/
	Scope *string

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

UploadFileParams contains all the parameters to send to the API endpoint

for the upload file operation.

Typically these are written to a http.Request.

func NewUploadFileParams

func NewUploadFileParams() *UploadFileParams

NewUploadFileParams creates a new UploadFileParams 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 NewUploadFileParamsWithContext

func NewUploadFileParamsWithContext(ctx context.Context) *UploadFileParams

NewUploadFileParamsWithContext creates a new UploadFileParams object with the ability to set a context for a request.

func NewUploadFileParamsWithHTTPClient

func NewUploadFileParamsWithHTTPClient(client *http.Client) *UploadFileParams

NewUploadFileParamsWithHTTPClient creates a new UploadFileParams object with the ability to set a custom HTTPClient for a request.

func NewUploadFileParamsWithTimeout

func NewUploadFileParamsWithTimeout(timeout time.Duration) *UploadFileParams

NewUploadFileParamsWithTimeout creates a new UploadFileParams object with the ability to set a timeout on a request.

func (*UploadFileParams) SetContext

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

SetContext adds the context to the upload file params

func (*UploadFileParams) SetDefaults

func (o *UploadFileParams) SetDefaults()

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

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

func (*UploadFileParams) SetDescription

func (o *UploadFileParams) SetDescription(description *string)

SetDescription adds the description to the upload file params

func (*UploadFileParams) SetFile

func (o *UploadFileParams) SetFile(file runtime.NamedReadCloser)

SetFile adds the file to the upload file params

func (*UploadFileParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the upload file params

func (*UploadFileParams) SetName

func (o *UploadFileParams) SetName(name string)

SetName adds the name to the upload file params

func (*UploadFileParams) SetScope

func (o *UploadFileParams) SetScope(scope *string)

SetScope adds the scope to the upload file params

func (*UploadFileParams) SetTimeout

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

SetTimeout adds the timeout to the upload file params

func (*UploadFileParams) WithContext

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

WithContext adds the context to the upload file params

func (*UploadFileParams) WithDefaults

func (o *UploadFileParams) WithDefaults() *UploadFileParams

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

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

func (*UploadFileParams) WithDescription

func (o *UploadFileParams) WithDescription(description *string) *UploadFileParams

WithDescription adds the description to the upload file params

func (*UploadFileParams) WithFile

WithFile adds the file to the upload file params

func (*UploadFileParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the upload file params

func (*UploadFileParams) WithName

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

WithName adds the name to the upload file params

func (*UploadFileParams) WithScope

func (o *UploadFileParams) WithScope(scope *string) *UploadFileParams

WithScope adds the scope to the upload file params

func (*UploadFileParams) WithTimeout

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

WithTimeout adds the timeout to the upload file params

func (*UploadFileParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UploadFileReader

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

UploadFileReader is a Reader for the UploadFile structure.

func (*UploadFileReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UploadFileUnauthorized

type UploadFileUnauthorized struct {
	Payload *models.Errors
}

UploadFileUnauthorized describes a response with status code 401, with default header values.

User is not authenticated

func NewUploadFileUnauthorized

func NewUploadFileUnauthorized() *UploadFileUnauthorized

NewUploadFileUnauthorized creates a UploadFileUnauthorized with default headers values

func (*UploadFileUnauthorized) Code

func (o *UploadFileUnauthorized) Code() int

Code gets the status code for the upload file unauthorized response

func (*UploadFileUnauthorized) Error

func (o *UploadFileUnauthorized) Error() string

func (*UploadFileUnauthorized) GetPayload

func (o *UploadFileUnauthorized) GetPayload() *models.Errors

func (*UploadFileUnauthorized) IsClientError

func (o *UploadFileUnauthorized) IsClientError() bool

IsClientError returns true when this upload file unauthorized response has a 4xx status code

func (*UploadFileUnauthorized) IsCode

func (o *UploadFileUnauthorized) IsCode(code int) bool

IsCode returns true when this upload file unauthorized response a status code equal to that given

func (*UploadFileUnauthorized) IsRedirect

func (o *UploadFileUnauthorized) IsRedirect() bool

IsRedirect returns true when this upload file unauthorized response has a 3xx status code

func (*UploadFileUnauthorized) IsServerError

func (o *UploadFileUnauthorized) IsServerError() bool

IsServerError returns true when this upload file unauthorized response has a 5xx status code

func (*UploadFileUnauthorized) IsSuccess

func (o *UploadFileUnauthorized) IsSuccess() bool

IsSuccess returns true when this upload file unauthorized response has a 2xx status code

func (*UploadFileUnauthorized) String

func (o *UploadFileUnauthorized) String() string

Jump to

Keyboard shortcuts

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