Documentation
¶
Index ¶
- type Client
- func (a *Client) GetFirmwares(params *GetFirmwaresParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetFirmwaresOK, error)
- func (a *Client) PostFirmwares(params *PostFirmwaresParams, authInfo runtime.ClientAuthInfoWriter, ...) (*PostFirmwaresOK, error)
- func (a *Client) PostFirmwaresDelete(params *PostFirmwaresDeleteParams, authInfo runtime.ClientAuthInfoWriter, ...) (*PostFirmwaresDeleteOK, error)
- func (a *Client) PostFirmwaresDownload(params *PostFirmwaresDownloadParams, authInfo runtime.ClientAuthInfoWriter, ...) (*PostFirmwaresDownloadOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetFirmwaresForbidden
- type GetFirmwaresInternalServerError
- type GetFirmwaresOK
- type GetFirmwaresParams
- func (o *GetFirmwaresParams) SetContext(ctx context.Context)
- func (o *GetFirmwaresParams) SetDefaults()
- func (o *GetFirmwaresParams) SetHTTPClient(client *http.Client)
- func (o *GetFirmwaresParams) SetTimeout(timeout time.Duration)
- func (o *GetFirmwaresParams) WithContext(ctx context.Context) *GetFirmwaresParams
- func (o *GetFirmwaresParams) WithDefaults() *GetFirmwaresParams
- func (o *GetFirmwaresParams) WithHTTPClient(client *http.Client) *GetFirmwaresParams
- func (o *GetFirmwaresParams) WithTimeout(timeout time.Duration) *GetFirmwaresParams
- func (o *GetFirmwaresParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetFirmwaresReader
- type GetFirmwaresUnauthorized
- type PostFirmwaresDeleteForbidden
- type PostFirmwaresDeleteInternalServerError
- type PostFirmwaresDeleteOK
- type PostFirmwaresDeleteParams
- func NewPostFirmwaresDeleteParams() *PostFirmwaresDeleteParams
- func NewPostFirmwaresDeleteParamsWithContext(ctx context.Context) *PostFirmwaresDeleteParams
- func NewPostFirmwaresDeleteParamsWithHTTPClient(client *http.Client) *PostFirmwaresDeleteParams
- func NewPostFirmwaresDeleteParamsWithTimeout(timeout time.Duration) *PostFirmwaresDeleteParams
- func (o *PostFirmwaresDeleteParams) SetBody(body models.ListOfFirmwareIds)
- func (o *PostFirmwaresDeleteParams) SetContext(ctx context.Context)
- func (o *PostFirmwaresDeleteParams) SetDefaults()
- func (o *PostFirmwaresDeleteParams) SetHTTPClient(client *http.Client)
- func (o *PostFirmwaresDeleteParams) SetTimeout(timeout time.Duration)
- func (o *PostFirmwaresDeleteParams) WithBody(body models.ListOfFirmwareIds) *PostFirmwaresDeleteParams
- func (o *PostFirmwaresDeleteParams) WithContext(ctx context.Context) *PostFirmwaresDeleteParams
- func (o *PostFirmwaresDeleteParams) WithDefaults() *PostFirmwaresDeleteParams
- func (o *PostFirmwaresDeleteParams) WithHTTPClient(client *http.Client) *PostFirmwaresDeleteParams
- func (o *PostFirmwaresDeleteParams) WithTimeout(timeout time.Duration) *PostFirmwaresDeleteParams
- func (o *PostFirmwaresDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostFirmwaresDeleteReader
- type PostFirmwaresDeleteUnauthorized
- type PostFirmwaresDownloadForbidden
- type PostFirmwaresDownloadInternalServerError
- type PostFirmwaresDownloadOK
- type PostFirmwaresDownloadParams
- func NewPostFirmwaresDownloadParams() *PostFirmwaresDownloadParams
- func NewPostFirmwaresDownloadParamsWithContext(ctx context.Context) *PostFirmwaresDownloadParams
- func NewPostFirmwaresDownloadParamsWithHTTPClient(client *http.Client) *PostFirmwaresDownloadParams
- func NewPostFirmwaresDownloadParamsWithTimeout(timeout time.Duration) *PostFirmwaresDownloadParams
- func (o *PostFirmwaresDownloadParams) SetContext(ctx context.Context)
- func (o *PostFirmwaresDownloadParams) SetDefaults()
- func (o *PostFirmwaresDownloadParams) SetHTTPClient(client *http.Client)
- func (o *PostFirmwaresDownloadParams) SetTimeout(timeout time.Duration)
- func (o *PostFirmwaresDownloadParams) WithContext(ctx context.Context) *PostFirmwaresDownloadParams
- func (o *PostFirmwaresDownloadParams) WithDefaults() *PostFirmwaresDownloadParams
- func (o *PostFirmwaresDownloadParams) WithHTTPClient(client *http.Client) *PostFirmwaresDownloadParams
- func (o *PostFirmwaresDownloadParams) WithTimeout(timeout time.Duration) *PostFirmwaresDownloadParams
- func (o *PostFirmwaresDownloadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostFirmwaresDownloadReader
- type PostFirmwaresDownloadUnauthorized
- type PostFirmwaresForbidden
- type PostFirmwaresInternalServerError
- type PostFirmwaresOK
- type PostFirmwaresParams
- func (o *PostFirmwaresParams) SetContext(ctx context.Context)
- func (o *PostFirmwaresParams) SetDefaults()
- func (o *PostFirmwaresParams) SetHTTPClient(client *http.Client)
- func (o *PostFirmwaresParams) SetTimeout(timeout time.Duration)
- func (o *PostFirmwaresParams) WithContext(ctx context.Context) *PostFirmwaresParams
- func (o *PostFirmwaresParams) WithDefaults() *PostFirmwaresParams
- func (o *PostFirmwaresParams) WithHTTPClient(client *http.Client) *PostFirmwaresParams
- func (o *PostFirmwaresParams) WithTimeout(timeout time.Duration) *PostFirmwaresParams
- func (o *PostFirmwaresParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostFirmwaresReader
- type PostFirmwaresUnauthorized
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 firmware API
func (*Client) GetFirmwares ¶
func (a *Client) GetFirmwares(params *GetFirmwaresParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetFirmwaresOK, error)
GetFirmwares fetches available firmware
func (*Client) PostFirmwares ¶
func (a *Client) PostFirmwares(params *PostFirmwaresParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostFirmwaresOK, error)
PostFirmwares uploads new firmware image
func (*Client) PostFirmwaresDelete ¶
func (a *Client) PostFirmwaresDelete(params *PostFirmwaresDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostFirmwaresDeleteOK, error)
PostFirmwaresDelete batches firmware delete
func (*Client) PostFirmwaresDownload ¶
func (a *Client) PostFirmwaresDownload(params *PostFirmwaresDownloadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostFirmwaresDownloadOK, error)
PostFirmwaresDownload batches firmware download
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 { GetFirmwares(params *GetFirmwaresParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetFirmwaresOK, error) PostFirmwares(params *PostFirmwaresParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostFirmwaresOK, error) PostFirmwaresDelete(params *PostFirmwaresDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostFirmwaresDeleteOK, error) PostFirmwaresDownload(params *PostFirmwaresDownloadParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostFirmwaresDownloadOK, 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 firmware API client.
type GetFirmwaresForbidden ¶
GetFirmwaresForbidden describes a response with status code 403, with default header values.
Forbidden
func NewGetFirmwaresForbidden ¶
func NewGetFirmwaresForbidden() *GetFirmwaresForbidden
NewGetFirmwaresForbidden creates a GetFirmwaresForbidden with default headers values
func (*GetFirmwaresForbidden) Error ¶
func (o *GetFirmwaresForbidden) Error() string
func (*GetFirmwaresForbidden) GetPayload ¶
func (o *GetFirmwaresForbidden) GetPayload() *models.Error
type GetFirmwaresInternalServerError ¶
GetFirmwaresInternalServerError describes a response with status code 500, with default header values.
Internal Server Error
func NewGetFirmwaresInternalServerError ¶
func NewGetFirmwaresInternalServerError() *GetFirmwaresInternalServerError
NewGetFirmwaresInternalServerError creates a GetFirmwaresInternalServerError with default headers values
func (*GetFirmwaresInternalServerError) Error ¶
func (o *GetFirmwaresInternalServerError) Error() string
func (*GetFirmwaresInternalServerError) GetPayload ¶
func (o *GetFirmwaresInternalServerError) GetPayload() *models.Error
type GetFirmwaresOK ¶
type GetFirmwaresOK struct {
Payload models.ListOfFirmwares
}
GetFirmwaresOK describes a response with status code 200, with default header values.
Successful
func NewGetFirmwaresOK ¶
func NewGetFirmwaresOK() *GetFirmwaresOK
NewGetFirmwaresOK creates a GetFirmwaresOK with default headers values
func (*GetFirmwaresOK) Error ¶
func (o *GetFirmwaresOK) Error() string
func (*GetFirmwaresOK) GetPayload ¶
func (o *GetFirmwaresOK) GetPayload() models.ListOfFirmwares
type GetFirmwaresParams ¶
type GetFirmwaresParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetFirmwaresParams contains all the parameters to send to the API endpoint
for the get firmwares operation. Typically these are written to a http.Request.
func NewGetFirmwaresParams ¶
func NewGetFirmwaresParams() *GetFirmwaresParams
NewGetFirmwaresParams creates a new GetFirmwaresParams 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 NewGetFirmwaresParamsWithContext ¶
func NewGetFirmwaresParamsWithContext(ctx context.Context) *GetFirmwaresParams
NewGetFirmwaresParamsWithContext creates a new GetFirmwaresParams object with the ability to set a context for a request.
func NewGetFirmwaresParamsWithHTTPClient ¶
func NewGetFirmwaresParamsWithHTTPClient(client *http.Client) *GetFirmwaresParams
NewGetFirmwaresParamsWithHTTPClient creates a new GetFirmwaresParams object with the ability to set a custom HTTPClient for a request.
func NewGetFirmwaresParamsWithTimeout ¶
func NewGetFirmwaresParamsWithTimeout(timeout time.Duration) *GetFirmwaresParams
NewGetFirmwaresParamsWithTimeout creates a new GetFirmwaresParams object with the ability to set a timeout on a request.
func (*GetFirmwaresParams) SetContext ¶
func (o *GetFirmwaresParams) SetContext(ctx context.Context)
SetContext adds the context to the get firmwares params
func (*GetFirmwaresParams) SetDefaults ¶
func (o *GetFirmwaresParams) SetDefaults()
SetDefaults hydrates default values in the get firmwares params (not the query body).
All values with no default are reset to their zero value.
func (*GetFirmwaresParams) SetHTTPClient ¶
func (o *GetFirmwaresParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get firmwares params
func (*GetFirmwaresParams) SetTimeout ¶
func (o *GetFirmwaresParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get firmwares params
func (*GetFirmwaresParams) WithContext ¶
func (o *GetFirmwaresParams) WithContext(ctx context.Context) *GetFirmwaresParams
WithContext adds the context to the get firmwares params
func (*GetFirmwaresParams) WithDefaults ¶
func (o *GetFirmwaresParams) WithDefaults() *GetFirmwaresParams
WithDefaults hydrates default values in the get firmwares params (not the query body).
All values with no default are reset to their zero value.
func (*GetFirmwaresParams) WithHTTPClient ¶
func (o *GetFirmwaresParams) WithHTTPClient(client *http.Client) *GetFirmwaresParams
WithHTTPClient adds the HTTPClient to the get firmwares params
func (*GetFirmwaresParams) WithTimeout ¶
func (o *GetFirmwaresParams) WithTimeout(timeout time.Duration) *GetFirmwaresParams
WithTimeout adds the timeout to the get firmwares params
func (*GetFirmwaresParams) WriteToRequest ¶
func (o *GetFirmwaresParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetFirmwaresReader ¶
type GetFirmwaresReader struct {
// contains filtered or unexported fields
}
GetFirmwaresReader is a Reader for the GetFirmwares structure.
func (*GetFirmwaresReader) ReadResponse ¶
func (o *GetFirmwaresReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetFirmwaresUnauthorized ¶
type GetFirmwaresUnauthorized struct {
}GetFirmwaresUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewGetFirmwaresUnauthorized ¶
func NewGetFirmwaresUnauthorized() *GetFirmwaresUnauthorized
NewGetFirmwaresUnauthorized creates a GetFirmwaresUnauthorized with default headers values
func (*GetFirmwaresUnauthorized) Error ¶
func (o *GetFirmwaresUnauthorized) Error() string
func (*GetFirmwaresUnauthorized) GetPayload ¶
func (o *GetFirmwaresUnauthorized) GetPayload() *models.Error
type PostFirmwaresDeleteForbidden ¶
PostFirmwaresDeleteForbidden describes a response with status code 403, with default header values.
Forbidden
func NewPostFirmwaresDeleteForbidden ¶
func NewPostFirmwaresDeleteForbidden() *PostFirmwaresDeleteForbidden
NewPostFirmwaresDeleteForbidden creates a PostFirmwaresDeleteForbidden with default headers values
func (*PostFirmwaresDeleteForbidden) Error ¶
func (o *PostFirmwaresDeleteForbidden) Error() string
func (*PostFirmwaresDeleteForbidden) GetPayload ¶
func (o *PostFirmwaresDeleteForbidden) GetPayload() *models.Error
type PostFirmwaresDeleteInternalServerError ¶
PostFirmwaresDeleteInternalServerError describes a response with status code 500, with default header values.
Internal Server Error
func NewPostFirmwaresDeleteInternalServerError ¶
func NewPostFirmwaresDeleteInternalServerError() *PostFirmwaresDeleteInternalServerError
NewPostFirmwaresDeleteInternalServerError creates a PostFirmwaresDeleteInternalServerError with default headers values
func (*PostFirmwaresDeleteInternalServerError) Error ¶
func (o *PostFirmwaresDeleteInternalServerError) Error() string
func (*PostFirmwaresDeleteInternalServerError) GetPayload ¶
func (o *PostFirmwaresDeleteInternalServerError) GetPayload() *models.Error
type PostFirmwaresDeleteOK ¶
type PostFirmwaresDeleteOK struct {
Payload models.ListOfFirmwares
}
PostFirmwaresDeleteOK describes a response with status code 200, with default header values.
Successful
func NewPostFirmwaresDeleteOK ¶
func NewPostFirmwaresDeleteOK() *PostFirmwaresDeleteOK
NewPostFirmwaresDeleteOK creates a PostFirmwaresDeleteOK with default headers values
func (*PostFirmwaresDeleteOK) Error ¶
func (o *PostFirmwaresDeleteOK) Error() string
func (*PostFirmwaresDeleteOK) GetPayload ¶
func (o *PostFirmwaresDeleteOK) GetPayload() models.ListOfFirmwares
type PostFirmwaresDeleteParams ¶
type PostFirmwaresDeleteParams struct { // Body. Body models.ListOfFirmwareIds Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PostFirmwaresDeleteParams contains all the parameters to send to the API endpoint
for the post firmwares delete operation. Typically these are written to a http.Request.
func NewPostFirmwaresDeleteParams ¶
func NewPostFirmwaresDeleteParams() *PostFirmwaresDeleteParams
NewPostFirmwaresDeleteParams creates a new PostFirmwaresDeleteParams 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 NewPostFirmwaresDeleteParamsWithContext ¶
func NewPostFirmwaresDeleteParamsWithContext(ctx context.Context) *PostFirmwaresDeleteParams
NewPostFirmwaresDeleteParamsWithContext creates a new PostFirmwaresDeleteParams object with the ability to set a context for a request.
func NewPostFirmwaresDeleteParamsWithHTTPClient ¶
func NewPostFirmwaresDeleteParamsWithHTTPClient(client *http.Client) *PostFirmwaresDeleteParams
NewPostFirmwaresDeleteParamsWithHTTPClient creates a new PostFirmwaresDeleteParams object with the ability to set a custom HTTPClient for a request.
func NewPostFirmwaresDeleteParamsWithTimeout ¶
func NewPostFirmwaresDeleteParamsWithTimeout(timeout time.Duration) *PostFirmwaresDeleteParams
NewPostFirmwaresDeleteParamsWithTimeout creates a new PostFirmwaresDeleteParams object with the ability to set a timeout on a request.
func (*PostFirmwaresDeleteParams) SetBody ¶
func (o *PostFirmwaresDeleteParams) SetBody(body models.ListOfFirmwareIds)
SetBody adds the body to the post firmwares delete params
func (*PostFirmwaresDeleteParams) SetContext ¶
func (o *PostFirmwaresDeleteParams) SetContext(ctx context.Context)
SetContext adds the context to the post firmwares delete params
func (*PostFirmwaresDeleteParams) SetDefaults ¶
func (o *PostFirmwaresDeleteParams) SetDefaults()
SetDefaults hydrates default values in the post firmwares delete params (not the query body).
All values with no default are reset to their zero value.
func (*PostFirmwaresDeleteParams) SetHTTPClient ¶
func (o *PostFirmwaresDeleteParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post firmwares delete params
func (*PostFirmwaresDeleteParams) SetTimeout ¶
func (o *PostFirmwaresDeleteParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post firmwares delete params
func (*PostFirmwaresDeleteParams) WithBody ¶
func (o *PostFirmwaresDeleteParams) WithBody(body models.ListOfFirmwareIds) *PostFirmwaresDeleteParams
WithBody adds the body to the post firmwares delete params
func (*PostFirmwaresDeleteParams) WithContext ¶
func (o *PostFirmwaresDeleteParams) WithContext(ctx context.Context) *PostFirmwaresDeleteParams
WithContext adds the context to the post firmwares delete params
func (*PostFirmwaresDeleteParams) WithDefaults ¶
func (o *PostFirmwaresDeleteParams) WithDefaults() *PostFirmwaresDeleteParams
WithDefaults hydrates default values in the post firmwares delete params (not the query body).
All values with no default are reset to their zero value.
func (*PostFirmwaresDeleteParams) WithHTTPClient ¶
func (o *PostFirmwaresDeleteParams) WithHTTPClient(client *http.Client) *PostFirmwaresDeleteParams
WithHTTPClient adds the HTTPClient to the post firmwares delete params
func (*PostFirmwaresDeleteParams) WithTimeout ¶
func (o *PostFirmwaresDeleteParams) WithTimeout(timeout time.Duration) *PostFirmwaresDeleteParams
WithTimeout adds the timeout to the post firmwares delete params
func (*PostFirmwaresDeleteParams) WriteToRequest ¶
func (o *PostFirmwaresDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostFirmwaresDeleteReader ¶
type PostFirmwaresDeleteReader struct {
// contains filtered or unexported fields
}
PostFirmwaresDeleteReader is a Reader for the PostFirmwaresDelete structure.
func (*PostFirmwaresDeleteReader) ReadResponse ¶
func (o *PostFirmwaresDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostFirmwaresDeleteUnauthorized ¶
type PostFirmwaresDeleteUnauthorized struct {
}PostFirmwaresDeleteUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewPostFirmwaresDeleteUnauthorized ¶
func NewPostFirmwaresDeleteUnauthorized() *PostFirmwaresDeleteUnauthorized
NewPostFirmwaresDeleteUnauthorized creates a PostFirmwaresDeleteUnauthorized with default headers values
func (*PostFirmwaresDeleteUnauthorized) Error ¶
func (o *PostFirmwaresDeleteUnauthorized) Error() string
func (*PostFirmwaresDeleteUnauthorized) GetPayload ¶
func (o *PostFirmwaresDeleteUnauthorized) GetPayload() *models.Error
type PostFirmwaresDownloadForbidden ¶
PostFirmwaresDownloadForbidden describes a response with status code 403, with default header values.
Forbidden
func NewPostFirmwaresDownloadForbidden ¶
func NewPostFirmwaresDownloadForbidden() *PostFirmwaresDownloadForbidden
NewPostFirmwaresDownloadForbidden creates a PostFirmwaresDownloadForbidden with default headers values
func (*PostFirmwaresDownloadForbidden) Error ¶
func (o *PostFirmwaresDownloadForbidden) Error() string
func (*PostFirmwaresDownloadForbidden) GetPayload ¶
func (o *PostFirmwaresDownloadForbidden) GetPayload() *models.Error
type PostFirmwaresDownloadInternalServerError ¶
PostFirmwaresDownloadInternalServerError describes a response with status code 500, with default header values.
Internal Server Error
func NewPostFirmwaresDownloadInternalServerError ¶
func NewPostFirmwaresDownloadInternalServerError() *PostFirmwaresDownloadInternalServerError
NewPostFirmwaresDownloadInternalServerError creates a PostFirmwaresDownloadInternalServerError with default headers values
func (*PostFirmwaresDownloadInternalServerError) Error ¶
func (o *PostFirmwaresDownloadInternalServerError) Error() string
func (*PostFirmwaresDownloadInternalServerError) GetPayload ¶
func (o *PostFirmwaresDownloadInternalServerError) GetPayload() *models.Error
type PostFirmwaresDownloadOK ¶
type PostFirmwaresDownloadOK struct {
Payload models.ListOfFirmwares
}
PostFirmwaresDownloadOK describes a response with status code 200, with default header values.
Successful
func NewPostFirmwaresDownloadOK ¶
func NewPostFirmwaresDownloadOK() *PostFirmwaresDownloadOK
NewPostFirmwaresDownloadOK creates a PostFirmwaresDownloadOK with default headers values
func (*PostFirmwaresDownloadOK) Error ¶
func (o *PostFirmwaresDownloadOK) Error() string
func (*PostFirmwaresDownloadOK) GetPayload ¶
func (o *PostFirmwaresDownloadOK) GetPayload() models.ListOfFirmwares
type PostFirmwaresDownloadParams ¶
type PostFirmwaresDownloadParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PostFirmwaresDownloadParams contains all the parameters to send to the API endpoint
for the post firmwares download operation. Typically these are written to a http.Request.
func NewPostFirmwaresDownloadParams ¶
func NewPostFirmwaresDownloadParams() *PostFirmwaresDownloadParams
NewPostFirmwaresDownloadParams creates a new PostFirmwaresDownloadParams 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 NewPostFirmwaresDownloadParamsWithContext ¶
func NewPostFirmwaresDownloadParamsWithContext(ctx context.Context) *PostFirmwaresDownloadParams
NewPostFirmwaresDownloadParamsWithContext creates a new PostFirmwaresDownloadParams object with the ability to set a context for a request.
func NewPostFirmwaresDownloadParamsWithHTTPClient ¶
func NewPostFirmwaresDownloadParamsWithHTTPClient(client *http.Client) *PostFirmwaresDownloadParams
NewPostFirmwaresDownloadParamsWithHTTPClient creates a new PostFirmwaresDownloadParams object with the ability to set a custom HTTPClient for a request.
func NewPostFirmwaresDownloadParamsWithTimeout ¶
func NewPostFirmwaresDownloadParamsWithTimeout(timeout time.Duration) *PostFirmwaresDownloadParams
NewPostFirmwaresDownloadParamsWithTimeout creates a new PostFirmwaresDownloadParams object with the ability to set a timeout on a request.
func (*PostFirmwaresDownloadParams) SetContext ¶
func (o *PostFirmwaresDownloadParams) SetContext(ctx context.Context)
SetContext adds the context to the post firmwares download params
func (*PostFirmwaresDownloadParams) SetDefaults ¶
func (o *PostFirmwaresDownloadParams) SetDefaults()
SetDefaults hydrates default values in the post firmwares download params (not the query body).
All values with no default are reset to their zero value.
func (*PostFirmwaresDownloadParams) SetHTTPClient ¶
func (o *PostFirmwaresDownloadParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post firmwares download params
func (*PostFirmwaresDownloadParams) SetTimeout ¶
func (o *PostFirmwaresDownloadParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post firmwares download params
func (*PostFirmwaresDownloadParams) WithContext ¶
func (o *PostFirmwaresDownloadParams) WithContext(ctx context.Context) *PostFirmwaresDownloadParams
WithContext adds the context to the post firmwares download params
func (*PostFirmwaresDownloadParams) WithDefaults ¶
func (o *PostFirmwaresDownloadParams) WithDefaults() *PostFirmwaresDownloadParams
WithDefaults hydrates default values in the post firmwares download params (not the query body).
All values with no default are reset to their zero value.
func (*PostFirmwaresDownloadParams) WithHTTPClient ¶
func (o *PostFirmwaresDownloadParams) WithHTTPClient(client *http.Client) *PostFirmwaresDownloadParams
WithHTTPClient adds the HTTPClient to the post firmwares download params
func (*PostFirmwaresDownloadParams) WithTimeout ¶
func (o *PostFirmwaresDownloadParams) WithTimeout(timeout time.Duration) *PostFirmwaresDownloadParams
WithTimeout adds the timeout to the post firmwares download params
func (*PostFirmwaresDownloadParams) WriteToRequest ¶
func (o *PostFirmwaresDownloadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostFirmwaresDownloadReader ¶
type PostFirmwaresDownloadReader struct {
// contains filtered or unexported fields
}
PostFirmwaresDownloadReader is a Reader for the PostFirmwaresDownload structure.
func (*PostFirmwaresDownloadReader) ReadResponse ¶
func (o *PostFirmwaresDownloadReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostFirmwaresDownloadUnauthorized ¶
type PostFirmwaresDownloadUnauthorized struct {
}PostFirmwaresDownloadUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewPostFirmwaresDownloadUnauthorized ¶
func NewPostFirmwaresDownloadUnauthorized() *PostFirmwaresDownloadUnauthorized
NewPostFirmwaresDownloadUnauthorized creates a PostFirmwaresDownloadUnauthorized with default headers values
func (*PostFirmwaresDownloadUnauthorized) Error ¶
func (o *PostFirmwaresDownloadUnauthorized) Error() string
func (*PostFirmwaresDownloadUnauthorized) GetPayload ¶
func (o *PostFirmwaresDownloadUnauthorized) GetPayload() *models.Error
type PostFirmwaresForbidden ¶
PostFirmwaresForbidden describes a response with status code 403, with default header values.
Forbidden
func NewPostFirmwaresForbidden ¶
func NewPostFirmwaresForbidden() *PostFirmwaresForbidden
NewPostFirmwaresForbidden creates a PostFirmwaresForbidden with default headers values
func (*PostFirmwaresForbidden) Error ¶
func (o *PostFirmwaresForbidden) Error() string
func (*PostFirmwaresForbidden) GetPayload ¶
func (o *PostFirmwaresForbidden) GetPayload() *models.Error
type PostFirmwaresInternalServerError ¶
PostFirmwaresInternalServerError describes a response with status code 500, with default header values.
Internal Server Error
func NewPostFirmwaresInternalServerError ¶
func NewPostFirmwaresInternalServerError() *PostFirmwaresInternalServerError
NewPostFirmwaresInternalServerError creates a PostFirmwaresInternalServerError with default headers values
func (*PostFirmwaresInternalServerError) Error ¶
func (o *PostFirmwaresInternalServerError) Error() string
func (*PostFirmwaresInternalServerError) GetPayload ¶
func (o *PostFirmwaresInternalServerError) GetPayload() *models.Error
type PostFirmwaresOK ¶
PostFirmwaresOK describes a response with status code 200, with default header values.
Successful
func NewPostFirmwaresOK ¶
func NewPostFirmwaresOK() *PostFirmwaresOK
NewPostFirmwaresOK creates a PostFirmwaresOK with default headers values
func (*PostFirmwaresOK) Error ¶
func (o *PostFirmwaresOK) Error() string
func (*PostFirmwaresOK) GetPayload ¶
func (o *PostFirmwaresOK) GetPayload() *models.Firmware
type PostFirmwaresParams ¶
type PostFirmwaresParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PostFirmwaresParams contains all the parameters to send to the API endpoint
for the post firmwares operation. Typically these are written to a http.Request.
func NewPostFirmwaresParams ¶
func NewPostFirmwaresParams() *PostFirmwaresParams
NewPostFirmwaresParams creates a new PostFirmwaresParams 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 NewPostFirmwaresParamsWithContext ¶
func NewPostFirmwaresParamsWithContext(ctx context.Context) *PostFirmwaresParams
NewPostFirmwaresParamsWithContext creates a new PostFirmwaresParams object with the ability to set a context for a request.
func NewPostFirmwaresParamsWithHTTPClient ¶
func NewPostFirmwaresParamsWithHTTPClient(client *http.Client) *PostFirmwaresParams
NewPostFirmwaresParamsWithHTTPClient creates a new PostFirmwaresParams object with the ability to set a custom HTTPClient for a request.
func NewPostFirmwaresParamsWithTimeout ¶
func NewPostFirmwaresParamsWithTimeout(timeout time.Duration) *PostFirmwaresParams
NewPostFirmwaresParamsWithTimeout creates a new PostFirmwaresParams object with the ability to set a timeout on a request.
func (*PostFirmwaresParams) SetContext ¶
func (o *PostFirmwaresParams) SetContext(ctx context.Context)
SetContext adds the context to the post firmwares params
func (*PostFirmwaresParams) SetDefaults ¶
func (o *PostFirmwaresParams) SetDefaults()
SetDefaults hydrates default values in the post firmwares params (not the query body).
All values with no default are reset to their zero value.
func (*PostFirmwaresParams) SetHTTPClient ¶
func (o *PostFirmwaresParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post firmwares params
func (*PostFirmwaresParams) SetTimeout ¶
func (o *PostFirmwaresParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post firmwares params
func (*PostFirmwaresParams) WithContext ¶
func (o *PostFirmwaresParams) WithContext(ctx context.Context) *PostFirmwaresParams
WithContext adds the context to the post firmwares params
func (*PostFirmwaresParams) WithDefaults ¶
func (o *PostFirmwaresParams) WithDefaults() *PostFirmwaresParams
WithDefaults hydrates default values in the post firmwares params (not the query body).
All values with no default are reset to their zero value.
func (*PostFirmwaresParams) WithHTTPClient ¶
func (o *PostFirmwaresParams) WithHTTPClient(client *http.Client) *PostFirmwaresParams
WithHTTPClient adds the HTTPClient to the post firmwares params
func (*PostFirmwaresParams) WithTimeout ¶
func (o *PostFirmwaresParams) WithTimeout(timeout time.Duration) *PostFirmwaresParams
WithTimeout adds the timeout to the post firmwares params
func (*PostFirmwaresParams) WriteToRequest ¶
func (o *PostFirmwaresParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostFirmwaresReader ¶
type PostFirmwaresReader struct {
// contains filtered or unexported fields
}
PostFirmwaresReader is a Reader for the PostFirmwares structure.
func (*PostFirmwaresReader) ReadResponse ¶
func (o *PostFirmwaresReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostFirmwaresUnauthorized ¶
type PostFirmwaresUnauthorized struct {
}PostFirmwaresUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewPostFirmwaresUnauthorized ¶
func NewPostFirmwaresUnauthorized() *PostFirmwaresUnauthorized
NewPostFirmwaresUnauthorized creates a PostFirmwaresUnauthorized with default headers values
func (*PostFirmwaresUnauthorized) Error ¶
func (o *PostFirmwaresUnauthorized) Error() string
func (*PostFirmwaresUnauthorized) GetPayload ¶
func (o *PostFirmwaresUnauthorized) GetPayload() *models.Error