Documentation ¶
Index ¶
- type Client
- func (a *Client) DeleteHardwares(params *DeleteHardwaresParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteHardwaresOK, error)
- func (a *Client) GetHardwares(params *GetHardwaresParams, authInfo runtime.ClientAuthInfoWriter) (*GetHardwaresOK, error)
- func (a *Client) PostHardwares(params *PostHardwaresParams, authInfo runtime.ClientAuthInfoWriter) (*PostHardwaresOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type DeleteHardwaresBadRequest
- type DeleteHardwaresForbidden
- type DeleteHardwaresGone
- type DeleteHardwaresInternalServerError
- type DeleteHardwaresMethodNotAllowed
- type DeleteHardwaresNotFound
- type DeleteHardwaresOK
- type DeleteHardwaresOKBody
- type DeleteHardwaresParams
- func NewDeleteHardwaresParams() *DeleteHardwaresParams
- func NewDeleteHardwaresParamsWithContext(ctx context.Context) *DeleteHardwaresParams
- func NewDeleteHardwaresParamsWithHTTPClient(client *http.Client) *DeleteHardwaresParams
- func NewDeleteHardwaresParamsWithTimeout(timeout time.Duration) *DeleteHardwaresParams
- func (o *DeleteHardwaresParams) SetContext(ctx context.Context)
- func (o *DeleteHardwaresParams) SetHTTPClient(client *http.Client)
- func (o *DeleteHardwaresParams) SetID(id int64)
- func (o *DeleteHardwaresParams) SetTimeout(timeout time.Duration)
- func (o *DeleteHardwaresParams) WithContext(ctx context.Context) *DeleteHardwaresParams
- func (o *DeleteHardwaresParams) WithHTTPClient(client *http.Client) *DeleteHardwaresParams
- func (o *DeleteHardwaresParams) WithID(id int64) *DeleteHardwaresParams
- func (o *DeleteHardwaresParams) WithTimeout(timeout time.Duration) *DeleteHardwaresParams
- func (o *DeleteHardwaresParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteHardwaresReader
- type DeleteHardwaresServiceUnavailable
- type DeleteHardwaresUnauthorized
- type GetHardwaresBadRequest
- type GetHardwaresForbidden
- type GetHardwaresGone
- type GetHardwaresInternalServerError
- type GetHardwaresMethodNotAllowed
- type GetHardwaresNotFound
- type GetHardwaresOK
- type GetHardwaresOKBody
- type GetHardwaresParams
- func (o *GetHardwaresParams) SetContext(ctx context.Context)
- func (o *GetHardwaresParams) SetDepth(depth *string)
- func (o *GetHardwaresParams) SetDeviceSubType(deviceSubType *string)
- func (o *GetHardwaresParams) SetHTTPClient(client *http.Client)
- func (o *GetHardwaresParams) SetManufacturer(manufacturer *string)
- func (o *GetHardwaresParams) SetName(name *string)
- func (o *GetHardwaresParams) SetPartNo(partNo *string)
- func (o *GetHardwaresParams) SetSize(size *string)
- func (o *GetHardwaresParams) SetTimeout(timeout time.Duration)
- func (o *GetHardwaresParams) SetType(typeVar *string)
- func (o *GetHardwaresParams) SetWatts(watts *string)
- func (o *GetHardwaresParams) WithContext(ctx context.Context) *GetHardwaresParams
- func (o *GetHardwaresParams) WithDepth(depth *string) *GetHardwaresParams
- func (o *GetHardwaresParams) WithDeviceSubType(deviceSubType *string) *GetHardwaresParams
- func (o *GetHardwaresParams) WithHTTPClient(client *http.Client) *GetHardwaresParams
- func (o *GetHardwaresParams) WithManufacturer(manufacturer *string) *GetHardwaresParams
- func (o *GetHardwaresParams) WithName(name *string) *GetHardwaresParams
- func (o *GetHardwaresParams) WithPartNo(partNo *string) *GetHardwaresParams
- func (o *GetHardwaresParams) WithSize(size *string) *GetHardwaresParams
- func (o *GetHardwaresParams) WithTimeout(timeout time.Duration) *GetHardwaresParams
- func (o *GetHardwaresParams) WithType(typeVar *string) *GetHardwaresParams
- func (o *GetHardwaresParams) WithWatts(watts *string) *GetHardwaresParams
- func (o *GetHardwaresParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetHardwaresReader
- type GetHardwaresServiceUnavailable
- type GetHardwaresUnauthorized
- type PostHardwaresBadRequest
- type PostHardwaresForbidden
- type PostHardwaresGone
- type PostHardwaresInternalServerError
- type PostHardwaresMethodNotAllowed
- type PostHardwaresNotFound
- type PostHardwaresOK
- type PostHardwaresOKBody
- type PostHardwaresParams
- func (o *PostHardwaresParams) SetBackImage(backImage *string)
- func (o *PostHardwaresParams) SetBackImageID(backImageID *string)
- func (o *PostHardwaresParams) SetBladeSize(bladeSize *int64)
- func (o *PostHardwaresParams) SetContext(ctx context.Context)
- func (o *PostHardwaresParams) SetDepth(depth *string)
- func (o *PostHardwaresParams) SetDeviceSubType(deviceSubType *string)
- func (o *PostHardwaresParams) SetFrontImage(frontImage *string)
- func (o *PostHardwaresParams) SetFrontImageID(frontImageID *string)
- func (o *PostHardwaresParams) SetHTTPClient(client *http.Client)
- func (o *PostHardwaresParams) SetManufacturer(manufacturer *string)
- func (o *PostHardwaresParams) SetMaxBladesPerRow(maxBladesPerRow *string)
- func (o *PostHardwaresParams) SetModulePos(modulePos *string)
- func (o *PostHardwaresParams) SetName(name string)
- func (o *PostHardwaresParams) SetNewName(newName *string)
- func (o *PostHardwaresParams) SetNotes(notes *string)
- func (o *PostHardwaresParams) SetPartNo(partNo *string)
- func (o *PostHardwaresParams) SetSize(size *string)
- func (o *PostHardwaresParams) SetSlotNumbering(slotNumbering *string)
- func (o *PostHardwaresParams) SetSpecURL(specURL *string)
- func (o *PostHardwaresParams) SetTimeout(timeout time.Duration)
- func (o *PostHardwaresParams) SetType(typeVar *int64)
- func (o *PostHardwaresParams) SetWatts(watts *string)
- func (o *PostHardwaresParams) SetWidthRatio(widthRatio *string)
- func (o *PostHardwaresParams) WithBackImage(backImage *string) *PostHardwaresParams
- func (o *PostHardwaresParams) WithBackImageID(backImageID *string) *PostHardwaresParams
- func (o *PostHardwaresParams) WithBladeSize(bladeSize *int64) *PostHardwaresParams
- func (o *PostHardwaresParams) WithContext(ctx context.Context) *PostHardwaresParams
- func (o *PostHardwaresParams) WithDepth(depth *string) *PostHardwaresParams
- func (o *PostHardwaresParams) WithDeviceSubType(deviceSubType *string) *PostHardwaresParams
- func (o *PostHardwaresParams) WithFrontImage(frontImage *string) *PostHardwaresParams
- func (o *PostHardwaresParams) WithFrontImageID(frontImageID *string) *PostHardwaresParams
- func (o *PostHardwaresParams) WithHTTPClient(client *http.Client) *PostHardwaresParams
- func (o *PostHardwaresParams) WithManufacturer(manufacturer *string) *PostHardwaresParams
- func (o *PostHardwaresParams) WithMaxBladesPerRow(maxBladesPerRow *string) *PostHardwaresParams
- func (o *PostHardwaresParams) WithModulePos(modulePos *string) *PostHardwaresParams
- func (o *PostHardwaresParams) WithName(name string) *PostHardwaresParams
- func (o *PostHardwaresParams) WithNewName(newName *string) *PostHardwaresParams
- func (o *PostHardwaresParams) WithNotes(notes *string) *PostHardwaresParams
- func (o *PostHardwaresParams) WithPartNo(partNo *string) *PostHardwaresParams
- func (o *PostHardwaresParams) WithSize(size *string) *PostHardwaresParams
- func (o *PostHardwaresParams) WithSlotNumbering(slotNumbering *string) *PostHardwaresParams
- func (o *PostHardwaresParams) WithSpecURL(specURL *string) *PostHardwaresParams
- func (o *PostHardwaresParams) WithTimeout(timeout time.Duration) *PostHardwaresParams
- func (o *PostHardwaresParams) WithType(typeVar *int64) *PostHardwaresParams
- func (o *PostHardwaresParams) WithWatts(watts *string) *PostHardwaresParams
- func (o *PostHardwaresParams) WithWidthRatio(widthRatio *string) *PostHardwaresParams
- func (o *PostHardwaresParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostHardwaresReader
- type PostHardwaresServiceUnavailable
- type PostHardwaresUnauthorized
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 hardware models API
func (*Client) DeleteHardwares ¶
func (a *Client) DeleteHardwares(params *DeleteHardwaresParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteHardwaresOK, error)
DeleteHardwares deletes hardware model
This API is used to delete the hardware model with the hardware model id supplied as the required argument.
func (*Client) GetHardwares ¶
func (a *Client) GetHardwares(params *GetHardwaresParams, authInfo runtime.ClientAuthInfoWriter) (*GetHardwaresOK, error)
GetHardwares this call will get information about hardware models
Get all hardware models
func (*Client) PostHardwares ¶
func (a *Client) PostHardwares(params *PostHardwaresParams, authInfo runtime.ClientAuthInfoWriter) (*PostHardwaresOK, error)
PostHardwares this call will create update information about hardware models
Create/update
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface { DeleteHardwares(params *DeleteHardwaresParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteHardwaresOK, error) GetHardwares(params *GetHardwaresParams, authInfo runtime.ClientAuthInfoWriter) (*GetHardwaresOK, error) PostHardwares(params *PostHardwaresParams, authInfo runtime.ClientAuthInfoWriter) (*PostHardwaresOK, 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 hardware models API client.
type DeleteHardwaresBadRequest ¶
type DeleteHardwaresBadRequest struct { }
DeleteHardwaresBadRequest handles this case with default header values.
Bad Request (A validation exception has occurred.)
func NewDeleteHardwaresBadRequest ¶
func NewDeleteHardwaresBadRequest() *DeleteHardwaresBadRequest
NewDeleteHardwaresBadRequest creates a DeleteHardwaresBadRequest with default headers values
func (*DeleteHardwaresBadRequest) Error ¶
func (o *DeleteHardwaresBadRequest) Error() string
type DeleteHardwaresForbidden ¶
type DeleteHardwaresForbidden struct { }
DeleteHardwaresForbidden handles this case with default header values.
Forbidden (The resource requested is hidden)
func NewDeleteHardwaresForbidden ¶
func NewDeleteHardwaresForbidden() *DeleteHardwaresForbidden
NewDeleteHardwaresForbidden creates a DeleteHardwaresForbidden with default headers values
func (*DeleteHardwaresForbidden) Error ¶
func (o *DeleteHardwaresForbidden) Error() string
type DeleteHardwaresGone ¶
type DeleteHardwaresGone struct { }
DeleteHardwaresGone handles this case with default header values.
Gone (The resource requested has been removed from our servers)
func NewDeleteHardwaresGone ¶
func NewDeleteHardwaresGone() *DeleteHardwaresGone
NewDeleteHardwaresGone creates a DeleteHardwaresGone with default headers values
func (*DeleteHardwaresGone) Error ¶
func (o *DeleteHardwaresGone) Error() string
type DeleteHardwaresInternalServerError ¶
type DeleteHardwaresInternalServerError struct { }
DeleteHardwaresInternalServerError handles this case with default header values.
Internal Server Error (Some parameter missing or issue with the server. Check with returned “msg” from the call.)
func NewDeleteHardwaresInternalServerError ¶
func NewDeleteHardwaresInternalServerError() *DeleteHardwaresInternalServerError
NewDeleteHardwaresInternalServerError creates a DeleteHardwaresInternalServerError with default headers values
func (*DeleteHardwaresInternalServerError) Error ¶
func (o *DeleteHardwaresInternalServerError) Error() string
type DeleteHardwaresMethodNotAllowed ¶
type DeleteHardwaresMethodNotAllowed struct { }
DeleteHardwaresMethodNotAllowed handles this case with default header values.
Method Not Allowed (You tried to access a resource with an invalid method)
func NewDeleteHardwaresMethodNotAllowed ¶
func NewDeleteHardwaresMethodNotAllowed() *DeleteHardwaresMethodNotAllowed
NewDeleteHardwaresMethodNotAllowed creates a DeleteHardwaresMethodNotAllowed with default headers values
func (*DeleteHardwaresMethodNotAllowed) Error ¶
func (o *DeleteHardwaresMethodNotAllowed) Error() string
type DeleteHardwaresNotFound ¶
type DeleteHardwaresNotFound struct { }
DeleteHardwaresNotFound handles this case with default header values.
Not Found (The specified resource could not be found)
func NewDeleteHardwaresNotFound ¶
func NewDeleteHardwaresNotFound() *DeleteHardwaresNotFound
NewDeleteHardwaresNotFound creates a DeleteHardwaresNotFound with default headers values
func (*DeleteHardwaresNotFound) Error ¶
func (o *DeleteHardwaresNotFound) Error() string
type DeleteHardwaresOK ¶
type DeleteHardwaresOK struct {
Payload *DeleteHardwaresOKBody
}
DeleteHardwaresOK handles this case with default header values.
The above command returns results like this:
func NewDeleteHardwaresOK ¶
func NewDeleteHardwaresOK() *DeleteHardwaresOK
NewDeleteHardwaresOK creates a DeleteHardwaresOK with default headers values
func (*DeleteHardwaresOK) Error ¶
func (o *DeleteHardwaresOK) Error() string
func (*DeleteHardwaresOK) GetPayload ¶
func (o *DeleteHardwaresOK) GetPayload() *DeleteHardwaresOKBody
type DeleteHardwaresOKBody ¶
type DeleteHardwaresOKBody struct { // deleted Deleted interface{} `json:"deleted,omitempty"` // id ID interface{} `json:"id,omitempty"` }
DeleteHardwaresOKBody delete hardwares o k body swagger:model DeleteHardwaresOKBody
func (*DeleteHardwaresOKBody) MarshalBinary ¶
func (o *DeleteHardwaresOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DeleteHardwaresOKBody) UnmarshalBinary ¶
func (o *DeleteHardwaresOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DeleteHardwaresParams ¶
type DeleteHardwaresParams struct { /*ID hardware model id */ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteHardwaresParams contains all the parameters to send to the API endpoint for the delete hardwares operation typically these are written to a http.Request
func NewDeleteHardwaresParams ¶
func NewDeleteHardwaresParams() *DeleteHardwaresParams
NewDeleteHardwaresParams creates a new DeleteHardwaresParams object with the default values initialized.
func NewDeleteHardwaresParamsWithContext ¶
func NewDeleteHardwaresParamsWithContext(ctx context.Context) *DeleteHardwaresParams
NewDeleteHardwaresParamsWithContext creates a new DeleteHardwaresParams object with the default values initialized, and the ability to set a context for a request
func NewDeleteHardwaresParamsWithHTTPClient ¶
func NewDeleteHardwaresParamsWithHTTPClient(client *http.Client) *DeleteHardwaresParams
NewDeleteHardwaresParamsWithHTTPClient creates a new DeleteHardwaresParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDeleteHardwaresParamsWithTimeout ¶
func NewDeleteHardwaresParamsWithTimeout(timeout time.Duration) *DeleteHardwaresParams
NewDeleteHardwaresParamsWithTimeout creates a new DeleteHardwaresParams object with the default values initialized, and the ability to set a timeout on a request
func (*DeleteHardwaresParams) SetContext ¶
func (o *DeleteHardwaresParams) SetContext(ctx context.Context)
SetContext adds the context to the delete hardwares params
func (*DeleteHardwaresParams) SetHTTPClient ¶
func (o *DeleteHardwaresParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete hardwares params
func (*DeleteHardwaresParams) SetID ¶
func (o *DeleteHardwaresParams) SetID(id int64)
SetID adds the id to the delete hardwares params
func (*DeleteHardwaresParams) SetTimeout ¶
func (o *DeleteHardwaresParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete hardwares params
func (*DeleteHardwaresParams) WithContext ¶
func (o *DeleteHardwaresParams) WithContext(ctx context.Context) *DeleteHardwaresParams
WithContext adds the context to the delete hardwares params
func (*DeleteHardwaresParams) WithHTTPClient ¶
func (o *DeleteHardwaresParams) WithHTTPClient(client *http.Client) *DeleteHardwaresParams
WithHTTPClient adds the HTTPClient to the delete hardwares params
func (*DeleteHardwaresParams) WithID ¶
func (o *DeleteHardwaresParams) WithID(id int64) *DeleteHardwaresParams
WithID adds the id to the delete hardwares params
func (*DeleteHardwaresParams) WithTimeout ¶
func (o *DeleteHardwaresParams) WithTimeout(timeout time.Duration) *DeleteHardwaresParams
WithTimeout adds the timeout to the delete hardwares params
func (*DeleteHardwaresParams) WriteToRequest ¶
func (o *DeleteHardwaresParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteHardwaresReader ¶
type DeleteHardwaresReader struct {
// contains filtered or unexported fields
}
DeleteHardwaresReader is a Reader for the DeleteHardwares structure.
func (*DeleteHardwaresReader) ReadResponse ¶
func (o *DeleteHardwaresReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteHardwaresServiceUnavailable ¶
type DeleteHardwaresServiceUnavailable struct { }
DeleteHardwaresServiceUnavailable handles this case with default header values.
Service Unavailable (Please check if your Device42 instance is working normally.)
func NewDeleteHardwaresServiceUnavailable ¶
func NewDeleteHardwaresServiceUnavailable() *DeleteHardwaresServiceUnavailable
NewDeleteHardwaresServiceUnavailable creates a DeleteHardwaresServiceUnavailable with default headers values
func (*DeleteHardwaresServiceUnavailable) Error ¶
func (o *DeleteHardwaresServiceUnavailable) Error() string
type DeleteHardwaresUnauthorized ¶
type DeleteHardwaresUnauthorized struct { }
DeleteHardwaresUnauthorized handles this case with default header values.
Unauthorized (Your credentials suck)
func NewDeleteHardwaresUnauthorized ¶
func NewDeleteHardwaresUnauthorized() *DeleteHardwaresUnauthorized
NewDeleteHardwaresUnauthorized creates a DeleteHardwaresUnauthorized with default headers values
func (*DeleteHardwaresUnauthorized) Error ¶
func (o *DeleteHardwaresUnauthorized) Error() string
type GetHardwaresBadRequest ¶
type GetHardwaresBadRequest struct { }
GetHardwaresBadRequest handles this case with default header values.
Bad Request (A validation exception has occurred.)
func NewGetHardwaresBadRequest ¶
func NewGetHardwaresBadRequest() *GetHardwaresBadRequest
NewGetHardwaresBadRequest creates a GetHardwaresBadRequest with default headers values
func (*GetHardwaresBadRequest) Error ¶
func (o *GetHardwaresBadRequest) Error() string
type GetHardwaresForbidden ¶
type GetHardwaresForbidden struct { }
GetHardwaresForbidden handles this case with default header values.
Forbidden (The resource requested is hidden)
func NewGetHardwaresForbidden ¶
func NewGetHardwaresForbidden() *GetHardwaresForbidden
NewGetHardwaresForbidden creates a GetHardwaresForbidden with default headers values
func (*GetHardwaresForbidden) Error ¶
func (o *GetHardwaresForbidden) Error() string
type GetHardwaresGone ¶
type GetHardwaresGone struct { }
GetHardwaresGone handles this case with default header values.
Gone (The resource requested has been removed from our servers)
func NewGetHardwaresGone ¶
func NewGetHardwaresGone() *GetHardwaresGone
NewGetHardwaresGone creates a GetHardwaresGone with default headers values
func (*GetHardwaresGone) Error ¶
func (o *GetHardwaresGone) Error() string
type GetHardwaresInternalServerError ¶
type GetHardwaresInternalServerError struct { }
GetHardwaresInternalServerError handles this case with default header values.
Internal Server Error (Some parameter missing or issue with the server. Check with returned “msg” from the call.)
func NewGetHardwaresInternalServerError ¶
func NewGetHardwaresInternalServerError() *GetHardwaresInternalServerError
NewGetHardwaresInternalServerError creates a GetHardwaresInternalServerError with default headers values
func (*GetHardwaresInternalServerError) Error ¶
func (o *GetHardwaresInternalServerError) Error() string
type GetHardwaresMethodNotAllowed ¶
type GetHardwaresMethodNotAllowed struct { }
GetHardwaresMethodNotAllowed handles this case with default header values.
Method Not Allowed (You tried to access a resource with an invalid method)
func NewGetHardwaresMethodNotAllowed ¶
func NewGetHardwaresMethodNotAllowed() *GetHardwaresMethodNotAllowed
NewGetHardwaresMethodNotAllowed creates a GetHardwaresMethodNotAllowed with default headers values
func (*GetHardwaresMethodNotAllowed) Error ¶
func (o *GetHardwaresMethodNotAllowed) Error() string
type GetHardwaresNotFound ¶
type GetHardwaresNotFound struct { }
GetHardwaresNotFound handles this case with default header values.
Not Found (The specified resource could not be found)
func NewGetHardwaresNotFound ¶
func NewGetHardwaresNotFound() *GetHardwaresNotFound
NewGetHardwaresNotFound creates a GetHardwaresNotFound with default headers values
func (*GetHardwaresNotFound) Error ¶
func (o *GetHardwaresNotFound) Error() string
type GetHardwaresOK ¶
type GetHardwaresOK struct {
Payload *GetHardwaresOKBody
}
GetHardwaresOK handles this case with default header values.
The above command returns results like this:
func NewGetHardwaresOK ¶
func NewGetHardwaresOK() *GetHardwaresOK
NewGetHardwaresOK creates a GetHardwaresOK with default headers values
func (*GetHardwaresOK) Error ¶
func (o *GetHardwaresOK) Error() string
func (*GetHardwaresOK) GetPayload ¶
func (o *GetHardwaresOK) GetPayload() *GetHardwaresOKBody
type GetHardwaresOKBody ¶
type GetHardwaresOKBody struct { // models Models []*models.HardwareModels `json:"models"` }
GetHardwaresOKBody get hardwares o k body swagger:model GetHardwaresOKBody
func (*GetHardwaresOKBody) MarshalBinary ¶
func (o *GetHardwaresOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetHardwaresOKBody) UnmarshalBinary ¶
func (o *GetHardwaresOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetHardwaresParams ¶
type GetHardwaresParams struct { /*Depth could be half or full */ Depth *string /*DeviceSubType filter by device sub type (Added in v14.7.2) */ DeviceSubType *string /*Manufacturer name of the hardware manufacturer. */ Manufacturer *string /*Name filter by name (Added in v6.0.0) */ Name *string /*PartNo filter by part # */ PartNo *string /*Size filter by exact size */ Size *string /*Type could be physical, blade, or other */ Type *string /*Watts filter by exact watts */ Watts *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetHardwaresParams contains all the parameters to send to the API endpoint for the get hardwares operation typically these are written to a http.Request
func NewGetHardwaresParams ¶
func NewGetHardwaresParams() *GetHardwaresParams
NewGetHardwaresParams creates a new GetHardwaresParams object with the default values initialized.
func NewGetHardwaresParamsWithContext ¶
func NewGetHardwaresParamsWithContext(ctx context.Context) *GetHardwaresParams
NewGetHardwaresParamsWithContext creates a new GetHardwaresParams object with the default values initialized, and the ability to set a context for a request
func NewGetHardwaresParamsWithHTTPClient ¶
func NewGetHardwaresParamsWithHTTPClient(client *http.Client) *GetHardwaresParams
NewGetHardwaresParamsWithHTTPClient creates a new GetHardwaresParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetHardwaresParamsWithTimeout ¶
func NewGetHardwaresParamsWithTimeout(timeout time.Duration) *GetHardwaresParams
NewGetHardwaresParamsWithTimeout creates a new GetHardwaresParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetHardwaresParams) SetContext ¶
func (o *GetHardwaresParams) SetContext(ctx context.Context)
SetContext adds the context to the get hardwares params
func (*GetHardwaresParams) SetDepth ¶
func (o *GetHardwaresParams) SetDepth(depth *string)
SetDepth adds the depth to the get hardwares params
func (*GetHardwaresParams) SetDeviceSubType ¶
func (o *GetHardwaresParams) SetDeviceSubType(deviceSubType *string)
SetDeviceSubType adds the deviceSubType to the get hardwares params
func (*GetHardwaresParams) SetHTTPClient ¶
func (o *GetHardwaresParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get hardwares params
func (*GetHardwaresParams) SetManufacturer ¶
func (o *GetHardwaresParams) SetManufacturer(manufacturer *string)
SetManufacturer adds the manufacturer to the get hardwares params
func (*GetHardwaresParams) SetName ¶
func (o *GetHardwaresParams) SetName(name *string)
SetName adds the name to the get hardwares params
func (*GetHardwaresParams) SetPartNo ¶
func (o *GetHardwaresParams) SetPartNo(partNo *string)
SetPartNo adds the partNo to the get hardwares params
func (*GetHardwaresParams) SetSize ¶
func (o *GetHardwaresParams) SetSize(size *string)
SetSize adds the size to the get hardwares params
func (*GetHardwaresParams) SetTimeout ¶
func (o *GetHardwaresParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get hardwares params
func (*GetHardwaresParams) SetType ¶
func (o *GetHardwaresParams) SetType(typeVar *string)
SetType adds the type to the get hardwares params
func (*GetHardwaresParams) SetWatts ¶
func (o *GetHardwaresParams) SetWatts(watts *string)
SetWatts adds the watts to the get hardwares params
func (*GetHardwaresParams) WithContext ¶
func (o *GetHardwaresParams) WithContext(ctx context.Context) *GetHardwaresParams
WithContext adds the context to the get hardwares params
func (*GetHardwaresParams) WithDepth ¶
func (o *GetHardwaresParams) WithDepth(depth *string) *GetHardwaresParams
WithDepth adds the depth to the get hardwares params
func (*GetHardwaresParams) WithDeviceSubType ¶
func (o *GetHardwaresParams) WithDeviceSubType(deviceSubType *string) *GetHardwaresParams
WithDeviceSubType adds the deviceSubType to the get hardwares params
func (*GetHardwaresParams) WithHTTPClient ¶
func (o *GetHardwaresParams) WithHTTPClient(client *http.Client) *GetHardwaresParams
WithHTTPClient adds the HTTPClient to the get hardwares params
func (*GetHardwaresParams) WithManufacturer ¶
func (o *GetHardwaresParams) WithManufacturer(manufacturer *string) *GetHardwaresParams
WithManufacturer adds the manufacturer to the get hardwares params
func (*GetHardwaresParams) WithName ¶
func (o *GetHardwaresParams) WithName(name *string) *GetHardwaresParams
WithName adds the name to the get hardwares params
func (*GetHardwaresParams) WithPartNo ¶
func (o *GetHardwaresParams) WithPartNo(partNo *string) *GetHardwaresParams
WithPartNo adds the partNo to the get hardwares params
func (*GetHardwaresParams) WithSize ¶
func (o *GetHardwaresParams) WithSize(size *string) *GetHardwaresParams
WithSize adds the size to the get hardwares params
func (*GetHardwaresParams) WithTimeout ¶
func (o *GetHardwaresParams) WithTimeout(timeout time.Duration) *GetHardwaresParams
WithTimeout adds the timeout to the get hardwares params
func (*GetHardwaresParams) WithType ¶
func (o *GetHardwaresParams) WithType(typeVar *string) *GetHardwaresParams
WithType adds the typeVar to the get hardwares params
func (*GetHardwaresParams) WithWatts ¶
func (o *GetHardwaresParams) WithWatts(watts *string) *GetHardwaresParams
WithWatts adds the watts to the get hardwares params
func (*GetHardwaresParams) WriteToRequest ¶
func (o *GetHardwaresParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetHardwaresReader ¶
type GetHardwaresReader struct {
// contains filtered or unexported fields
}
GetHardwaresReader is a Reader for the GetHardwares structure.
func (*GetHardwaresReader) ReadResponse ¶
func (o *GetHardwaresReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetHardwaresServiceUnavailable ¶
type GetHardwaresServiceUnavailable struct { }
GetHardwaresServiceUnavailable handles this case with default header values.
Service Unavailable (Please check if your Device42 instance is working normally.)
func NewGetHardwaresServiceUnavailable ¶
func NewGetHardwaresServiceUnavailable() *GetHardwaresServiceUnavailable
NewGetHardwaresServiceUnavailable creates a GetHardwaresServiceUnavailable with default headers values
func (*GetHardwaresServiceUnavailable) Error ¶
func (o *GetHardwaresServiceUnavailable) Error() string
type GetHardwaresUnauthorized ¶
type GetHardwaresUnauthorized struct { }
GetHardwaresUnauthorized handles this case with default header values.
Unauthorized (Your credentials suck)
func NewGetHardwaresUnauthorized ¶
func NewGetHardwaresUnauthorized() *GetHardwaresUnauthorized
NewGetHardwaresUnauthorized creates a GetHardwaresUnauthorized with default headers values
func (*GetHardwaresUnauthorized) Error ¶
func (o *GetHardwaresUnauthorized) Error() string
type PostHardwaresBadRequest ¶
type PostHardwaresBadRequest struct { }
PostHardwaresBadRequest handles this case with default header values.
Bad Request (A validation exception has occurred.)
func NewPostHardwaresBadRequest ¶
func NewPostHardwaresBadRequest() *PostHardwaresBadRequest
NewPostHardwaresBadRequest creates a PostHardwaresBadRequest with default headers values
func (*PostHardwaresBadRequest) Error ¶
func (o *PostHardwaresBadRequest) Error() string
type PostHardwaresForbidden ¶
type PostHardwaresForbidden struct { }
PostHardwaresForbidden handles this case with default header values.
Forbidden (The resource requested is hidden)
func NewPostHardwaresForbidden ¶
func NewPostHardwaresForbidden() *PostHardwaresForbidden
NewPostHardwaresForbidden creates a PostHardwaresForbidden with default headers values
func (*PostHardwaresForbidden) Error ¶
func (o *PostHardwaresForbidden) Error() string
type PostHardwaresGone ¶
type PostHardwaresGone struct { }
PostHardwaresGone handles this case with default header values.
Gone (The resource requested has been removed from our servers)
func NewPostHardwaresGone ¶
func NewPostHardwaresGone() *PostHardwaresGone
NewPostHardwaresGone creates a PostHardwaresGone with default headers values
func (*PostHardwaresGone) Error ¶
func (o *PostHardwaresGone) Error() string
type PostHardwaresInternalServerError ¶
type PostHardwaresInternalServerError struct { }
PostHardwaresInternalServerError handles this case with default header values.
Internal Server Error (Some parameter missing or issue with the server. Check with returned “msg” from the call.)
func NewPostHardwaresInternalServerError ¶
func NewPostHardwaresInternalServerError() *PostHardwaresInternalServerError
NewPostHardwaresInternalServerError creates a PostHardwaresInternalServerError with default headers values
func (*PostHardwaresInternalServerError) Error ¶
func (o *PostHardwaresInternalServerError) Error() string
type PostHardwaresMethodNotAllowed ¶
type PostHardwaresMethodNotAllowed struct { }
PostHardwaresMethodNotAllowed handles this case with default header values.
Method Not Allowed (You tried to access a resource with an invalid method)
func NewPostHardwaresMethodNotAllowed ¶
func NewPostHardwaresMethodNotAllowed() *PostHardwaresMethodNotAllowed
NewPostHardwaresMethodNotAllowed creates a PostHardwaresMethodNotAllowed with default headers values
func (*PostHardwaresMethodNotAllowed) Error ¶
func (o *PostHardwaresMethodNotAllowed) Error() string
type PostHardwaresNotFound ¶
type PostHardwaresNotFound struct { }
PostHardwaresNotFound handles this case with default header values.
Not Found (The specified resource could not be found)
func NewPostHardwaresNotFound ¶
func NewPostHardwaresNotFound() *PostHardwaresNotFound
NewPostHardwaresNotFound creates a PostHardwaresNotFound with default headers values
func (*PostHardwaresNotFound) Error ¶
func (o *PostHardwaresNotFound) Error() string
type PostHardwaresOK ¶
type PostHardwaresOK struct {
Payload *PostHardwaresOKBody
}
PostHardwaresOK handles this case with default header values.
The above command returns results like this:
func NewPostHardwaresOK ¶
func NewPostHardwaresOK() *PostHardwaresOK
NewPostHardwaresOK creates a PostHardwaresOK with default headers values
func (*PostHardwaresOK) Error ¶
func (o *PostHardwaresOK) Error() string
func (*PostHardwaresOK) GetPayload ¶
func (o *PostHardwaresOK) GetPayload() *PostHardwaresOKBody
type PostHardwaresOKBody ¶
type PostHardwaresOKBody struct { // code Code interface{} `json:"code,omitempty"` // msg Msg interface{} `json:"msg,omitempty"` }
PostHardwaresOKBody post hardwares o k body swagger:model PostHardwaresOKBody
func (*PostHardwaresOKBody) MarshalBinary ¶
func (o *PostHardwaresOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PostHardwaresOKBody) UnmarshalBinary ¶
func (o *PostHardwaresOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PostHardwaresParams ¶
type PostHardwaresParams struct { /*BackImage name of the back image file. Use instead of back_image_id. */ BackImage *string /*BackImageID back image file id. You can see these from Tools > Import > Hardware Import for now. */ BackImageID *string /*BladeSize 1=Full Height 2=Half Height 3=Double Half Height 4=Double Full Height 5=Quarter Height */ BladeSize *int64 /*Depth half by default, full to override */ Depth *string /*DeviceSubType Subtype of "other" type devices */ DeviceSubType *string /*FrontImage name of the image file (Added in v5.8.2) */ FrontImage *string /*FrontImageID*/ FrontImageID *string /*Manufacturer name of the hardware/software manufacturer. */ Manufacturer *string /*MaxBladesPerRow*/ MaxBladesPerRow *string /*ModulePos*/ ModulePos *string /*Name if similar hardware name already exists, first matching entry is updated */ Name string /*NewName Use to change name of object. */ NewName *string /*Notes Any additional notes */ Notes *string /*PartNo*/ PartNo *string /*Size Size in U for hardware type regular */ Size *string /*SlotNumbering*/ SlotNumbering *string /*SpecURL Specification url for the hardware model. */ SpecURL *string /*Type 1 = Regular, 2 = Blade, 3 = Other */ Type *int64 /*Watts per power supply */ Watts *string /*WidthRatio Default=1. Can be ½, 1/3,… 1/10, etc. */ WidthRatio *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PostHardwaresParams contains all the parameters to send to the API endpoint for the post hardwares operation typically these are written to a http.Request
func NewPostHardwaresParams ¶
func NewPostHardwaresParams() *PostHardwaresParams
NewPostHardwaresParams creates a new PostHardwaresParams object with the default values initialized.
func NewPostHardwaresParamsWithContext ¶
func NewPostHardwaresParamsWithContext(ctx context.Context) *PostHardwaresParams
NewPostHardwaresParamsWithContext creates a new PostHardwaresParams object with the default values initialized, and the ability to set a context for a request
func NewPostHardwaresParamsWithHTTPClient ¶
func NewPostHardwaresParamsWithHTTPClient(client *http.Client) *PostHardwaresParams
NewPostHardwaresParamsWithHTTPClient creates a new PostHardwaresParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewPostHardwaresParamsWithTimeout ¶
func NewPostHardwaresParamsWithTimeout(timeout time.Duration) *PostHardwaresParams
NewPostHardwaresParamsWithTimeout creates a new PostHardwaresParams object with the default values initialized, and the ability to set a timeout on a request
func (*PostHardwaresParams) SetBackImage ¶
func (o *PostHardwaresParams) SetBackImage(backImage *string)
SetBackImage adds the backImage to the post hardwares params
func (*PostHardwaresParams) SetBackImageID ¶
func (o *PostHardwaresParams) SetBackImageID(backImageID *string)
SetBackImageID adds the backImageId to the post hardwares params
func (*PostHardwaresParams) SetBladeSize ¶
func (o *PostHardwaresParams) SetBladeSize(bladeSize *int64)
SetBladeSize adds the bladeSize to the post hardwares params
func (*PostHardwaresParams) SetContext ¶
func (o *PostHardwaresParams) SetContext(ctx context.Context)
SetContext adds the context to the post hardwares params
func (*PostHardwaresParams) SetDepth ¶
func (o *PostHardwaresParams) SetDepth(depth *string)
SetDepth adds the depth to the post hardwares params
func (*PostHardwaresParams) SetDeviceSubType ¶
func (o *PostHardwaresParams) SetDeviceSubType(deviceSubType *string)
SetDeviceSubType adds the deviceSubType to the post hardwares params
func (*PostHardwaresParams) SetFrontImage ¶
func (o *PostHardwaresParams) SetFrontImage(frontImage *string)
SetFrontImage adds the frontImage to the post hardwares params
func (*PostHardwaresParams) SetFrontImageID ¶
func (o *PostHardwaresParams) SetFrontImageID(frontImageID *string)
SetFrontImageID adds the frontImageId to the post hardwares params
func (*PostHardwaresParams) SetHTTPClient ¶
func (o *PostHardwaresParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post hardwares params
func (*PostHardwaresParams) SetManufacturer ¶
func (o *PostHardwaresParams) SetManufacturer(manufacturer *string)
SetManufacturer adds the manufacturer to the post hardwares params
func (*PostHardwaresParams) SetMaxBladesPerRow ¶
func (o *PostHardwaresParams) SetMaxBladesPerRow(maxBladesPerRow *string)
SetMaxBladesPerRow adds the maxBladesPerRow to the post hardwares params
func (*PostHardwaresParams) SetModulePos ¶
func (o *PostHardwaresParams) SetModulePos(modulePos *string)
SetModulePos adds the modulePos to the post hardwares params
func (*PostHardwaresParams) SetName ¶
func (o *PostHardwaresParams) SetName(name string)
SetName adds the name to the post hardwares params
func (*PostHardwaresParams) SetNewName ¶
func (o *PostHardwaresParams) SetNewName(newName *string)
SetNewName adds the newName to the post hardwares params
func (*PostHardwaresParams) SetNotes ¶
func (o *PostHardwaresParams) SetNotes(notes *string)
SetNotes adds the notes to the post hardwares params
func (*PostHardwaresParams) SetPartNo ¶
func (o *PostHardwaresParams) SetPartNo(partNo *string)
SetPartNo adds the partNo to the post hardwares params
func (*PostHardwaresParams) SetSize ¶
func (o *PostHardwaresParams) SetSize(size *string)
SetSize adds the size to the post hardwares params
func (*PostHardwaresParams) SetSlotNumbering ¶
func (o *PostHardwaresParams) SetSlotNumbering(slotNumbering *string)
SetSlotNumbering adds the slotNumbering to the post hardwares params
func (*PostHardwaresParams) SetSpecURL ¶
func (o *PostHardwaresParams) SetSpecURL(specURL *string)
SetSpecURL adds the specUrl to the post hardwares params
func (*PostHardwaresParams) SetTimeout ¶
func (o *PostHardwaresParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post hardwares params
func (*PostHardwaresParams) SetType ¶
func (o *PostHardwaresParams) SetType(typeVar *int64)
SetType adds the type to the post hardwares params
func (*PostHardwaresParams) SetWatts ¶
func (o *PostHardwaresParams) SetWatts(watts *string)
SetWatts adds the watts to the post hardwares params
func (*PostHardwaresParams) SetWidthRatio ¶
func (o *PostHardwaresParams) SetWidthRatio(widthRatio *string)
SetWidthRatio adds the widthRatio to the post hardwares params
func (*PostHardwaresParams) WithBackImage ¶
func (o *PostHardwaresParams) WithBackImage(backImage *string) *PostHardwaresParams
WithBackImage adds the backImage to the post hardwares params
func (*PostHardwaresParams) WithBackImageID ¶
func (o *PostHardwaresParams) WithBackImageID(backImageID *string) *PostHardwaresParams
WithBackImageID adds the backImageID to the post hardwares params
func (*PostHardwaresParams) WithBladeSize ¶
func (o *PostHardwaresParams) WithBladeSize(bladeSize *int64) *PostHardwaresParams
WithBladeSize adds the bladeSize to the post hardwares params
func (*PostHardwaresParams) WithContext ¶
func (o *PostHardwaresParams) WithContext(ctx context.Context) *PostHardwaresParams
WithContext adds the context to the post hardwares params
func (*PostHardwaresParams) WithDepth ¶
func (o *PostHardwaresParams) WithDepth(depth *string) *PostHardwaresParams
WithDepth adds the depth to the post hardwares params
func (*PostHardwaresParams) WithDeviceSubType ¶
func (o *PostHardwaresParams) WithDeviceSubType(deviceSubType *string) *PostHardwaresParams
WithDeviceSubType adds the deviceSubType to the post hardwares params
func (*PostHardwaresParams) WithFrontImage ¶
func (o *PostHardwaresParams) WithFrontImage(frontImage *string) *PostHardwaresParams
WithFrontImage adds the frontImage to the post hardwares params
func (*PostHardwaresParams) WithFrontImageID ¶
func (o *PostHardwaresParams) WithFrontImageID(frontImageID *string) *PostHardwaresParams
WithFrontImageID adds the frontImageID to the post hardwares params
func (*PostHardwaresParams) WithHTTPClient ¶
func (o *PostHardwaresParams) WithHTTPClient(client *http.Client) *PostHardwaresParams
WithHTTPClient adds the HTTPClient to the post hardwares params
func (*PostHardwaresParams) WithManufacturer ¶
func (o *PostHardwaresParams) WithManufacturer(manufacturer *string) *PostHardwaresParams
WithManufacturer adds the manufacturer to the post hardwares params
func (*PostHardwaresParams) WithMaxBladesPerRow ¶
func (o *PostHardwaresParams) WithMaxBladesPerRow(maxBladesPerRow *string) *PostHardwaresParams
WithMaxBladesPerRow adds the maxBladesPerRow to the post hardwares params
func (*PostHardwaresParams) WithModulePos ¶
func (o *PostHardwaresParams) WithModulePos(modulePos *string) *PostHardwaresParams
WithModulePos adds the modulePos to the post hardwares params
func (*PostHardwaresParams) WithName ¶
func (o *PostHardwaresParams) WithName(name string) *PostHardwaresParams
WithName adds the name to the post hardwares params
func (*PostHardwaresParams) WithNewName ¶
func (o *PostHardwaresParams) WithNewName(newName *string) *PostHardwaresParams
WithNewName adds the newName to the post hardwares params
func (*PostHardwaresParams) WithNotes ¶
func (o *PostHardwaresParams) WithNotes(notes *string) *PostHardwaresParams
WithNotes adds the notes to the post hardwares params
func (*PostHardwaresParams) WithPartNo ¶
func (o *PostHardwaresParams) WithPartNo(partNo *string) *PostHardwaresParams
WithPartNo adds the partNo to the post hardwares params
func (*PostHardwaresParams) WithSize ¶
func (o *PostHardwaresParams) WithSize(size *string) *PostHardwaresParams
WithSize adds the size to the post hardwares params
func (*PostHardwaresParams) WithSlotNumbering ¶
func (o *PostHardwaresParams) WithSlotNumbering(slotNumbering *string) *PostHardwaresParams
WithSlotNumbering adds the slotNumbering to the post hardwares params
func (*PostHardwaresParams) WithSpecURL ¶
func (o *PostHardwaresParams) WithSpecURL(specURL *string) *PostHardwaresParams
WithSpecURL adds the specURL to the post hardwares params
func (*PostHardwaresParams) WithTimeout ¶
func (o *PostHardwaresParams) WithTimeout(timeout time.Duration) *PostHardwaresParams
WithTimeout adds the timeout to the post hardwares params
func (*PostHardwaresParams) WithType ¶
func (o *PostHardwaresParams) WithType(typeVar *int64) *PostHardwaresParams
WithType adds the typeVar to the post hardwares params
func (*PostHardwaresParams) WithWatts ¶
func (o *PostHardwaresParams) WithWatts(watts *string) *PostHardwaresParams
WithWatts adds the watts to the post hardwares params
func (*PostHardwaresParams) WithWidthRatio ¶
func (o *PostHardwaresParams) WithWidthRatio(widthRatio *string) *PostHardwaresParams
WithWidthRatio adds the widthRatio to the post hardwares params
func (*PostHardwaresParams) WriteToRequest ¶
func (o *PostHardwaresParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostHardwaresReader ¶
type PostHardwaresReader struct {
// contains filtered or unexported fields
}
PostHardwaresReader is a Reader for the PostHardwares structure.
func (*PostHardwaresReader) ReadResponse ¶
func (o *PostHardwaresReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostHardwaresServiceUnavailable ¶
type PostHardwaresServiceUnavailable struct { }
PostHardwaresServiceUnavailable handles this case with default header values.
Service Unavailable (Please check if your Device42 instance is working normally.)
func NewPostHardwaresServiceUnavailable ¶
func NewPostHardwaresServiceUnavailable() *PostHardwaresServiceUnavailable
NewPostHardwaresServiceUnavailable creates a PostHardwaresServiceUnavailable with default headers values
func (*PostHardwaresServiceUnavailable) Error ¶
func (o *PostHardwaresServiceUnavailable) Error() string
type PostHardwaresUnauthorized ¶
type PostHardwaresUnauthorized struct { }
PostHardwaresUnauthorized handles this case with default header values.
Unauthorized (Your credentials suck)
func NewPostHardwaresUnauthorized ¶
func NewPostHardwaresUnauthorized() *PostHardwaresUnauthorized
NewPostHardwaresUnauthorized creates a PostHardwaresUnauthorized with default headers values
func (*PostHardwaresUnauthorized) Error ¶
func (o *PostHardwaresUnauthorized) Error() string