Documentation ¶
Index ¶
- type Client
- func (a *Client) GetCreators(params *GetCreatorsParams, opts ...ClientOption) (*GetCreatorsOK, error)
- func (a *Client) GetImages(params *GetImagesParams, opts ...ClientOption) (*GetImagesOK, error)
- func (a *Client) GetModel(params *GetModelParams, opts ...ClientOption) (*GetModelOK, error)
- func (a *Client) GetModelVersion(params *GetModelVersionParams, opts ...ClientOption) (*GetModelVersionOK, error)
- func (a *Client) GetModelVersionByHash(params *GetModelVersionByHashParams, opts ...ClientOption) (*GetModelVersionByHashOK, error)
- func (a *Client) GetModels(params *GetModelsParams, opts ...ClientOption) (*GetModelsOK, error)
- func (a *Client) GetTags(params *GetTagsParams, opts ...ClientOption) (*GetTagsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetCreatorsDefault
- func (o *GetCreatorsDefault) Code() int
- func (o *GetCreatorsDefault) Error() string
- func (o *GetCreatorsDefault) GetPayload() *models.StandardError
- func (o *GetCreatorsDefault) IsClientError() bool
- func (o *GetCreatorsDefault) IsCode(code int) bool
- func (o *GetCreatorsDefault) IsRedirect() bool
- func (o *GetCreatorsDefault) IsServerError() bool
- func (o *GetCreatorsDefault) IsSuccess() bool
- func (o *GetCreatorsDefault) String() string
- type GetCreatorsOK
- func (o *GetCreatorsOK) Code() int
- func (o *GetCreatorsOK) Error() string
- func (o *GetCreatorsOK) GetPayload() *models.CreatorsResponse
- func (o *GetCreatorsOK) IsClientError() bool
- func (o *GetCreatorsOK) IsCode(code int) bool
- func (o *GetCreatorsOK) IsRedirect() bool
- func (o *GetCreatorsOK) IsServerError() bool
- func (o *GetCreatorsOK) IsSuccess() bool
- func (o *GetCreatorsOK) String() string
- type GetCreatorsParams
- func (o *GetCreatorsParams) SetContext(ctx context.Context)
- func (o *GetCreatorsParams) SetDefaults()
- func (o *GetCreatorsParams) SetHTTPClient(client *http.Client)
- func (o *GetCreatorsParams) SetLimit(limit *int64)
- func (o *GetCreatorsParams) SetPage(page *int64)
- func (o *GetCreatorsParams) SetQuery(query *string)
- func (o *GetCreatorsParams) SetTimeout(timeout time.Duration)
- func (o *GetCreatorsParams) WithContext(ctx context.Context) *GetCreatorsParams
- func (o *GetCreatorsParams) WithDefaults() *GetCreatorsParams
- func (o *GetCreatorsParams) WithHTTPClient(client *http.Client) *GetCreatorsParams
- func (o *GetCreatorsParams) WithLimit(limit *int64) *GetCreatorsParams
- func (o *GetCreatorsParams) WithPage(page *int64) *GetCreatorsParams
- func (o *GetCreatorsParams) WithQuery(query *string) *GetCreatorsParams
- func (o *GetCreatorsParams) WithTimeout(timeout time.Duration) *GetCreatorsParams
- func (o *GetCreatorsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetCreatorsReader
- type GetImagesDefault
- func (o *GetImagesDefault) Code() int
- func (o *GetImagesDefault) Error() string
- func (o *GetImagesDefault) GetPayload() *models.StandardError
- func (o *GetImagesDefault) IsClientError() bool
- func (o *GetImagesDefault) IsCode(code int) bool
- func (o *GetImagesDefault) IsRedirect() bool
- func (o *GetImagesDefault) IsServerError() bool
- func (o *GetImagesDefault) IsSuccess() bool
- func (o *GetImagesDefault) String() string
- type GetImagesOK
- func (o *GetImagesOK) Code() int
- func (o *GetImagesOK) Error() string
- func (o *GetImagesOK) GetPayload() *models.ImagesResponse
- func (o *GetImagesOK) IsClientError() bool
- func (o *GetImagesOK) IsCode(code int) bool
- func (o *GetImagesOK) IsRedirect() bool
- func (o *GetImagesOK) IsServerError() bool
- func (o *GetImagesOK) IsSuccess() bool
- func (o *GetImagesOK) String() string
- type GetImagesParams
- func (o *GetImagesParams) SetContext(ctx context.Context)
- func (o *GetImagesParams) SetDefaults()
- func (o *GetImagesParams) SetHTTPClient(client *http.Client)
- func (o *GetImagesParams) SetLimit(limit *int64)
- func (o *GetImagesParams) SetModelID(modelID *int64)
- func (o *GetImagesParams) SetModelVersionID(modelVersionID *int64)
- func (o *GetImagesParams) SetNsfw(nsfw *bool)
- func (o *GetImagesParams) SetPage(page *int64)
- func (o *GetImagesParams) SetPeriod(period *string)
- func (o *GetImagesParams) SetPostID(postID *int64)
- func (o *GetImagesParams) SetSort(sort *string)
- func (o *GetImagesParams) SetTimeout(timeout time.Duration)
- func (o *GetImagesParams) SetUsername(username *string)
- func (o *GetImagesParams) WithContext(ctx context.Context) *GetImagesParams
- func (o *GetImagesParams) WithDefaults() *GetImagesParams
- func (o *GetImagesParams) WithHTTPClient(client *http.Client) *GetImagesParams
- func (o *GetImagesParams) WithLimit(limit *int64) *GetImagesParams
- func (o *GetImagesParams) WithModelID(modelID *int64) *GetImagesParams
- func (o *GetImagesParams) WithModelVersionID(modelVersionID *int64) *GetImagesParams
- func (o *GetImagesParams) WithNsfw(nsfw *bool) *GetImagesParams
- func (o *GetImagesParams) WithPage(page *int64) *GetImagesParams
- func (o *GetImagesParams) WithPeriod(period *string) *GetImagesParams
- func (o *GetImagesParams) WithPostID(postID *int64) *GetImagesParams
- func (o *GetImagesParams) WithSort(sort *string) *GetImagesParams
- func (o *GetImagesParams) WithTimeout(timeout time.Duration) *GetImagesParams
- func (o *GetImagesParams) WithUsername(username *string) *GetImagesParams
- func (o *GetImagesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetImagesReader
- type GetModelDefault
- func (o *GetModelDefault) Code() int
- func (o *GetModelDefault) Error() string
- func (o *GetModelDefault) GetPayload() *models.StandardError
- func (o *GetModelDefault) IsClientError() bool
- func (o *GetModelDefault) IsCode(code int) bool
- func (o *GetModelDefault) IsRedirect() bool
- func (o *GetModelDefault) IsServerError() bool
- func (o *GetModelDefault) IsSuccess() bool
- func (o *GetModelDefault) String() string
- type GetModelOK
- func (o *GetModelOK) Code() int
- func (o *GetModelOK) Error() string
- func (o *GetModelOK) GetPayload() *models.Model
- func (o *GetModelOK) IsClientError() bool
- func (o *GetModelOK) IsCode(code int) bool
- func (o *GetModelOK) IsRedirect() bool
- func (o *GetModelOK) IsServerError() bool
- func (o *GetModelOK) IsSuccess() bool
- func (o *GetModelOK) String() string
- type GetModelParams
- func (o *GetModelParams) SetContext(ctx context.Context)
- func (o *GetModelParams) SetDefaults()
- func (o *GetModelParams) SetHTTPClient(client *http.Client)
- func (o *GetModelParams) SetModelID(modelID int64)
- func (o *GetModelParams) SetTimeout(timeout time.Duration)
- func (o *GetModelParams) WithContext(ctx context.Context) *GetModelParams
- func (o *GetModelParams) WithDefaults() *GetModelParams
- func (o *GetModelParams) WithHTTPClient(client *http.Client) *GetModelParams
- func (o *GetModelParams) WithModelID(modelID int64) *GetModelParams
- func (o *GetModelParams) WithTimeout(timeout time.Duration) *GetModelParams
- func (o *GetModelParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetModelReader
- type GetModelVersionByHashDefault
- func (o *GetModelVersionByHashDefault) Code() int
- func (o *GetModelVersionByHashDefault) Error() string
- func (o *GetModelVersionByHashDefault) GetPayload() *models.StandardError
- func (o *GetModelVersionByHashDefault) IsClientError() bool
- func (o *GetModelVersionByHashDefault) IsCode(code int) bool
- func (o *GetModelVersionByHashDefault) IsRedirect() bool
- func (o *GetModelVersionByHashDefault) IsServerError() bool
- func (o *GetModelVersionByHashDefault) IsSuccess() bool
- func (o *GetModelVersionByHashDefault) String() string
- type GetModelVersionByHashOK
- func (o *GetModelVersionByHashOK) Code() int
- func (o *GetModelVersionByHashOK) Error() string
- func (o *GetModelVersionByHashOK) GetPayload() *models.ModelVersion
- func (o *GetModelVersionByHashOK) IsClientError() bool
- func (o *GetModelVersionByHashOK) IsCode(code int) bool
- func (o *GetModelVersionByHashOK) IsRedirect() bool
- func (o *GetModelVersionByHashOK) IsServerError() bool
- func (o *GetModelVersionByHashOK) IsSuccess() bool
- func (o *GetModelVersionByHashOK) String() string
- type GetModelVersionByHashParams
- func NewGetModelVersionByHashParams() *GetModelVersionByHashParams
- func NewGetModelVersionByHashParamsWithContext(ctx context.Context) *GetModelVersionByHashParams
- func NewGetModelVersionByHashParamsWithHTTPClient(client *http.Client) *GetModelVersionByHashParams
- func NewGetModelVersionByHashParamsWithTimeout(timeout time.Duration) *GetModelVersionByHashParams
- func (o *GetModelVersionByHashParams) SetContext(ctx context.Context)
- func (o *GetModelVersionByHashParams) SetDefaults()
- func (o *GetModelVersionByHashParams) SetHTTPClient(client *http.Client)
- func (o *GetModelVersionByHashParams) SetHash(hash string)
- func (o *GetModelVersionByHashParams) SetTimeout(timeout time.Duration)
- func (o *GetModelVersionByHashParams) WithContext(ctx context.Context) *GetModelVersionByHashParams
- func (o *GetModelVersionByHashParams) WithDefaults() *GetModelVersionByHashParams
- func (o *GetModelVersionByHashParams) WithHTTPClient(client *http.Client) *GetModelVersionByHashParams
- func (o *GetModelVersionByHashParams) WithHash(hash string) *GetModelVersionByHashParams
- func (o *GetModelVersionByHashParams) WithTimeout(timeout time.Duration) *GetModelVersionByHashParams
- func (o *GetModelVersionByHashParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetModelVersionByHashReader
- type GetModelVersionDefault
- func (o *GetModelVersionDefault) Code() int
- func (o *GetModelVersionDefault) Error() string
- func (o *GetModelVersionDefault) GetPayload() *models.StandardError
- func (o *GetModelVersionDefault) IsClientError() bool
- func (o *GetModelVersionDefault) IsCode(code int) bool
- func (o *GetModelVersionDefault) IsRedirect() bool
- func (o *GetModelVersionDefault) IsServerError() bool
- func (o *GetModelVersionDefault) IsSuccess() bool
- func (o *GetModelVersionDefault) String() string
- type GetModelVersionOK
- func (o *GetModelVersionOK) Code() int
- func (o *GetModelVersionOK) Error() string
- func (o *GetModelVersionOK) GetPayload() *models.ModelVersion
- func (o *GetModelVersionOK) IsClientError() bool
- func (o *GetModelVersionOK) IsCode(code int) bool
- func (o *GetModelVersionOK) IsRedirect() bool
- func (o *GetModelVersionOK) IsServerError() bool
- func (o *GetModelVersionOK) IsSuccess() bool
- func (o *GetModelVersionOK) String() string
- type GetModelVersionParams
- func NewGetModelVersionParams() *GetModelVersionParams
- func NewGetModelVersionParamsWithContext(ctx context.Context) *GetModelVersionParams
- func NewGetModelVersionParamsWithHTTPClient(client *http.Client) *GetModelVersionParams
- func NewGetModelVersionParamsWithTimeout(timeout time.Duration) *GetModelVersionParams
- func (o *GetModelVersionParams) SetContext(ctx context.Context)
- func (o *GetModelVersionParams) SetDefaults()
- func (o *GetModelVersionParams) SetHTTPClient(client *http.Client)
- func (o *GetModelVersionParams) SetModelVersionID(modelVersionID int64)
- func (o *GetModelVersionParams) SetTimeout(timeout time.Duration)
- func (o *GetModelVersionParams) WithContext(ctx context.Context) *GetModelVersionParams
- func (o *GetModelVersionParams) WithDefaults() *GetModelVersionParams
- func (o *GetModelVersionParams) WithHTTPClient(client *http.Client) *GetModelVersionParams
- func (o *GetModelVersionParams) WithModelVersionID(modelVersionID int64) *GetModelVersionParams
- func (o *GetModelVersionParams) WithTimeout(timeout time.Duration) *GetModelVersionParams
- func (o *GetModelVersionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetModelVersionReader
- type GetModelsDefault
- func (o *GetModelsDefault) Code() int
- func (o *GetModelsDefault) Error() string
- func (o *GetModelsDefault) GetPayload() *models.StandardError
- func (o *GetModelsDefault) IsClientError() bool
- func (o *GetModelsDefault) IsCode(code int) bool
- func (o *GetModelsDefault) IsRedirect() bool
- func (o *GetModelsDefault) IsServerError() bool
- func (o *GetModelsDefault) IsSuccess() bool
- func (o *GetModelsDefault) String() string
- type GetModelsOK
- func (o *GetModelsOK) Code() int
- func (o *GetModelsOK) Error() string
- func (o *GetModelsOK) GetPayload() *models.ModelsResponse
- func (o *GetModelsOK) IsClientError() bool
- func (o *GetModelsOK) IsCode(code int) bool
- func (o *GetModelsOK) IsRedirect() bool
- func (o *GetModelsOK) IsServerError() bool
- func (o *GetModelsOK) IsSuccess() bool
- func (o *GetModelsOK) String() string
- type GetModelsParams
- func (o *GetModelsParams) SetContext(ctx context.Context)
- func (o *GetModelsParams) SetDefaults()
- func (o *GetModelsParams) SetFavorites(favorites *bool)
- func (o *GetModelsParams) SetHTTPClient(client *http.Client)
- func (o *GetModelsParams) SetHidden(hidden *bool)
- func (o *GetModelsParams) SetLimit(limit *int64)
- func (o *GetModelsParams) SetPage(page *int64)
- func (o *GetModelsParams) SetPeriod(period *string)
- func (o *GetModelsParams) SetPrimaryFileOnly(primaryFileOnly *bool)
- func (o *GetModelsParams) SetQuery(query *string)
- func (o *GetModelsParams) SetRating(rating *int64)
- func (o *GetModelsParams) SetSort(sort *string)
- func (o *GetModelsParams) SetTag(tag *string)
- func (o *GetModelsParams) SetTimeout(timeout time.Duration)
- func (o *GetModelsParams) SetTypes(types *string)
- func (o *GetModelsParams) SetUsername(username *string)
- func (o *GetModelsParams) WithContext(ctx context.Context) *GetModelsParams
- func (o *GetModelsParams) WithDefaults() *GetModelsParams
- func (o *GetModelsParams) WithFavorites(favorites *bool) *GetModelsParams
- func (o *GetModelsParams) WithHTTPClient(client *http.Client) *GetModelsParams
- func (o *GetModelsParams) WithHidden(hidden *bool) *GetModelsParams
- func (o *GetModelsParams) WithLimit(limit *int64) *GetModelsParams
- func (o *GetModelsParams) WithPage(page *int64) *GetModelsParams
- func (o *GetModelsParams) WithPeriod(period *string) *GetModelsParams
- func (o *GetModelsParams) WithPrimaryFileOnly(primaryFileOnly *bool) *GetModelsParams
- func (o *GetModelsParams) WithQuery(query *string) *GetModelsParams
- func (o *GetModelsParams) WithRating(rating *int64) *GetModelsParams
- func (o *GetModelsParams) WithSort(sort *string) *GetModelsParams
- func (o *GetModelsParams) WithTag(tag *string) *GetModelsParams
- func (o *GetModelsParams) WithTimeout(timeout time.Duration) *GetModelsParams
- func (o *GetModelsParams) WithTypes(types *string) *GetModelsParams
- func (o *GetModelsParams) WithUsername(username *string) *GetModelsParams
- func (o *GetModelsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetModelsReader
- type GetTagsDefault
- func (o *GetTagsDefault) Code() int
- func (o *GetTagsDefault) Error() string
- func (o *GetTagsDefault) GetPayload() *models.StandardError
- func (o *GetTagsDefault) IsClientError() bool
- func (o *GetTagsDefault) IsCode(code int) bool
- func (o *GetTagsDefault) IsRedirect() bool
- func (o *GetTagsDefault) IsServerError() bool
- func (o *GetTagsDefault) IsSuccess() bool
- func (o *GetTagsDefault) String() string
- type GetTagsOK
- func (o *GetTagsOK) Code() int
- func (o *GetTagsOK) Error() string
- func (o *GetTagsOK) GetPayload() *models.TagsResponse
- func (o *GetTagsOK) IsClientError() bool
- func (o *GetTagsOK) IsCode(code int) bool
- func (o *GetTagsOK) IsRedirect() bool
- func (o *GetTagsOK) IsServerError() bool
- func (o *GetTagsOK) IsSuccess() bool
- func (o *GetTagsOK) String() string
- type GetTagsParams
- func (o *GetTagsParams) SetContext(ctx context.Context)
- func (o *GetTagsParams) SetDefaults()
- func (o *GetTagsParams) SetHTTPClient(client *http.Client)
- func (o *GetTagsParams) SetLimit(limit *int64)
- func (o *GetTagsParams) SetPage(page *int64)
- func (o *GetTagsParams) SetQuery(query *string)
- func (o *GetTagsParams) SetTimeout(timeout time.Duration)
- func (o *GetTagsParams) WithContext(ctx context.Context) *GetTagsParams
- func (o *GetTagsParams) WithDefaults() *GetTagsParams
- func (o *GetTagsParams) WithHTTPClient(client *http.Client) *GetTagsParams
- func (o *GetTagsParams) WithLimit(limit *int64) *GetTagsParams
- func (o *GetTagsParams) WithPage(page *int64) *GetTagsParams
- func (o *GetTagsParams) WithQuery(query *string) *GetTagsParams
- func (o *GetTagsParams) WithTimeout(timeout time.Duration) *GetTagsParams
- func (o *GetTagsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetTagsReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for operations API
func (*Client) GetCreators ¶
func (a *Client) GetCreators(params *GetCreatorsParams, opts ...ClientOption) (*GetCreatorsOK, error)
GetCreators get creators API
func (*Client) GetImages ¶ added in v0.2.0
func (a *Client) GetImages(params *GetImagesParams, opts ...ClientOption) (*GetImagesOK, error)
GetImages get images API
func (*Client) GetModel ¶
func (a *Client) GetModel(params *GetModelParams, opts ...ClientOption) (*GetModelOK, error)
GetModel get model API
func (*Client) GetModelVersion ¶
func (a *Client) GetModelVersion(params *GetModelVersionParams, opts ...ClientOption) (*GetModelVersionOK, error)
GetModelVersion get model version API
func (*Client) GetModelVersionByHash ¶
func (a *Client) GetModelVersionByHash(params *GetModelVersionByHashParams, opts ...ClientOption) (*GetModelVersionByHashOK, error)
GetModelVersionByHash get model version by hash API
func (*Client) GetModels ¶
func (a *Client) GetModels(params *GetModelsParams, opts ...ClientOption) (*GetModelsOK, error)
GetModels get models API
func (*Client) GetTags ¶
func (a *Client) GetTags(params *GetTagsParams, opts ...ClientOption) (*GetTagsOK, error)
GetTags get tags API
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { GetCreators(params *GetCreatorsParams, opts ...ClientOption) (*GetCreatorsOK, error) GetImages(params *GetImagesParams, opts ...ClientOption) (*GetImagesOK, error) GetModel(params *GetModelParams, opts ...ClientOption) (*GetModelOK, error) GetModelVersion(params *GetModelVersionParams, opts ...ClientOption) (*GetModelVersionOK, error) GetModelVersionByHash(params *GetModelVersionByHashParams, opts ...ClientOption) (*GetModelVersionByHashOK, error) GetModels(params *GetModelsParams, opts ...ClientOption) (*GetModelsOK, error) GetTags(params *GetTagsParams, opts ...ClientOption) (*GetTagsOK, 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 operations API client.
type GetCreatorsDefault ¶
type GetCreatorsDefault struct { Payload *models.StandardError // contains filtered or unexported fields }
GetCreatorsDefault describes a response with status code -1, with default header values.
Error Response
func NewGetCreatorsDefault ¶
func NewGetCreatorsDefault(code int) *GetCreatorsDefault
NewGetCreatorsDefault creates a GetCreatorsDefault with default headers values
func (*GetCreatorsDefault) Code ¶
func (o *GetCreatorsDefault) Code() int
Code gets the status code for the get creators default response
func (*GetCreatorsDefault) Error ¶
func (o *GetCreatorsDefault) Error() string
func (*GetCreatorsDefault) GetPayload ¶
func (o *GetCreatorsDefault) GetPayload() *models.StandardError
func (*GetCreatorsDefault) IsClientError ¶
func (o *GetCreatorsDefault) IsClientError() bool
IsClientError returns true when this get creators default response has a 4xx status code
func (*GetCreatorsDefault) IsCode ¶
func (o *GetCreatorsDefault) IsCode(code int) bool
IsCode returns true when this get creators default response a status code equal to that given
func (*GetCreatorsDefault) IsRedirect ¶
func (o *GetCreatorsDefault) IsRedirect() bool
IsRedirect returns true when this get creators default response has a 3xx status code
func (*GetCreatorsDefault) IsServerError ¶
func (o *GetCreatorsDefault) IsServerError() bool
IsServerError returns true when this get creators default response has a 5xx status code
func (*GetCreatorsDefault) IsSuccess ¶
func (o *GetCreatorsDefault) IsSuccess() bool
IsSuccess returns true when this get creators default response has a 2xx status code
func (*GetCreatorsDefault) String ¶
func (o *GetCreatorsDefault) String() string
type GetCreatorsOK ¶
type GetCreatorsOK struct {
Payload *models.CreatorsResponse
}
GetCreatorsOK describes a response with status code 200, with default header values.
A list of creators.
func NewGetCreatorsOK ¶
func NewGetCreatorsOK() *GetCreatorsOK
NewGetCreatorsOK creates a GetCreatorsOK with default headers values
func (*GetCreatorsOK) Code ¶
func (o *GetCreatorsOK) Code() int
Code gets the status code for the get creators o k response
func (*GetCreatorsOK) Error ¶
func (o *GetCreatorsOK) Error() string
func (*GetCreatorsOK) GetPayload ¶
func (o *GetCreatorsOK) GetPayload() *models.CreatorsResponse
func (*GetCreatorsOK) IsClientError ¶
func (o *GetCreatorsOK) IsClientError() bool
IsClientError returns true when this get creators o k response has a 4xx status code
func (*GetCreatorsOK) IsCode ¶
func (o *GetCreatorsOK) IsCode(code int) bool
IsCode returns true when this get creators o k response a status code equal to that given
func (*GetCreatorsOK) IsRedirect ¶
func (o *GetCreatorsOK) IsRedirect() bool
IsRedirect returns true when this get creators o k response has a 3xx status code
func (*GetCreatorsOK) IsServerError ¶
func (o *GetCreatorsOK) IsServerError() bool
IsServerError returns true when this get creators o k response has a 5xx status code
func (*GetCreatorsOK) IsSuccess ¶
func (o *GetCreatorsOK) IsSuccess() bool
IsSuccess returns true when this get creators o k response has a 2xx status code
func (*GetCreatorsOK) String ¶
func (o *GetCreatorsOK) String() string
type GetCreatorsParams ¶
type GetCreatorsParams struct { /* Limit. The number of results to be returned per page. This can be a number between 0 and 200. By default, each page will return 20 results. If set to 0, it'll return all the creators. Format: int64 Default: 20 */ Limit *int64 /* Page. The page from which to start fetching creators. Format: int64 */ Page *int64 /* Query. Search query to filter creators by username. */ Query *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetCreatorsParams contains all the parameters to send to the API endpoint
for the get creators operation. Typically these are written to a http.Request.
func NewGetCreatorsParams ¶
func NewGetCreatorsParams() *GetCreatorsParams
NewGetCreatorsParams creates a new GetCreatorsParams 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 NewGetCreatorsParamsWithContext ¶
func NewGetCreatorsParamsWithContext(ctx context.Context) *GetCreatorsParams
NewGetCreatorsParamsWithContext creates a new GetCreatorsParams object with the ability to set a context for a request.
func NewGetCreatorsParamsWithHTTPClient ¶
func NewGetCreatorsParamsWithHTTPClient(client *http.Client) *GetCreatorsParams
NewGetCreatorsParamsWithHTTPClient creates a new GetCreatorsParams object with the ability to set a custom HTTPClient for a request.
func NewGetCreatorsParamsWithTimeout ¶
func NewGetCreatorsParamsWithTimeout(timeout time.Duration) *GetCreatorsParams
NewGetCreatorsParamsWithTimeout creates a new GetCreatorsParams object with the ability to set a timeout on a request.
func (*GetCreatorsParams) SetContext ¶
func (o *GetCreatorsParams) SetContext(ctx context.Context)
SetContext adds the context to the get creators params
func (*GetCreatorsParams) SetDefaults ¶
func (o *GetCreatorsParams) SetDefaults()
SetDefaults hydrates default values in the get creators params (not the query body).
All values with no default are reset to their zero value.
func (*GetCreatorsParams) SetHTTPClient ¶
func (o *GetCreatorsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get creators params
func (*GetCreatorsParams) SetLimit ¶
func (o *GetCreatorsParams) SetLimit(limit *int64)
SetLimit adds the limit to the get creators params
func (*GetCreatorsParams) SetPage ¶
func (o *GetCreatorsParams) SetPage(page *int64)
SetPage adds the page to the get creators params
func (*GetCreatorsParams) SetQuery ¶
func (o *GetCreatorsParams) SetQuery(query *string)
SetQuery adds the query to the get creators params
func (*GetCreatorsParams) SetTimeout ¶
func (o *GetCreatorsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get creators params
func (*GetCreatorsParams) WithContext ¶
func (o *GetCreatorsParams) WithContext(ctx context.Context) *GetCreatorsParams
WithContext adds the context to the get creators params
func (*GetCreatorsParams) WithDefaults ¶
func (o *GetCreatorsParams) WithDefaults() *GetCreatorsParams
WithDefaults hydrates default values in the get creators params (not the query body).
All values with no default are reset to their zero value.
func (*GetCreatorsParams) WithHTTPClient ¶
func (o *GetCreatorsParams) WithHTTPClient(client *http.Client) *GetCreatorsParams
WithHTTPClient adds the HTTPClient to the get creators params
func (*GetCreatorsParams) WithLimit ¶
func (o *GetCreatorsParams) WithLimit(limit *int64) *GetCreatorsParams
WithLimit adds the limit to the get creators params
func (*GetCreatorsParams) WithPage ¶
func (o *GetCreatorsParams) WithPage(page *int64) *GetCreatorsParams
WithPage adds the page to the get creators params
func (*GetCreatorsParams) WithQuery ¶
func (o *GetCreatorsParams) WithQuery(query *string) *GetCreatorsParams
WithQuery adds the query to the get creators params
func (*GetCreatorsParams) WithTimeout ¶
func (o *GetCreatorsParams) WithTimeout(timeout time.Duration) *GetCreatorsParams
WithTimeout adds the timeout to the get creators params
func (*GetCreatorsParams) WriteToRequest ¶
func (o *GetCreatorsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetCreatorsReader ¶
type GetCreatorsReader struct {
// contains filtered or unexported fields
}
GetCreatorsReader is a Reader for the GetCreators structure.
func (*GetCreatorsReader) ReadResponse ¶
func (o *GetCreatorsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetImagesDefault ¶ added in v0.2.0
type GetImagesDefault struct { Payload *models.StandardError // contains filtered or unexported fields }
GetImagesDefault describes a response with status code -1, with default header values.
Error Response
func NewGetImagesDefault ¶ added in v0.2.0
func NewGetImagesDefault(code int) *GetImagesDefault
NewGetImagesDefault creates a GetImagesDefault with default headers values
func (*GetImagesDefault) Code ¶ added in v0.2.0
func (o *GetImagesDefault) Code() int
Code gets the status code for the get images default response
func (*GetImagesDefault) Error ¶ added in v0.2.0
func (o *GetImagesDefault) Error() string
func (*GetImagesDefault) GetPayload ¶ added in v0.2.0
func (o *GetImagesDefault) GetPayload() *models.StandardError
func (*GetImagesDefault) IsClientError ¶ added in v0.2.0
func (o *GetImagesDefault) IsClientError() bool
IsClientError returns true when this get images default response has a 4xx status code
func (*GetImagesDefault) IsCode ¶ added in v0.2.0
func (o *GetImagesDefault) IsCode(code int) bool
IsCode returns true when this get images default response a status code equal to that given
func (*GetImagesDefault) IsRedirect ¶ added in v0.2.0
func (o *GetImagesDefault) IsRedirect() bool
IsRedirect returns true when this get images default response has a 3xx status code
func (*GetImagesDefault) IsServerError ¶ added in v0.2.0
func (o *GetImagesDefault) IsServerError() bool
IsServerError returns true when this get images default response has a 5xx status code
func (*GetImagesDefault) IsSuccess ¶ added in v0.2.0
func (o *GetImagesDefault) IsSuccess() bool
IsSuccess returns true when this get images default response has a 2xx status code
func (*GetImagesDefault) String ¶ added in v0.2.0
func (o *GetImagesDefault) String() string
type GetImagesOK ¶ added in v0.2.0
type GetImagesOK struct {
Payload *models.ImagesResponse
}
GetImagesOK describes a response with status code 200, with default header values.
A list of images.
func NewGetImagesOK ¶ added in v0.2.0
func NewGetImagesOK() *GetImagesOK
NewGetImagesOK creates a GetImagesOK with default headers values
func (*GetImagesOK) Code ¶ added in v0.2.0
func (o *GetImagesOK) Code() int
Code gets the status code for the get images o k response
func (*GetImagesOK) Error ¶ added in v0.2.0
func (o *GetImagesOK) Error() string
func (*GetImagesOK) GetPayload ¶ added in v0.2.0
func (o *GetImagesOK) GetPayload() *models.ImagesResponse
func (*GetImagesOK) IsClientError ¶ added in v0.2.0
func (o *GetImagesOK) IsClientError() bool
IsClientError returns true when this get images o k response has a 4xx status code
func (*GetImagesOK) IsCode ¶ added in v0.2.0
func (o *GetImagesOK) IsCode(code int) bool
IsCode returns true when this get images o k response a status code equal to that given
func (*GetImagesOK) IsRedirect ¶ added in v0.2.0
func (o *GetImagesOK) IsRedirect() bool
IsRedirect returns true when this get images o k response has a 3xx status code
func (*GetImagesOK) IsServerError ¶ added in v0.2.0
func (o *GetImagesOK) IsServerError() bool
IsServerError returns true when this get images o k response has a 5xx status code
func (*GetImagesOK) IsSuccess ¶ added in v0.2.0
func (o *GetImagesOK) IsSuccess() bool
IsSuccess returns true when this get images o k response has a 2xx status code
func (*GetImagesOK) String ¶ added in v0.2.0
func (o *GetImagesOK) String() string
type GetImagesParams ¶ added in v0.2.0
type GetImagesParams struct { /* Limit. The number of results to be returned per page. Format: int64 Default: 100 */ Limit *int64 /* ModelID. The ID of a model to get images from (model gallery). Format: int64 */ ModelID *int64 /* ModelVersionID. The ID of a model version to get images from (model gallery filtered to version). Format: int64 */ ModelVersionID *int64 /* Nsfw. Filter to images that contain mature content flags or not (undefined returns both). */ Nsfw *bool /* Page. The page from which to start fetching creators. Format: int64 */ Page *int64 /* Period. The time frame in which the images will be sorted. */ Period *string /* PostID. The ID of a post to get images from. Format: int64 */ PostID *int64 /* Sort. The order in which you wish to sort the results. */ Sort *string /* Username. Filter to images from a specific user. */ Username *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetImagesParams contains all the parameters to send to the API endpoint
for the get images operation. Typically these are written to a http.Request.
func NewGetImagesParams ¶ added in v0.2.0
func NewGetImagesParams() *GetImagesParams
NewGetImagesParams creates a new GetImagesParams 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 NewGetImagesParamsWithContext ¶ added in v0.2.0
func NewGetImagesParamsWithContext(ctx context.Context) *GetImagesParams
NewGetImagesParamsWithContext creates a new GetImagesParams object with the ability to set a context for a request.
func NewGetImagesParamsWithHTTPClient ¶ added in v0.2.0
func NewGetImagesParamsWithHTTPClient(client *http.Client) *GetImagesParams
NewGetImagesParamsWithHTTPClient creates a new GetImagesParams object with the ability to set a custom HTTPClient for a request.
func NewGetImagesParamsWithTimeout ¶ added in v0.2.0
func NewGetImagesParamsWithTimeout(timeout time.Duration) *GetImagesParams
NewGetImagesParamsWithTimeout creates a new GetImagesParams object with the ability to set a timeout on a request.
func (*GetImagesParams) SetContext ¶ added in v0.2.0
func (o *GetImagesParams) SetContext(ctx context.Context)
SetContext adds the context to the get images params
func (*GetImagesParams) SetDefaults ¶ added in v0.2.0
func (o *GetImagesParams) SetDefaults()
SetDefaults hydrates default values in the get images params (not the query body).
All values with no default are reset to their zero value.
func (*GetImagesParams) SetHTTPClient ¶ added in v0.2.0
func (o *GetImagesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get images params
func (*GetImagesParams) SetLimit ¶ added in v0.2.0
func (o *GetImagesParams) SetLimit(limit *int64)
SetLimit adds the limit to the get images params
func (*GetImagesParams) SetModelID ¶ added in v0.2.0
func (o *GetImagesParams) SetModelID(modelID *int64)
SetModelID adds the modelId to the get images params
func (*GetImagesParams) SetModelVersionID ¶ added in v0.2.0
func (o *GetImagesParams) SetModelVersionID(modelVersionID *int64)
SetModelVersionID adds the modelVersionId to the get images params
func (*GetImagesParams) SetNsfw ¶ added in v0.2.0
func (o *GetImagesParams) SetNsfw(nsfw *bool)
SetNsfw adds the nsfw to the get images params
func (*GetImagesParams) SetPage ¶ added in v0.2.0
func (o *GetImagesParams) SetPage(page *int64)
SetPage adds the page to the get images params
func (*GetImagesParams) SetPeriod ¶ added in v0.2.0
func (o *GetImagesParams) SetPeriod(period *string)
SetPeriod adds the period to the get images params
func (*GetImagesParams) SetPostID ¶ added in v0.2.0
func (o *GetImagesParams) SetPostID(postID *int64)
SetPostID adds the postId to the get images params
func (*GetImagesParams) SetSort ¶ added in v0.2.0
func (o *GetImagesParams) SetSort(sort *string)
SetSort adds the sort to the get images params
func (*GetImagesParams) SetTimeout ¶ added in v0.2.0
func (o *GetImagesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get images params
func (*GetImagesParams) SetUsername ¶ added in v0.2.0
func (o *GetImagesParams) SetUsername(username *string)
SetUsername adds the username to the get images params
func (*GetImagesParams) WithContext ¶ added in v0.2.0
func (o *GetImagesParams) WithContext(ctx context.Context) *GetImagesParams
WithContext adds the context to the get images params
func (*GetImagesParams) WithDefaults ¶ added in v0.2.0
func (o *GetImagesParams) WithDefaults() *GetImagesParams
WithDefaults hydrates default values in the get images params (not the query body).
All values with no default are reset to their zero value.
func (*GetImagesParams) WithHTTPClient ¶ added in v0.2.0
func (o *GetImagesParams) WithHTTPClient(client *http.Client) *GetImagesParams
WithHTTPClient adds the HTTPClient to the get images params
func (*GetImagesParams) WithLimit ¶ added in v0.2.0
func (o *GetImagesParams) WithLimit(limit *int64) *GetImagesParams
WithLimit adds the limit to the get images params
func (*GetImagesParams) WithModelID ¶ added in v0.2.0
func (o *GetImagesParams) WithModelID(modelID *int64) *GetImagesParams
WithModelID adds the modelID to the get images params
func (*GetImagesParams) WithModelVersionID ¶ added in v0.2.0
func (o *GetImagesParams) WithModelVersionID(modelVersionID *int64) *GetImagesParams
WithModelVersionID adds the modelVersionID to the get images params
func (*GetImagesParams) WithNsfw ¶ added in v0.2.0
func (o *GetImagesParams) WithNsfw(nsfw *bool) *GetImagesParams
WithNsfw adds the nsfw to the get images params
func (*GetImagesParams) WithPage ¶ added in v0.2.0
func (o *GetImagesParams) WithPage(page *int64) *GetImagesParams
WithPage adds the page to the get images params
func (*GetImagesParams) WithPeriod ¶ added in v0.2.0
func (o *GetImagesParams) WithPeriod(period *string) *GetImagesParams
WithPeriod adds the period to the get images params
func (*GetImagesParams) WithPostID ¶ added in v0.2.0
func (o *GetImagesParams) WithPostID(postID *int64) *GetImagesParams
WithPostID adds the postID to the get images params
func (*GetImagesParams) WithSort ¶ added in v0.2.0
func (o *GetImagesParams) WithSort(sort *string) *GetImagesParams
WithSort adds the sort to the get images params
func (*GetImagesParams) WithTimeout ¶ added in v0.2.0
func (o *GetImagesParams) WithTimeout(timeout time.Duration) *GetImagesParams
WithTimeout adds the timeout to the get images params
func (*GetImagesParams) WithUsername ¶ added in v0.2.0
func (o *GetImagesParams) WithUsername(username *string) *GetImagesParams
WithUsername adds the username to the get images params
func (*GetImagesParams) WriteToRequest ¶ added in v0.2.0
func (o *GetImagesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetImagesReader ¶ added in v0.2.0
type GetImagesReader struct {
// contains filtered or unexported fields
}
GetImagesReader is a Reader for the GetImages structure.
func (*GetImagesReader) ReadResponse ¶ added in v0.2.0
func (o *GetImagesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetModelDefault ¶
type GetModelDefault struct { Payload *models.StandardError // contains filtered or unexported fields }
GetModelDefault describes a response with status code -1, with default header values.
Error Response
func NewGetModelDefault ¶
func NewGetModelDefault(code int) *GetModelDefault
NewGetModelDefault creates a GetModelDefault with default headers values
func (*GetModelDefault) Code ¶
func (o *GetModelDefault) Code() int
Code gets the status code for the get model default response
func (*GetModelDefault) Error ¶
func (o *GetModelDefault) Error() string
func (*GetModelDefault) GetPayload ¶
func (o *GetModelDefault) GetPayload() *models.StandardError
func (*GetModelDefault) IsClientError ¶
func (o *GetModelDefault) IsClientError() bool
IsClientError returns true when this get model default response has a 4xx status code
func (*GetModelDefault) IsCode ¶
func (o *GetModelDefault) IsCode(code int) bool
IsCode returns true when this get model default response a status code equal to that given
func (*GetModelDefault) IsRedirect ¶
func (o *GetModelDefault) IsRedirect() bool
IsRedirect returns true when this get model default response has a 3xx status code
func (*GetModelDefault) IsServerError ¶
func (o *GetModelDefault) IsServerError() bool
IsServerError returns true when this get model default response has a 5xx status code
func (*GetModelDefault) IsSuccess ¶
func (o *GetModelDefault) IsSuccess() bool
IsSuccess returns true when this get model default response has a 2xx status code
func (*GetModelDefault) String ¶
func (o *GetModelDefault) String() string
type GetModelOK ¶
GetModelOK describes a response with status code 200, with default header values.
The model info.
func NewGetModelOK ¶
func NewGetModelOK() *GetModelOK
NewGetModelOK creates a GetModelOK with default headers values
func (*GetModelOK) Code ¶
func (o *GetModelOK) Code() int
Code gets the status code for the get model o k response
func (*GetModelOK) Error ¶
func (o *GetModelOK) Error() string
func (*GetModelOK) GetPayload ¶
func (o *GetModelOK) GetPayload() *models.Model
func (*GetModelOK) IsClientError ¶
func (o *GetModelOK) IsClientError() bool
IsClientError returns true when this get model o k response has a 4xx status code
func (*GetModelOK) IsCode ¶
func (o *GetModelOK) IsCode(code int) bool
IsCode returns true when this get model o k response a status code equal to that given
func (*GetModelOK) IsRedirect ¶
func (o *GetModelOK) IsRedirect() bool
IsRedirect returns true when this get model o k response has a 3xx status code
func (*GetModelOK) IsServerError ¶
func (o *GetModelOK) IsServerError() bool
IsServerError returns true when this get model o k response has a 5xx status code
func (*GetModelOK) IsSuccess ¶
func (o *GetModelOK) IsSuccess() bool
IsSuccess returns true when this get model o k response has a 2xx status code
func (*GetModelOK) String ¶
func (o *GetModelOK) String() string
type GetModelParams ¶
type GetModelParams struct { // ModelID. // // Format: int64 ModelID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetModelParams contains all the parameters to send to the API endpoint
for the get model operation. Typically these are written to a http.Request.
func NewGetModelParams ¶
func NewGetModelParams() *GetModelParams
NewGetModelParams creates a new GetModelParams 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 NewGetModelParamsWithContext ¶
func NewGetModelParamsWithContext(ctx context.Context) *GetModelParams
NewGetModelParamsWithContext creates a new GetModelParams object with the ability to set a context for a request.
func NewGetModelParamsWithHTTPClient ¶
func NewGetModelParamsWithHTTPClient(client *http.Client) *GetModelParams
NewGetModelParamsWithHTTPClient creates a new GetModelParams object with the ability to set a custom HTTPClient for a request.
func NewGetModelParamsWithTimeout ¶
func NewGetModelParamsWithTimeout(timeout time.Duration) *GetModelParams
NewGetModelParamsWithTimeout creates a new GetModelParams object with the ability to set a timeout on a request.
func (*GetModelParams) SetContext ¶
func (o *GetModelParams) SetContext(ctx context.Context)
SetContext adds the context to the get model params
func (*GetModelParams) SetDefaults ¶
func (o *GetModelParams) SetDefaults()
SetDefaults hydrates default values in the get model params (not the query body).
All values with no default are reset to their zero value.
func (*GetModelParams) SetHTTPClient ¶
func (o *GetModelParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get model params
func (*GetModelParams) SetModelID ¶
func (o *GetModelParams) SetModelID(modelID int64)
SetModelID adds the modelId to the get model params
func (*GetModelParams) SetTimeout ¶
func (o *GetModelParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get model params
func (*GetModelParams) WithContext ¶
func (o *GetModelParams) WithContext(ctx context.Context) *GetModelParams
WithContext adds the context to the get model params
func (*GetModelParams) WithDefaults ¶
func (o *GetModelParams) WithDefaults() *GetModelParams
WithDefaults hydrates default values in the get model params (not the query body).
All values with no default are reset to their zero value.
func (*GetModelParams) WithHTTPClient ¶
func (o *GetModelParams) WithHTTPClient(client *http.Client) *GetModelParams
WithHTTPClient adds the HTTPClient to the get model params
func (*GetModelParams) WithModelID ¶
func (o *GetModelParams) WithModelID(modelID int64) *GetModelParams
WithModelID adds the modelID to the get model params
func (*GetModelParams) WithTimeout ¶
func (o *GetModelParams) WithTimeout(timeout time.Duration) *GetModelParams
WithTimeout adds the timeout to the get model params
func (*GetModelParams) WriteToRequest ¶
func (o *GetModelParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetModelReader ¶
type GetModelReader struct {
// contains filtered or unexported fields
}
GetModelReader is a Reader for the GetModel structure.
func (*GetModelReader) ReadResponse ¶
func (o *GetModelReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetModelVersionByHashDefault ¶
type GetModelVersionByHashDefault struct { Payload *models.StandardError // contains filtered or unexported fields }
GetModelVersionByHashDefault describes a response with status code -1, with default header values.
Error Response
func NewGetModelVersionByHashDefault ¶
func NewGetModelVersionByHashDefault(code int) *GetModelVersionByHashDefault
NewGetModelVersionByHashDefault creates a GetModelVersionByHashDefault with default headers values
func (*GetModelVersionByHashDefault) Code ¶
func (o *GetModelVersionByHashDefault) Code() int
Code gets the status code for the get model version by hash default response
func (*GetModelVersionByHashDefault) Error ¶
func (o *GetModelVersionByHashDefault) Error() string
func (*GetModelVersionByHashDefault) GetPayload ¶
func (o *GetModelVersionByHashDefault) GetPayload() *models.StandardError
func (*GetModelVersionByHashDefault) IsClientError ¶
func (o *GetModelVersionByHashDefault) IsClientError() bool
IsClientError returns true when this get model version by hash default response has a 4xx status code
func (*GetModelVersionByHashDefault) IsCode ¶
func (o *GetModelVersionByHashDefault) IsCode(code int) bool
IsCode returns true when this get model version by hash default response a status code equal to that given
func (*GetModelVersionByHashDefault) IsRedirect ¶
func (o *GetModelVersionByHashDefault) IsRedirect() bool
IsRedirect returns true when this get model version by hash default response has a 3xx status code
func (*GetModelVersionByHashDefault) IsServerError ¶
func (o *GetModelVersionByHashDefault) IsServerError() bool
IsServerError returns true when this get model version by hash default response has a 5xx status code
func (*GetModelVersionByHashDefault) IsSuccess ¶
func (o *GetModelVersionByHashDefault) IsSuccess() bool
IsSuccess returns true when this get model version by hash default response has a 2xx status code
func (*GetModelVersionByHashDefault) String ¶
func (o *GetModelVersionByHashDefault) String() string
type GetModelVersionByHashOK ¶
type GetModelVersionByHashOK struct {
Payload *models.ModelVersion
}
GetModelVersionByHashOK describes a response with status code 200, with default header values.
The model version info.
func NewGetModelVersionByHashOK ¶
func NewGetModelVersionByHashOK() *GetModelVersionByHashOK
NewGetModelVersionByHashOK creates a GetModelVersionByHashOK with default headers values
func (*GetModelVersionByHashOK) Code ¶
func (o *GetModelVersionByHashOK) Code() int
Code gets the status code for the get model version by hash o k response
func (*GetModelVersionByHashOK) Error ¶
func (o *GetModelVersionByHashOK) Error() string
func (*GetModelVersionByHashOK) GetPayload ¶
func (o *GetModelVersionByHashOK) GetPayload() *models.ModelVersion
func (*GetModelVersionByHashOK) IsClientError ¶
func (o *GetModelVersionByHashOK) IsClientError() bool
IsClientError returns true when this get model version by hash o k response has a 4xx status code
func (*GetModelVersionByHashOK) IsCode ¶
func (o *GetModelVersionByHashOK) IsCode(code int) bool
IsCode returns true when this get model version by hash o k response a status code equal to that given
func (*GetModelVersionByHashOK) IsRedirect ¶
func (o *GetModelVersionByHashOK) IsRedirect() bool
IsRedirect returns true when this get model version by hash o k response has a 3xx status code
func (*GetModelVersionByHashOK) IsServerError ¶
func (o *GetModelVersionByHashOK) IsServerError() bool
IsServerError returns true when this get model version by hash o k response has a 5xx status code
func (*GetModelVersionByHashOK) IsSuccess ¶
func (o *GetModelVersionByHashOK) IsSuccess() bool
IsSuccess returns true when this get model version by hash o k response has a 2xx status code
func (*GetModelVersionByHashOK) String ¶
func (o *GetModelVersionByHashOK) String() string
type GetModelVersionByHashParams ¶
type GetModelVersionByHashParams struct { // Hash. Hash string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetModelVersionByHashParams contains all the parameters to send to the API endpoint
for the get model version by hash operation. Typically these are written to a http.Request.
func NewGetModelVersionByHashParams ¶
func NewGetModelVersionByHashParams() *GetModelVersionByHashParams
NewGetModelVersionByHashParams creates a new GetModelVersionByHashParams 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 NewGetModelVersionByHashParamsWithContext ¶
func NewGetModelVersionByHashParamsWithContext(ctx context.Context) *GetModelVersionByHashParams
NewGetModelVersionByHashParamsWithContext creates a new GetModelVersionByHashParams object with the ability to set a context for a request.
func NewGetModelVersionByHashParamsWithHTTPClient ¶
func NewGetModelVersionByHashParamsWithHTTPClient(client *http.Client) *GetModelVersionByHashParams
NewGetModelVersionByHashParamsWithHTTPClient creates a new GetModelVersionByHashParams object with the ability to set a custom HTTPClient for a request.
func NewGetModelVersionByHashParamsWithTimeout ¶
func NewGetModelVersionByHashParamsWithTimeout(timeout time.Duration) *GetModelVersionByHashParams
NewGetModelVersionByHashParamsWithTimeout creates a new GetModelVersionByHashParams object with the ability to set a timeout on a request.
func (*GetModelVersionByHashParams) SetContext ¶
func (o *GetModelVersionByHashParams) SetContext(ctx context.Context)
SetContext adds the context to the get model version by hash params
func (*GetModelVersionByHashParams) SetDefaults ¶
func (o *GetModelVersionByHashParams) SetDefaults()
SetDefaults hydrates default values in the get model version by hash params (not the query body).
All values with no default are reset to their zero value.
func (*GetModelVersionByHashParams) SetHTTPClient ¶
func (o *GetModelVersionByHashParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get model version by hash params
func (*GetModelVersionByHashParams) SetHash ¶
func (o *GetModelVersionByHashParams) SetHash(hash string)
SetHash adds the hash to the get model version by hash params
func (*GetModelVersionByHashParams) SetTimeout ¶
func (o *GetModelVersionByHashParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get model version by hash params
func (*GetModelVersionByHashParams) WithContext ¶
func (o *GetModelVersionByHashParams) WithContext(ctx context.Context) *GetModelVersionByHashParams
WithContext adds the context to the get model version by hash params
func (*GetModelVersionByHashParams) WithDefaults ¶
func (o *GetModelVersionByHashParams) WithDefaults() *GetModelVersionByHashParams
WithDefaults hydrates default values in the get model version by hash params (not the query body).
All values with no default are reset to their zero value.
func (*GetModelVersionByHashParams) WithHTTPClient ¶
func (o *GetModelVersionByHashParams) WithHTTPClient(client *http.Client) *GetModelVersionByHashParams
WithHTTPClient adds the HTTPClient to the get model version by hash params
func (*GetModelVersionByHashParams) WithHash ¶
func (o *GetModelVersionByHashParams) WithHash(hash string) *GetModelVersionByHashParams
WithHash adds the hash to the get model version by hash params
func (*GetModelVersionByHashParams) WithTimeout ¶
func (o *GetModelVersionByHashParams) WithTimeout(timeout time.Duration) *GetModelVersionByHashParams
WithTimeout adds the timeout to the get model version by hash params
func (*GetModelVersionByHashParams) WriteToRequest ¶
func (o *GetModelVersionByHashParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetModelVersionByHashReader ¶
type GetModelVersionByHashReader struct {
// contains filtered or unexported fields
}
GetModelVersionByHashReader is a Reader for the GetModelVersionByHash structure.
func (*GetModelVersionByHashReader) ReadResponse ¶
func (o *GetModelVersionByHashReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetModelVersionDefault ¶
type GetModelVersionDefault struct { Payload *models.StandardError // contains filtered or unexported fields }
GetModelVersionDefault describes a response with status code -1, with default header values.
Error Response
func NewGetModelVersionDefault ¶
func NewGetModelVersionDefault(code int) *GetModelVersionDefault
NewGetModelVersionDefault creates a GetModelVersionDefault with default headers values
func (*GetModelVersionDefault) Code ¶
func (o *GetModelVersionDefault) Code() int
Code gets the status code for the get model version default response
func (*GetModelVersionDefault) Error ¶
func (o *GetModelVersionDefault) Error() string
func (*GetModelVersionDefault) GetPayload ¶
func (o *GetModelVersionDefault) GetPayload() *models.StandardError
func (*GetModelVersionDefault) IsClientError ¶
func (o *GetModelVersionDefault) IsClientError() bool
IsClientError returns true when this get model version default response has a 4xx status code
func (*GetModelVersionDefault) IsCode ¶
func (o *GetModelVersionDefault) IsCode(code int) bool
IsCode returns true when this get model version default response a status code equal to that given
func (*GetModelVersionDefault) IsRedirect ¶
func (o *GetModelVersionDefault) IsRedirect() bool
IsRedirect returns true when this get model version default response has a 3xx status code
func (*GetModelVersionDefault) IsServerError ¶
func (o *GetModelVersionDefault) IsServerError() bool
IsServerError returns true when this get model version default response has a 5xx status code
func (*GetModelVersionDefault) IsSuccess ¶
func (o *GetModelVersionDefault) IsSuccess() bool
IsSuccess returns true when this get model version default response has a 2xx status code
func (*GetModelVersionDefault) String ¶
func (o *GetModelVersionDefault) String() string
type GetModelVersionOK ¶
type GetModelVersionOK struct {
Payload *models.ModelVersion
}
GetModelVersionOK describes a response with status code 200, with default header values.
The model version info.
func NewGetModelVersionOK ¶
func NewGetModelVersionOK() *GetModelVersionOK
NewGetModelVersionOK creates a GetModelVersionOK with default headers values
func (*GetModelVersionOK) Code ¶
func (o *GetModelVersionOK) Code() int
Code gets the status code for the get model version o k response
func (*GetModelVersionOK) Error ¶
func (o *GetModelVersionOK) Error() string
func (*GetModelVersionOK) GetPayload ¶
func (o *GetModelVersionOK) GetPayload() *models.ModelVersion
func (*GetModelVersionOK) IsClientError ¶
func (o *GetModelVersionOK) IsClientError() bool
IsClientError returns true when this get model version o k response has a 4xx status code
func (*GetModelVersionOK) IsCode ¶
func (o *GetModelVersionOK) IsCode(code int) bool
IsCode returns true when this get model version o k response a status code equal to that given
func (*GetModelVersionOK) IsRedirect ¶
func (o *GetModelVersionOK) IsRedirect() bool
IsRedirect returns true when this get model version o k response has a 3xx status code
func (*GetModelVersionOK) IsServerError ¶
func (o *GetModelVersionOK) IsServerError() bool
IsServerError returns true when this get model version o k response has a 5xx status code
func (*GetModelVersionOK) IsSuccess ¶
func (o *GetModelVersionOK) IsSuccess() bool
IsSuccess returns true when this get model version o k response has a 2xx status code
func (*GetModelVersionOK) String ¶
func (o *GetModelVersionOK) String() string
type GetModelVersionParams ¶
type GetModelVersionParams struct { // ModelVersionID. // // Format: int64 ModelVersionID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetModelVersionParams contains all the parameters to send to the API endpoint
for the get model version operation. Typically these are written to a http.Request.
func NewGetModelVersionParams ¶
func NewGetModelVersionParams() *GetModelVersionParams
NewGetModelVersionParams creates a new GetModelVersionParams 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 NewGetModelVersionParamsWithContext ¶
func NewGetModelVersionParamsWithContext(ctx context.Context) *GetModelVersionParams
NewGetModelVersionParamsWithContext creates a new GetModelVersionParams object with the ability to set a context for a request.
func NewGetModelVersionParamsWithHTTPClient ¶
func NewGetModelVersionParamsWithHTTPClient(client *http.Client) *GetModelVersionParams
NewGetModelVersionParamsWithHTTPClient creates a new GetModelVersionParams object with the ability to set a custom HTTPClient for a request.
func NewGetModelVersionParamsWithTimeout ¶
func NewGetModelVersionParamsWithTimeout(timeout time.Duration) *GetModelVersionParams
NewGetModelVersionParamsWithTimeout creates a new GetModelVersionParams object with the ability to set a timeout on a request.
func (*GetModelVersionParams) SetContext ¶
func (o *GetModelVersionParams) SetContext(ctx context.Context)
SetContext adds the context to the get model version params
func (*GetModelVersionParams) SetDefaults ¶
func (o *GetModelVersionParams) SetDefaults()
SetDefaults hydrates default values in the get model version params (not the query body).
All values with no default are reset to their zero value.
func (*GetModelVersionParams) SetHTTPClient ¶
func (o *GetModelVersionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get model version params
func (*GetModelVersionParams) SetModelVersionID ¶
func (o *GetModelVersionParams) SetModelVersionID(modelVersionID int64)
SetModelVersionID adds the modelVersionId to the get model version params
func (*GetModelVersionParams) SetTimeout ¶
func (o *GetModelVersionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get model version params
func (*GetModelVersionParams) WithContext ¶
func (o *GetModelVersionParams) WithContext(ctx context.Context) *GetModelVersionParams
WithContext adds the context to the get model version params
func (*GetModelVersionParams) WithDefaults ¶
func (o *GetModelVersionParams) WithDefaults() *GetModelVersionParams
WithDefaults hydrates default values in the get model version params (not the query body).
All values with no default are reset to their zero value.
func (*GetModelVersionParams) WithHTTPClient ¶
func (o *GetModelVersionParams) WithHTTPClient(client *http.Client) *GetModelVersionParams
WithHTTPClient adds the HTTPClient to the get model version params
func (*GetModelVersionParams) WithModelVersionID ¶
func (o *GetModelVersionParams) WithModelVersionID(modelVersionID int64) *GetModelVersionParams
WithModelVersionID adds the modelVersionID to the get model version params
func (*GetModelVersionParams) WithTimeout ¶
func (o *GetModelVersionParams) WithTimeout(timeout time.Duration) *GetModelVersionParams
WithTimeout adds the timeout to the get model version params
func (*GetModelVersionParams) WriteToRequest ¶
func (o *GetModelVersionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetModelVersionReader ¶
type GetModelVersionReader struct {
// contains filtered or unexported fields
}
GetModelVersionReader is a Reader for the GetModelVersion structure.
func (*GetModelVersionReader) ReadResponse ¶
func (o *GetModelVersionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetModelsDefault ¶
type GetModelsDefault struct { Payload *models.StandardError // contains filtered or unexported fields }
GetModelsDefault describes a response with status code -1, with default header values.
Error Response
func NewGetModelsDefault ¶
func NewGetModelsDefault(code int) *GetModelsDefault
NewGetModelsDefault creates a GetModelsDefault with default headers values
func (*GetModelsDefault) Code ¶
func (o *GetModelsDefault) Code() int
Code gets the status code for the get models default response
func (*GetModelsDefault) Error ¶
func (o *GetModelsDefault) Error() string
func (*GetModelsDefault) GetPayload ¶
func (o *GetModelsDefault) GetPayload() *models.StandardError
func (*GetModelsDefault) IsClientError ¶
func (o *GetModelsDefault) IsClientError() bool
IsClientError returns true when this get models default response has a 4xx status code
func (*GetModelsDefault) IsCode ¶
func (o *GetModelsDefault) IsCode(code int) bool
IsCode returns true when this get models default response a status code equal to that given
func (*GetModelsDefault) IsRedirect ¶
func (o *GetModelsDefault) IsRedirect() bool
IsRedirect returns true when this get models default response has a 3xx status code
func (*GetModelsDefault) IsServerError ¶
func (o *GetModelsDefault) IsServerError() bool
IsServerError returns true when this get models default response has a 5xx status code
func (*GetModelsDefault) IsSuccess ¶
func (o *GetModelsDefault) IsSuccess() bool
IsSuccess returns true when this get models default response has a 2xx status code
func (*GetModelsDefault) String ¶
func (o *GetModelsDefault) String() string
type GetModelsOK ¶
type GetModelsOK struct {
Payload *models.ModelsResponse
}
GetModelsOK describes a response with status code 200, with default header values.
A list of models.
func NewGetModelsOK ¶
func NewGetModelsOK() *GetModelsOK
NewGetModelsOK creates a GetModelsOK with default headers values
func (*GetModelsOK) Code ¶
func (o *GetModelsOK) Code() int
Code gets the status code for the get models o k response
func (*GetModelsOK) Error ¶
func (o *GetModelsOK) Error() string
func (*GetModelsOK) GetPayload ¶
func (o *GetModelsOK) GetPayload() *models.ModelsResponse
func (*GetModelsOK) IsClientError ¶
func (o *GetModelsOK) IsClientError() bool
IsClientError returns true when this get models o k response has a 4xx status code
func (*GetModelsOK) IsCode ¶
func (o *GetModelsOK) IsCode(code int) bool
IsCode returns true when this get models o k response a status code equal to that given
func (*GetModelsOK) IsRedirect ¶
func (o *GetModelsOK) IsRedirect() bool
IsRedirect returns true when this get models o k response has a 3xx status code
func (*GetModelsOK) IsServerError ¶
func (o *GetModelsOK) IsServerError() bool
IsServerError returns true when this get models o k response has a 5xx status code
func (*GetModelsOK) IsSuccess ¶
func (o *GetModelsOK) IsSuccess() bool
IsSuccess returns true when this get models o k response has a 2xx status code
func (*GetModelsOK) String ¶
func (o *GetModelsOK) String() string
type GetModelsParams ¶
type GetModelsParams struct { /* Favorites. Filter to favorites of the authenticated user (this requires an API token or session cookie). */ Favorites *bool /* Hidden. Filter to hidden models of the authenticated user (this requires an API token or session cookie). */ Hidden *bool /* Limit. The number of results to be returned per page. This can be a number between 1 and 200. By default, each page will return 100 results. Format: int64 Default: 100 */ Limit *int64 /* Page. The page from which to start fetching models. Format: int64 */ Page *int64 /* Period. The time frame in which the models will be sorted. */ Period *string /* PrimaryFileOnly. Only include the primary file for each model (This will use your preferred format options if you use an API token or session cookie). */ PrimaryFileOnly *bool /* Query. Search query to filter models by name. */ Query *string /* Rating. The rating you wish to filter the models with. If none is specified, it will return models with any rating. Format: int64 */ Rating *int64 /* Sort. The order in which you wish to sort the results. */ Sort *string /* Tag. Search query to filter models by tag. */ Tag *string /* Types. The type of model you want to filter with. If none is specified, it will return all types. */ Types *string /* Username. Search query to filter models by user. */ Username *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetModelsParams contains all the parameters to send to the API endpoint
for the get models operation. Typically these are written to a http.Request.
func NewGetModelsParams ¶
func NewGetModelsParams() *GetModelsParams
NewGetModelsParams creates a new GetModelsParams 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 NewGetModelsParamsWithContext ¶
func NewGetModelsParamsWithContext(ctx context.Context) *GetModelsParams
NewGetModelsParamsWithContext creates a new GetModelsParams object with the ability to set a context for a request.
func NewGetModelsParamsWithHTTPClient ¶
func NewGetModelsParamsWithHTTPClient(client *http.Client) *GetModelsParams
NewGetModelsParamsWithHTTPClient creates a new GetModelsParams object with the ability to set a custom HTTPClient for a request.
func NewGetModelsParamsWithTimeout ¶
func NewGetModelsParamsWithTimeout(timeout time.Duration) *GetModelsParams
NewGetModelsParamsWithTimeout creates a new GetModelsParams object with the ability to set a timeout on a request.
func (*GetModelsParams) SetContext ¶
func (o *GetModelsParams) SetContext(ctx context.Context)
SetContext adds the context to the get models params
func (*GetModelsParams) SetDefaults ¶
func (o *GetModelsParams) SetDefaults()
SetDefaults hydrates default values in the get models params (not the query body).
All values with no default are reset to their zero value.
func (*GetModelsParams) SetFavorites ¶
func (o *GetModelsParams) SetFavorites(favorites *bool)
SetFavorites adds the favorites to the get models params
func (*GetModelsParams) SetHTTPClient ¶
func (o *GetModelsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get models params
func (*GetModelsParams) SetHidden ¶
func (o *GetModelsParams) SetHidden(hidden *bool)
SetHidden adds the hidden to the get models params
func (*GetModelsParams) SetLimit ¶
func (o *GetModelsParams) SetLimit(limit *int64)
SetLimit adds the limit to the get models params
func (*GetModelsParams) SetPage ¶
func (o *GetModelsParams) SetPage(page *int64)
SetPage adds the page to the get models params
func (*GetModelsParams) SetPeriod ¶
func (o *GetModelsParams) SetPeriod(period *string)
SetPeriod adds the period to the get models params
func (*GetModelsParams) SetPrimaryFileOnly ¶
func (o *GetModelsParams) SetPrimaryFileOnly(primaryFileOnly *bool)
SetPrimaryFileOnly adds the primaryFileOnly to the get models params
func (*GetModelsParams) SetQuery ¶
func (o *GetModelsParams) SetQuery(query *string)
SetQuery adds the query to the get models params
func (*GetModelsParams) SetRating ¶
func (o *GetModelsParams) SetRating(rating *int64)
SetRating adds the rating to the get models params
func (*GetModelsParams) SetSort ¶
func (o *GetModelsParams) SetSort(sort *string)
SetSort adds the sort to the get models params
func (*GetModelsParams) SetTag ¶
func (o *GetModelsParams) SetTag(tag *string)
SetTag adds the tag to the get models params
func (*GetModelsParams) SetTimeout ¶
func (o *GetModelsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get models params
func (*GetModelsParams) SetTypes ¶
func (o *GetModelsParams) SetTypes(types *string)
SetTypes adds the types to the get models params
func (*GetModelsParams) SetUsername ¶
func (o *GetModelsParams) SetUsername(username *string)
SetUsername adds the username to the get models params
func (*GetModelsParams) WithContext ¶
func (o *GetModelsParams) WithContext(ctx context.Context) *GetModelsParams
WithContext adds the context to the get models params
func (*GetModelsParams) WithDefaults ¶
func (o *GetModelsParams) WithDefaults() *GetModelsParams
WithDefaults hydrates default values in the get models params (not the query body).
All values with no default are reset to their zero value.
func (*GetModelsParams) WithFavorites ¶
func (o *GetModelsParams) WithFavorites(favorites *bool) *GetModelsParams
WithFavorites adds the favorites to the get models params
func (*GetModelsParams) WithHTTPClient ¶
func (o *GetModelsParams) WithHTTPClient(client *http.Client) *GetModelsParams
WithHTTPClient adds the HTTPClient to the get models params
func (*GetModelsParams) WithHidden ¶
func (o *GetModelsParams) WithHidden(hidden *bool) *GetModelsParams
WithHidden adds the hidden to the get models params
func (*GetModelsParams) WithLimit ¶
func (o *GetModelsParams) WithLimit(limit *int64) *GetModelsParams
WithLimit adds the limit to the get models params
func (*GetModelsParams) WithPage ¶
func (o *GetModelsParams) WithPage(page *int64) *GetModelsParams
WithPage adds the page to the get models params
func (*GetModelsParams) WithPeriod ¶
func (o *GetModelsParams) WithPeriod(period *string) *GetModelsParams
WithPeriod adds the period to the get models params
func (*GetModelsParams) WithPrimaryFileOnly ¶
func (o *GetModelsParams) WithPrimaryFileOnly(primaryFileOnly *bool) *GetModelsParams
WithPrimaryFileOnly adds the primaryFileOnly to the get models params
func (*GetModelsParams) WithQuery ¶
func (o *GetModelsParams) WithQuery(query *string) *GetModelsParams
WithQuery adds the query to the get models params
func (*GetModelsParams) WithRating ¶
func (o *GetModelsParams) WithRating(rating *int64) *GetModelsParams
WithRating adds the rating to the get models params
func (*GetModelsParams) WithSort ¶
func (o *GetModelsParams) WithSort(sort *string) *GetModelsParams
WithSort adds the sort to the get models params
func (*GetModelsParams) WithTag ¶
func (o *GetModelsParams) WithTag(tag *string) *GetModelsParams
WithTag adds the tag to the get models params
func (*GetModelsParams) WithTimeout ¶
func (o *GetModelsParams) WithTimeout(timeout time.Duration) *GetModelsParams
WithTimeout adds the timeout to the get models params
func (*GetModelsParams) WithTypes ¶
func (o *GetModelsParams) WithTypes(types *string) *GetModelsParams
WithTypes adds the types to the get models params
func (*GetModelsParams) WithUsername ¶
func (o *GetModelsParams) WithUsername(username *string) *GetModelsParams
WithUsername adds the username to the get models params
func (*GetModelsParams) WriteToRequest ¶
func (o *GetModelsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetModelsReader ¶
type GetModelsReader struct {
// contains filtered or unexported fields
}
GetModelsReader is a Reader for the GetModels structure.
func (*GetModelsReader) ReadResponse ¶
func (o *GetModelsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetTagsDefault ¶
type GetTagsDefault struct { Payload *models.StandardError // contains filtered or unexported fields }
GetTagsDefault describes a response with status code -1, with default header values.
Error Response
func NewGetTagsDefault ¶
func NewGetTagsDefault(code int) *GetTagsDefault
NewGetTagsDefault creates a GetTagsDefault with default headers values
func (*GetTagsDefault) Code ¶
func (o *GetTagsDefault) Code() int
Code gets the status code for the get tags default response
func (*GetTagsDefault) Error ¶
func (o *GetTagsDefault) Error() string
func (*GetTagsDefault) GetPayload ¶
func (o *GetTagsDefault) GetPayload() *models.StandardError
func (*GetTagsDefault) IsClientError ¶
func (o *GetTagsDefault) IsClientError() bool
IsClientError returns true when this get tags default response has a 4xx status code
func (*GetTagsDefault) IsCode ¶
func (o *GetTagsDefault) IsCode(code int) bool
IsCode returns true when this get tags default response a status code equal to that given
func (*GetTagsDefault) IsRedirect ¶
func (o *GetTagsDefault) IsRedirect() bool
IsRedirect returns true when this get tags default response has a 3xx status code
func (*GetTagsDefault) IsServerError ¶
func (o *GetTagsDefault) IsServerError() bool
IsServerError returns true when this get tags default response has a 5xx status code
func (*GetTagsDefault) IsSuccess ¶
func (o *GetTagsDefault) IsSuccess() bool
IsSuccess returns true when this get tags default response has a 2xx status code
func (*GetTagsDefault) String ¶
func (o *GetTagsDefault) String() string
type GetTagsOK ¶
type GetTagsOK struct {
Payload *models.TagsResponse
}
GetTagsOK describes a response with status code 200, with default header values.
A list of tags.
func NewGetTagsOK ¶
func NewGetTagsOK() *GetTagsOK
NewGetTagsOK creates a GetTagsOK with default headers values
func (*GetTagsOK) GetPayload ¶
func (o *GetTagsOK) GetPayload() *models.TagsResponse
func (*GetTagsOK) IsClientError ¶
IsClientError returns true when this get tags o k response has a 4xx status code
func (*GetTagsOK) IsCode ¶
IsCode returns true when this get tags o k response a status code equal to that given
func (*GetTagsOK) IsRedirect ¶
IsRedirect returns true when this get tags o k response has a 3xx status code
func (*GetTagsOK) IsServerError ¶
IsServerError returns true when this get tags o k response has a 5xx status code
type GetTagsParams ¶
type GetTagsParams struct { /* Limit. The number of results to be returned per page. This can be a number between 1 and 200. By default, each page will return 20 results. If set to 0, it'll return all the tags. Format: int64 Default: 20 */ Limit *int64 /* Page. The page from which to start fetching tags. Format: int64 */ Page *int64 /* Query. Search query to filter tags by name. */ Query *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetTagsParams contains all the parameters to send to the API endpoint
for the get tags operation. Typically these are written to a http.Request.
func NewGetTagsParams ¶
func NewGetTagsParams() *GetTagsParams
NewGetTagsParams creates a new GetTagsParams 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 NewGetTagsParamsWithContext ¶
func NewGetTagsParamsWithContext(ctx context.Context) *GetTagsParams
NewGetTagsParamsWithContext creates a new GetTagsParams object with the ability to set a context for a request.
func NewGetTagsParamsWithHTTPClient ¶
func NewGetTagsParamsWithHTTPClient(client *http.Client) *GetTagsParams
NewGetTagsParamsWithHTTPClient creates a new GetTagsParams object with the ability to set a custom HTTPClient for a request.
func NewGetTagsParamsWithTimeout ¶
func NewGetTagsParamsWithTimeout(timeout time.Duration) *GetTagsParams
NewGetTagsParamsWithTimeout creates a new GetTagsParams object with the ability to set a timeout on a request.
func (*GetTagsParams) SetContext ¶
func (o *GetTagsParams) SetContext(ctx context.Context)
SetContext adds the context to the get tags params
func (*GetTagsParams) SetDefaults ¶
func (o *GetTagsParams) SetDefaults()
SetDefaults hydrates default values in the get tags params (not the query body).
All values with no default are reset to their zero value.
func (*GetTagsParams) SetHTTPClient ¶
func (o *GetTagsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get tags params
func (*GetTagsParams) SetLimit ¶
func (o *GetTagsParams) SetLimit(limit *int64)
SetLimit adds the limit to the get tags params
func (*GetTagsParams) SetPage ¶
func (o *GetTagsParams) SetPage(page *int64)
SetPage adds the page to the get tags params
func (*GetTagsParams) SetQuery ¶
func (o *GetTagsParams) SetQuery(query *string)
SetQuery adds the query to the get tags params
func (*GetTagsParams) SetTimeout ¶
func (o *GetTagsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get tags params
func (*GetTagsParams) WithContext ¶
func (o *GetTagsParams) WithContext(ctx context.Context) *GetTagsParams
WithContext adds the context to the get tags params
func (*GetTagsParams) WithDefaults ¶
func (o *GetTagsParams) WithDefaults() *GetTagsParams
WithDefaults hydrates default values in the get tags params (not the query body).
All values with no default are reset to their zero value.
func (*GetTagsParams) WithHTTPClient ¶
func (o *GetTagsParams) WithHTTPClient(client *http.Client) *GetTagsParams
WithHTTPClient adds the HTTPClient to the get tags params
func (*GetTagsParams) WithLimit ¶
func (o *GetTagsParams) WithLimit(limit *int64) *GetTagsParams
WithLimit adds the limit to the get tags params
func (*GetTagsParams) WithPage ¶
func (o *GetTagsParams) WithPage(page *int64) *GetTagsParams
WithPage adds the page to the get tags params
func (*GetTagsParams) WithQuery ¶
func (o *GetTagsParams) WithQuery(query *string) *GetTagsParams
WithQuery adds the query to the get tags params
func (*GetTagsParams) WithTimeout ¶
func (o *GetTagsParams) WithTimeout(timeout time.Duration) *GetTagsParams
WithTimeout adds the timeout to the get tags params
func (*GetTagsParams) WriteToRequest ¶
func (o *GetTagsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetTagsReader ¶
type GetTagsReader struct {
// contains filtered or unexported fields
}
GetTagsReader is a Reader for the GetTags structure.
func (*GetTagsReader) ReadResponse ¶
func (o *GetTagsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files ¶
- get_creators_parameters.go
- get_creators_responses.go
- get_images_parameters.go
- get_images_responses.go
- get_model_parameters.go
- get_model_responses.go
- get_model_version_by_hash_parameters.go
- get_model_version_by_hash_responses.go
- get_model_version_parameters.go
- get_model_version_responses.go
- get_models_parameters.go
- get_models_responses.go
- get_tags_parameters.go
- get_tags_responses.go
- operations_client.go