firmware

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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

type GetFirmwaresForbidden struct {
	Payload *models.Error
}
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

type GetFirmwaresInternalServerError struct {
	Payload *models.Error
}
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 (*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

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 {
	Payload *models.Error
}
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

type PostFirmwaresDeleteForbidden struct {
	Payload *models.Error
}
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 (*PostFirmwaresDeleteForbidden) GetPayload

func (o *PostFirmwaresDeleteForbidden) GetPayload() *models.Error

type PostFirmwaresDeleteInternalServerError

type PostFirmwaresDeleteInternalServerError struct {
	Payload *models.Error
}
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 (*PostFirmwaresDeleteInternalServerError) GetPayload

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

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

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

WithBody adds the body to the post firmwares delete params

func (*PostFirmwaresDeleteParams) WithContext

WithContext adds the context to the post firmwares delete params

func (*PostFirmwaresDeleteParams) WithDefaults

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

WithTimeout adds the timeout to the post firmwares delete params

func (*PostFirmwaresDeleteParams) WriteToRequest

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 {
	Payload *models.Error
}
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 (*PostFirmwaresDeleteUnauthorized) GetPayload

func (o *PostFirmwaresDeleteUnauthorized) GetPayload() *models.Error

type PostFirmwaresDownloadForbidden

type PostFirmwaresDownloadForbidden struct {
	Payload *models.Error
}
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 (*PostFirmwaresDownloadForbidden) GetPayload

func (o *PostFirmwaresDownloadForbidden) GetPayload() *models.Error

type PostFirmwaresDownloadInternalServerError

type PostFirmwaresDownloadInternalServerError struct {
	Payload *models.Error
}
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 (*PostFirmwaresDownloadInternalServerError) GetPayload

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

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

WithContext adds the context to the post firmwares download params

func (*PostFirmwaresDownloadParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the post firmwares download params

func (*PostFirmwaresDownloadParams) WithTimeout

WithTimeout adds the timeout to the post firmwares download params

func (*PostFirmwaresDownloadParams) WriteToRequest

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 {
	Payload *models.Error
}
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 (*PostFirmwaresDownloadUnauthorized) GetPayload

type PostFirmwaresForbidden

type PostFirmwaresForbidden struct {
	Payload *models.Error
}
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

type PostFirmwaresInternalServerError struct {
	Payload *models.Error
}
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 (*PostFirmwaresInternalServerError) GetPayload

type PostFirmwaresOK

type PostFirmwaresOK struct {
	Payload *models.Firmware
}
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

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 {
	Payload *models.Error
}
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

Jump to

Keyboard shortcuts

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