Documentation ¶
Index ¶
- type Client
- func (a *Client) Delete2(params *Delete2Params, opts ...ClientOption) (*Delete2NoContent, error)
- func (a *Client) Download2(params *Download2Params, opts ...ClientOption) (*Download2OK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) Upload2(params *Upload2Params, opts ...ClientOption) (*Upload2Created, error)
- type ClientOption
- type ClientService
- type Delete2Forbidden
- func (o *Delete2Forbidden) Error() string
- func (o *Delete2Forbidden) IsClientError() bool
- func (o *Delete2Forbidden) IsCode(code int) bool
- func (o *Delete2Forbidden) IsRedirect() bool
- func (o *Delete2Forbidden) IsServerError() bool
- func (o *Delete2Forbidden) IsSuccess() bool
- func (o *Delete2Forbidden) String() string
- type Delete2NoContent
- func (o *Delete2NoContent) Error() string
- func (o *Delete2NoContent) IsClientError() bool
- func (o *Delete2NoContent) IsCode(code int) bool
- func (o *Delete2NoContent) IsRedirect() bool
- func (o *Delete2NoContent) IsServerError() bool
- func (o *Delete2NoContent) IsSuccess() bool
- func (o *Delete2NoContent) String() string
- type Delete2Params
- func (o *Delete2Params) SetAPIVersion(aPIVersion *string)
- func (o *Delete2Params) SetContext(ctx context.Context)
- func (o *Delete2Params) SetDefaults()
- func (o *Delete2Params) SetHTTPClient(client *http.Client)
- func (o *Delete2Params) SetID(id strfmt.UUID)
- func (o *Delete2Params) SetTimeout(timeout time.Duration)
- func (o *Delete2Params) WithAPIVersion(aPIVersion *string) *Delete2Params
- func (o *Delete2Params) WithContext(ctx context.Context) *Delete2Params
- func (o *Delete2Params) WithDefaults() *Delete2Params
- func (o *Delete2Params) WithHTTPClient(client *http.Client) *Delete2Params
- func (o *Delete2Params) WithID(id strfmt.UUID) *Delete2Params
- func (o *Delete2Params) WithTimeout(timeout time.Duration) *Delete2Params
- func (o *Delete2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type Delete2Reader
- type Download2BadRequest
- func (o *Download2BadRequest) Error() string
- func (o *Download2BadRequest) GetPayload() *models.Error
- func (o *Download2BadRequest) IsClientError() bool
- func (o *Download2BadRequest) IsCode(code int) bool
- func (o *Download2BadRequest) IsRedirect() bool
- func (o *Download2BadRequest) IsServerError() bool
- func (o *Download2BadRequest) IsSuccess() bool
- func (o *Download2BadRequest) String() string
- type Download2NotFound
- func (o *Download2NotFound) Error() string
- func (o *Download2NotFound) GetPayload() *models.Error
- func (o *Download2NotFound) IsClientError() bool
- func (o *Download2NotFound) IsCode(code int) bool
- func (o *Download2NotFound) IsRedirect() bool
- func (o *Download2NotFound) IsServerError() bool
- func (o *Download2NotFound) IsSuccess() bool
- func (o *Download2NotFound) String() string
- type Download2OK
- func (o *Download2OK) Error() string
- func (o *Download2OK) GetPayload() strfmt.Base64
- func (o *Download2OK) IsClientError() bool
- func (o *Download2OK) IsCode(code int) bool
- func (o *Download2OK) IsRedirect() bool
- func (o *Download2OK) IsServerError() bool
- func (o *Download2OK) IsSuccess() bool
- func (o *Download2OK) String() string
- type Download2Params
- func (o *Download2Params) SetAPIVersion(aPIVersion *string)
- func (o *Download2Params) SetContext(ctx context.Context)
- func (o *Download2Params) SetDefaults()
- func (o *Download2Params) SetHTTPClient(client *http.Client)
- func (o *Download2Params) SetID(id strfmt.UUID)
- func (o *Download2Params) SetTimeout(timeout time.Duration)
- func (o *Download2Params) WithAPIVersion(aPIVersion *string) *Download2Params
- func (o *Download2Params) WithContext(ctx context.Context) *Download2Params
- func (o *Download2Params) WithDefaults() *Download2Params
- func (o *Download2Params) WithHTTPClient(client *http.Client) *Download2Params
- func (o *Download2Params) WithID(id strfmt.UUID) *Download2Params
- func (o *Download2Params) WithTimeout(timeout time.Duration) *Download2Params
- func (o *Download2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type Download2Reader
- type Upload2BadRequest
- func (o *Upload2BadRequest) Error() string
- func (o *Upload2BadRequest) GetPayload() *models.Error
- func (o *Upload2BadRequest) IsClientError() bool
- func (o *Upload2BadRequest) IsCode(code int) bool
- func (o *Upload2BadRequest) IsRedirect() bool
- func (o *Upload2BadRequest) IsServerError() bool
- func (o *Upload2BadRequest) IsSuccess() bool
- func (o *Upload2BadRequest) String() string
- type Upload2Created
- func (o *Upload2Created) Error() string
- func (o *Upload2Created) IsClientError() bool
- func (o *Upload2Created) IsCode(code int) bool
- func (o *Upload2Created) IsRedirect() bool
- func (o *Upload2Created) IsServerError() bool
- func (o *Upload2Created) IsSuccess() bool
- func (o *Upload2Created) String() string
- type Upload2Forbidden
- func (o *Upload2Forbidden) Error() string
- func (o *Upload2Forbidden) IsClientError() bool
- func (o *Upload2Forbidden) IsCode(code int) bool
- func (o *Upload2Forbidden) IsRedirect() bool
- func (o *Upload2Forbidden) IsServerError() bool
- func (o *Upload2Forbidden) IsSuccess() bool
- func (o *Upload2Forbidden) String() string
- type Upload2Params
- func (o *Upload2Params) SetAPIVersion(aPIVersion *string)
- func (o *Upload2Params) SetContext(ctx context.Context)
- func (o *Upload2Params) SetDefaults()
- func (o *Upload2Params) SetFile(file runtime.NamedReadCloser)
- func (o *Upload2Params) SetHTTPClient(client *http.Client)
- func (o *Upload2Params) SetTimeout(timeout time.Duration)
- func (o *Upload2Params) WithAPIVersion(aPIVersion *string) *Upload2Params
- func (o *Upload2Params) WithContext(ctx context.Context) *Upload2Params
- func (o *Upload2Params) WithDefaults() *Upload2Params
- func (o *Upload2Params) WithFile(file runtime.NamedReadCloser) *Upload2Params
- func (o *Upload2Params) WithHTTPClient(client *http.Client) *Upload2Params
- func (o *Upload2Params) WithTimeout(timeout time.Duration) *Upload2Params
- func (o *Upload2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type Upload2Reader
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 icons API
func (*Client) Delete2 ¶ added in v0.4.0
func (a *Client) Delete2(params *Delete2Params, opts ...ClientOption) (*Delete2NoContent, error)
Delete2 deletes an icon
Delete an existing icon by its unique id.
func (*Client) Download2 ¶ added in v0.4.0
func (a *Client) Download2(params *Download2Params, opts ...ClientOption) (*Download2OK, error)
Download2 downloads an icon
Download an existing icon by its unique id.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) Upload2 ¶ added in v0.4.0
func (a *Client) Upload2(params *Upload2Params, opts ...ClientOption) (*Upload2Created, error)
Upload2 uploads an icon
Create an icon.
type ClientOption ¶ added in v0.2.20
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶ added in v0.2.18
type ClientService interface { Delete2(params *Delete2Params, opts ...ClientOption) (*Delete2NoContent, error) Download2(params *Download2Params, opts ...ClientOption) (*Download2OK, error) Upload2(params *Upload2Params, opts ...ClientOption) (*Upload2Created, 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 icons API client.
type Delete2Forbidden ¶ added in v0.4.0
type Delete2Forbidden struct { }
Delete2Forbidden describes a response with status code 403, with default header values.
Forbidden.
func NewDelete2Forbidden ¶ added in v0.4.0
func NewDelete2Forbidden() *Delete2Forbidden
NewDelete2Forbidden creates a Delete2Forbidden with default headers values
func (*Delete2Forbidden) Error ¶ added in v0.4.0
func (o *Delete2Forbidden) Error() string
func (*Delete2Forbidden) IsClientError ¶ added in v0.5.0
func (o *Delete2Forbidden) IsClientError() bool
IsClientError returns true when this delete2 forbidden response has a 4xx status code
func (*Delete2Forbidden) IsCode ¶ added in v0.5.0
func (o *Delete2Forbidden) IsCode(code int) bool
IsCode returns true when this delete2 forbidden response a status code equal to that given
func (*Delete2Forbidden) IsRedirect ¶ added in v0.5.0
func (o *Delete2Forbidden) IsRedirect() bool
IsRedirect returns true when this delete2 forbidden response has a 3xx status code
func (*Delete2Forbidden) IsServerError ¶ added in v0.5.0
func (o *Delete2Forbidden) IsServerError() bool
IsServerError returns true when this delete2 forbidden response has a 5xx status code
func (*Delete2Forbidden) IsSuccess ¶ added in v0.5.0
func (o *Delete2Forbidden) IsSuccess() bool
IsSuccess returns true when this delete2 forbidden response has a 2xx status code
func (*Delete2Forbidden) String ¶ added in v0.5.0
func (o *Delete2Forbidden) String() string
type Delete2NoContent ¶ added in v0.4.0
type Delete2NoContent struct { }
Delete2NoContent describes a response with status code 204, with default header values.
Success - delete the icon
func NewDelete2NoContent ¶ added in v0.4.0
func NewDelete2NoContent() *Delete2NoContent
NewDelete2NoContent creates a Delete2NoContent with default headers values
func (*Delete2NoContent) Error ¶ added in v0.4.0
func (o *Delete2NoContent) Error() string
func (*Delete2NoContent) IsClientError ¶ added in v0.5.0
func (o *Delete2NoContent) IsClientError() bool
IsClientError returns true when this delete2 no content response has a 4xx status code
func (*Delete2NoContent) IsCode ¶ added in v0.5.0
func (o *Delete2NoContent) IsCode(code int) bool
IsCode returns true when this delete2 no content response a status code equal to that given
func (*Delete2NoContent) IsRedirect ¶ added in v0.5.0
func (o *Delete2NoContent) IsRedirect() bool
IsRedirect returns true when this delete2 no content response has a 3xx status code
func (*Delete2NoContent) IsServerError ¶ added in v0.5.0
func (o *Delete2NoContent) IsServerError() bool
IsServerError returns true when this delete2 no content response has a 5xx status code
func (*Delete2NoContent) IsSuccess ¶ added in v0.5.0
func (o *Delete2NoContent) IsSuccess() bool
IsSuccess returns true when this delete2 no content response has a 2xx status code
func (*Delete2NoContent) String ¶ added in v0.5.0
func (o *Delete2NoContent) String() string
type Delete2Params ¶ added in v0.4.0
type Delete2Params struct { /* APIVersion. The version of the API in yyyy-MM-dd format (UTC). If you do not specify explicitly an exact version, you will be calling the latest supported API version. */ APIVersion *string /* ID. Icon id Format: uuid */ ID strfmt.UUID Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
Delete2Params contains all the parameters to send to the API endpoint
for the delete 2 operation. Typically these are written to a http.Request.
func NewDelete2Params ¶ added in v0.4.0
func NewDelete2Params() *Delete2Params
NewDelete2Params creates a new Delete2Params 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 NewDelete2ParamsWithContext ¶ added in v0.4.0
func NewDelete2ParamsWithContext(ctx context.Context) *Delete2Params
NewDelete2ParamsWithContext creates a new Delete2Params object with the ability to set a context for a request.
func NewDelete2ParamsWithHTTPClient ¶ added in v0.4.0
func NewDelete2ParamsWithHTTPClient(client *http.Client) *Delete2Params
NewDelete2ParamsWithHTTPClient creates a new Delete2Params object with the ability to set a custom HTTPClient for a request.
func NewDelete2ParamsWithTimeout ¶ added in v0.4.0
func NewDelete2ParamsWithTimeout(timeout time.Duration) *Delete2Params
NewDelete2ParamsWithTimeout creates a new Delete2Params object with the ability to set a timeout on a request.
func (*Delete2Params) SetAPIVersion ¶ added in v0.4.0
func (o *Delete2Params) SetAPIVersion(aPIVersion *string)
SetAPIVersion adds the apiVersion to the delete 2 params
func (*Delete2Params) SetContext ¶ added in v0.4.0
func (o *Delete2Params) SetContext(ctx context.Context)
SetContext adds the context to the delete 2 params
func (*Delete2Params) SetDefaults ¶ added in v0.4.0
func (o *Delete2Params) SetDefaults()
SetDefaults hydrates default values in the delete 2 params (not the query body).
All values with no default are reset to their zero value.
func (*Delete2Params) SetHTTPClient ¶ added in v0.4.0
func (o *Delete2Params) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete 2 params
func (*Delete2Params) SetID ¶ added in v0.4.0
func (o *Delete2Params) SetID(id strfmt.UUID)
SetID adds the id to the delete 2 params
func (*Delete2Params) SetTimeout ¶ added in v0.4.0
func (o *Delete2Params) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete 2 params
func (*Delete2Params) WithAPIVersion ¶ added in v0.4.0
func (o *Delete2Params) WithAPIVersion(aPIVersion *string) *Delete2Params
WithAPIVersion adds the aPIVersion to the delete 2 params
func (*Delete2Params) WithContext ¶ added in v0.4.0
func (o *Delete2Params) WithContext(ctx context.Context) *Delete2Params
WithContext adds the context to the delete 2 params
func (*Delete2Params) WithDefaults ¶ added in v0.4.0
func (o *Delete2Params) WithDefaults() *Delete2Params
WithDefaults hydrates default values in the delete 2 params (not the query body).
All values with no default are reset to their zero value.
func (*Delete2Params) WithHTTPClient ¶ added in v0.4.0
func (o *Delete2Params) WithHTTPClient(client *http.Client) *Delete2Params
WithHTTPClient adds the HTTPClient to the delete 2 params
func (*Delete2Params) WithID ¶ added in v0.4.0
func (o *Delete2Params) WithID(id strfmt.UUID) *Delete2Params
WithID adds the id to the delete 2 params
func (*Delete2Params) WithTimeout ¶ added in v0.4.0
func (o *Delete2Params) WithTimeout(timeout time.Duration) *Delete2Params
WithTimeout adds the timeout to the delete 2 params
func (*Delete2Params) WriteToRequest ¶ added in v0.4.0
func (o *Delete2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type Delete2Reader ¶ added in v0.4.0
type Delete2Reader struct {
// contains filtered or unexported fields
}
Delete2Reader is a Reader for the Delete2 structure.
func (*Delete2Reader) ReadResponse ¶ added in v0.4.0
func (o *Delete2Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type Download2BadRequest ¶ added in v0.4.0
Download2BadRequest describes a response with status code 400, with default header values.
Invalid request - bad data.
func NewDownload2BadRequest ¶ added in v0.4.0
func NewDownload2BadRequest() *Download2BadRequest
NewDownload2BadRequest creates a Download2BadRequest with default headers values
func (*Download2BadRequest) Error ¶ added in v0.4.0
func (o *Download2BadRequest) Error() string
func (*Download2BadRequest) GetPayload ¶ added in v0.4.0
func (o *Download2BadRequest) GetPayload() *models.Error
func (*Download2BadRequest) IsClientError ¶ added in v0.5.0
func (o *Download2BadRequest) IsClientError() bool
IsClientError returns true when this download2 bad request response has a 4xx status code
func (*Download2BadRequest) IsCode ¶ added in v0.5.0
func (o *Download2BadRequest) IsCode(code int) bool
IsCode returns true when this download2 bad request response a status code equal to that given
func (*Download2BadRequest) IsRedirect ¶ added in v0.5.0
func (o *Download2BadRequest) IsRedirect() bool
IsRedirect returns true when this download2 bad request response has a 3xx status code
func (*Download2BadRequest) IsServerError ¶ added in v0.5.0
func (o *Download2BadRequest) IsServerError() bool
IsServerError returns true when this download2 bad request response has a 5xx status code
func (*Download2BadRequest) IsSuccess ¶ added in v0.5.0
func (o *Download2BadRequest) IsSuccess() bool
IsSuccess returns true when this download2 bad request response has a 2xx status code
func (*Download2BadRequest) String ¶ added in v0.5.0
func (o *Download2BadRequest) String() string
type Download2NotFound ¶ added in v0.4.0
Download2NotFound describes a response with status code 404, with default header values.
Icon not found.
func NewDownload2NotFound ¶ added in v0.4.0
func NewDownload2NotFound() *Download2NotFound
NewDownload2NotFound creates a Download2NotFound with default headers values
func (*Download2NotFound) Error ¶ added in v0.4.0
func (o *Download2NotFound) Error() string
func (*Download2NotFound) GetPayload ¶ added in v0.4.0
func (o *Download2NotFound) GetPayload() *models.Error
func (*Download2NotFound) IsClientError ¶ added in v0.5.0
func (o *Download2NotFound) IsClientError() bool
IsClientError returns true when this download2 not found response has a 4xx status code
func (*Download2NotFound) IsCode ¶ added in v0.5.0
func (o *Download2NotFound) IsCode(code int) bool
IsCode returns true when this download2 not found response a status code equal to that given
func (*Download2NotFound) IsRedirect ¶ added in v0.5.0
func (o *Download2NotFound) IsRedirect() bool
IsRedirect returns true when this download2 not found response has a 3xx status code
func (*Download2NotFound) IsServerError ¶ added in v0.5.0
func (o *Download2NotFound) IsServerError() bool
IsServerError returns true when this download2 not found response has a 5xx status code
func (*Download2NotFound) IsSuccess ¶ added in v0.5.0
func (o *Download2NotFound) IsSuccess() bool
IsSuccess returns true when this download2 not found response has a 2xx status code
func (*Download2NotFound) String ¶ added in v0.5.0
func (o *Download2NotFound) String() string
type Download2OK ¶ added in v0.4.0
Download2OK describes a response with status code 200, with default header values.
Success - return the catalog icon.
func NewDownload2OK ¶ added in v0.4.0
func NewDownload2OK() *Download2OK
NewDownload2OK creates a Download2OK with default headers values
func (*Download2OK) Error ¶ added in v0.4.0
func (o *Download2OK) Error() string
func (*Download2OK) GetPayload ¶ added in v0.4.0
func (o *Download2OK) GetPayload() strfmt.Base64
func (*Download2OK) IsClientError ¶ added in v0.5.0
func (o *Download2OK) IsClientError() bool
IsClientError returns true when this download2 o k response has a 4xx status code
func (*Download2OK) IsCode ¶ added in v0.5.0
func (o *Download2OK) IsCode(code int) bool
IsCode returns true when this download2 o k response a status code equal to that given
func (*Download2OK) IsRedirect ¶ added in v0.5.0
func (o *Download2OK) IsRedirect() bool
IsRedirect returns true when this download2 o k response has a 3xx status code
func (*Download2OK) IsServerError ¶ added in v0.5.0
func (o *Download2OK) IsServerError() bool
IsServerError returns true when this download2 o k response has a 5xx status code
func (*Download2OK) IsSuccess ¶ added in v0.5.0
func (o *Download2OK) IsSuccess() bool
IsSuccess returns true when this download2 o k response has a 2xx status code
func (*Download2OK) String ¶ added in v0.5.0
func (o *Download2OK) String() string
type Download2Params ¶ added in v0.4.0
type Download2Params struct { /* APIVersion. The version of the API in yyyy-MM-dd format (UTC). If you do not specify explicitly an exact version, you will be calling the latest supported API version. */ APIVersion *string /* ID. Icon id Format: uuid */ ID strfmt.UUID Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
Download2Params contains all the parameters to send to the API endpoint
for the download 2 operation. Typically these are written to a http.Request.
func NewDownload2Params ¶ added in v0.4.0
func NewDownload2Params() *Download2Params
NewDownload2Params creates a new Download2Params 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 NewDownload2ParamsWithContext ¶ added in v0.4.0
func NewDownload2ParamsWithContext(ctx context.Context) *Download2Params
NewDownload2ParamsWithContext creates a new Download2Params object with the ability to set a context for a request.
func NewDownload2ParamsWithHTTPClient ¶ added in v0.4.0
func NewDownload2ParamsWithHTTPClient(client *http.Client) *Download2Params
NewDownload2ParamsWithHTTPClient creates a new Download2Params object with the ability to set a custom HTTPClient for a request.
func NewDownload2ParamsWithTimeout ¶ added in v0.4.0
func NewDownload2ParamsWithTimeout(timeout time.Duration) *Download2Params
NewDownload2ParamsWithTimeout creates a new Download2Params object with the ability to set a timeout on a request.
func (*Download2Params) SetAPIVersion ¶ added in v0.4.0
func (o *Download2Params) SetAPIVersion(aPIVersion *string)
SetAPIVersion adds the apiVersion to the download 2 params
func (*Download2Params) SetContext ¶ added in v0.4.0
func (o *Download2Params) SetContext(ctx context.Context)
SetContext adds the context to the download 2 params
func (*Download2Params) SetDefaults ¶ added in v0.4.0
func (o *Download2Params) SetDefaults()
SetDefaults hydrates default values in the download 2 params (not the query body).
All values with no default are reset to their zero value.
func (*Download2Params) SetHTTPClient ¶ added in v0.4.0
func (o *Download2Params) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the download 2 params
func (*Download2Params) SetID ¶ added in v0.4.0
func (o *Download2Params) SetID(id strfmt.UUID)
SetID adds the id to the download 2 params
func (*Download2Params) SetTimeout ¶ added in v0.4.0
func (o *Download2Params) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the download 2 params
func (*Download2Params) WithAPIVersion ¶ added in v0.4.0
func (o *Download2Params) WithAPIVersion(aPIVersion *string) *Download2Params
WithAPIVersion adds the aPIVersion to the download 2 params
func (*Download2Params) WithContext ¶ added in v0.4.0
func (o *Download2Params) WithContext(ctx context.Context) *Download2Params
WithContext adds the context to the download 2 params
func (*Download2Params) WithDefaults ¶ added in v0.4.0
func (o *Download2Params) WithDefaults() *Download2Params
WithDefaults hydrates default values in the download 2 params (not the query body).
All values with no default are reset to their zero value.
func (*Download2Params) WithHTTPClient ¶ added in v0.4.0
func (o *Download2Params) WithHTTPClient(client *http.Client) *Download2Params
WithHTTPClient adds the HTTPClient to the download 2 params
func (*Download2Params) WithID ¶ added in v0.4.0
func (o *Download2Params) WithID(id strfmt.UUID) *Download2Params
WithID adds the id to the download 2 params
func (*Download2Params) WithTimeout ¶ added in v0.4.0
func (o *Download2Params) WithTimeout(timeout time.Duration) *Download2Params
WithTimeout adds the timeout to the download 2 params
func (*Download2Params) WriteToRequest ¶ added in v0.4.0
func (o *Download2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type Download2Reader ¶ added in v0.4.0
type Download2Reader struct {
// contains filtered or unexported fields
}
Download2Reader is a Reader for the Download2 structure.
func (*Download2Reader) ReadResponse ¶ added in v0.4.0
func (o *Download2Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type Upload2BadRequest ¶ added in v0.4.0
Upload2BadRequest describes a response with status code 400, with default header values.
Invalid request - bad data.
func NewUpload2BadRequest ¶ added in v0.4.0
func NewUpload2BadRequest() *Upload2BadRequest
NewUpload2BadRequest creates a Upload2BadRequest with default headers values
func (*Upload2BadRequest) Error ¶ added in v0.4.0
func (o *Upload2BadRequest) Error() string
func (*Upload2BadRequest) GetPayload ¶ added in v0.4.0
func (o *Upload2BadRequest) GetPayload() *models.Error
func (*Upload2BadRequest) IsClientError ¶ added in v0.5.0
func (o *Upload2BadRequest) IsClientError() bool
IsClientError returns true when this upload2 bad request response has a 4xx status code
func (*Upload2BadRequest) IsCode ¶ added in v0.5.0
func (o *Upload2BadRequest) IsCode(code int) bool
IsCode returns true when this upload2 bad request response a status code equal to that given
func (*Upload2BadRequest) IsRedirect ¶ added in v0.5.0
func (o *Upload2BadRequest) IsRedirect() bool
IsRedirect returns true when this upload2 bad request response has a 3xx status code
func (*Upload2BadRequest) IsServerError ¶ added in v0.5.0
func (o *Upload2BadRequest) IsServerError() bool
IsServerError returns true when this upload2 bad request response has a 5xx status code
func (*Upload2BadRequest) IsSuccess ¶ added in v0.5.0
func (o *Upload2BadRequest) IsSuccess() bool
IsSuccess returns true when this upload2 bad request response has a 2xx status code
func (*Upload2BadRequest) String ¶ added in v0.5.0
func (o *Upload2BadRequest) String() string
type Upload2Created ¶ added in v0.4.0
type Upload2Created struct { }
Upload2Created describes a response with status code 201, with default header values.
Success - create an icon.
func NewUpload2Created ¶ added in v0.4.0
func NewUpload2Created() *Upload2Created
NewUpload2Created creates a Upload2Created with default headers values
func (*Upload2Created) Error ¶ added in v0.4.0
func (o *Upload2Created) Error() string
func (*Upload2Created) IsClientError ¶ added in v0.5.0
func (o *Upload2Created) IsClientError() bool
IsClientError returns true when this upload2 created response has a 4xx status code
func (*Upload2Created) IsCode ¶ added in v0.5.0
func (o *Upload2Created) IsCode(code int) bool
IsCode returns true when this upload2 created response a status code equal to that given
func (*Upload2Created) IsRedirect ¶ added in v0.5.0
func (o *Upload2Created) IsRedirect() bool
IsRedirect returns true when this upload2 created response has a 3xx status code
func (*Upload2Created) IsServerError ¶ added in v0.5.0
func (o *Upload2Created) IsServerError() bool
IsServerError returns true when this upload2 created response has a 5xx status code
func (*Upload2Created) IsSuccess ¶ added in v0.5.0
func (o *Upload2Created) IsSuccess() bool
IsSuccess returns true when this upload2 created response has a 2xx status code
func (*Upload2Created) String ¶ added in v0.5.0
func (o *Upload2Created) String() string
type Upload2Forbidden ¶ added in v0.4.0
type Upload2Forbidden struct { }
Upload2Forbidden describes a response with status code 403, with default header values.
Forbidden.
func NewUpload2Forbidden ¶ added in v0.4.0
func NewUpload2Forbidden() *Upload2Forbidden
NewUpload2Forbidden creates a Upload2Forbidden with default headers values
func (*Upload2Forbidden) Error ¶ added in v0.4.0
func (o *Upload2Forbidden) Error() string
func (*Upload2Forbidden) IsClientError ¶ added in v0.5.0
func (o *Upload2Forbidden) IsClientError() bool
IsClientError returns true when this upload2 forbidden response has a 4xx status code
func (*Upload2Forbidden) IsCode ¶ added in v0.5.0
func (o *Upload2Forbidden) IsCode(code int) bool
IsCode returns true when this upload2 forbidden response a status code equal to that given
func (*Upload2Forbidden) IsRedirect ¶ added in v0.5.0
func (o *Upload2Forbidden) IsRedirect() bool
IsRedirect returns true when this upload2 forbidden response has a 3xx status code
func (*Upload2Forbidden) IsServerError ¶ added in v0.5.0
func (o *Upload2Forbidden) IsServerError() bool
IsServerError returns true when this upload2 forbidden response has a 5xx status code
func (*Upload2Forbidden) IsSuccess ¶ added in v0.5.0
func (o *Upload2Forbidden) IsSuccess() bool
IsSuccess returns true when this upload2 forbidden response has a 2xx status code
func (*Upload2Forbidden) String ¶ added in v0.5.0
func (o *Upload2Forbidden) String() string
type Upload2Params ¶ added in v0.4.0
type Upload2Params struct { /* APIVersion. The version of the API in yyyy-MM-dd format (UTC). If you do not specify explicitly an exact version, you will be calling the latest supported API version. */ APIVersion *string /* File. Icon file */ File runtime.NamedReadCloser Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
Upload2Params contains all the parameters to send to the API endpoint
for the upload 2 operation. Typically these are written to a http.Request.
func NewUpload2Params ¶ added in v0.4.0
func NewUpload2Params() *Upload2Params
NewUpload2Params creates a new Upload2Params 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 NewUpload2ParamsWithContext ¶ added in v0.4.0
func NewUpload2ParamsWithContext(ctx context.Context) *Upload2Params
NewUpload2ParamsWithContext creates a new Upload2Params object with the ability to set a context for a request.
func NewUpload2ParamsWithHTTPClient ¶ added in v0.4.0
func NewUpload2ParamsWithHTTPClient(client *http.Client) *Upload2Params
NewUpload2ParamsWithHTTPClient creates a new Upload2Params object with the ability to set a custom HTTPClient for a request.
func NewUpload2ParamsWithTimeout ¶ added in v0.4.0
func NewUpload2ParamsWithTimeout(timeout time.Duration) *Upload2Params
NewUpload2ParamsWithTimeout creates a new Upload2Params object with the ability to set a timeout on a request.
func (*Upload2Params) SetAPIVersion ¶ added in v0.4.0
func (o *Upload2Params) SetAPIVersion(aPIVersion *string)
SetAPIVersion adds the apiVersion to the upload 2 params
func (*Upload2Params) SetContext ¶ added in v0.4.0
func (o *Upload2Params) SetContext(ctx context.Context)
SetContext adds the context to the upload 2 params
func (*Upload2Params) SetDefaults ¶ added in v0.4.0
func (o *Upload2Params) SetDefaults()
SetDefaults hydrates default values in the upload 2 params (not the query body).
All values with no default are reset to their zero value.
func (*Upload2Params) SetFile ¶ added in v0.4.0
func (o *Upload2Params) SetFile(file runtime.NamedReadCloser)
SetFile adds the file to the upload 2 params
func (*Upload2Params) SetHTTPClient ¶ added in v0.4.0
func (o *Upload2Params) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the upload 2 params
func (*Upload2Params) SetTimeout ¶ added in v0.4.0
func (o *Upload2Params) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the upload 2 params
func (*Upload2Params) WithAPIVersion ¶ added in v0.4.0
func (o *Upload2Params) WithAPIVersion(aPIVersion *string) *Upload2Params
WithAPIVersion adds the aPIVersion to the upload 2 params
func (*Upload2Params) WithContext ¶ added in v0.4.0
func (o *Upload2Params) WithContext(ctx context.Context) *Upload2Params
WithContext adds the context to the upload 2 params
func (*Upload2Params) WithDefaults ¶ added in v0.4.0
func (o *Upload2Params) WithDefaults() *Upload2Params
WithDefaults hydrates default values in the upload 2 params (not the query body).
All values with no default are reset to their zero value.
func (*Upload2Params) WithFile ¶ added in v0.4.0
func (o *Upload2Params) WithFile(file runtime.NamedReadCloser) *Upload2Params
WithFile adds the file to the upload 2 params
func (*Upload2Params) WithHTTPClient ¶ added in v0.4.0
func (o *Upload2Params) WithHTTPClient(client *http.Client) *Upload2Params
WithHTTPClient adds the HTTPClient to the upload 2 params
func (*Upload2Params) WithTimeout ¶ added in v0.4.0
func (o *Upload2Params) WithTimeout(timeout time.Duration) *Upload2Params
WithTimeout adds the timeout to the upload 2 params
func (*Upload2Params) WriteToRequest ¶ added in v0.4.0
func (o *Upload2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type Upload2Reader ¶ added in v0.4.0
type Upload2Reader struct {
// contains filtered or unexported fields
}
Upload2Reader is a Reader for the Upload2 structure.
func (*Upload2Reader) ReadResponse ¶ added in v0.4.0
func (o *Upload2Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.