Documentation ¶
Index ¶
- type ClassificationsGetForbidden
- func (o *ClassificationsGetForbidden) Code() int
- func (o *ClassificationsGetForbidden) Error() string
- func (o *ClassificationsGetForbidden) GetPayload() *models.ErrorResponse
- func (o *ClassificationsGetForbidden) IsClientError() bool
- func (o *ClassificationsGetForbidden) IsCode(code int) bool
- func (o *ClassificationsGetForbidden) IsRedirect() bool
- func (o *ClassificationsGetForbidden) IsServerError() bool
- func (o *ClassificationsGetForbidden) IsSuccess() bool
- func (o *ClassificationsGetForbidden) String() string
- type ClassificationsGetInternalServerError
- func (o *ClassificationsGetInternalServerError) Code() int
- func (o *ClassificationsGetInternalServerError) Error() string
- func (o *ClassificationsGetInternalServerError) GetPayload() *models.ErrorResponse
- func (o *ClassificationsGetInternalServerError) IsClientError() bool
- func (o *ClassificationsGetInternalServerError) IsCode(code int) bool
- func (o *ClassificationsGetInternalServerError) IsRedirect() bool
- func (o *ClassificationsGetInternalServerError) IsServerError() bool
- func (o *ClassificationsGetInternalServerError) IsSuccess() bool
- func (o *ClassificationsGetInternalServerError) String() string
- type ClassificationsGetNotFound
- func (o *ClassificationsGetNotFound) Code() int
- func (o *ClassificationsGetNotFound) Error() string
- func (o *ClassificationsGetNotFound) IsClientError() bool
- func (o *ClassificationsGetNotFound) IsCode(code int) bool
- func (o *ClassificationsGetNotFound) IsRedirect() bool
- func (o *ClassificationsGetNotFound) IsServerError() bool
- func (o *ClassificationsGetNotFound) IsSuccess() bool
- func (o *ClassificationsGetNotFound) String() string
- type ClassificationsGetOK
- func (o *ClassificationsGetOK) Code() int
- func (o *ClassificationsGetOK) Error() string
- func (o *ClassificationsGetOK) GetPayload() *models.Classification
- func (o *ClassificationsGetOK) IsClientError() bool
- func (o *ClassificationsGetOK) IsCode(code int) bool
- func (o *ClassificationsGetOK) IsRedirect() bool
- func (o *ClassificationsGetOK) IsServerError() bool
- func (o *ClassificationsGetOK) IsSuccess() bool
- func (o *ClassificationsGetOK) String() string
- type ClassificationsGetParams
- func NewClassificationsGetParams() *ClassificationsGetParams
- func NewClassificationsGetParamsWithContext(ctx context.Context) *ClassificationsGetParams
- func NewClassificationsGetParamsWithHTTPClient(client *http.Client) *ClassificationsGetParams
- func NewClassificationsGetParamsWithTimeout(timeout time.Duration) *ClassificationsGetParams
- func (o *ClassificationsGetParams) SetContext(ctx context.Context)
- func (o *ClassificationsGetParams) SetDefaults()
- func (o *ClassificationsGetParams) SetHTTPClient(client *http.Client)
- func (o *ClassificationsGetParams) SetID(id string)
- func (o *ClassificationsGetParams) SetTimeout(timeout time.Duration)
- func (o *ClassificationsGetParams) WithContext(ctx context.Context) *ClassificationsGetParams
- func (o *ClassificationsGetParams) WithDefaults() *ClassificationsGetParams
- func (o *ClassificationsGetParams) WithHTTPClient(client *http.Client) *ClassificationsGetParams
- func (o *ClassificationsGetParams) WithID(id string) *ClassificationsGetParams
- func (o *ClassificationsGetParams) WithTimeout(timeout time.Duration) *ClassificationsGetParams
- func (o *ClassificationsGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ClassificationsGetReader
- type ClassificationsGetUnauthorized
- func (o *ClassificationsGetUnauthorized) Code() int
- func (o *ClassificationsGetUnauthorized) Error() string
- func (o *ClassificationsGetUnauthorized) IsClientError() bool
- func (o *ClassificationsGetUnauthorized) IsCode(code int) bool
- func (o *ClassificationsGetUnauthorized) IsRedirect() bool
- func (o *ClassificationsGetUnauthorized) IsServerError() bool
- func (o *ClassificationsGetUnauthorized) IsSuccess() bool
- func (o *ClassificationsGetUnauthorized) String() string
- type ClassificationsPostBadRequest
- func (o *ClassificationsPostBadRequest) Code() int
- func (o *ClassificationsPostBadRequest) Error() string
- func (o *ClassificationsPostBadRequest) GetPayload() *models.ErrorResponse
- func (o *ClassificationsPostBadRequest) IsClientError() bool
- func (o *ClassificationsPostBadRequest) IsCode(code int) bool
- func (o *ClassificationsPostBadRequest) IsRedirect() bool
- func (o *ClassificationsPostBadRequest) IsServerError() bool
- func (o *ClassificationsPostBadRequest) IsSuccess() bool
- func (o *ClassificationsPostBadRequest) String() string
- type ClassificationsPostCreated
- func (o *ClassificationsPostCreated) Code() int
- func (o *ClassificationsPostCreated) Error() string
- func (o *ClassificationsPostCreated) GetPayload() *models.Classification
- func (o *ClassificationsPostCreated) IsClientError() bool
- func (o *ClassificationsPostCreated) IsCode(code int) bool
- func (o *ClassificationsPostCreated) IsRedirect() bool
- func (o *ClassificationsPostCreated) IsServerError() bool
- func (o *ClassificationsPostCreated) IsSuccess() bool
- func (o *ClassificationsPostCreated) String() string
- type ClassificationsPostForbidden
- func (o *ClassificationsPostForbidden) Code() int
- func (o *ClassificationsPostForbidden) Error() string
- func (o *ClassificationsPostForbidden) GetPayload() *models.ErrorResponse
- func (o *ClassificationsPostForbidden) IsClientError() bool
- func (o *ClassificationsPostForbidden) IsCode(code int) bool
- func (o *ClassificationsPostForbidden) IsRedirect() bool
- func (o *ClassificationsPostForbidden) IsServerError() bool
- func (o *ClassificationsPostForbidden) IsSuccess() bool
- func (o *ClassificationsPostForbidden) String() string
- type ClassificationsPostInternalServerError
- func (o *ClassificationsPostInternalServerError) Code() int
- func (o *ClassificationsPostInternalServerError) Error() string
- func (o *ClassificationsPostInternalServerError) GetPayload() *models.ErrorResponse
- func (o *ClassificationsPostInternalServerError) IsClientError() bool
- func (o *ClassificationsPostInternalServerError) IsCode(code int) bool
- func (o *ClassificationsPostInternalServerError) IsRedirect() bool
- func (o *ClassificationsPostInternalServerError) IsServerError() bool
- func (o *ClassificationsPostInternalServerError) IsSuccess() bool
- func (o *ClassificationsPostInternalServerError) String() string
- type ClassificationsPostParams
- func NewClassificationsPostParams() *ClassificationsPostParams
- func NewClassificationsPostParamsWithContext(ctx context.Context) *ClassificationsPostParams
- func NewClassificationsPostParamsWithHTTPClient(client *http.Client) *ClassificationsPostParams
- func NewClassificationsPostParamsWithTimeout(timeout time.Duration) *ClassificationsPostParams
- func (o *ClassificationsPostParams) SetContext(ctx context.Context)
- func (o *ClassificationsPostParams) SetDefaults()
- func (o *ClassificationsPostParams) SetHTTPClient(client *http.Client)
- func (o *ClassificationsPostParams) SetParams(params *models.Classification)
- func (o *ClassificationsPostParams) SetTimeout(timeout time.Duration)
- func (o *ClassificationsPostParams) WithContext(ctx context.Context) *ClassificationsPostParams
- func (o *ClassificationsPostParams) WithDefaults() *ClassificationsPostParams
- func (o *ClassificationsPostParams) WithHTTPClient(client *http.Client) *ClassificationsPostParams
- func (o *ClassificationsPostParams) WithParams(params *models.Classification) *ClassificationsPostParams
- func (o *ClassificationsPostParams) WithTimeout(timeout time.Duration) *ClassificationsPostParams
- func (o *ClassificationsPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ClassificationsPostReader
- type ClassificationsPostUnauthorized
- func (o *ClassificationsPostUnauthorized) Code() int
- func (o *ClassificationsPostUnauthorized) Error() string
- func (o *ClassificationsPostUnauthorized) IsClientError() bool
- func (o *ClassificationsPostUnauthorized) IsCode(code int) bool
- func (o *ClassificationsPostUnauthorized) IsRedirect() bool
- func (o *ClassificationsPostUnauthorized) IsServerError() bool
- func (o *ClassificationsPostUnauthorized) IsSuccess() bool
- func (o *ClassificationsPostUnauthorized) String() string
- type Client
- func (a *Client) ClassificationsGet(params *ClassificationsGetParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ClassificationsGetOK, error)
- func (a *Client) ClassificationsPost(params *ClassificationsPostParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ClassificationsPostCreated, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
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 describes a response with status code 403, with default header values.
Forbidden
func NewClassificationsGetForbidden ¶
func NewClassificationsGetForbidden() *ClassificationsGetForbidden
NewClassificationsGetForbidden creates a ClassificationsGetForbidden with default headers values
func (*ClassificationsGetForbidden) Code ¶ added in v1.18.0
func (o *ClassificationsGetForbidden) Code() int
Code gets the status code for the classifications get forbidden response
func (*ClassificationsGetForbidden) Error ¶
func (o *ClassificationsGetForbidden) Error() string
func (*ClassificationsGetForbidden) GetPayload ¶
func (o *ClassificationsGetForbidden) GetPayload() *models.ErrorResponse
func (*ClassificationsGetForbidden) IsClientError ¶ added in v1.18.0
func (o *ClassificationsGetForbidden) IsClientError() bool
IsClientError returns true when this classifications get forbidden response has a 4xx status code
func (*ClassificationsGetForbidden) IsCode ¶ added in v1.18.0
func (o *ClassificationsGetForbidden) IsCode(code int) bool
IsCode returns true when this classifications get forbidden response a status code equal to that given
func (*ClassificationsGetForbidden) IsRedirect ¶ added in v1.18.0
func (o *ClassificationsGetForbidden) IsRedirect() bool
IsRedirect returns true when this classifications get forbidden response has a 3xx status code
func (*ClassificationsGetForbidden) IsServerError ¶ added in v1.18.0
func (o *ClassificationsGetForbidden) IsServerError() bool
IsServerError returns true when this classifications get forbidden response has a 5xx status code
func (*ClassificationsGetForbidden) IsSuccess ¶ added in v1.18.0
func (o *ClassificationsGetForbidden) IsSuccess() bool
IsSuccess returns true when this classifications get forbidden response has a 2xx status code
func (*ClassificationsGetForbidden) String ¶ added in v1.18.0
func (o *ClassificationsGetForbidden) String() string
type ClassificationsGetInternalServerError ¶
type ClassificationsGetInternalServerError struct {
Payload *models.ErrorResponse
}
ClassificationsGetInternalServerError describes a response with status code 500, 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) Code ¶ added in v1.18.0
func (o *ClassificationsGetInternalServerError) Code() int
Code gets the status code for the classifications get internal server error response
func (*ClassificationsGetInternalServerError) Error ¶
func (o *ClassificationsGetInternalServerError) Error() string
func (*ClassificationsGetInternalServerError) GetPayload ¶
func (o *ClassificationsGetInternalServerError) GetPayload() *models.ErrorResponse
func (*ClassificationsGetInternalServerError) IsClientError ¶ added in v1.18.0
func (o *ClassificationsGetInternalServerError) IsClientError() bool
IsClientError returns true when this classifications get internal server error response has a 4xx status code
func (*ClassificationsGetInternalServerError) IsCode ¶ added in v1.18.0
func (o *ClassificationsGetInternalServerError) IsCode(code int) bool
IsCode returns true when this classifications get internal server error response a status code equal to that given
func (*ClassificationsGetInternalServerError) IsRedirect ¶ added in v1.18.0
func (o *ClassificationsGetInternalServerError) IsRedirect() bool
IsRedirect returns true when this classifications get internal server error response has a 3xx status code
func (*ClassificationsGetInternalServerError) IsServerError ¶ added in v1.18.0
func (o *ClassificationsGetInternalServerError) IsServerError() bool
IsServerError returns true when this classifications get internal server error response has a 5xx status code
func (*ClassificationsGetInternalServerError) IsSuccess ¶ added in v1.18.0
func (o *ClassificationsGetInternalServerError) IsSuccess() bool
IsSuccess returns true when this classifications get internal server error response has a 2xx status code
func (*ClassificationsGetInternalServerError) String ¶ added in v1.18.0
func (o *ClassificationsGetInternalServerError) String() string
type ClassificationsGetNotFound ¶
type ClassificationsGetNotFound struct { }
ClassificationsGetNotFound describes a response with status code 404, 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) Code ¶ added in v1.18.0
func (o *ClassificationsGetNotFound) Code() int
Code gets the status code for the classifications get not found response
func (*ClassificationsGetNotFound) Error ¶
func (o *ClassificationsGetNotFound) Error() string
func (*ClassificationsGetNotFound) IsClientError ¶ added in v1.18.0
func (o *ClassificationsGetNotFound) IsClientError() bool
IsClientError returns true when this classifications get not found response has a 4xx status code
func (*ClassificationsGetNotFound) IsCode ¶ added in v1.18.0
func (o *ClassificationsGetNotFound) IsCode(code int) bool
IsCode returns true when this classifications get not found response a status code equal to that given
func (*ClassificationsGetNotFound) IsRedirect ¶ added in v1.18.0
func (o *ClassificationsGetNotFound) IsRedirect() bool
IsRedirect returns true when this classifications get not found response has a 3xx status code
func (*ClassificationsGetNotFound) IsServerError ¶ added in v1.18.0
func (o *ClassificationsGetNotFound) IsServerError() bool
IsServerError returns true when this classifications get not found response has a 5xx status code
func (*ClassificationsGetNotFound) IsSuccess ¶ added in v1.18.0
func (o *ClassificationsGetNotFound) IsSuccess() bool
IsSuccess returns true when this classifications get not found response has a 2xx status code
func (*ClassificationsGetNotFound) String ¶ added in v1.18.0
func (o *ClassificationsGetNotFound) String() string
type ClassificationsGetOK ¶
type ClassificationsGetOK struct {
Payload *models.Classification
}
ClassificationsGetOK describes a response with status code 200, 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) Code ¶ added in v1.18.0
func (o *ClassificationsGetOK) Code() int
Code gets the status code for the classifications get o k response
func (*ClassificationsGetOK) Error ¶
func (o *ClassificationsGetOK) Error() string
func (*ClassificationsGetOK) GetPayload ¶
func (o *ClassificationsGetOK) GetPayload() *models.Classification
func (*ClassificationsGetOK) IsClientError ¶ added in v1.18.0
func (o *ClassificationsGetOK) IsClientError() bool
IsClientError returns true when this classifications get o k response has a 4xx status code
func (*ClassificationsGetOK) IsCode ¶ added in v1.18.0
func (o *ClassificationsGetOK) IsCode(code int) bool
IsCode returns true when this classifications get o k response a status code equal to that given
func (*ClassificationsGetOK) IsRedirect ¶ added in v1.18.0
func (o *ClassificationsGetOK) IsRedirect() bool
IsRedirect returns true when this classifications get o k response has a 3xx status code
func (*ClassificationsGetOK) IsServerError ¶ added in v1.18.0
func (o *ClassificationsGetOK) IsServerError() bool
IsServerError returns true when this classifications get o k response has a 5xx status code
func (*ClassificationsGetOK) IsSuccess ¶ added in v1.18.0
func (o *ClassificationsGetOK) IsSuccess() bool
IsSuccess returns true when this classifications get o k response has a 2xx status code
func (*ClassificationsGetOK) String ¶ added in v1.18.0
func (o *ClassificationsGetOK) String() string
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 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 NewClassificationsGetParamsWithContext ¶
func NewClassificationsGetParamsWithContext(ctx context.Context) *ClassificationsGetParams
NewClassificationsGetParamsWithContext creates a new ClassificationsGetParams object with 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 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 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) SetDefaults ¶ added in v1.18.0
func (o *ClassificationsGetParams) SetDefaults()
SetDefaults hydrates default values in the classifications get params (not the query body).
All values with no default are reset to their zero value.
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 ¶
func (o *ClassificationsGetParams) WithContext(ctx context.Context) *ClassificationsGetParams
WithContext adds the context to the classifications get params
func (*ClassificationsGetParams) WithDefaults ¶ added in v1.18.0
func (o *ClassificationsGetParams) WithDefaults() *ClassificationsGetParams
WithDefaults hydrates default values in the classifications get params (not the query body).
All values with no default are reset to their zero value.
func (*ClassificationsGetParams) WithHTTPClient ¶
func (o *ClassificationsGetParams) WithHTTPClient(client *http.Client) *ClassificationsGetParams
WithHTTPClient adds the HTTPClient to the classifications get params
func (*ClassificationsGetParams) WithID ¶
func (o *ClassificationsGetParams) WithID(id string) *ClassificationsGetParams
WithID adds the id to the classifications get params
func (*ClassificationsGetParams) WithTimeout ¶
func (o *ClassificationsGetParams) WithTimeout(timeout time.Duration) *ClassificationsGetParams
WithTimeout adds the timeout to the classifications get params
func (*ClassificationsGetParams) WriteToRequest ¶
func (o *ClassificationsGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 describes a response with status code 401, with default header values.
Unauthorized or invalid credentials.
func NewClassificationsGetUnauthorized ¶
func NewClassificationsGetUnauthorized() *ClassificationsGetUnauthorized
NewClassificationsGetUnauthorized creates a ClassificationsGetUnauthorized with default headers values
func (*ClassificationsGetUnauthorized) Code ¶ added in v1.18.0
func (o *ClassificationsGetUnauthorized) Code() int
Code gets the status code for the classifications get unauthorized response
func (*ClassificationsGetUnauthorized) Error ¶
func (o *ClassificationsGetUnauthorized) Error() string
func (*ClassificationsGetUnauthorized) IsClientError ¶ added in v1.18.0
func (o *ClassificationsGetUnauthorized) IsClientError() bool
IsClientError returns true when this classifications get unauthorized response has a 4xx status code
func (*ClassificationsGetUnauthorized) IsCode ¶ added in v1.18.0
func (o *ClassificationsGetUnauthorized) IsCode(code int) bool
IsCode returns true when this classifications get unauthorized response a status code equal to that given
func (*ClassificationsGetUnauthorized) IsRedirect ¶ added in v1.18.0
func (o *ClassificationsGetUnauthorized) IsRedirect() bool
IsRedirect returns true when this classifications get unauthorized response has a 3xx status code
func (*ClassificationsGetUnauthorized) IsServerError ¶ added in v1.18.0
func (o *ClassificationsGetUnauthorized) IsServerError() bool
IsServerError returns true when this classifications get unauthorized response has a 5xx status code
func (*ClassificationsGetUnauthorized) IsSuccess ¶ added in v1.18.0
func (o *ClassificationsGetUnauthorized) IsSuccess() bool
IsSuccess returns true when this classifications get unauthorized response has a 2xx status code
func (*ClassificationsGetUnauthorized) String ¶ added in v1.18.0
func (o *ClassificationsGetUnauthorized) String() string
type ClassificationsPostBadRequest ¶
type ClassificationsPostBadRequest struct {
Payload *models.ErrorResponse
}
ClassificationsPostBadRequest describes a response with status code 400, with default header values.
Incorrect request
func NewClassificationsPostBadRequest ¶
func NewClassificationsPostBadRequest() *ClassificationsPostBadRequest
NewClassificationsPostBadRequest creates a ClassificationsPostBadRequest with default headers values
func (*ClassificationsPostBadRequest) Code ¶ added in v1.18.0
func (o *ClassificationsPostBadRequest) Code() int
Code gets the status code for the classifications post bad request response
func (*ClassificationsPostBadRequest) Error ¶
func (o *ClassificationsPostBadRequest) Error() string
func (*ClassificationsPostBadRequest) GetPayload ¶
func (o *ClassificationsPostBadRequest) GetPayload() *models.ErrorResponse
func (*ClassificationsPostBadRequest) IsClientError ¶ added in v1.18.0
func (o *ClassificationsPostBadRequest) IsClientError() bool
IsClientError returns true when this classifications post bad request response has a 4xx status code
func (*ClassificationsPostBadRequest) IsCode ¶ added in v1.18.0
func (o *ClassificationsPostBadRequest) IsCode(code int) bool
IsCode returns true when this classifications post bad request response a status code equal to that given
func (*ClassificationsPostBadRequest) IsRedirect ¶ added in v1.18.0
func (o *ClassificationsPostBadRequest) IsRedirect() bool
IsRedirect returns true when this classifications post bad request response has a 3xx status code
func (*ClassificationsPostBadRequest) IsServerError ¶ added in v1.18.0
func (o *ClassificationsPostBadRequest) IsServerError() bool
IsServerError returns true when this classifications post bad request response has a 5xx status code
func (*ClassificationsPostBadRequest) IsSuccess ¶ added in v1.18.0
func (o *ClassificationsPostBadRequest) IsSuccess() bool
IsSuccess returns true when this classifications post bad request response has a 2xx status code
func (*ClassificationsPostBadRequest) String ¶ added in v1.18.0
func (o *ClassificationsPostBadRequest) String() string
type ClassificationsPostCreated ¶
type ClassificationsPostCreated struct {
Payload *models.Classification
}
ClassificationsPostCreated describes a response with status code 201, with default header values.
Successfully started classification.
func NewClassificationsPostCreated ¶
func NewClassificationsPostCreated() *ClassificationsPostCreated
NewClassificationsPostCreated creates a ClassificationsPostCreated with default headers values
func (*ClassificationsPostCreated) Code ¶ added in v1.18.0
func (o *ClassificationsPostCreated) Code() int
Code gets the status code for the classifications post created response
func (*ClassificationsPostCreated) Error ¶
func (o *ClassificationsPostCreated) Error() string
func (*ClassificationsPostCreated) GetPayload ¶
func (o *ClassificationsPostCreated) GetPayload() *models.Classification
func (*ClassificationsPostCreated) IsClientError ¶ added in v1.18.0
func (o *ClassificationsPostCreated) IsClientError() bool
IsClientError returns true when this classifications post created response has a 4xx status code
func (*ClassificationsPostCreated) IsCode ¶ added in v1.18.0
func (o *ClassificationsPostCreated) IsCode(code int) bool
IsCode returns true when this classifications post created response a status code equal to that given
func (*ClassificationsPostCreated) IsRedirect ¶ added in v1.18.0
func (o *ClassificationsPostCreated) IsRedirect() bool
IsRedirect returns true when this classifications post created response has a 3xx status code
func (*ClassificationsPostCreated) IsServerError ¶ added in v1.18.0
func (o *ClassificationsPostCreated) IsServerError() bool
IsServerError returns true when this classifications post created response has a 5xx status code
func (*ClassificationsPostCreated) IsSuccess ¶ added in v1.18.0
func (o *ClassificationsPostCreated) IsSuccess() bool
IsSuccess returns true when this classifications post created response has a 2xx status code
func (*ClassificationsPostCreated) String ¶ added in v1.18.0
func (o *ClassificationsPostCreated) String() string
type ClassificationsPostForbidden ¶
type ClassificationsPostForbidden struct {
Payload *models.ErrorResponse
}
ClassificationsPostForbidden describes a response with status code 403, with default header values.
Forbidden
func NewClassificationsPostForbidden ¶
func NewClassificationsPostForbidden() *ClassificationsPostForbidden
NewClassificationsPostForbidden creates a ClassificationsPostForbidden with default headers values
func (*ClassificationsPostForbidden) Code ¶ added in v1.18.0
func (o *ClassificationsPostForbidden) Code() int
Code gets the status code for the classifications post forbidden response
func (*ClassificationsPostForbidden) Error ¶
func (o *ClassificationsPostForbidden) Error() string
func (*ClassificationsPostForbidden) GetPayload ¶
func (o *ClassificationsPostForbidden) GetPayload() *models.ErrorResponse
func (*ClassificationsPostForbidden) IsClientError ¶ added in v1.18.0
func (o *ClassificationsPostForbidden) IsClientError() bool
IsClientError returns true when this classifications post forbidden response has a 4xx status code
func (*ClassificationsPostForbidden) IsCode ¶ added in v1.18.0
func (o *ClassificationsPostForbidden) IsCode(code int) bool
IsCode returns true when this classifications post forbidden response a status code equal to that given
func (*ClassificationsPostForbidden) IsRedirect ¶ added in v1.18.0
func (o *ClassificationsPostForbidden) IsRedirect() bool
IsRedirect returns true when this classifications post forbidden response has a 3xx status code
func (*ClassificationsPostForbidden) IsServerError ¶ added in v1.18.0
func (o *ClassificationsPostForbidden) IsServerError() bool
IsServerError returns true when this classifications post forbidden response has a 5xx status code
func (*ClassificationsPostForbidden) IsSuccess ¶ added in v1.18.0
func (o *ClassificationsPostForbidden) IsSuccess() bool
IsSuccess returns true when this classifications post forbidden response has a 2xx status code
func (*ClassificationsPostForbidden) String ¶ added in v1.18.0
func (o *ClassificationsPostForbidden) String() string
type ClassificationsPostInternalServerError ¶
type ClassificationsPostInternalServerError struct {
Payload *models.ErrorResponse
}
ClassificationsPostInternalServerError describes a response with status code 500, 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) Code ¶ added in v1.18.0
func (o *ClassificationsPostInternalServerError) Code() int
Code gets the status code for the classifications post internal server error response
func (*ClassificationsPostInternalServerError) Error ¶
func (o *ClassificationsPostInternalServerError) Error() string
func (*ClassificationsPostInternalServerError) GetPayload ¶
func (o *ClassificationsPostInternalServerError) GetPayload() *models.ErrorResponse
func (*ClassificationsPostInternalServerError) IsClientError ¶ added in v1.18.0
func (o *ClassificationsPostInternalServerError) IsClientError() bool
IsClientError returns true when this classifications post internal server error response has a 4xx status code
func (*ClassificationsPostInternalServerError) IsCode ¶ added in v1.18.0
func (o *ClassificationsPostInternalServerError) IsCode(code int) bool
IsCode returns true when this classifications post internal server error response a status code equal to that given
func (*ClassificationsPostInternalServerError) IsRedirect ¶ added in v1.18.0
func (o *ClassificationsPostInternalServerError) IsRedirect() bool
IsRedirect returns true when this classifications post internal server error response has a 3xx status code
func (*ClassificationsPostInternalServerError) IsServerError ¶ added in v1.18.0
func (o *ClassificationsPostInternalServerError) IsServerError() bool
IsServerError returns true when this classifications post internal server error response has a 5xx status code
func (*ClassificationsPostInternalServerError) IsSuccess ¶ added in v1.18.0
func (o *ClassificationsPostInternalServerError) IsSuccess() bool
IsSuccess returns true when this classifications post internal server error response has a 2xx status code
func (*ClassificationsPostInternalServerError) String ¶ added in v1.18.0
func (o *ClassificationsPostInternalServerError) String() string
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 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 NewClassificationsPostParamsWithContext ¶
func NewClassificationsPostParamsWithContext(ctx context.Context) *ClassificationsPostParams
NewClassificationsPostParamsWithContext creates a new ClassificationsPostParams object with 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 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 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) SetDefaults ¶ added in v1.18.0
func (o *ClassificationsPostParams) SetDefaults()
SetDefaults hydrates default values in the classifications post params (not the query body).
All values with no default are reset to their zero value.
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 ¶
func (o *ClassificationsPostParams) WithContext(ctx context.Context) *ClassificationsPostParams
WithContext adds the context to the classifications post params
func (*ClassificationsPostParams) WithDefaults ¶ added in v1.18.0
func (o *ClassificationsPostParams) WithDefaults() *ClassificationsPostParams
WithDefaults hydrates default values in the classifications post params (not the query body).
All values with no default are reset to their zero value.
func (*ClassificationsPostParams) WithHTTPClient ¶
func (o *ClassificationsPostParams) WithHTTPClient(client *http.Client) *ClassificationsPostParams
WithHTTPClient adds the HTTPClient to the classifications post params
func (*ClassificationsPostParams) WithParams ¶
func (o *ClassificationsPostParams) WithParams(params *models.Classification) *ClassificationsPostParams
WithParams adds the params to the classifications post params
func (*ClassificationsPostParams) WithTimeout ¶
func (o *ClassificationsPostParams) WithTimeout(timeout time.Duration) *ClassificationsPostParams
WithTimeout adds the timeout to the classifications post params
func (*ClassificationsPostParams) WriteToRequest ¶
func (o *ClassificationsPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 describes a response with status code 401, with default header values.
Unauthorized or invalid credentials.
func NewClassificationsPostUnauthorized ¶
func NewClassificationsPostUnauthorized() *ClassificationsPostUnauthorized
NewClassificationsPostUnauthorized creates a ClassificationsPostUnauthorized with default headers values
func (*ClassificationsPostUnauthorized) Code ¶ added in v1.18.0
func (o *ClassificationsPostUnauthorized) Code() int
Code gets the status code for the classifications post unauthorized response
func (*ClassificationsPostUnauthorized) Error ¶
func (o *ClassificationsPostUnauthorized) Error() string
func (*ClassificationsPostUnauthorized) IsClientError ¶ added in v1.18.0
func (o *ClassificationsPostUnauthorized) IsClientError() bool
IsClientError returns true when this classifications post unauthorized response has a 4xx status code
func (*ClassificationsPostUnauthorized) IsCode ¶ added in v1.18.0
func (o *ClassificationsPostUnauthorized) IsCode(code int) bool
IsCode returns true when this classifications post unauthorized response a status code equal to that given
func (*ClassificationsPostUnauthorized) IsRedirect ¶ added in v1.18.0
func (o *ClassificationsPostUnauthorized) IsRedirect() bool
IsRedirect returns true when this classifications post unauthorized response has a 3xx status code
func (*ClassificationsPostUnauthorized) IsServerError ¶ added in v1.18.0
func (o *ClassificationsPostUnauthorized) IsServerError() bool
IsServerError returns true when this classifications post unauthorized response has a 5xx status code
func (*ClassificationsPostUnauthorized) IsSuccess ¶ added in v1.18.0
func (o *ClassificationsPostUnauthorized) IsSuccess() bool
IsSuccess returns true when this classifications post unauthorized response has a 2xx status code
func (*ClassificationsPostUnauthorized) String ¶ added in v1.18.0
func (o *ClassificationsPostUnauthorized) String() string
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, opts ...ClientOption) (*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, opts ...ClientOption) (*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 ClientOption ¶ added in v1.18.0
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { ClassificationsGet(params *ClassificationsGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ClassificationsGetOK, error) ClassificationsPost(params *ClassificationsPostParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*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.