classifications

package
v1.17.6 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClassificationsGetForbidden

type ClassificationsGetForbidden struct {
	Payload *models.ErrorResponse
}

ClassificationsGetForbidden handles this case with default header values.

Forbidden

func NewClassificationsGetForbidden

func NewClassificationsGetForbidden() *ClassificationsGetForbidden

NewClassificationsGetForbidden creates a ClassificationsGetForbidden with default headers values

func (*ClassificationsGetForbidden) Error

func (*ClassificationsGetForbidden) GetPayload

type ClassificationsGetInternalServerError

type ClassificationsGetInternalServerError struct {
	Payload *models.ErrorResponse
}

ClassificationsGetInternalServerError handles this case with default header values.

An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.

func NewClassificationsGetInternalServerError

func NewClassificationsGetInternalServerError() *ClassificationsGetInternalServerError

NewClassificationsGetInternalServerError creates a ClassificationsGetInternalServerError with default headers values

func (*ClassificationsGetInternalServerError) Error

func (*ClassificationsGetInternalServerError) GetPayload

type ClassificationsGetNotFound

type ClassificationsGetNotFound struct {
}

ClassificationsGetNotFound handles this case with default header values.

Not Found - Classification does not exist

func NewClassificationsGetNotFound

func NewClassificationsGetNotFound() *ClassificationsGetNotFound

NewClassificationsGetNotFound creates a ClassificationsGetNotFound with default headers values

func (*ClassificationsGetNotFound) Error

type ClassificationsGetOK

type ClassificationsGetOK struct {
	Payload *models.Classification
}

ClassificationsGetOK handles this case with default header values.

Found the classification, returned as body

func NewClassificationsGetOK

func NewClassificationsGetOK() *ClassificationsGetOK

NewClassificationsGetOK creates a ClassificationsGetOK with default headers values

func (*ClassificationsGetOK) Error

func (o *ClassificationsGetOK) Error() string

func (*ClassificationsGetOK) GetPayload

func (o *ClassificationsGetOK) GetPayload() *models.Classification

type ClassificationsGetParams

type ClassificationsGetParams struct {

	/*ID
	  classification id

	*/
	ID string

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

ClassificationsGetParams contains all the parameters to send to the API endpoint for the classifications get operation typically these are written to a http.Request

func NewClassificationsGetParams

func NewClassificationsGetParams() *ClassificationsGetParams

NewClassificationsGetParams creates a new ClassificationsGetParams object with the default values initialized.

func NewClassificationsGetParamsWithContext

func NewClassificationsGetParamsWithContext(ctx context.Context) *ClassificationsGetParams

NewClassificationsGetParamsWithContext creates a new ClassificationsGetParams object with the default values initialized, and the ability to set a context for a request

func NewClassificationsGetParamsWithHTTPClient

func NewClassificationsGetParamsWithHTTPClient(client *http.Client) *ClassificationsGetParams

NewClassificationsGetParamsWithHTTPClient creates a new ClassificationsGetParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewClassificationsGetParamsWithTimeout

func NewClassificationsGetParamsWithTimeout(timeout time.Duration) *ClassificationsGetParams

NewClassificationsGetParamsWithTimeout creates a new ClassificationsGetParams object with the default values initialized, and the ability to set a timeout on a request

func (*ClassificationsGetParams) SetContext

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

SetContext adds the context to the classifications get params

func (*ClassificationsGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the classifications get params

func (*ClassificationsGetParams) SetID

func (o *ClassificationsGetParams) SetID(id string)

SetID adds the id to the classifications get params

func (*ClassificationsGetParams) SetTimeout

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

SetTimeout adds the timeout to the classifications get params

func (*ClassificationsGetParams) WithContext

WithContext adds the context to the classifications get params

func (*ClassificationsGetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the classifications get params

func (*ClassificationsGetParams) WithID

WithID adds the id to the classifications get params

func (*ClassificationsGetParams) WithTimeout

WithTimeout adds the timeout to the classifications get params

func (*ClassificationsGetParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ClassificationsGetReader

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

ClassificationsGetReader is a Reader for the ClassificationsGet structure.

func (*ClassificationsGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ClassificationsGetUnauthorized

type ClassificationsGetUnauthorized struct {
}

ClassificationsGetUnauthorized handles this case with default header values.

Unauthorized or invalid credentials.

func NewClassificationsGetUnauthorized

func NewClassificationsGetUnauthorized() *ClassificationsGetUnauthorized

NewClassificationsGetUnauthorized creates a ClassificationsGetUnauthorized with default headers values

func (*ClassificationsGetUnauthorized) Error

type ClassificationsPostBadRequest

type ClassificationsPostBadRequest struct {
	Payload *models.ErrorResponse
}

ClassificationsPostBadRequest handles this case with default header values.

Incorrect request

func NewClassificationsPostBadRequest

func NewClassificationsPostBadRequest() *ClassificationsPostBadRequest

NewClassificationsPostBadRequest creates a ClassificationsPostBadRequest with default headers values

func (*ClassificationsPostBadRequest) Error

func (*ClassificationsPostBadRequest) GetPayload

type ClassificationsPostCreated

type ClassificationsPostCreated struct {
	Payload *models.Classification
}

ClassificationsPostCreated handles this case with default header values.

Successfully started classification.

func NewClassificationsPostCreated

func NewClassificationsPostCreated() *ClassificationsPostCreated

NewClassificationsPostCreated creates a ClassificationsPostCreated with default headers values

func (*ClassificationsPostCreated) Error

func (*ClassificationsPostCreated) GetPayload

type ClassificationsPostForbidden

type ClassificationsPostForbidden struct {
	Payload *models.ErrorResponse
}

ClassificationsPostForbidden handles this case with default header values.

Forbidden

func NewClassificationsPostForbidden

func NewClassificationsPostForbidden() *ClassificationsPostForbidden

NewClassificationsPostForbidden creates a ClassificationsPostForbidden with default headers values

func (*ClassificationsPostForbidden) Error

func (*ClassificationsPostForbidden) GetPayload

type ClassificationsPostInternalServerError

type ClassificationsPostInternalServerError struct {
	Payload *models.ErrorResponse
}

ClassificationsPostInternalServerError handles this case with default header values.

An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.

func NewClassificationsPostInternalServerError

func NewClassificationsPostInternalServerError() *ClassificationsPostInternalServerError

NewClassificationsPostInternalServerError creates a ClassificationsPostInternalServerError with default headers values

func (*ClassificationsPostInternalServerError) Error

func (*ClassificationsPostInternalServerError) GetPayload

type ClassificationsPostParams

type ClassificationsPostParams struct {

	/*Params
	  parameters to start a classification

	*/
	Params *models.Classification

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

ClassificationsPostParams contains all the parameters to send to the API endpoint for the classifications post operation typically these are written to a http.Request

func NewClassificationsPostParams

func NewClassificationsPostParams() *ClassificationsPostParams

NewClassificationsPostParams creates a new ClassificationsPostParams object with the default values initialized.

func NewClassificationsPostParamsWithContext

func NewClassificationsPostParamsWithContext(ctx context.Context) *ClassificationsPostParams

NewClassificationsPostParamsWithContext creates a new ClassificationsPostParams object with the default values initialized, and the ability to set a context for a request

func NewClassificationsPostParamsWithHTTPClient

func NewClassificationsPostParamsWithHTTPClient(client *http.Client) *ClassificationsPostParams

NewClassificationsPostParamsWithHTTPClient creates a new ClassificationsPostParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewClassificationsPostParamsWithTimeout

func NewClassificationsPostParamsWithTimeout(timeout time.Duration) *ClassificationsPostParams

NewClassificationsPostParamsWithTimeout creates a new ClassificationsPostParams object with the default values initialized, and the ability to set a timeout on a request

func (*ClassificationsPostParams) SetContext

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

SetContext adds the context to the classifications post params

func (*ClassificationsPostParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the classifications post params

func (*ClassificationsPostParams) SetParams

func (o *ClassificationsPostParams) SetParams(params *models.Classification)

SetParams adds the params to the classifications post params

func (*ClassificationsPostParams) SetTimeout

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

SetTimeout adds the timeout to the classifications post params

func (*ClassificationsPostParams) WithContext

WithContext adds the context to the classifications post params

func (*ClassificationsPostParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the classifications post params

func (*ClassificationsPostParams) WithParams

WithParams adds the params to the classifications post params

func (*ClassificationsPostParams) WithTimeout

WithTimeout adds the timeout to the classifications post params

func (*ClassificationsPostParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ClassificationsPostReader

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

ClassificationsPostReader is a Reader for the ClassificationsPost structure.

func (*ClassificationsPostReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ClassificationsPostUnauthorized

type ClassificationsPostUnauthorized struct {
}

ClassificationsPostUnauthorized handles this case with default header values.

Unauthorized or invalid credentials.

func NewClassificationsPostUnauthorized

func NewClassificationsPostUnauthorized() *ClassificationsPostUnauthorized

NewClassificationsPostUnauthorized creates a ClassificationsPostUnauthorized with default headers values

func (*ClassificationsPostUnauthorized) Error

type Client

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

Client for classifications API

func (*Client) ClassificationsGet

func (a *Client) ClassificationsGet(params *ClassificationsGetParams, authInfo runtime.ClientAuthInfoWriter) (*ClassificationsGetOK, error)

ClassificationsGet views previously created classification

Get status, results and metadata of a previously created classification

func (*Client) ClassificationsPost

func (a *Client) ClassificationsPost(params *ClassificationsPostParams, authInfo runtime.ClientAuthInfoWriter) (*ClassificationsPostCreated, error)

ClassificationsPost starts a classification

Trigger a classification based on the specified params. Classifications will run in the background, use GET /classifications/<id> to retrieve the status of your classification.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	ClassificationsGet(params *ClassificationsGetParams, authInfo runtime.ClientAuthInfoWriter) (*ClassificationsGetOK, error)

	ClassificationsPost(params *ClassificationsPostParams, authInfo runtime.ClientAuthInfoWriter) (*ClassificationsPostCreated, 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 classifications API client.

Jump to

Keyboard shortcuts

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