Documentation ¶
Index ¶
- func WithContentTypeApplicationJSON(r *runtime.ClientOperation)
- func WithContentTypeMultipartFormData(r *runtime.ClientOperation)
- type Client
- func (a *Client) ListFirmwares(params *ListFirmwaresParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListFirmwaresOK, error)
- func (a *Client) RemoveFirmware(params *RemoveFirmwareParams, authInfo runtime.ClientAuthInfoWriter, ...) (*RemoveFirmwareOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UploadFirmware(params *UploadFirmwareParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UploadFirmwareOK, error)
- type ClientOption
- type ClientService
- type ListFirmwaresDefault
- func (o *ListFirmwaresDefault) Code() int
- func (o *ListFirmwaresDefault) Error() string
- func (o *ListFirmwaresDefault) GetPayload() *httperrors.HTTPErrorResponse
- func (o *ListFirmwaresDefault) IsClientError() bool
- func (o *ListFirmwaresDefault) IsCode(code int) bool
- func (o *ListFirmwaresDefault) IsRedirect() bool
- func (o *ListFirmwaresDefault) IsServerError() bool
- func (o *ListFirmwaresDefault) IsSuccess() bool
- func (o *ListFirmwaresDefault) String() string
- type ListFirmwaresOK
- func (o *ListFirmwaresOK) Code() int
- func (o *ListFirmwaresOK) Error() string
- func (o *ListFirmwaresOK) GetPayload() *models.V1FirmwaresResponse
- func (o *ListFirmwaresOK) IsClientError() bool
- func (o *ListFirmwaresOK) IsCode(code int) bool
- func (o *ListFirmwaresOK) IsRedirect() bool
- func (o *ListFirmwaresOK) IsServerError() bool
- func (o *ListFirmwaresOK) IsSuccess() bool
- func (o *ListFirmwaresOK) String() string
- type ListFirmwaresParams
- func (o *ListFirmwaresParams) SetBoard(board *string)
- func (o *ListFirmwaresParams) SetContext(ctx context.Context)
- func (o *ListFirmwaresParams) SetDefaults()
- func (o *ListFirmwaresParams) SetHTTPClient(client *http.Client)
- func (o *ListFirmwaresParams) SetKind(kind *string)
- func (o *ListFirmwaresParams) SetMachineID(machineID *string)
- func (o *ListFirmwaresParams) SetTimeout(timeout time.Duration)
- func (o *ListFirmwaresParams) SetVendor(vendor *string)
- func (o *ListFirmwaresParams) WithBoard(board *string) *ListFirmwaresParams
- func (o *ListFirmwaresParams) WithContext(ctx context.Context) *ListFirmwaresParams
- func (o *ListFirmwaresParams) WithDefaults() *ListFirmwaresParams
- func (o *ListFirmwaresParams) WithHTTPClient(client *http.Client) *ListFirmwaresParams
- func (o *ListFirmwaresParams) WithKind(kind *string) *ListFirmwaresParams
- func (o *ListFirmwaresParams) WithMachineID(machineID *string) *ListFirmwaresParams
- func (o *ListFirmwaresParams) WithTimeout(timeout time.Duration) *ListFirmwaresParams
- func (o *ListFirmwaresParams) WithVendor(vendor *string) *ListFirmwaresParams
- func (o *ListFirmwaresParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListFirmwaresReader
- type RemoveFirmwareDefault
- func (o *RemoveFirmwareDefault) Code() int
- func (o *RemoveFirmwareDefault) Error() string
- func (o *RemoveFirmwareDefault) GetPayload() *httperrors.HTTPErrorResponse
- func (o *RemoveFirmwareDefault) IsClientError() bool
- func (o *RemoveFirmwareDefault) IsCode(code int) bool
- func (o *RemoveFirmwareDefault) IsRedirect() bool
- func (o *RemoveFirmwareDefault) IsServerError() bool
- func (o *RemoveFirmwareDefault) IsSuccess() bool
- func (o *RemoveFirmwareDefault) String() string
- type RemoveFirmwareOK
- func (o *RemoveFirmwareOK) Code() int
- func (o *RemoveFirmwareOK) Error() string
- func (o *RemoveFirmwareOK) IsClientError() bool
- func (o *RemoveFirmwareOK) IsCode(code int) bool
- func (o *RemoveFirmwareOK) IsRedirect() bool
- func (o *RemoveFirmwareOK) IsServerError() bool
- func (o *RemoveFirmwareOK) IsSuccess() bool
- func (o *RemoveFirmwareOK) String() string
- type RemoveFirmwareParams
- func NewRemoveFirmwareParams() *RemoveFirmwareParams
- func NewRemoveFirmwareParamsWithContext(ctx context.Context) *RemoveFirmwareParams
- func NewRemoveFirmwareParamsWithHTTPClient(client *http.Client) *RemoveFirmwareParams
- func NewRemoveFirmwareParamsWithTimeout(timeout time.Duration) *RemoveFirmwareParams
- func (o *RemoveFirmwareParams) SetBoard(board string)
- func (o *RemoveFirmwareParams) SetBody(body models.V1EmptyBody)
- func (o *RemoveFirmwareParams) SetContext(ctx context.Context)
- func (o *RemoveFirmwareParams) SetDefaults()
- func (o *RemoveFirmwareParams) SetHTTPClient(client *http.Client)
- func (o *RemoveFirmwareParams) SetKind(kind string)
- func (o *RemoveFirmwareParams) SetRevision(revision string)
- func (o *RemoveFirmwareParams) SetTimeout(timeout time.Duration)
- func (o *RemoveFirmwareParams) SetVendor(vendor string)
- func (o *RemoveFirmwareParams) WithBoard(board string) *RemoveFirmwareParams
- func (o *RemoveFirmwareParams) WithBody(body models.V1EmptyBody) *RemoveFirmwareParams
- func (o *RemoveFirmwareParams) WithContext(ctx context.Context) *RemoveFirmwareParams
- func (o *RemoveFirmwareParams) WithDefaults() *RemoveFirmwareParams
- func (o *RemoveFirmwareParams) WithHTTPClient(client *http.Client) *RemoveFirmwareParams
- func (o *RemoveFirmwareParams) WithKind(kind string) *RemoveFirmwareParams
- func (o *RemoveFirmwareParams) WithRevision(revision string) *RemoveFirmwareParams
- func (o *RemoveFirmwareParams) WithTimeout(timeout time.Duration) *RemoveFirmwareParams
- func (o *RemoveFirmwareParams) WithVendor(vendor string) *RemoveFirmwareParams
- func (o *RemoveFirmwareParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RemoveFirmwareReader
- type UploadFirmwareDefault
- func (o *UploadFirmwareDefault) Code() int
- func (o *UploadFirmwareDefault) Error() string
- func (o *UploadFirmwareDefault) GetPayload() *httperrors.HTTPErrorResponse
- func (o *UploadFirmwareDefault) IsClientError() bool
- func (o *UploadFirmwareDefault) IsCode(code int) bool
- func (o *UploadFirmwareDefault) IsRedirect() bool
- func (o *UploadFirmwareDefault) IsServerError() bool
- func (o *UploadFirmwareDefault) IsSuccess() bool
- func (o *UploadFirmwareDefault) String() string
- type UploadFirmwareOK
- func (o *UploadFirmwareOK) Code() int
- func (o *UploadFirmwareOK) Error() string
- func (o *UploadFirmwareOK) IsClientError() bool
- func (o *UploadFirmwareOK) IsCode(code int) bool
- func (o *UploadFirmwareOK) IsRedirect() bool
- func (o *UploadFirmwareOK) IsServerError() bool
- func (o *UploadFirmwareOK) IsSuccess() bool
- func (o *UploadFirmwareOK) String() string
- type UploadFirmwareParams
- func NewUploadFirmwareParams() *UploadFirmwareParams
- func NewUploadFirmwareParamsWithContext(ctx context.Context) *UploadFirmwareParams
- func NewUploadFirmwareParamsWithHTTPClient(client *http.Client) *UploadFirmwareParams
- func NewUploadFirmwareParamsWithTimeout(timeout time.Duration) *UploadFirmwareParams
- func (o *UploadFirmwareParams) SetBoard(board string)
- func (o *UploadFirmwareParams) SetContext(ctx context.Context)
- func (o *UploadFirmwareParams) SetDefaults()
- func (o *UploadFirmwareParams) SetFile(file runtime.NamedReadCloser)
- func (o *UploadFirmwareParams) SetHTTPClient(client *http.Client)
- func (o *UploadFirmwareParams) SetKind(kind string)
- func (o *UploadFirmwareParams) SetRevision(revision string)
- func (o *UploadFirmwareParams) SetTimeout(timeout time.Duration)
- func (o *UploadFirmwareParams) SetVendor(vendor string)
- func (o *UploadFirmwareParams) WithBoard(board string) *UploadFirmwareParams
- func (o *UploadFirmwareParams) WithContext(ctx context.Context) *UploadFirmwareParams
- func (o *UploadFirmwareParams) WithDefaults() *UploadFirmwareParams
- func (o *UploadFirmwareParams) WithFile(file runtime.NamedReadCloser) *UploadFirmwareParams
- func (o *UploadFirmwareParams) WithHTTPClient(client *http.Client) *UploadFirmwareParams
- func (o *UploadFirmwareParams) WithKind(kind string) *UploadFirmwareParams
- func (o *UploadFirmwareParams) WithRevision(revision string) *UploadFirmwareParams
- func (o *UploadFirmwareParams) WithTimeout(timeout time.Duration) *UploadFirmwareParams
- func (o *UploadFirmwareParams) WithVendor(vendor string) *UploadFirmwareParams
- func (o *UploadFirmwareParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UploadFirmwareReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithContentTypeApplicationJSON ¶ added in v0.32.0
func WithContentTypeApplicationJSON(r *runtime.ClientOperation)
WithContentTypeApplicationJSON sets the Content-Type header to "application/json".
func WithContentTypeMultipartFormData ¶ added in v0.32.0
func WithContentTypeMultipartFormData(r *runtime.ClientOperation)
WithContentTypeMultipartFormData sets the Content-Type header to "multipart/form-data".
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for firmware API
func (*Client) ListFirmwares ¶
func (a *Client) ListFirmwares(params *ListFirmwaresParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListFirmwaresOK, error)
ListFirmwares returns all firmwares for a specific machine
func (*Client) RemoveFirmware ¶
func (a *Client) RemoveFirmware(params *RemoveFirmwareParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RemoveFirmwareOK, error)
RemoveFirmware removes given firmware
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UploadFirmware ¶
func (a *Client) UploadFirmware(params *UploadFirmwareParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UploadFirmwareOK, error)
UploadFirmware uploads given firmware
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption may be used to customize the behavior of Client methods.
func WithContentType ¶ added in v0.32.0
func WithContentType(mime string) ClientOption
WithContentType allows the client to force the Content-Type header to negotiate a specific Consumer from the server.
You may use this option to set arbitrary extensions to your MIME media type.
type ClientService ¶
type ClientService interface { ListFirmwares(params *ListFirmwaresParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListFirmwaresOK, error) RemoveFirmware(params *RemoveFirmwareParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RemoveFirmwareOK, error) UploadFirmware(params *UploadFirmwareParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UploadFirmwareOK, 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.
func NewClientWithBasicAuth ¶ added in v0.32.0
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new firmware API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.
func NewClientWithBearerToken ¶ added in v0.32.0
func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService
New creates a new firmware API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.
type ListFirmwaresDefault ¶
type ListFirmwaresDefault struct { Payload *httperrors.HTTPErrorResponse // contains filtered or unexported fields }
ListFirmwaresDefault describes a response with status code -1, with default header values.
Error
func NewListFirmwaresDefault ¶
func NewListFirmwaresDefault(code int) *ListFirmwaresDefault
NewListFirmwaresDefault creates a ListFirmwaresDefault with default headers values
func (*ListFirmwaresDefault) Code ¶
func (o *ListFirmwaresDefault) Code() int
Code gets the status code for the list firmwares default response
func (*ListFirmwaresDefault) Error ¶
func (o *ListFirmwaresDefault) Error() string
func (*ListFirmwaresDefault) GetPayload ¶
func (o *ListFirmwaresDefault) GetPayload() *httperrors.HTTPErrorResponse
func (*ListFirmwaresDefault) IsClientError ¶ added in v0.19.3
func (o *ListFirmwaresDefault) IsClientError() bool
IsClientError returns true when this list firmwares default response has a 4xx status code
func (*ListFirmwaresDefault) IsCode ¶ added in v0.19.3
func (o *ListFirmwaresDefault) IsCode(code int) bool
IsCode returns true when this list firmwares default response a status code equal to that given
func (*ListFirmwaresDefault) IsRedirect ¶ added in v0.19.3
func (o *ListFirmwaresDefault) IsRedirect() bool
IsRedirect returns true when this list firmwares default response has a 3xx status code
func (*ListFirmwaresDefault) IsServerError ¶ added in v0.19.3
func (o *ListFirmwaresDefault) IsServerError() bool
IsServerError returns true when this list firmwares default response has a 5xx status code
func (*ListFirmwaresDefault) IsSuccess ¶ added in v0.19.3
func (o *ListFirmwaresDefault) IsSuccess() bool
IsSuccess returns true when this list firmwares default response has a 2xx status code
func (*ListFirmwaresDefault) String ¶ added in v0.19.3
func (o *ListFirmwaresDefault) String() string
type ListFirmwaresOK ¶
type ListFirmwaresOK struct {
Payload *models.V1FirmwaresResponse
}
ListFirmwaresOK describes a response with status code 200, with default header values.
OK
func NewListFirmwaresOK ¶
func NewListFirmwaresOK() *ListFirmwaresOK
NewListFirmwaresOK creates a ListFirmwaresOK with default headers values
func (*ListFirmwaresOK) Code ¶ added in v0.22.1
func (o *ListFirmwaresOK) Code() int
Code gets the status code for the list firmwares o k response
func (*ListFirmwaresOK) Error ¶
func (o *ListFirmwaresOK) Error() string
func (*ListFirmwaresOK) GetPayload ¶
func (o *ListFirmwaresOK) GetPayload() *models.V1FirmwaresResponse
func (*ListFirmwaresOK) IsClientError ¶ added in v0.19.3
func (o *ListFirmwaresOK) IsClientError() bool
IsClientError returns true when this list firmwares o k response has a 4xx status code
func (*ListFirmwaresOK) IsCode ¶ added in v0.19.3
func (o *ListFirmwaresOK) IsCode(code int) bool
IsCode returns true when this list firmwares o k response a status code equal to that given
func (*ListFirmwaresOK) IsRedirect ¶ added in v0.19.3
func (o *ListFirmwaresOK) IsRedirect() bool
IsRedirect returns true when this list firmwares o k response has a 3xx status code
func (*ListFirmwaresOK) IsServerError ¶ added in v0.19.3
func (o *ListFirmwaresOK) IsServerError() bool
IsServerError returns true when this list firmwares o k response has a 5xx status code
func (*ListFirmwaresOK) IsSuccess ¶ added in v0.19.3
func (o *ListFirmwaresOK) IsSuccess() bool
IsSuccess returns true when this list firmwares o k response has a 2xx status code
func (*ListFirmwaresOK) String ¶ added in v0.19.3
func (o *ListFirmwaresOK) String() string
type ListFirmwaresParams ¶
type ListFirmwaresParams struct { /* Board. the board */ Board *string /* Kind. the firmware kind [bios|bmc] */ Kind *string /* MachineID. restrict firmwares to the given machine */ MachineID *string /* Vendor. the vendor */ Vendor *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListFirmwaresParams contains all the parameters to send to the API endpoint
for the list firmwares operation. Typically these are written to a http.Request.
func NewListFirmwaresParams ¶
func NewListFirmwaresParams() *ListFirmwaresParams
NewListFirmwaresParams creates a new ListFirmwaresParams 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 NewListFirmwaresParamsWithContext ¶
func NewListFirmwaresParamsWithContext(ctx context.Context) *ListFirmwaresParams
NewListFirmwaresParamsWithContext creates a new ListFirmwaresParams object with the ability to set a context for a request.
func NewListFirmwaresParamsWithHTTPClient ¶
func NewListFirmwaresParamsWithHTTPClient(client *http.Client) *ListFirmwaresParams
NewListFirmwaresParamsWithHTTPClient creates a new ListFirmwaresParams object with the ability to set a custom HTTPClient for a request.
func NewListFirmwaresParamsWithTimeout ¶
func NewListFirmwaresParamsWithTimeout(timeout time.Duration) *ListFirmwaresParams
NewListFirmwaresParamsWithTimeout creates a new ListFirmwaresParams object with the ability to set a timeout on a request.
func (*ListFirmwaresParams) SetBoard ¶
func (o *ListFirmwaresParams) SetBoard(board *string)
SetBoard adds the board to the list firmwares params
func (*ListFirmwaresParams) SetContext ¶
func (o *ListFirmwaresParams) SetContext(ctx context.Context)
SetContext adds the context to the list firmwares params
func (*ListFirmwaresParams) SetDefaults ¶
func (o *ListFirmwaresParams) SetDefaults()
SetDefaults hydrates default values in the list firmwares params (not the query body).
All values with no default are reset to their zero value.
func (*ListFirmwaresParams) SetHTTPClient ¶
func (o *ListFirmwaresParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list firmwares params
func (*ListFirmwaresParams) SetKind ¶
func (o *ListFirmwaresParams) SetKind(kind *string)
SetKind adds the kind to the list firmwares params
func (*ListFirmwaresParams) SetMachineID ¶
func (o *ListFirmwaresParams) SetMachineID(machineID *string)
SetMachineID adds the machineId to the list firmwares params
func (*ListFirmwaresParams) SetTimeout ¶
func (o *ListFirmwaresParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list firmwares params
func (*ListFirmwaresParams) SetVendor ¶
func (o *ListFirmwaresParams) SetVendor(vendor *string)
SetVendor adds the vendor to the list firmwares params
func (*ListFirmwaresParams) WithBoard ¶
func (o *ListFirmwaresParams) WithBoard(board *string) *ListFirmwaresParams
WithBoard adds the board to the list firmwares params
func (*ListFirmwaresParams) WithContext ¶
func (o *ListFirmwaresParams) WithContext(ctx context.Context) *ListFirmwaresParams
WithContext adds the context to the list firmwares params
func (*ListFirmwaresParams) WithDefaults ¶
func (o *ListFirmwaresParams) WithDefaults() *ListFirmwaresParams
WithDefaults hydrates default values in the list firmwares params (not the query body).
All values with no default are reset to their zero value.
func (*ListFirmwaresParams) WithHTTPClient ¶
func (o *ListFirmwaresParams) WithHTTPClient(client *http.Client) *ListFirmwaresParams
WithHTTPClient adds the HTTPClient to the list firmwares params
func (*ListFirmwaresParams) WithKind ¶
func (o *ListFirmwaresParams) WithKind(kind *string) *ListFirmwaresParams
WithKind adds the kind to the list firmwares params
func (*ListFirmwaresParams) WithMachineID ¶
func (o *ListFirmwaresParams) WithMachineID(machineID *string) *ListFirmwaresParams
WithMachineID adds the machineID to the list firmwares params
func (*ListFirmwaresParams) WithTimeout ¶
func (o *ListFirmwaresParams) WithTimeout(timeout time.Duration) *ListFirmwaresParams
WithTimeout adds the timeout to the list firmwares params
func (*ListFirmwaresParams) WithVendor ¶
func (o *ListFirmwaresParams) WithVendor(vendor *string) *ListFirmwaresParams
WithVendor adds the vendor to the list firmwares params
func (*ListFirmwaresParams) WriteToRequest ¶
func (o *ListFirmwaresParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListFirmwaresReader ¶
type ListFirmwaresReader struct {
// contains filtered or unexported fields
}
ListFirmwaresReader is a Reader for the ListFirmwares structure.
func (*ListFirmwaresReader) ReadResponse ¶
func (o *ListFirmwaresReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RemoveFirmwareDefault ¶
type RemoveFirmwareDefault struct { Payload *httperrors.HTTPErrorResponse // contains filtered or unexported fields }
RemoveFirmwareDefault describes a response with status code -1, with default header values.
Error
func NewRemoveFirmwareDefault ¶
func NewRemoveFirmwareDefault(code int) *RemoveFirmwareDefault
NewRemoveFirmwareDefault creates a RemoveFirmwareDefault with default headers values
func (*RemoveFirmwareDefault) Code ¶
func (o *RemoveFirmwareDefault) Code() int
Code gets the status code for the remove firmware default response
func (*RemoveFirmwareDefault) Error ¶
func (o *RemoveFirmwareDefault) Error() string
func (*RemoveFirmwareDefault) GetPayload ¶
func (o *RemoveFirmwareDefault) GetPayload() *httperrors.HTTPErrorResponse
func (*RemoveFirmwareDefault) IsClientError ¶ added in v0.19.3
func (o *RemoveFirmwareDefault) IsClientError() bool
IsClientError returns true when this remove firmware default response has a 4xx status code
func (*RemoveFirmwareDefault) IsCode ¶ added in v0.19.3
func (o *RemoveFirmwareDefault) IsCode(code int) bool
IsCode returns true when this remove firmware default response a status code equal to that given
func (*RemoveFirmwareDefault) IsRedirect ¶ added in v0.19.3
func (o *RemoveFirmwareDefault) IsRedirect() bool
IsRedirect returns true when this remove firmware default response has a 3xx status code
func (*RemoveFirmwareDefault) IsServerError ¶ added in v0.19.3
func (o *RemoveFirmwareDefault) IsServerError() bool
IsServerError returns true when this remove firmware default response has a 5xx status code
func (*RemoveFirmwareDefault) IsSuccess ¶ added in v0.19.3
func (o *RemoveFirmwareDefault) IsSuccess() bool
IsSuccess returns true when this remove firmware default response has a 2xx status code
func (*RemoveFirmwareDefault) String ¶ added in v0.19.3
func (o *RemoveFirmwareDefault) String() string
type RemoveFirmwareOK ¶
type RemoveFirmwareOK struct { }
RemoveFirmwareOK describes a response with status code 200, with default header values.
OK
func NewRemoveFirmwareOK ¶
func NewRemoveFirmwareOK() *RemoveFirmwareOK
NewRemoveFirmwareOK creates a RemoveFirmwareOK with default headers values
func (*RemoveFirmwareOK) Code ¶ added in v0.22.1
func (o *RemoveFirmwareOK) Code() int
Code gets the status code for the remove firmware o k response
func (*RemoveFirmwareOK) Error ¶
func (o *RemoveFirmwareOK) Error() string
func (*RemoveFirmwareOK) IsClientError ¶ added in v0.19.3
func (o *RemoveFirmwareOK) IsClientError() bool
IsClientError returns true when this remove firmware o k response has a 4xx status code
func (*RemoveFirmwareOK) IsCode ¶ added in v0.19.3
func (o *RemoveFirmwareOK) IsCode(code int) bool
IsCode returns true when this remove firmware o k response a status code equal to that given
func (*RemoveFirmwareOK) IsRedirect ¶ added in v0.19.3
func (o *RemoveFirmwareOK) IsRedirect() bool
IsRedirect returns true when this remove firmware o k response has a 3xx status code
func (*RemoveFirmwareOK) IsServerError ¶ added in v0.19.3
func (o *RemoveFirmwareOK) IsServerError() bool
IsServerError returns true when this remove firmware o k response has a 5xx status code
func (*RemoveFirmwareOK) IsSuccess ¶ added in v0.19.3
func (o *RemoveFirmwareOK) IsSuccess() bool
IsSuccess returns true when this remove firmware o k response has a 2xx status code
func (*RemoveFirmwareOK) String ¶ added in v0.19.3
func (o *RemoveFirmwareOK) String() string
type RemoveFirmwareParams ¶
type RemoveFirmwareParams struct { /* Board. the board */ Board string // Body. Body models.V1EmptyBody /* Kind. the firmware kind [bios|bmc] */ Kind string /* Revision. the firmware revision */ Revision string /* Vendor. the vendor */ Vendor string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RemoveFirmwareParams contains all the parameters to send to the API endpoint
for the remove firmware operation. Typically these are written to a http.Request.
func NewRemoveFirmwareParams ¶
func NewRemoveFirmwareParams() *RemoveFirmwareParams
NewRemoveFirmwareParams creates a new RemoveFirmwareParams 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 NewRemoveFirmwareParamsWithContext ¶
func NewRemoveFirmwareParamsWithContext(ctx context.Context) *RemoveFirmwareParams
NewRemoveFirmwareParamsWithContext creates a new RemoveFirmwareParams object with the ability to set a context for a request.
func NewRemoveFirmwareParamsWithHTTPClient ¶
func NewRemoveFirmwareParamsWithHTTPClient(client *http.Client) *RemoveFirmwareParams
NewRemoveFirmwareParamsWithHTTPClient creates a new RemoveFirmwareParams object with the ability to set a custom HTTPClient for a request.
func NewRemoveFirmwareParamsWithTimeout ¶
func NewRemoveFirmwareParamsWithTimeout(timeout time.Duration) *RemoveFirmwareParams
NewRemoveFirmwareParamsWithTimeout creates a new RemoveFirmwareParams object with the ability to set a timeout on a request.
func (*RemoveFirmwareParams) SetBoard ¶
func (o *RemoveFirmwareParams) SetBoard(board string)
SetBoard adds the board to the remove firmware params
func (*RemoveFirmwareParams) SetBody ¶
func (o *RemoveFirmwareParams) SetBody(body models.V1EmptyBody)
SetBody adds the body to the remove firmware params
func (*RemoveFirmwareParams) SetContext ¶
func (o *RemoveFirmwareParams) SetContext(ctx context.Context)
SetContext adds the context to the remove firmware params
func (*RemoveFirmwareParams) SetDefaults ¶
func (o *RemoveFirmwareParams) SetDefaults()
SetDefaults hydrates default values in the remove firmware params (not the query body).
All values with no default are reset to their zero value.
func (*RemoveFirmwareParams) SetHTTPClient ¶
func (o *RemoveFirmwareParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the remove firmware params
func (*RemoveFirmwareParams) SetKind ¶
func (o *RemoveFirmwareParams) SetKind(kind string)
SetKind adds the kind to the remove firmware params
func (*RemoveFirmwareParams) SetRevision ¶
func (o *RemoveFirmwareParams) SetRevision(revision string)
SetRevision adds the revision to the remove firmware params
func (*RemoveFirmwareParams) SetTimeout ¶
func (o *RemoveFirmwareParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the remove firmware params
func (*RemoveFirmwareParams) SetVendor ¶
func (o *RemoveFirmwareParams) SetVendor(vendor string)
SetVendor adds the vendor to the remove firmware params
func (*RemoveFirmwareParams) WithBoard ¶
func (o *RemoveFirmwareParams) WithBoard(board string) *RemoveFirmwareParams
WithBoard adds the board to the remove firmware params
func (*RemoveFirmwareParams) WithBody ¶
func (o *RemoveFirmwareParams) WithBody(body models.V1EmptyBody) *RemoveFirmwareParams
WithBody adds the body to the remove firmware params
func (*RemoveFirmwareParams) WithContext ¶
func (o *RemoveFirmwareParams) WithContext(ctx context.Context) *RemoveFirmwareParams
WithContext adds the context to the remove firmware params
func (*RemoveFirmwareParams) WithDefaults ¶
func (o *RemoveFirmwareParams) WithDefaults() *RemoveFirmwareParams
WithDefaults hydrates default values in the remove firmware params (not the query body).
All values with no default are reset to their zero value.
func (*RemoveFirmwareParams) WithHTTPClient ¶
func (o *RemoveFirmwareParams) WithHTTPClient(client *http.Client) *RemoveFirmwareParams
WithHTTPClient adds the HTTPClient to the remove firmware params
func (*RemoveFirmwareParams) WithKind ¶
func (o *RemoveFirmwareParams) WithKind(kind string) *RemoveFirmwareParams
WithKind adds the kind to the remove firmware params
func (*RemoveFirmwareParams) WithRevision ¶
func (o *RemoveFirmwareParams) WithRevision(revision string) *RemoveFirmwareParams
WithRevision adds the revision to the remove firmware params
func (*RemoveFirmwareParams) WithTimeout ¶
func (o *RemoveFirmwareParams) WithTimeout(timeout time.Duration) *RemoveFirmwareParams
WithTimeout adds the timeout to the remove firmware params
func (*RemoveFirmwareParams) WithVendor ¶
func (o *RemoveFirmwareParams) WithVendor(vendor string) *RemoveFirmwareParams
WithVendor adds the vendor to the remove firmware params
func (*RemoveFirmwareParams) WriteToRequest ¶
func (o *RemoveFirmwareParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RemoveFirmwareReader ¶
type RemoveFirmwareReader struct {
// contains filtered or unexported fields
}
RemoveFirmwareReader is a Reader for the RemoveFirmware structure.
func (*RemoveFirmwareReader) ReadResponse ¶
func (o *RemoveFirmwareReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UploadFirmwareDefault ¶
type UploadFirmwareDefault struct { Payload *httperrors.HTTPErrorResponse // contains filtered or unexported fields }
UploadFirmwareDefault describes a response with status code -1, with default header values.
Error
func NewUploadFirmwareDefault ¶
func NewUploadFirmwareDefault(code int) *UploadFirmwareDefault
NewUploadFirmwareDefault creates a UploadFirmwareDefault with default headers values
func (*UploadFirmwareDefault) Code ¶
func (o *UploadFirmwareDefault) Code() int
Code gets the status code for the upload firmware default response
func (*UploadFirmwareDefault) Error ¶
func (o *UploadFirmwareDefault) Error() string
func (*UploadFirmwareDefault) GetPayload ¶
func (o *UploadFirmwareDefault) GetPayload() *httperrors.HTTPErrorResponse
func (*UploadFirmwareDefault) IsClientError ¶ added in v0.19.3
func (o *UploadFirmwareDefault) IsClientError() bool
IsClientError returns true when this upload firmware default response has a 4xx status code
func (*UploadFirmwareDefault) IsCode ¶ added in v0.19.3
func (o *UploadFirmwareDefault) IsCode(code int) bool
IsCode returns true when this upload firmware default response a status code equal to that given
func (*UploadFirmwareDefault) IsRedirect ¶ added in v0.19.3
func (o *UploadFirmwareDefault) IsRedirect() bool
IsRedirect returns true when this upload firmware default response has a 3xx status code
func (*UploadFirmwareDefault) IsServerError ¶ added in v0.19.3
func (o *UploadFirmwareDefault) IsServerError() bool
IsServerError returns true when this upload firmware default response has a 5xx status code
func (*UploadFirmwareDefault) IsSuccess ¶ added in v0.19.3
func (o *UploadFirmwareDefault) IsSuccess() bool
IsSuccess returns true when this upload firmware default response has a 2xx status code
func (*UploadFirmwareDefault) String ¶ added in v0.19.3
func (o *UploadFirmwareDefault) String() string
type UploadFirmwareOK ¶
type UploadFirmwareOK struct { }
UploadFirmwareOK describes a response with status code 200, with default header values.
OK
func NewUploadFirmwareOK ¶
func NewUploadFirmwareOK() *UploadFirmwareOK
NewUploadFirmwareOK creates a UploadFirmwareOK with default headers values
func (*UploadFirmwareOK) Code ¶ added in v0.22.1
func (o *UploadFirmwareOK) Code() int
Code gets the status code for the upload firmware o k response
func (*UploadFirmwareOK) Error ¶
func (o *UploadFirmwareOK) Error() string
func (*UploadFirmwareOK) IsClientError ¶ added in v0.19.3
func (o *UploadFirmwareOK) IsClientError() bool
IsClientError returns true when this upload firmware o k response has a 4xx status code
func (*UploadFirmwareOK) IsCode ¶ added in v0.19.3
func (o *UploadFirmwareOK) IsCode(code int) bool
IsCode returns true when this upload firmware o k response a status code equal to that given
func (*UploadFirmwareOK) IsRedirect ¶ added in v0.19.3
func (o *UploadFirmwareOK) IsRedirect() bool
IsRedirect returns true when this upload firmware o k response has a 3xx status code
func (*UploadFirmwareOK) IsServerError ¶ added in v0.19.3
func (o *UploadFirmwareOK) IsServerError() bool
IsServerError returns true when this upload firmware o k response has a 5xx status code
func (*UploadFirmwareOK) IsSuccess ¶ added in v0.19.3
func (o *UploadFirmwareOK) IsSuccess() bool
IsSuccess returns true when this upload firmware o k response has a 2xx status code
func (*UploadFirmwareOK) String ¶ added in v0.19.3
func (o *UploadFirmwareOK) String() string
type UploadFirmwareParams ¶
type UploadFirmwareParams struct { /* Board. the board */ Board string /* File. the firmware file */ File runtime.NamedReadCloser /* Kind. the firmware kind [bios|bmc] */ Kind string /* Revision. the firmware revision */ Revision string /* Vendor. the vendor */ Vendor string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UploadFirmwareParams contains all the parameters to send to the API endpoint
for the upload firmware operation. Typically these are written to a http.Request.
func NewUploadFirmwareParams ¶
func NewUploadFirmwareParams() *UploadFirmwareParams
NewUploadFirmwareParams creates a new UploadFirmwareParams 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 NewUploadFirmwareParamsWithContext ¶
func NewUploadFirmwareParamsWithContext(ctx context.Context) *UploadFirmwareParams
NewUploadFirmwareParamsWithContext creates a new UploadFirmwareParams object with the ability to set a context for a request.
func NewUploadFirmwareParamsWithHTTPClient ¶
func NewUploadFirmwareParamsWithHTTPClient(client *http.Client) *UploadFirmwareParams
NewUploadFirmwareParamsWithHTTPClient creates a new UploadFirmwareParams object with the ability to set a custom HTTPClient for a request.
func NewUploadFirmwareParamsWithTimeout ¶
func NewUploadFirmwareParamsWithTimeout(timeout time.Duration) *UploadFirmwareParams
NewUploadFirmwareParamsWithTimeout creates a new UploadFirmwareParams object with the ability to set a timeout on a request.
func (*UploadFirmwareParams) SetBoard ¶
func (o *UploadFirmwareParams) SetBoard(board string)
SetBoard adds the board to the upload firmware params
func (*UploadFirmwareParams) SetContext ¶
func (o *UploadFirmwareParams) SetContext(ctx context.Context)
SetContext adds the context to the upload firmware params
func (*UploadFirmwareParams) SetDefaults ¶
func (o *UploadFirmwareParams) SetDefaults()
SetDefaults hydrates default values in the upload firmware params (not the query body).
All values with no default are reset to their zero value.
func (*UploadFirmwareParams) SetFile ¶
func (o *UploadFirmwareParams) SetFile(file runtime.NamedReadCloser)
SetFile adds the file to the upload firmware params
func (*UploadFirmwareParams) SetHTTPClient ¶
func (o *UploadFirmwareParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the upload firmware params
func (*UploadFirmwareParams) SetKind ¶
func (o *UploadFirmwareParams) SetKind(kind string)
SetKind adds the kind to the upload firmware params
func (*UploadFirmwareParams) SetRevision ¶
func (o *UploadFirmwareParams) SetRevision(revision string)
SetRevision adds the revision to the upload firmware params
func (*UploadFirmwareParams) SetTimeout ¶
func (o *UploadFirmwareParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the upload firmware params
func (*UploadFirmwareParams) SetVendor ¶
func (o *UploadFirmwareParams) SetVendor(vendor string)
SetVendor adds the vendor to the upload firmware params
func (*UploadFirmwareParams) WithBoard ¶
func (o *UploadFirmwareParams) WithBoard(board string) *UploadFirmwareParams
WithBoard adds the board to the upload firmware params
func (*UploadFirmwareParams) WithContext ¶
func (o *UploadFirmwareParams) WithContext(ctx context.Context) *UploadFirmwareParams
WithContext adds the context to the upload firmware params
func (*UploadFirmwareParams) WithDefaults ¶
func (o *UploadFirmwareParams) WithDefaults() *UploadFirmwareParams
WithDefaults hydrates default values in the upload firmware params (not the query body).
All values with no default are reset to their zero value.
func (*UploadFirmwareParams) WithFile ¶
func (o *UploadFirmwareParams) WithFile(file runtime.NamedReadCloser) *UploadFirmwareParams
WithFile adds the file to the upload firmware params
func (*UploadFirmwareParams) WithHTTPClient ¶
func (o *UploadFirmwareParams) WithHTTPClient(client *http.Client) *UploadFirmwareParams
WithHTTPClient adds the HTTPClient to the upload firmware params
func (*UploadFirmwareParams) WithKind ¶
func (o *UploadFirmwareParams) WithKind(kind string) *UploadFirmwareParams
WithKind adds the kind to the upload firmware params
func (*UploadFirmwareParams) WithRevision ¶
func (o *UploadFirmwareParams) WithRevision(revision string) *UploadFirmwareParams
WithRevision adds the revision to the upload firmware params
func (*UploadFirmwareParams) WithTimeout ¶
func (o *UploadFirmwareParams) WithTimeout(timeout time.Duration) *UploadFirmwareParams
WithTimeout adds the timeout to the upload firmware params
func (*UploadFirmwareParams) WithVendor ¶
func (o *UploadFirmwareParams) WithVendor(vendor string) *UploadFirmwareParams
WithVendor adds the vendor to the upload firmware params
func (*UploadFirmwareParams) WriteToRequest ¶
func (o *UploadFirmwareParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UploadFirmwareReader ¶
type UploadFirmwareReader struct {
// contains filtered or unexported fields
}
UploadFirmwareReader is a Reader for the UploadFirmware structure.
func (*UploadFirmwareReader) ReadResponse ¶
func (o *UploadFirmwareReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.