Documentation
¶
Index ¶
- type Client
- func (a *Client) DeletePartmodels(params *DeletePartmodelsParams, authInfo runtime.ClientAuthInfoWriter) (*DeletePartmodelsOK, error)
- func (a *Client) DeleteParts(params *DeletePartsParams, authInfo runtime.ClientAuthInfoWriter) (*DeletePartsOK, error)
- func (a *Client) GetPartmodels(params *GetPartmodelsParams, authInfo runtime.ClientAuthInfoWriter) (*GetPartmodelsOK, error)
- func (a *Client) GetParts(params *GetPartsParams, authInfo runtime.ClientAuthInfoWriter) (*GetPartsOK, error)
- func (a *Client) PostPartmodels(params *PostPartmodelsParams, authInfo runtime.ClientAuthInfoWriter) (*PostPartmodelsOK, error)
- func (a *Client) PostParts(params *PostPartsParams, authInfo runtime.ClientAuthInfoWriter) (*PostPartsOK, error)
- func (a *Client) PutCustomFieldPart(params *PutCustomFieldPartParams, authInfo runtime.ClientAuthInfoWriter) (*PutCustomFieldPartOK, error)
- func (a *Client) PutCustomFieldPartmodel(params *PutCustomFieldPartmodelParams, authInfo runtime.ClientAuthInfoWriter) (*PutCustomFieldPartmodelOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type DeletePartmodelsBadRequest
- type DeletePartmodelsForbidden
- type DeletePartmodelsGone
- type DeletePartmodelsInternalServerError
- type DeletePartmodelsMethodNotAllowed
- type DeletePartmodelsNotFound
- type DeletePartmodelsOK
- type DeletePartmodelsOKBody
- type DeletePartmodelsParams
- func NewDeletePartmodelsParams() *DeletePartmodelsParams
- func NewDeletePartmodelsParamsWithContext(ctx context.Context) *DeletePartmodelsParams
- func NewDeletePartmodelsParamsWithHTTPClient(client *http.Client) *DeletePartmodelsParams
- func NewDeletePartmodelsParamsWithTimeout(timeout time.Duration) *DeletePartmodelsParams
- func (o *DeletePartmodelsParams) SetContext(ctx context.Context)
- func (o *DeletePartmodelsParams) SetHTTPClient(client *http.Client)
- func (o *DeletePartmodelsParams) SetID(id int64)
- func (o *DeletePartmodelsParams) SetTimeout(timeout time.Duration)
- func (o *DeletePartmodelsParams) WithContext(ctx context.Context) *DeletePartmodelsParams
- func (o *DeletePartmodelsParams) WithHTTPClient(client *http.Client) *DeletePartmodelsParams
- func (o *DeletePartmodelsParams) WithID(id int64) *DeletePartmodelsParams
- func (o *DeletePartmodelsParams) WithTimeout(timeout time.Duration) *DeletePartmodelsParams
- func (o *DeletePartmodelsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeletePartmodelsReader
- type DeletePartmodelsServiceUnavailable
- type DeletePartmodelsUnauthorized
- type DeletePartsBadRequest
- type DeletePartsForbidden
- type DeletePartsGone
- type DeletePartsInternalServerError
- type DeletePartsMethodNotAllowed
- type DeletePartsNotFound
- type DeletePartsOK
- type DeletePartsOKBody
- type DeletePartsParams
- func (o *DeletePartsParams) SetContext(ctx context.Context)
- func (o *DeletePartsParams) SetHTTPClient(client *http.Client)
- func (o *DeletePartsParams) SetID(id int64)
- func (o *DeletePartsParams) SetTimeout(timeout time.Duration)
- func (o *DeletePartsParams) WithContext(ctx context.Context) *DeletePartsParams
- func (o *DeletePartsParams) WithHTTPClient(client *http.Client) *DeletePartsParams
- func (o *DeletePartsParams) WithID(id int64) *DeletePartsParams
- func (o *DeletePartsParams) WithTimeout(timeout time.Duration) *DeletePartsParams
- func (o *DeletePartsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeletePartsReader
- type DeletePartsServiceUnavailable
- type DeletePartsUnauthorized
- type GetPartmodelsBadRequest
- type GetPartmodelsForbidden
- type GetPartmodelsGone
- type GetPartmodelsInternalServerError
- type GetPartmodelsMethodNotAllowed
- type GetPartmodelsNotFound
- type GetPartmodelsOK
- type GetPartmodelsParams
- func (o *GetPartmodelsParams) SetContext(ctx context.Context)
- func (o *GetPartmodelsParams) SetHTTPClient(client *http.Client)
- func (o *GetPartmodelsParams) SetName(name *string)
- func (o *GetPartmodelsParams) SetTimeout(timeout time.Duration)
- func (o *GetPartmodelsParams) WithContext(ctx context.Context) *GetPartmodelsParams
- func (o *GetPartmodelsParams) WithHTTPClient(client *http.Client) *GetPartmodelsParams
- func (o *GetPartmodelsParams) WithName(name *string) *GetPartmodelsParams
- func (o *GetPartmodelsParams) WithTimeout(timeout time.Duration) *GetPartmodelsParams
- func (o *GetPartmodelsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPartmodelsReader
- type GetPartmodelsServiceUnavailable
- type GetPartmodelsUnauthorized
- type GetPartsBadRequest
- type GetPartsForbidden
- type GetPartsGone
- type GetPartsInternalServerError
- type GetPartsMethodNotAllowed
- type GetPartsNotFound
- type GetPartsOK
- type GetPartsOKBody
- type GetPartsParams
- func (o *GetPartsParams) SetAssetNo(assetNo *string)
- func (o *GetPartsParams) SetContext(ctx context.Context)
- func (o *GetPartsParams) SetCustomFieldsAnd(customFieldsAnd *string)
- func (o *GetPartsParams) SetCustomFieldsOr(customFieldsOr *string)
- func (o *GetPartsParams) SetDevice(device *string)
- func (o *GetPartsParams) SetDeviceID(deviceID *string)
- func (o *GetPartsParams) SetDeviceSerial(deviceSerial *string)
- func (o *GetPartsParams) SetHTTPClient(client *http.Client)
- func (o *GetPartsParams) SetLastUpdatedGt(lastUpdatedGt *string)
- func (o *GetPartsParams) SetLastUpdatedLt(lastUpdatedLt *string)
- func (o *GetPartsParams) SetPartID(partID *string)
- func (o *GetPartsParams) SetPartmodelID(partmodelID *string)
- func (o *GetPartsParams) SetRack(rack *string)
- func (o *GetPartsParams) SetRackID(rackID *string)
- func (o *GetPartsParams) SetRoom(room *string)
- func (o *GetPartsParams) SetRoomID(roomID *string)
- func (o *GetPartsParams) SetSerialNo(serialNo *string)
- func (o *GetPartsParams) SetTags(tags *string)
- func (o *GetPartsParams) SetTimeout(timeout time.Duration)
- func (o *GetPartsParams) SetType(typeVar *string)
- func (o *GetPartsParams) WithAssetNo(assetNo *string) *GetPartsParams
- func (o *GetPartsParams) WithContext(ctx context.Context) *GetPartsParams
- func (o *GetPartsParams) WithCustomFieldsAnd(customFieldsAnd *string) *GetPartsParams
- func (o *GetPartsParams) WithCustomFieldsOr(customFieldsOr *string) *GetPartsParams
- func (o *GetPartsParams) WithDevice(device *string) *GetPartsParams
- func (o *GetPartsParams) WithDeviceID(deviceID *string) *GetPartsParams
- func (o *GetPartsParams) WithDeviceSerial(deviceSerial *string) *GetPartsParams
- func (o *GetPartsParams) WithHTTPClient(client *http.Client) *GetPartsParams
- func (o *GetPartsParams) WithLastUpdatedGt(lastUpdatedGt *string) *GetPartsParams
- func (o *GetPartsParams) WithLastUpdatedLt(lastUpdatedLt *string) *GetPartsParams
- func (o *GetPartsParams) WithPartID(partID *string) *GetPartsParams
- func (o *GetPartsParams) WithPartmodelID(partmodelID *string) *GetPartsParams
- func (o *GetPartsParams) WithRack(rack *string) *GetPartsParams
- func (o *GetPartsParams) WithRackID(rackID *string) *GetPartsParams
- func (o *GetPartsParams) WithRoom(room *string) *GetPartsParams
- func (o *GetPartsParams) WithRoomID(roomID *string) *GetPartsParams
- func (o *GetPartsParams) WithSerialNo(serialNo *string) *GetPartsParams
- func (o *GetPartsParams) WithTags(tags *string) *GetPartsParams
- func (o *GetPartsParams) WithTimeout(timeout time.Duration) *GetPartsParams
- func (o *GetPartsParams) WithType(typeVar *string) *GetPartsParams
- func (o *GetPartsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPartsReader
- type GetPartsServiceUnavailable
- type GetPartsUnauthorized
- type PostPartmodelsBadRequest
- type PostPartmodelsForbidden
- type PostPartmodelsGone
- type PostPartmodelsInternalServerError
- type PostPartmodelsMethodNotAllowed
- type PostPartmodelsNotFound
- type PostPartmodelsOK
- type PostPartmodelsOKBody
- type PostPartmodelsParams
- func NewPostPartmodelsParams() *PostPartmodelsParams
- func NewPostPartmodelsParamsWithContext(ctx context.Context) *PostPartmodelsParams
- func NewPostPartmodelsParamsWithHTTPClient(client *http.Client) *PostPartmodelsParams
- func NewPostPartmodelsParamsWithTimeout(timeout time.Duration) *PostPartmodelsParams
- func (o *PostPartmodelsParams) SetConnectivity(connectivity *string)
- func (o *PostPartmodelsParams) SetConnectorType(connectorType *string)
- func (o *PostPartmodelsParams) SetContext(ctx context.Context)
- func (o *PostPartmodelsParams) SetCores(cores *string)
- func (o *PostPartmodelsParams) SetCpuspeed(cpuspeed *string)
- func (o *PostPartmodelsParams) SetDescription(description *string)
- func (o *PostPartmodelsParams) SetHTTPClient(client *http.Client)
- func (o *PostPartmodelsParams) SetHddrpm(hddrpm *string)
- func (o *PostPartmodelsParams) SetHddsize(hddsize *string)
- func (o *PostPartmodelsParams) SetHddtype(hddtype *string)
- func (o *PostPartmodelsParams) SetLength(length *string)
- func (o *PostPartmodelsParams) SetLocation(location *string)
- func (o *PostPartmodelsParams) SetManufacturer(manufacturer *string)
- func (o *PostPartmodelsParams) SetMediaType(mediaType *string)
- func (o *PostPartmodelsParams) SetModelno(modelno *string)
- func (o *PostPartmodelsParams) SetName(name *string)
- func (o *PostPartmodelsParams) SetNotes(notes *string)
- func (o *PostPartmodelsParams) SetPartmodelID(partmodelID *string)
- func (o *PostPartmodelsParams) SetPartno(partno *string)
- func (o *PostPartmodelsParams) SetRamsize(ramsize *string)
- func (o *PostPartmodelsParams) SetRamspeed(ramspeed *string)
- func (o *PostPartmodelsParams) SetRamtype(ramtype *string)
- func (o *PostPartmodelsParams) SetThreads(threads *string)
- func (o *PostPartmodelsParams) SetTimeout(timeout time.Duration)
- func (o *PostPartmodelsParams) SetTotalCount(totalCount *string)
- func (o *PostPartmodelsParams) SetType(typeVar *string)
- func (o *PostPartmodelsParams) WithConnectivity(connectivity *string) *PostPartmodelsParams
- func (o *PostPartmodelsParams) WithConnectorType(connectorType *string) *PostPartmodelsParams
- func (o *PostPartmodelsParams) WithContext(ctx context.Context) *PostPartmodelsParams
- func (o *PostPartmodelsParams) WithCores(cores *string) *PostPartmodelsParams
- func (o *PostPartmodelsParams) WithCpuspeed(cpuspeed *string) *PostPartmodelsParams
- func (o *PostPartmodelsParams) WithDescription(description *string) *PostPartmodelsParams
- func (o *PostPartmodelsParams) WithHTTPClient(client *http.Client) *PostPartmodelsParams
- func (o *PostPartmodelsParams) WithHddrpm(hddrpm *string) *PostPartmodelsParams
- func (o *PostPartmodelsParams) WithHddsize(hddsize *string) *PostPartmodelsParams
- func (o *PostPartmodelsParams) WithHddtype(hddtype *string) *PostPartmodelsParams
- func (o *PostPartmodelsParams) WithLength(length *string) *PostPartmodelsParams
- func (o *PostPartmodelsParams) WithLocation(location *string) *PostPartmodelsParams
- func (o *PostPartmodelsParams) WithManufacturer(manufacturer *string) *PostPartmodelsParams
- func (o *PostPartmodelsParams) WithMediaType(mediaType *string) *PostPartmodelsParams
- func (o *PostPartmodelsParams) WithModelno(modelno *string) *PostPartmodelsParams
- func (o *PostPartmodelsParams) WithName(name *string) *PostPartmodelsParams
- func (o *PostPartmodelsParams) WithNotes(notes *string) *PostPartmodelsParams
- func (o *PostPartmodelsParams) WithPartmodelID(partmodelID *string) *PostPartmodelsParams
- func (o *PostPartmodelsParams) WithPartno(partno *string) *PostPartmodelsParams
- func (o *PostPartmodelsParams) WithRamsize(ramsize *string) *PostPartmodelsParams
- func (o *PostPartmodelsParams) WithRamspeed(ramspeed *string) *PostPartmodelsParams
- func (o *PostPartmodelsParams) WithRamtype(ramtype *string) *PostPartmodelsParams
- func (o *PostPartmodelsParams) WithThreads(threads *string) *PostPartmodelsParams
- func (o *PostPartmodelsParams) WithTimeout(timeout time.Duration) *PostPartmodelsParams
- func (o *PostPartmodelsParams) WithTotalCount(totalCount *string) *PostPartmodelsParams
- func (o *PostPartmodelsParams) WithType(typeVar *string) *PostPartmodelsParams
- func (o *PostPartmodelsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostPartmodelsReader
- type PostPartmodelsServiceUnavailable
- type PostPartmodelsUnauthorized
- type PostPartsBadRequest
- type PostPartsForbidden
- type PostPartsGone
- type PostPartsInternalServerError
- type PostPartsMethodNotAllowed
- type PostPartsNotFound
- type PostPartsOK
- type PostPartsOKBody
- type PostPartsParams
- func (o *PostPartsParams) SetAssignment(assignment *string)
- func (o *PostPartsParams) SetContext(ctx context.Context)
- func (o *PostPartsParams) SetCores(cores *string)
- func (o *PostPartsParams) SetCount(count *int64)
- func (o *PostPartsParams) SetCpuspeed(cpuspeed *string)
- func (o *PostPartsParams) SetDateChanged(dateChanged *string)
- func (o *PostPartsParams) SetDescription(description *string)
- func (o *PostPartsParams) SetDevice(device *string)
- func (o *PostPartsParams) SetFirmware(firmware *string)
- func (o *PostPartsParams) SetHTTPClient(client *http.Client)
- func (o *PostPartsParams) SetHddrpm(hddrpm *string)
- func (o *PostPartsParams) SetHddsize(hddsize *string)
- func (o *PostPartsParams) SetHddtype(hddtype *string)
- func (o *PostPartsParams) SetName(name *string)
- func (o *PostPartsParams) SetPartID(partID *string)
- func (o *PostPartsParams) SetPartmodelID(partmodelID *string)
- func (o *PostPartsParams) SetRaidGroup(raidGroup *string)
- func (o *PostPartsParams) SetRaidType(raidType *string)
- func (o *PostPartsParams) SetRamsize(ramsize *string)
- func (o *PostPartsParams) SetRamspeed(ramspeed *string)
- func (o *PostPartsParams) SetRamtype(ramtype *string)
- func (o *PostPartsParams) SetRoom(room *string)
- func (o *PostPartsParams) SetSerialNo(serialNo *string)
- func (o *PostPartsParams) SetThreads(threads *string)
- func (o *PostPartsParams) SetTimeout(timeout time.Duration)
- func (o *PostPartsParams) SetType(typeVar *string)
- func (o *PostPartsParams) WithAssignment(assignment *string) *PostPartsParams
- func (o *PostPartsParams) WithContext(ctx context.Context) *PostPartsParams
- func (o *PostPartsParams) WithCores(cores *string) *PostPartsParams
- func (o *PostPartsParams) WithCount(count *int64) *PostPartsParams
- func (o *PostPartsParams) WithCpuspeed(cpuspeed *string) *PostPartsParams
- func (o *PostPartsParams) WithDateChanged(dateChanged *string) *PostPartsParams
- func (o *PostPartsParams) WithDescription(description *string) *PostPartsParams
- func (o *PostPartsParams) WithDevice(device *string) *PostPartsParams
- func (o *PostPartsParams) WithFirmware(firmware *string) *PostPartsParams
- func (o *PostPartsParams) WithHTTPClient(client *http.Client) *PostPartsParams
- func (o *PostPartsParams) WithHddrpm(hddrpm *string) *PostPartsParams
- func (o *PostPartsParams) WithHddsize(hddsize *string) *PostPartsParams
- func (o *PostPartsParams) WithHddtype(hddtype *string) *PostPartsParams
- func (o *PostPartsParams) WithName(name *string) *PostPartsParams
- func (o *PostPartsParams) WithPartID(partID *string) *PostPartsParams
- func (o *PostPartsParams) WithPartmodelID(partmodelID *string) *PostPartsParams
- func (o *PostPartsParams) WithRaidGroup(raidGroup *string) *PostPartsParams
- func (o *PostPartsParams) WithRaidType(raidType *string) *PostPartsParams
- func (o *PostPartsParams) WithRamsize(ramsize *string) *PostPartsParams
- func (o *PostPartsParams) WithRamspeed(ramspeed *string) *PostPartsParams
- func (o *PostPartsParams) WithRamtype(ramtype *string) *PostPartsParams
- func (o *PostPartsParams) WithRoom(room *string) *PostPartsParams
- func (o *PostPartsParams) WithSerialNo(serialNo *string) *PostPartsParams
- func (o *PostPartsParams) WithThreads(threads *string) *PostPartsParams
- func (o *PostPartsParams) WithTimeout(timeout time.Duration) *PostPartsParams
- func (o *PostPartsParams) WithType(typeVar *string) *PostPartsParams
- func (o *PostPartsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostPartsReader
- type PostPartsServiceUnavailable
- type PostPartsUnauthorized
- type PutCustomFieldPartBadRequest
- type PutCustomFieldPartForbidden
- type PutCustomFieldPartGone
- type PutCustomFieldPartInternalServerError
- type PutCustomFieldPartMethodNotAllowed
- type PutCustomFieldPartNotFound
- type PutCustomFieldPartOK
- type PutCustomFieldPartOKBody
- type PutCustomFieldPartParams
- func NewPutCustomFieldPartParams() *PutCustomFieldPartParams
- func NewPutCustomFieldPartParamsWithContext(ctx context.Context) *PutCustomFieldPartParams
- func NewPutCustomFieldPartParamsWithHTTPClient(client *http.Client) *PutCustomFieldPartParams
- func NewPutCustomFieldPartParamsWithTimeout(timeout time.Duration) *PutCustomFieldPartParams
- func (o *PutCustomFieldPartParams) SetAddToPicklist(addToPicklist *string)
- func (o *PutCustomFieldPartParams) SetBulkFields(bulkFields *string)
- func (o *PutCustomFieldPartParams) SetClearValue(clearValue *string)
- func (o *PutCustomFieldPartParams) SetContext(ctx context.Context)
- func (o *PutCustomFieldPartParams) SetHTTPClient(client *http.Client)
- func (o *PutCustomFieldPartParams) SetID(id string)
- func (o *PutCustomFieldPartParams) SetKey(key string)
- func (o *PutCustomFieldPartParams) SetNotes(notes *string)
- func (o *PutCustomFieldPartParams) SetRelatedFieldName(relatedFieldName *string)
- func (o *PutCustomFieldPartParams) SetTimeout(timeout time.Duration)
- func (o *PutCustomFieldPartParams) SetType(typeVar *string)
- func (o *PutCustomFieldPartParams) SetValue(value *string)
- func (o *PutCustomFieldPartParams) WithAddToPicklist(addToPicklist *string) *PutCustomFieldPartParams
- func (o *PutCustomFieldPartParams) WithBulkFields(bulkFields *string) *PutCustomFieldPartParams
- func (o *PutCustomFieldPartParams) WithClearValue(clearValue *string) *PutCustomFieldPartParams
- func (o *PutCustomFieldPartParams) WithContext(ctx context.Context) *PutCustomFieldPartParams
- func (o *PutCustomFieldPartParams) WithHTTPClient(client *http.Client) *PutCustomFieldPartParams
- func (o *PutCustomFieldPartParams) WithID(id string) *PutCustomFieldPartParams
- func (o *PutCustomFieldPartParams) WithKey(key string) *PutCustomFieldPartParams
- func (o *PutCustomFieldPartParams) WithNotes(notes *string) *PutCustomFieldPartParams
- func (o *PutCustomFieldPartParams) WithRelatedFieldName(relatedFieldName *string) *PutCustomFieldPartParams
- func (o *PutCustomFieldPartParams) WithTimeout(timeout time.Duration) *PutCustomFieldPartParams
- func (o *PutCustomFieldPartParams) WithType(typeVar *string) *PutCustomFieldPartParams
- func (o *PutCustomFieldPartParams) WithValue(value *string) *PutCustomFieldPartParams
- func (o *PutCustomFieldPartParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PutCustomFieldPartReader
- type PutCustomFieldPartServiceUnavailable
- type PutCustomFieldPartUnauthorized
- type PutCustomFieldPartmodelBadRequest
- type PutCustomFieldPartmodelForbidden
- type PutCustomFieldPartmodelGone
- type PutCustomFieldPartmodelInternalServerError
- type PutCustomFieldPartmodelMethodNotAllowed
- type PutCustomFieldPartmodelNotFound
- type PutCustomFieldPartmodelOK
- type PutCustomFieldPartmodelOKBody
- type PutCustomFieldPartmodelParams
- func NewPutCustomFieldPartmodelParams() *PutCustomFieldPartmodelParams
- func NewPutCustomFieldPartmodelParamsWithContext(ctx context.Context) *PutCustomFieldPartmodelParams
- func NewPutCustomFieldPartmodelParamsWithHTTPClient(client *http.Client) *PutCustomFieldPartmodelParams
- func NewPutCustomFieldPartmodelParamsWithTimeout(timeout time.Duration) *PutCustomFieldPartmodelParams
- func (o *PutCustomFieldPartmodelParams) SetAddToPicklist(addToPicklist *string)
- func (o *PutCustomFieldPartmodelParams) SetBulkFields(bulkFields *string)
- func (o *PutCustomFieldPartmodelParams) SetClearValue(clearValue *string)
- func (o *PutCustomFieldPartmodelParams) SetContext(ctx context.Context)
- func (o *PutCustomFieldPartmodelParams) SetHTTPClient(client *http.Client)
- func (o *PutCustomFieldPartmodelParams) SetID(id string)
- func (o *PutCustomFieldPartmodelParams) SetKey(key string)
- func (o *PutCustomFieldPartmodelParams) SetNotes(notes *string)
- func (o *PutCustomFieldPartmodelParams) SetRelatedFieldName(relatedFieldName *string)
- func (o *PutCustomFieldPartmodelParams) SetTimeout(timeout time.Duration)
- func (o *PutCustomFieldPartmodelParams) SetType(typeVar *string)
- func (o *PutCustomFieldPartmodelParams) SetValue(value *string)
- func (o *PutCustomFieldPartmodelParams) WithAddToPicklist(addToPicklist *string) *PutCustomFieldPartmodelParams
- func (o *PutCustomFieldPartmodelParams) WithBulkFields(bulkFields *string) *PutCustomFieldPartmodelParams
- func (o *PutCustomFieldPartmodelParams) WithClearValue(clearValue *string) *PutCustomFieldPartmodelParams
- func (o *PutCustomFieldPartmodelParams) WithContext(ctx context.Context) *PutCustomFieldPartmodelParams
- func (o *PutCustomFieldPartmodelParams) WithHTTPClient(client *http.Client) *PutCustomFieldPartmodelParams
- func (o *PutCustomFieldPartmodelParams) WithID(id string) *PutCustomFieldPartmodelParams
- func (o *PutCustomFieldPartmodelParams) WithKey(key string) *PutCustomFieldPartmodelParams
- func (o *PutCustomFieldPartmodelParams) WithNotes(notes *string) *PutCustomFieldPartmodelParams
- func (o *PutCustomFieldPartmodelParams) WithRelatedFieldName(relatedFieldName *string) *PutCustomFieldPartmodelParams
- func (o *PutCustomFieldPartmodelParams) WithTimeout(timeout time.Duration) *PutCustomFieldPartmodelParams
- func (o *PutCustomFieldPartmodelParams) WithType(typeVar *string) *PutCustomFieldPartmodelParams
- func (o *PutCustomFieldPartmodelParams) WithValue(value *string) *PutCustomFieldPartmodelParams
- func (o *PutCustomFieldPartmodelParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PutCustomFieldPartmodelReader
- type PutCustomFieldPartmodelServiceUnavailable
- type PutCustomFieldPartmodelUnauthorized
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 parts management API
func (*Client) DeletePartmodels ¶
func (a *Client) DeletePartmodels(params *DeletePartmodelsParams, authInfo runtime.ClientAuthInfoWriter) (*DeletePartmodelsOK, error)
DeletePartmodels deletes part model
This API is used to delete the part model with the part model id supplied as the required argument.
func (*Client) DeleteParts ¶
func (a *Client) DeleteParts(params *DeletePartsParams, authInfo runtime.ClientAuthInfoWriter) (*DeletePartsOK, error)
DeleteParts deletes part
This API is used to delete the part with the part id supplied as the required argument.
func (*Client) GetPartmodels ¶
func (a *Client) GetPartmodels(params *GetPartmodelsParams, authInfo runtime.ClientAuthInfoWriter) (*GetPartmodelsOK, error)
GetPartmodels gets all part models introduced in version 5 7 2
Get all Part Models
func (*Client) GetParts ¶
func (a *Client) GetParts(params *GetPartsParams, authInfo runtime.ClientAuthInfoWriter) (*GetPartsOK, error)
GetParts gets all parts introduced in version 5 7 2
Get all Parts
func (*Client) PostPartmodels ¶
func (a *Client) PostPartmodels(params *PostPartmodelsParams, authInfo runtime.ClientAuthInfoWriter) (*PostPartmodelsOK, error)
PostPartmodels creates update part models introduced in version 5 7 2
Create / Update Part Models
func (*Client) PostParts ¶
func (a *Client) PostParts(params *PostPartsParams, authInfo runtime.ClientAuthInfoWriter) (*PostPartsOK, error)
PostParts creates update parts introduced in version 5 7 2
Create / Update Parts
func (*Client) PutCustomFieldPart ¶
func (a *Client) PutCustomFieldPart(params *PutCustomFieldPartParams, authInfo runtime.ClientAuthInfoWriter) (*PutCustomFieldPartOK, error)
PutCustomFieldPart creates update existing custom fields for parts
Create/updated custom fields for parts.
func (*Client) PutCustomFieldPartmodel ¶
func (a *Client) PutCustomFieldPartmodel(params *PutCustomFieldPartmodelParams, authInfo runtime.ClientAuthInfoWriter) (*PutCustomFieldPartmodelOK, error)
PutCustomFieldPartmodel creates update custom fields for part models
Custom Fields
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface { DeletePartmodels(params *DeletePartmodelsParams, authInfo runtime.ClientAuthInfoWriter) (*DeletePartmodelsOK, error) DeleteParts(params *DeletePartsParams, authInfo runtime.ClientAuthInfoWriter) (*DeletePartsOK, error) GetPartmodels(params *GetPartmodelsParams, authInfo runtime.ClientAuthInfoWriter) (*GetPartmodelsOK, error) GetParts(params *GetPartsParams, authInfo runtime.ClientAuthInfoWriter) (*GetPartsOK, error) PostPartmodels(params *PostPartmodelsParams, authInfo runtime.ClientAuthInfoWriter) (*PostPartmodelsOK, error) PostParts(params *PostPartsParams, authInfo runtime.ClientAuthInfoWriter) (*PostPartsOK, error) PutCustomFieldPart(params *PutCustomFieldPartParams, authInfo runtime.ClientAuthInfoWriter) (*PutCustomFieldPartOK, error) PutCustomFieldPartmodel(params *PutCustomFieldPartmodelParams, authInfo runtime.ClientAuthInfoWriter) (*PutCustomFieldPartmodelOK, 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 parts management API client.
type DeletePartmodelsBadRequest ¶
type DeletePartmodelsBadRequest struct { }
DeletePartmodelsBadRequest handles this case with default header values.
Bad Request (A validation exception has occurred.)
func NewDeletePartmodelsBadRequest ¶
func NewDeletePartmodelsBadRequest() *DeletePartmodelsBadRequest
NewDeletePartmodelsBadRequest creates a DeletePartmodelsBadRequest with default headers values
func (*DeletePartmodelsBadRequest) Error ¶
func (o *DeletePartmodelsBadRequest) Error() string
type DeletePartmodelsForbidden ¶
type DeletePartmodelsForbidden struct { }
DeletePartmodelsForbidden handles this case with default header values.
Forbidden (The resource requested is hidden)
func NewDeletePartmodelsForbidden ¶
func NewDeletePartmodelsForbidden() *DeletePartmodelsForbidden
NewDeletePartmodelsForbidden creates a DeletePartmodelsForbidden with default headers values
func (*DeletePartmodelsForbidden) Error ¶
func (o *DeletePartmodelsForbidden) Error() string
type DeletePartmodelsGone ¶
type DeletePartmodelsGone struct { }
DeletePartmodelsGone handles this case with default header values.
Gone (The resource requested has been removed from our servers)
func NewDeletePartmodelsGone ¶
func NewDeletePartmodelsGone() *DeletePartmodelsGone
NewDeletePartmodelsGone creates a DeletePartmodelsGone with default headers values
func (*DeletePartmodelsGone) Error ¶
func (o *DeletePartmodelsGone) Error() string
type DeletePartmodelsInternalServerError ¶
type DeletePartmodelsInternalServerError struct { }
DeletePartmodelsInternalServerError 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 NewDeletePartmodelsInternalServerError ¶
func NewDeletePartmodelsInternalServerError() *DeletePartmodelsInternalServerError
NewDeletePartmodelsInternalServerError creates a DeletePartmodelsInternalServerError with default headers values
func (*DeletePartmodelsInternalServerError) Error ¶
func (o *DeletePartmodelsInternalServerError) Error() string
type DeletePartmodelsMethodNotAllowed ¶
type DeletePartmodelsMethodNotAllowed struct { }
DeletePartmodelsMethodNotAllowed handles this case with default header values.
Method Not Allowed (You tried to access a resource with an invalid method)
func NewDeletePartmodelsMethodNotAllowed ¶
func NewDeletePartmodelsMethodNotAllowed() *DeletePartmodelsMethodNotAllowed
NewDeletePartmodelsMethodNotAllowed creates a DeletePartmodelsMethodNotAllowed with default headers values
func (*DeletePartmodelsMethodNotAllowed) Error ¶
func (o *DeletePartmodelsMethodNotAllowed) Error() string
type DeletePartmodelsNotFound ¶
type DeletePartmodelsNotFound struct { }
DeletePartmodelsNotFound handles this case with default header values.
Not Found (The specified resource could not be found)
func NewDeletePartmodelsNotFound ¶
func NewDeletePartmodelsNotFound() *DeletePartmodelsNotFound
NewDeletePartmodelsNotFound creates a DeletePartmodelsNotFound with default headers values
func (*DeletePartmodelsNotFound) Error ¶
func (o *DeletePartmodelsNotFound) Error() string
type DeletePartmodelsOK ¶
type DeletePartmodelsOK struct {
Payload *DeletePartmodelsOKBody
}
DeletePartmodelsOK handles this case with default header values.
The above command returns results like this:
func NewDeletePartmodelsOK ¶
func NewDeletePartmodelsOK() *DeletePartmodelsOK
NewDeletePartmodelsOK creates a DeletePartmodelsOK with default headers values
func (*DeletePartmodelsOK) Error ¶
func (o *DeletePartmodelsOK) Error() string
func (*DeletePartmodelsOK) GetPayload ¶
func (o *DeletePartmodelsOK) GetPayload() *DeletePartmodelsOKBody
type DeletePartmodelsOKBody ¶
type DeletePartmodelsOKBody struct { // deleted Deleted interface{} `json:"deleted,omitempty"` // id ID interface{} `json:"id,omitempty"` }
DeletePartmodelsOKBody delete partmodels o k body swagger:model DeletePartmodelsOKBody
func (*DeletePartmodelsOKBody) MarshalBinary ¶
func (o *DeletePartmodelsOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DeletePartmodelsOKBody) UnmarshalBinary ¶
func (o *DeletePartmodelsOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DeletePartmodelsParams ¶
type DeletePartmodelsParams struct { /*ID part model id */ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeletePartmodelsParams contains all the parameters to send to the API endpoint for the delete partmodels operation typically these are written to a http.Request
func NewDeletePartmodelsParams ¶
func NewDeletePartmodelsParams() *DeletePartmodelsParams
NewDeletePartmodelsParams creates a new DeletePartmodelsParams object with the default values initialized.
func NewDeletePartmodelsParamsWithContext ¶
func NewDeletePartmodelsParamsWithContext(ctx context.Context) *DeletePartmodelsParams
NewDeletePartmodelsParamsWithContext creates a new DeletePartmodelsParams object with the default values initialized, and the ability to set a context for a request
func NewDeletePartmodelsParamsWithHTTPClient ¶
func NewDeletePartmodelsParamsWithHTTPClient(client *http.Client) *DeletePartmodelsParams
NewDeletePartmodelsParamsWithHTTPClient creates a new DeletePartmodelsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDeletePartmodelsParamsWithTimeout ¶
func NewDeletePartmodelsParamsWithTimeout(timeout time.Duration) *DeletePartmodelsParams
NewDeletePartmodelsParamsWithTimeout creates a new DeletePartmodelsParams object with the default values initialized, and the ability to set a timeout on a request
func (*DeletePartmodelsParams) SetContext ¶
func (o *DeletePartmodelsParams) SetContext(ctx context.Context)
SetContext adds the context to the delete partmodels params
func (*DeletePartmodelsParams) SetHTTPClient ¶
func (o *DeletePartmodelsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete partmodels params
func (*DeletePartmodelsParams) SetID ¶
func (o *DeletePartmodelsParams) SetID(id int64)
SetID adds the id to the delete partmodels params
func (*DeletePartmodelsParams) SetTimeout ¶
func (o *DeletePartmodelsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete partmodels params
func (*DeletePartmodelsParams) WithContext ¶
func (o *DeletePartmodelsParams) WithContext(ctx context.Context) *DeletePartmodelsParams
WithContext adds the context to the delete partmodels params
func (*DeletePartmodelsParams) WithHTTPClient ¶
func (o *DeletePartmodelsParams) WithHTTPClient(client *http.Client) *DeletePartmodelsParams
WithHTTPClient adds the HTTPClient to the delete partmodels params
func (*DeletePartmodelsParams) WithID ¶
func (o *DeletePartmodelsParams) WithID(id int64) *DeletePartmodelsParams
WithID adds the id to the delete partmodels params
func (*DeletePartmodelsParams) WithTimeout ¶
func (o *DeletePartmodelsParams) WithTimeout(timeout time.Duration) *DeletePartmodelsParams
WithTimeout adds the timeout to the delete partmodels params
func (*DeletePartmodelsParams) WriteToRequest ¶
func (o *DeletePartmodelsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeletePartmodelsReader ¶
type DeletePartmodelsReader struct {
// contains filtered or unexported fields
}
DeletePartmodelsReader is a Reader for the DeletePartmodels structure.
func (*DeletePartmodelsReader) ReadResponse ¶
func (o *DeletePartmodelsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeletePartmodelsServiceUnavailable ¶
type DeletePartmodelsServiceUnavailable struct { }
DeletePartmodelsServiceUnavailable handles this case with default header values.
Service Unavailable (Please check if your Device42 instance is working normally.)
func NewDeletePartmodelsServiceUnavailable ¶
func NewDeletePartmodelsServiceUnavailable() *DeletePartmodelsServiceUnavailable
NewDeletePartmodelsServiceUnavailable creates a DeletePartmodelsServiceUnavailable with default headers values
func (*DeletePartmodelsServiceUnavailable) Error ¶
func (o *DeletePartmodelsServiceUnavailable) Error() string
type DeletePartmodelsUnauthorized ¶
type DeletePartmodelsUnauthorized struct { }
DeletePartmodelsUnauthorized handles this case with default header values.
Unauthorized (Your credentials suck)
func NewDeletePartmodelsUnauthorized ¶
func NewDeletePartmodelsUnauthorized() *DeletePartmodelsUnauthorized
NewDeletePartmodelsUnauthorized creates a DeletePartmodelsUnauthorized with default headers values
func (*DeletePartmodelsUnauthorized) Error ¶
func (o *DeletePartmodelsUnauthorized) Error() string
type DeletePartsBadRequest ¶
type DeletePartsBadRequest struct { }
DeletePartsBadRequest handles this case with default header values.
Bad Request (A validation exception has occurred.)
func NewDeletePartsBadRequest ¶
func NewDeletePartsBadRequest() *DeletePartsBadRequest
NewDeletePartsBadRequest creates a DeletePartsBadRequest with default headers values
func (*DeletePartsBadRequest) Error ¶
func (o *DeletePartsBadRequest) Error() string
type DeletePartsForbidden ¶
type DeletePartsForbidden struct { }
DeletePartsForbidden handles this case with default header values.
Forbidden (The resource requested is hidden)
func NewDeletePartsForbidden ¶
func NewDeletePartsForbidden() *DeletePartsForbidden
NewDeletePartsForbidden creates a DeletePartsForbidden with default headers values
func (*DeletePartsForbidden) Error ¶
func (o *DeletePartsForbidden) Error() string
type DeletePartsGone ¶
type DeletePartsGone struct { }
DeletePartsGone handles this case with default header values.
Gone (The resource requested has been removed from our servers)
func NewDeletePartsGone ¶
func NewDeletePartsGone() *DeletePartsGone
NewDeletePartsGone creates a DeletePartsGone with default headers values
func (*DeletePartsGone) Error ¶
func (o *DeletePartsGone) Error() string
type DeletePartsInternalServerError ¶
type DeletePartsInternalServerError struct { }
DeletePartsInternalServerError 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 NewDeletePartsInternalServerError ¶
func NewDeletePartsInternalServerError() *DeletePartsInternalServerError
NewDeletePartsInternalServerError creates a DeletePartsInternalServerError with default headers values
func (*DeletePartsInternalServerError) Error ¶
func (o *DeletePartsInternalServerError) Error() string
type DeletePartsMethodNotAllowed ¶
type DeletePartsMethodNotAllowed struct { }
DeletePartsMethodNotAllowed handles this case with default header values.
Method Not Allowed (You tried to access a resource with an invalid method)
func NewDeletePartsMethodNotAllowed ¶
func NewDeletePartsMethodNotAllowed() *DeletePartsMethodNotAllowed
NewDeletePartsMethodNotAllowed creates a DeletePartsMethodNotAllowed with default headers values
func (*DeletePartsMethodNotAllowed) Error ¶
func (o *DeletePartsMethodNotAllowed) Error() string
type DeletePartsNotFound ¶
type DeletePartsNotFound struct { }
DeletePartsNotFound handles this case with default header values.
Not Found (The specified resource could not be found)
func NewDeletePartsNotFound ¶
func NewDeletePartsNotFound() *DeletePartsNotFound
NewDeletePartsNotFound creates a DeletePartsNotFound with default headers values
func (*DeletePartsNotFound) Error ¶
func (o *DeletePartsNotFound) Error() string
type DeletePartsOK ¶
type DeletePartsOK struct {
Payload *DeletePartsOKBody
}
DeletePartsOK handles this case with default header values.
The above command returns results like this:
func NewDeletePartsOK ¶
func NewDeletePartsOK() *DeletePartsOK
NewDeletePartsOK creates a DeletePartsOK with default headers values
func (*DeletePartsOK) Error ¶
func (o *DeletePartsOK) Error() string
func (*DeletePartsOK) GetPayload ¶
func (o *DeletePartsOK) GetPayload() *DeletePartsOKBody
type DeletePartsOKBody ¶
type DeletePartsOKBody struct { // deleted Deleted interface{} `json:"deleted,omitempty"` // id ID interface{} `json:"id,omitempty"` }
DeletePartsOKBody delete parts o k body swagger:model DeletePartsOKBody
func (*DeletePartsOKBody) MarshalBinary ¶
func (o *DeletePartsOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DeletePartsOKBody) UnmarshalBinary ¶
func (o *DeletePartsOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DeletePartsParams ¶
type DeletePartsParams struct { /*ID part id */ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeletePartsParams contains all the parameters to send to the API endpoint for the delete parts operation typically these are written to a http.Request
func NewDeletePartsParams ¶
func NewDeletePartsParams() *DeletePartsParams
NewDeletePartsParams creates a new DeletePartsParams object with the default values initialized.
func NewDeletePartsParamsWithContext ¶
func NewDeletePartsParamsWithContext(ctx context.Context) *DeletePartsParams
NewDeletePartsParamsWithContext creates a new DeletePartsParams object with the default values initialized, and the ability to set a context for a request
func NewDeletePartsParamsWithHTTPClient ¶
func NewDeletePartsParamsWithHTTPClient(client *http.Client) *DeletePartsParams
NewDeletePartsParamsWithHTTPClient creates a new DeletePartsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDeletePartsParamsWithTimeout ¶
func NewDeletePartsParamsWithTimeout(timeout time.Duration) *DeletePartsParams
NewDeletePartsParamsWithTimeout creates a new DeletePartsParams object with the default values initialized, and the ability to set a timeout on a request
func (*DeletePartsParams) SetContext ¶
func (o *DeletePartsParams) SetContext(ctx context.Context)
SetContext adds the context to the delete parts params
func (*DeletePartsParams) SetHTTPClient ¶
func (o *DeletePartsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete parts params
func (*DeletePartsParams) SetID ¶
func (o *DeletePartsParams) SetID(id int64)
SetID adds the id to the delete parts params
func (*DeletePartsParams) SetTimeout ¶
func (o *DeletePartsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete parts params
func (*DeletePartsParams) WithContext ¶
func (o *DeletePartsParams) WithContext(ctx context.Context) *DeletePartsParams
WithContext adds the context to the delete parts params
func (*DeletePartsParams) WithHTTPClient ¶
func (o *DeletePartsParams) WithHTTPClient(client *http.Client) *DeletePartsParams
WithHTTPClient adds the HTTPClient to the delete parts params
func (*DeletePartsParams) WithID ¶
func (o *DeletePartsParams) WithID(id int64) *DeletePartsParams
WithID adds the id to the delete parts params
func (*DeletePartsParams) WithTimeout ¶
func (o *DeletePartsParams) WithTimeout(timeout time.Duration) *DeletePartsParams
WithTimeout adds the timeout to the delete parts params
func (*DeletePartsParams) WriteToRequest ¶
func (o *DeletePartsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeletePartsReader ¶
type DeletePartsReader struct {
// contains filtered or unexported fields
}
DeletePartsReader is a Reader for the DeleteParts structure.
func (*DeletePartsReader) ReadResponse ¶
func (o *DeletePartsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeletePartsServiceUnavailable ¶
type DeletePartsServiceUnavailable struct { }
DeletePartsServiceUnavailable handles this case with default header values.
Service Unavailable (Please check if your Device42 instance is working normally.)
func NewDeletePartsServiceUnavailable ¶
func NewDeletePartsServiceUnavailable() *DeletePartsServiceUnavailable
NewDeletePartsServiceUnavailable creates a DeletePartsServiceUnavailable with default headers values
func (*DeletePartsServiceUnavailable) Error ¶
func (o *DeletePartsServiceUnavailable) Error() string
type DeletePartsUnauthorized ¶
type DeletePartsUnauthorized struct { }
DeletePartsUnauthorized handles this case with default header values.
Unauthorized (Your credentials suck)
func NewDeletePartsUnauthorized ¶
func NewDeletePartsUnauthorized() *DeletePartsUnauthorized
NewDeletePartsUnauthorized creates a DeletePartsUnauthorized with default headers values
func (*DeletePartsUnauthorized) Error ¶
func (o *DeletePartsUnauthorized) Error() string
type GetPartmodelsBadRequest ¶
type GetPartmodelsBadRequest struct { }
GetPartmodelsBadRequest handles this case with default header values.
Bad Request (A validation exception has occurred.)
func NewGetPartmodelsBadRequest ¶
func NewGetPartmodelsBadRequest() *GetPartmodelsBadRequest
NewGetPartmodelsBadRequest creates a GetPartmodelsBadRequest with default headers values
func (*GetPartmodelsBadRequest) Error ¶
func (o *GetPartmodelsBadRequest) Error() string
type GetPartmodelsForbidden ¶
type GetPartmodelsForbidden struct { }
GetPartmodelsForbidden handles this case with default header values.
Forbidden (The resource requested is hidden)
func NewGetPartmodelsForbidden ¶
func NewGetPartmodelsForbidden() *GetPartmodelsForbidden
NewGetPartmodelsForbidden creates a GetPartmodelsForbidden with default headers values
func (*GetPartmodelsForbidden) Error ¶
func (o *GetPartmodelsForbidden) Error() string
type GetPartmodelsGone ¶
type GetPartmodelsGone struct { }
GetPartmodelsGone handles this case with default header values.
Gone (The resource requested has been removed from our servers)
func NewGetPartmodelsGone ¶
func NewGetPartmodelsGone() *GetPartmodelsGone
NewGetPartmodelsGone creates a GetPartmodelsGone with default headers values
func (*GetPartmodelsGone) Error ¶
func (o *GetPartmodelsGone) Error() string
type GetPartmodelsInternalServerError ¶
type GetPartmodelsInternalServerError struct { }
GetPartmodelsInternalServerError 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 NewGetPartmodelsInternalServerError ¶
func NewGetPartmodelsInternalServerError() *GetPartmodelsInternalServerError
NewGetPartmodelsInternalServerError creates a GetPartmodelsInternalServerError with default headers values
func (*GetPartmodelsInternalServerError) Error ¶
func (o *GetPartmodelsInternalServerError) Error() string
type GetPartmodelsMethodNotAllowed ¶
type GetPartmodelsMethodNotAllowed struct { }
GetPartmodelsMethodNotAllowed handles this case with default header values.
Method Not Allowed (You tried to access a resource with an invalid method)
func NewGetPartmodelsMethodNotAllowed ¶
func NewGetPartmodelsMethodNotAllowed() *GetPartmodelsMethodNotAllowed
NewGetPartmodelsMethodNotAllowed creates a GetPartmodelsMethodNotAllowed with default headers values
func (*GetPartmodelsMethodNotAllowed) Error ¶
func (o *GetPartmodelsMethodNotAllowed) Error() string
type GetPartmodelsNotFound ¶
type GetPartmodelsNotFound struct { }
GetPartmodelsNotFound handles this case with default header values.
Not Found (The specified resource could not be found)
func NewGetPartmodelsNotFound ¶
func NewGetPartmodelsNotFound() *GetPartmodelsNotFound
NewGetPartmodelsNotFound creates a GetPartmodelsNotFound with default headers values
func (*GetPartmodelsNotFound) Error ¶
func (o *GetPartmodelsNotFound) Error() string
type GetPartmodelsOK ¶
type GetPartmodelsOK struct {
Payload *models.Partmodels
}
GetPartmodelsOK handles this case with default header values.
The above command returns results like this:
func NewGetPartmodelsOK ¶
func NewGetPartmodelsOK() *GetPartmodelsOK
NewGetPartmodelsOK creates a GetPartmodelsOK with default headers values
func (*GetPartmodelsOK) Error ¶
func (o *GetPartmodelsOK) Error() string
func (*GetPartmodelsOK) GetPayload ¶
func (o *GetPartmodelsOK) GetPayload() *models.Partmodels
type GetPartmodelsParams ¶
type GetPartmodelsParams struct { /*Name filter by name (Added in v6.0.0) */ Name *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetPartmodelsParams contains all the parameters to send to the API endpoint for the get partmodels operation typically these are written to a http.Request
func NewGetPartmodelsParams ¶
func NewGetPartmodelsParams() *GetPartmodelsParams
NewGetPartmodelsParams creates a new GetPartmodelsParams object with the default values initialized.
func NewGetPartmodelsParamsWithContext ¶
func NewGetPartmodelsParamsWithContext(ctx context.Context) *GetPartmodelsParams
NewGetPartmodelsParamsWithContext creates a new GetPartmodelsParams object with the default values initialized, and the ability to set a context for a request
func NewGetPartmodelsParamsWithHTTPClient ¶
func NewGetPartmodelsParamsWithHTTPClient(client *http.Client) *GetPartmodelsParams
NewGetPartmodelsParamsWithHTTPClient creates a new GetPartmodelsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetPartmodelsParamsWithTimeout ¶
func NewGetPartmodelsParamsWithTimeout(timeout time.Duration) *GetPartmodelsParams
NewGetPartmodelsParamsWithTimeout creates a new GetPartmodelsParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetPartmodelsParams) SetContext ¶
func (o *GetPartmodelsParams) SetContext(ctx context.Context)
SetContext adds the context to the get partmodels params
func (*GetPartmodelsParams) SetHTTPClient ¶
func (o *GetPartmodelsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get partmodels params
func (*GetPartmodelsParams) SetName ¶
func (o *GetPartmodelsParams) SetName(name *string)
SetName adds the name to the get partmodels params
func (*GetPartmodelsParams) SetTimeout ¶
func (o *GetPartmodelsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get partmodels params
func (*GetPartmodelsParams) WithContext ¶
func (o *GetPartmodelsParams) WithContext(ctx context.Context) *GetPartmodelsParams
WithContext adds the context to the get partmodels params
func (*GetPartmodelsParams) WithHTTPClient ¶
func (o *GetPartmodelsParams) WithHTTPClient(client *http.Client) *GetPartmodelsParams
WithHTTPClient adds the HTTPClient to the get partmodels params
func (*GetPartmodelsParams) WithName ¶
func (o *GetPartmodelsParams) WithName(name *string) *GetPartmodelsParams
WithName adds the name to the get partmodels params
func (*GetPartmodelsParams) WithTimeout ¶
func (o *GetPartmodelsParams) WithTimeout(timeout time.Duration) *GetPartmodelsParams
WithTimeout adds the timeout to the get partmodels params
func (*GetPartmodelsParams) WriteToRequest ¶
func (o *GetPartmodelsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetPartmodelsReader ¶
type GetPartmodelsReader struct {
// contains filtered or unexported fields
}
GetPartmodelsReader is a Reader for the GetPartmodels structure.
func (*GetPartmodelsReader) ReadResponse ¶
func (o *GetPartmodelsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetPartmodelsServiceUnavailable ¶
type GetPartmodelsServiceUnavailable struct { }
GetPartmodelsServiceUnavailable handles this case with default header values.
Service Unavailable (Please check if your Device42 instance is working normally.)
func NewGetPartmodelsServiceUnavailable ¶
func NewGetPartmodelsServiceUnavailable() *GetPartmodelsServiceUnavailable
NewGetPartmodelsServiceUnavailable creates a GetPartmodelsServiceUnavailable with default headers values
func (*GetPartmodelsServiceUnavailable) Error ¶
func (o *GetPartmodelsServiceUnavailable) Error() string
type GetPartmodelsUnauthorized ¶
type GetPartmodelsUnauthorized struct { }
GetPartmodelsUnauthorized handles this case with default header values.
Unauthorized (Your credentials suck)
func NewGetPartmodelsUnauthorized ¶
func NewGetPartmodelsUnauthorized() *GetPartmodelsUnauthorized
NewGetPartmodelsUnauthorized creates a GetPartmodelsUnauthorized with default headers values
func (*GetPartmodelsUnauthorized) Error ¶
func (o *GetPartmodelsUnauthorized) Error() string
type GetPartsBadRequest ¶
type GetPartsBadRequest struct { }
GetPartsBadRequest handles this case with default header values.
Bad Request (A validation exception has occurred.)
func NewGetPartsBadRequest ¶
func NewGetPartsBadRequest() *GetPartsBadRequest
NewGetPartsBadRequest creates a GetPartsBadRequest with default headers values
func (*GetPartsBadRequest) Error ¶
func (o *GetPartsBadRequest) Error() string
type GetPartsForbidden ¶
type GetPartsForbidden struct { }
GetPartsForbidden handles this case with default header values.
Forbidden (The resource requested is hidden)
func NewGetPartsForbidden ¶
func NewGetPartsForbidden() *GetPartsForbidden
NewGetPartsForbidden creates a GetPartsForbidden with default headers values
func (*GetPartsForbidden) Error ¶
func (o *GetPartsForbidden) Error() string
type GetPartsGone ¶
type GetPartsGone struct { }
GetPartsGone handles this case with default header values.
Gone (The resource requested has been removed from our servers)
func NewGetPartsGone ¶
func NewGetPartsGone() *GetPartsGone
NewGetPartsGone creates a GetPartsGone with default headers values
func (*GetPartsGone) Error ¶
func (o *GetPartsGone) Error() string
type GetPartsInternalServerError ¶
type GetPartsInternalServerError struct { }
GetPartsInternalServerError 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 NewGetPartsInternalServerError ¶
func NewGetPartsInternalServerError() *GetPartsInternalServerError
NewGetPartsInternalServerError creates a GetPartsInternalServerError with default headers values
func (*GetPartsInternalServerError) Error ¶
func (o *GetPartsInternalServerError) Error() string
type GetPartsMethodNotAllowed ¶
type GetPartsMethodNotAllowed struct { }
GetPartsMethodNotAllowed handles this case with default header values.
Method Not Allowed (You tried to access a resource with an invalid method)
func NewGetPartsMethodNotAllowed ¶
func NewGetPartsMethodNotAllowed() *GetPartsMethodNotAllowed
NewGetPartsMethodNotAllowed creates a GetPartsMethodNotAllowed with default headers values
func (*GetPartsMethodNotAllowed) Error ¶
func (o *GetPartsMethodNotAllowed) Error() string
type GetPartsNotFound ¶
type GetPartsNotFound struct { }
GetPartsNotFound handles this case with default header values.
Not Found (The specified resource could not be found)
func NewGetPartsNotFound ¶
func NewGetPartsNotFound() *GetPartsNotFound
NewGetPartsNotFound creates a GetPartsNotFound with default headers values
func (*GetPartsNotFound) Error ¶
func (o *GetPartsNotFound) Error() string
type GetPartsOK ¶
type GetPartsOK struct {
Payload *GetPartsOKBody
}
GetPartsOK handles this case with default header values.
The above command returns results like this:
func NewGetPartsOK ¶
func NewGetPartsOK() *GetPartsOK
NewGetPartsOK creates a GetPartsOK with default headers values
func (*GetPartsOK) Error ¶
func (o *GetPartsOK) Error() string
func (*GetPartsOK) GetPayload ¶
func (o *GetPartsOK) GetPayload() *GetPartsOKBody
type GetPartsOKBody ¶
GetPartsOKBody get parts o k body swagger:model GetPartsOKBody
func (*GetPartsOKBody) MarshalBinary ¶
func (o *GetPartsOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetPartsOKBody) UnmarshalBinary ¶
func (o *GetPartsOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetPartsParams ¶
type GetPartsParams struct { /*AssetNo filter by asset # (Added in v6.0.0) */ AssetNo *string /*CustomFieldsAnd filter by custom fields, and filter, format of key1:value1,key2:value2 */ CustomFieldsAnd *string /*CustomFieldsOr filter by custom fields, or filter, format of key1:value1,key2:value2 */ CustomFieldsOr *string /*Device name of the device where part is checked out to */ Device *string /*DeviceID id of the device where part is checked out to */ DeviceID *string /*DeviceSerial serial number of the device, where part is checked out to */ DeviceSerial *string /*LastUpdatedGt last updated greater than date YYYY-MM-DD format */ LastUpdatedGt *string /*LastUpdatedLt last updated less than date YYYY-MM-DD format */ LastUpdatedLt *string /*PartID id of the part (added in v6.3.3) */ PartID *string /*PartmodelID id of the part model (added in v6.3.3) */ PartmodelID *string /*Rack name of the rack where part is checked out to */ Rack *string /*RackID id of the rack where part is checked out to */ RackID *string /*Room name of the room where part is checked out to */ Room *string /*RoomID id of the room where part is checked out to */ RoomID *string /*SerialNo serial number of the part */ SerialNo *string /*Tags filter by tags. comma separated for multiple tags (This is an OR filter, gets all the devices for all comma separated tags) */ Tags *string /*Type type of the partmodel, cpu, mem, hdd for CPU, memory, and Harddisk. For others it must match the type name for part model */ Type *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetPartsParams contains all the parameters to send to the API endpoint for the get parts operation typically these are written to a http.Request
func NewGetPartsParams ¶
func NewGetPartsParams() *GetPartsParams
NewGetPartsParams creates a new GetPartsParams object with the default values initialized.
func NewGetPartsParamsWithContext ¶
func NewGetPartsParamsWithContext(ctx context.Context) *GetPartsParams
NewGetPartsParamsWithContext creates a new GetPartsParams object with the default values initialized, and the ability to set a context for a request
func NewGetPartsParamsWithHTTPClient ¶
func NewGetPartsParamsWithHTTPClient(client *http.Client) *GetPartsParams
NewGetPartsParamsWithHTTPClient creates a new GetPartsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetPartsParamsWithTimeout ¶
func NewGetPartsParamsWithTimeout(timeout time.Duration) *GetPartsParams
NewGetPartsParamsWithTimeout creates a new GetPartsParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetPartsParams) SetAssetNo ¶
func (o *GetPartsParams) SetAssetNo(assetNo *string)
SetAssetNo adds the assetNo to the get parts params
func (*GetPartsParams) SetContext ¶
func (o *GetPartsParams) SetContext(ctx context.Context)
SetContext adds the context to the get parts params
func (*GetPartsParams) SetCustomFieldsAnd ¶
func (o *GetPartsParams) SetCustomFieldsAnd(customFieldsAnd *string)
SetCustomFieldsAnd adds the customFieldsAnd to the get parts params
func (*GetPartsParams) SetCustomFieldsOr ¶
func (o *GetPartsParams) SetCustomFieldsOr(customFieldsOr *string)
SetCustomFieldsOr adds the customFieldsOr to the get parts params
func (*GetPartsParams) SetDevice ¶
func (o *GetPartsParams) SetDevice(device *string)
SetDevice adds the device to the get parts params
func (*GetPartsParams) SetDeviceID ¶
func (o *GetPartsParams) SetDeviceID(deviceID *string)
SetDeviceID adds the deviceId to the get parts params
func (*GetPartsParams) SetDeviceSerial ¶
func (o *GetPartsParams) SetDeviceSerial(deviceSerial *string)
SetDeviceSerial adds the deviceSerial to the get parts params
func (*GetPartsParams) SetHTTPClient ¶
func (o *GetPartsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get parts params
func (*GetPartsParams) SetLastUpdatedGt ¶
func (o *GetPartsParams) SetLastUpdatedGt(lastUpdatedGt *string)
SetLastUpdatedGt adds the lastUpdatedGt to the get parts params
func (*GetPartsParams) SetLastUpdatedLt ¶
func (o *GetPartsParams) SetLastUpdatedLt(lastUpdatedLt *string)
SetLastUpdatedLt adds the lastUpdatedLt to the get parts params
func (*GetPartsParams) SetPartID ¶
func (o *GetPartsParams) SetPartID(partID *string)
SetPartID adds the partId to the get parts params
func (*GetPartsParams) SetPartmodelID ¶
func (o *GetPartsParams) SetPartmodelID(partmodelID *string)
SetPartmodelID adds the partmodelId to the get parts params
func (*GetPartsParams) SetRack ¶
func (o *GetPartsParams) SetRack(rack *string)
SetRack adds the rack to the get parts params
func (*GetPartsParams) SetRackID ¶
func (o *GetPartsParams) SetRackID(rackID *string)
SetRackID adds the rackId to the get parts params
func (*GetPartsParams) SetRoom ¶
func (o *GetPartsParams) SetRoom(room *string)
SetRoom adds the room to the get parts params
func (*GetPartsParams) SetRoomID ¶
func (o *GetPartsParams) SetRoomID(roomID *string)
SetRoomID adds the roomId to the get parts params
func (*GetPartsParams) SetSerialNo ¶
func (o *GetPartsParams) SetSerialNo(serialNo *string)
SetSerialNo adds the serialNo to the get parts params
func (*GetPartsParams) SetTags ¶
func (o *GetPartsParams) SetTags(tags *string)
SetTags adds the tags to the get parts params
func (*GetPartsParams) SetTimeout ¶
func (o *GetPartsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get parts params
func (*GetPartsParams) SetType ¶
func (o *GetPartsParams) SetType(typeVar *string)
SetType adds the type to the get parts params
func (*GetPartsParams) WithAssetNo ¶
func (o *GetPartsParams) WithAssetNo(assetNo *string) *GetPartsParams
WithAssetNo adds the assetNo to the get parts params
func (*GetPartsParams) WithContext ¶
func (o *GetPartsParams) WithContext(ctx context.Context) *GetPartsParams
WithContext adds the context to the get parts params
func (*GetPartsParams) WithCustomFieldsAnd ¶
func (o *GetPartsParams) WithCustomFieldsAnd(customFieldsAnd *string) *GetPartsParams
WithCustomFieldsAnd adds the customFieldsAnd to the get parts params
func (*GetPartsParams) WithCustomFieldsOr ¶
func (o *GetPartsParams) WithCustomFieldsOr(customFieldsOr *string) *GetPartsParams
WithCustomFieldsOr adds the customFieldsOr to the get parts params
func (*GetPartsParams) WithDevice ¶
func (o *GetPartsParams) WithDevice(device *string) *GetPartsParams
WithDevice adds the device to the get parts params
func (*GetPartsParams) WithDeviceID ¶
func (o *GetPartsParams) WithDeviceID(deviceID *string) *GetPartsParams
WithDeviceID adds the deviceID to the get parts params
func (*GetPartsParams) WithDeviceSerial ¶
func (o *GetPartsParams) WithDeviceSerial(deviceSerial *string) *GetPartsParams
WithDeviceSerial adds the deviceSerial to the get parts params
func (*GetPartsParams) WithHTTPClient ¶
func (o *GetPartsParams) WithHTTPClient(client *http.Client) *GetPartsParams
WithHTTPClient adds the HTTPClient to the get parts params
func (*GetPartsParams) WithLastUpdatedGt ¶
func (o *GetPartsParams) WithLastUpdatedGt(lastUpdatedGt *string) *GetPartsParams
WithLastUpdatedGt adds the lastUpdatedGt to the get parts params
func (*GetPartsParams) WithLastUpdatedLt ¶
func (o *GetPartsParams) WithLastUpdatedLt(lastUpdatedLt *string) *GetPartsParams
WithLastUpdatedLt adds the lastUpdatedLt to the get parts params
func (*GetPartsParams) WithPartID ¶
func (o *GetPartsParams) WithPartID(partID *string) *GetPartsParams
WithPartID adds the partID to the get parts params
func (*GetPartsParams) WithPartmodelID ¶
func (o *GetPartsParams) WithPartmodelID(partmodelID *string) *GetPartsParams
WithPartmodelID adds the partmodelID to the get parts params
func (*GetPartsParams) WithRack ¶
func (o *GetPartsParams) WithRack(rack *string) *GetPartsParams
WithRack adds the rack to the get parts params
func (*GetPartsParams) WithRackID ¶
func (o *GetPartsParams) WithRackID(rackID *string) *GetPartsParams
WithRackID adds the rackID to the get parts params
func (*GetPartsParams) WithRoom ¶
func (o *GetPartsParams) WithRoom(room *string) *GetPartsParams
WithRoom adds the room to the get parts params
func (*GetPartsParams) WithRoomID ¶
func (o *GetPartsParams) WithRoomID(roomID *string) *GetPartsParams
WithRoomID adds the roomID to the get parts params
func (*GetPartsParams) WithSerialNo ¶
func (o *GetPartsParams) WithSerialNo(serialNo *string) *GetPartsParams
WithSerialNo adds the serialNo to the get parts params
func (*GetPartsParams) WithTags ¶
func (o *GetPartsParams) WithTags(tags *string) *GetPartsParams
WithTags adds the tags to the get parts params
func (*GetPartsParams) WithTimeout ¶
func (o *GetPartsParams) WithTimeout(timeout time.Duration) *GetPartsParams
WithTimeout adds the timeout to the get parts params
func (*GetPartsParams) WithType ¶
func (o *GetPartsParams) WithType(typeVar *string) *GetPartsParams
WithType adds the typeVar to the get parts params
func (*GetPartsParams) WriteToRequest ¶
func (o *GetPartsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetPartsReader ¶
type GetPartsReader struct {
// contains filtered or unexported fields
}
GetPartsReader is a Reader for the GetParts structure.
func (*GetPartsReader) ReadResponse ¶
func (o *GetPartsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetPartsServiceUnavailable ¶
type GetPartsServiceUnavailable struct { }
GetPartsServiceUnavailable handles this case with default header values.
Service Unavailable (Please check if your Device42 instance is working normally.)
func NewGetPartsServiceUnavailable ¶
func NewGetPartsServiceUnavailable() *GetPartsServiceUnavailable
NewGetPartsServiceUnavailable creates a GetPartsServiceUnavailable with default headers values
func (*GetPartsServiceUnavailable) Error ¶
func (o *GetPartsServiceUnavailable) Error() string
type GetPartsUnauthorized ¶
type GetPartsUnauthorized struct { }
GetPartsUnauthorized handles this case with default header values.
Unauthorized (Your credentials suck)
func NewGetPartsUnauthorized ¶
func NewGetPartsUnauthorized() *GetPartsUnauthorized
NewGetPartsUnauthorized creates a GetPartsUnauthorized with default headers values
func (*GetPartsUnauthorized) Error ¶
func (o *GetPartsUnauthorized) Error() string
type PostPartmodelsBadRequest ¶
type PostPartmodelsBadRequest struct { }
PostPartmodelsBadRequest handles this case with default header values.
Bad Request (A validation exception has occurred.)
func NewPostPartmodelsBadRequest ¶
func NewPostPartmodelsBadRequest() *PostPartmodelsBadRequest
NewPostPartmodelsBadRequest creates a PostPartmodelsBadRequest with default headers values
func (*PostPartmodelsBadRequest) Error ¶
func (o *PostPartmodelsBadRequest) Error() string
type PostPartmodelsForbidden ¶
type PostPartmodelsForbidden struct { }
PostPartmodelsForbidden handles this case with default header values.
Forbidden (The resource requested is hidden)
func NewPostPartmodelsForbidden ¶
func NewPostPartmodelsForbidden() *PostPartmodelsForbidden
NewPostPartmodelsForbidden creates a PostPartmodelsForbidden with default headers values
func (*PostPartmodelsForbidden) Error ¶
func (o *PostPartmodelsForbidden) Error() string
type PostPartmodelsGone ¶
type PostPartmodelsGone struct { }
PostPartmodelsGone handles this case with default header values.
Gone (The resource requested has been removed from our servers)
func NewPostPartmodelsGone ¶
func NewPostPartmodelsGone() *PostPartmodelsGone
NewPostPartmodelsGone creates a PostPartmodelsGone with default headers values
func (*PostPartmodelsGone) Error ¶
func (o *PostPartmodelsGone) Error() string
type PostPartmodelsInternalServerError ¶
type PostPartmodelsInternalServerError struct { }
PostPartmodelsInternalServerError 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 NewPostPartmodelsInternalServerError ¶
func NewPostPartmodelsInternalServerError() *PostPartmodelsInternalServerError
NewPostPartmodelsInternalServerError creates a PostPartmodelsInternalServerError with default headers values
func (*PostPartmodelsInternalServerError) Error ¶
func (o *PostPartmodelsInternalServerError) Error() string
type PostPartmodelsMethodNotAllowed ¶
type PostPartmodelsMethodNotAllowed struct { }
PostPartmodelsMethodNotAllowed handles this case with default header values.
Method Not Allowed (You tried to access a resource with an invalid method)
func NewPostPartmodelsMethodNotAllowed ¶
func NewPostPartmodelsMethodNotAllowed() *PostPartmodelsMethodNotAllowed
NewPostPartmodelsMethodNotAllowed creates a PostPartmodelsMethodNotAllowed with default headers values
func (*PostPartmodelsMethodNotAllowed) Error ¶
func (o *PostPartmodelsMethodNotAllowed) Error() string
type PostPartmodelsNotFound ¶
type PostPartmodelsNotFound struct { }
PostPartmodelsNotFound handles this case with default header values.
Not Found (The specified resource could not be found)
func NewPostPartmodelsNotFound ¶
func NewPostPartmodelsNotFound() *PostPartmodelsNotFound
NewPostPartmodelsNotFound creates a PostPartmodelsNotFound with default headers values
func (*PostPartmodelsNotFound) Error ¶
func (o *PostPartmodelsNotFound) Error() string
type PostPartmodelsOK ¶
type PostPartmodelsOK struct {
Payload *PostPartmodelsOKBody
}
PostPartmodelsOK handles this case with default header values.
The above command returns results like this:
func NewPostPartmodelsOK ¶
func NewPostPartmodelsOK() *PostPartmodelsOK
NewPostPartmodelsOK creates a PostPartmodelsOK with default headers values
func (*PostPartmodelsOK) Error ¶
func (o *PostPartmodelsOK) Error() string
func (*PostPartmodelsOK) GetPayload ¶
func (o *PostPartmodelsOK) GetPayload() *PostPartmodelsOKBody
type PostPartmodelsOKBody ¶
type PostPartmodelsOKBody struct { // code Code interface{} `json:"code,omitempty"` // msg Msg interface{} `json:"msg,omitempty"` }
PostPartmodelsOKBody post partmodels o k body swagger:model PostPartmodelsOKBody
func (*PostPartmodelsOKBody) MarshalBinary ¶
func (o *PostPartmodelsOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PostPartmodelsOKBody) UnmarshalBinary ¶
func (o *PostPartmodelsOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PostPartmodelsParams ¶
type PostPartmodelsParams struct { /*Connectivity New or existing (not used for CPU, RAM, HDD) */ Connectivity *string /*ConnectorType Type of connector, ie rj45 */ ConnectorType *string /*Cores number of cores */ Cores *string /*Cpuspeed enter in MHZ, e.g.: 3.5 GHZ use 3500 */ Cpuspeed *string /*Description*/ Description *string /*Hddrpm new or existing */ Hddrpm *string /*Hddsize enter in GB, e.g.: 250 GB enter 250 */ Hddsize *string /*Hddtype new or existing */ Hddtype *string /*Length Cable length */ Length *string /*Location Location/region of instance deployment */ Location *string /*Manufacturer name of the hardware/software manufacturer. */ Manufacturer *string /*MediaType Type of media */ MediaType *string /*Modelno Model # of the part model */ Modelno *string /*Name name of part model - new or existing */ Name *string /*Notes Any additional notes */ Notes *string /*PartmodelID use for updating existing part model */ PartmodelID *string /*Partno Part # of the part model */ Partno *string /*Ramsize enter in MB, e.g.: 8 GB enter 8192 */ Ramsize *string /*Ramspeed e.g.: 1600 */ Ramspeed *string /*Ramtype e.g.: DDR3 */ Ramtype *string /*Threads number of threads */ Threads *string /*TotalCount*/ TotalCount *string /*Type Part type - new or existing. Must be hdd or harddisk to update HDD model parameters (hddsize, hddtype, etc) */ Type *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PostPartmodelsParams contains all the parameters to send to the API endpoint for the post partmodels operation typically these are written to a http.Request
func NewPostPartmodelsParams ¶
func NewPostPartmodelsParams() *PostPartmodelsParams
NewPostPartmodelsParams creates a new PostPartmodelsParams object with the default values initialized.
func NewPostPartmodelsParamsWithContext ¶
func NewPostPartmodelsParamsWithContext(ctx context.Context) *PostPartmodelsParams
NewPostPartmodelsParamsWithContext creates a new PostPartmodelsParams object with the default values initialized, and the ability to set a context for a request
func NewPostPartmodelsParamsWithHTTPClient ¶
func NewPostPartmodelsParamsWithHTTPClient(client *http.Client) *PostPartmodelsParams
NewPostPartmodelsParamsWithHTTPClient creates a new PostPartmodelsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewPostPartmodelsParamsWithTimeout ¶
func NewPostPartmodelsParamsWithTimeout(timeout time.Duration) *PostPartmodelsParams
NewPostPartmodelsParamsWithTimeout creates a new PostPartmodelsParams object with the default values initialized, and the ability to set a timeout on a request
func (*PostPartmodelsParams) SetConnectivity ¶
func (o *PostPartmodelsParams) SetConnectivity(connectivity *string)
SetConnectivity adds the connectivity to the post partmodels params
func (*PostPartmodelsParams) SetConnectorType ¶
func (o *PostPartmodelsParams) SetConnectorType(connectorType *string)
SetConnectorType adds the connectorType to the post partmodels params
func (*PostPartmodelsParams) SetContext ¶
func (o *PostPartmodelsParams) SetContext(ctx context.Context)
SetContext adds the context to the post partmodels params
func (*PostPartmodelsParams) SetCores ¶
func (o *PostPartmodelsParams) SetCores(cores *string)
SetCores adds the cores to the post partmodels params
func (*PostPartmodelsParams) SetCpuspeed ¶
func (o *PostPartmodelsParams) SetCpuspeed(cpuspeed *string)
SetCpuspeed adds the cpuspeed to the post partmodels params
func (*PostPartmodelsParams) SetDescription ¶
func (o *PostPartmodelsParams) SetDescription(description *string)
SetDescription adds the description to the post partmodels params
func (*PostPartmodelsParams) SetHTTPClient ¶
func (o *PostPartmodelsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post partmodels params
func (*PostPartmodelsParams) SetHddrpm ¶
func (o *PostPartmodelsParams) SetHddrpm(hddrpm *string)
SetHddrpm adds the hddrpm to the post partmodels params
func (*PostPartmodelsParams) SetHddsize ¶
func (o *PostPartmodelsParams) SetHddsize(hddsize *string)
SetHddsize adds the hddsize to the post partmodels params
func (*PostPartmodelsParams) SetHddtype ¶
func (o *PostPartmodelsParams) SetHddtype(hddtype *string)
SetHddtype adds the hddtype to the post partmodels params
func (*PostPartmodelsParams) SetLength ¶
func (o *PostPartmodelsParams) SetLength(length *string)
SetLength adds the length to the post partmodels params
func (*PostPartmodelsParams) SetLocation ¶
func (o *PostPartmodelsParams) SetLocation(location *string)
SetLocation adds the location to the post partmodels params
func (*PostPartmodelsParams) SetManufacturer ¶
func (o *PostPartmodelsParams) SetManufacturer(manufacturer *string)
SetManufacturer adds the manufacturer to the post partmodels params
func (*PostPartmodelsParams) SetMediaType ¶
func (o *PostPartmodelsParams) SetMediaType(mediaType *string)
SetMediaType adds the mediaType to the post partmodels params
func (*PostPartmodelsParams) SetModelno ¶
func (o *PostPartmodelsParams) SetModelno(modelno *string)
SetModelno adds the modelno to the post partmodels params
func (*PostPartmodelsParams) SetName ¶
func (o *PostPartmodelsParams) SetName(name *string)
SetName adds the name to the post partmodels params
func (*PostPartmodelsParams) SetNotes ¶
func (o *PostPartmodelsParams) SetNotes(notes *string)
SetNotes adds the notes to the post partmodels params
func (*PostPartmodelsParams) SetPartmodelID ¶
func (o *PostPartmodelsParams) SetPartmodelID(partmodelID *string)
SetPartmodelID adds the partmodelId to the post partmodels params
func (*PostPartmodelsParams) SetPartno ¶
func (o *PostPartmodelsParams) SetPartno(partno *string)
SetPartno adds the partno to the post partmodels params
func (*PostPartmodelsParams) SetRamsize ¶
func (o *PostPartmodelsParams) SetRamsize(ramsize *string)
SetRamsize adds the ramsize to the post partmodels params
func (*PostPartmodelsParams) SetRamspeed ¶
func (o *PostPartmodelsParams) SetRamspeed(ramspeed *string)
SetRamspeed adds the ramspeed to the post partmodels params
func (*PostPartmodelsParams) SetRamtype ¶
func (o *PostPartmodelsParams) SetRamtype(ramtype *string)
SetRamtype adds the ramtype to the post partmodels params
func (*PostPartmodelsParams) SetThreads ¶
func (o *PostPartmodelsParams) SetThreads(threads *string)
SetThreads adds the threads to the post partmodels params
func (*PostPartmodelsParams) SetTimeout ¶
func (o *PostPartmodelsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post partmodels params
func (*PostPartmodelsParams) SetTotalCount ¶
func (o *PostPartmodelsParams) SetTotalCount(totalCount *string)
SetTotalCount adds the totalCount to the post partmodels params
func (*PostPartmodelsParams) SetType ¶
func (o *PostPartmodelsParams) SetType(typeVar *string)
SetType adds the type to the post partmodels params
func (*PostPartmodelsParams) WithConnectivity ¶
func (o *PostPartmodelsParams) WithConnectivity(connectivity *string) *PostPartmodelsParams
WithConnectivity adds the connectivity to the post partmodels params
func (*PostPartmodelsParams) WithConnectorType ¶
func (o *PostPartmodelsParams) WithConnectorType(connectorType *string) *PostPartmodelsParams
WithConnectorType adds the connectorType to the post partmodels params
func (*PostPartmodelsParams) WithContext ¶
func (o *PostPartmodelsParams) WithContext(ctx context.Context) *PostPartmodelsParams
WithContext adds the context to the post partmodels params
func (*PostPartmodelsParams) WithCores ¶
func (o *PostPartmodelsParams) WithCores(cores *string) *PostPartmodelsParams
WithCores adds the cores to the post partmodels params
func (*PostPartmodelsParams) WithCpuspeed ¶
func (o *PostPartmodelsParams) WithCpuspeed(cpuspeed *string) *PostPartmodelsParams
WithCpuspeed adds the cpuspeed to the post partmodels params
func (*PostPartmodelsParams) WithDescription ¶
func (o *PostPartmodelsParams) WithDescription(description *string) *PostPartmodelsParams
WithDescription adds the description to the post partmodels params
func (*PostPartmodelsParams) WithHTTPClient ¶
func (o *PostPartmodelsParams) WithHTTPClient(client *http.Client) *PostPartmodelsParams
WithHTTPClient adds the HTTPClient to the post partmodels params
func (*PostPartmodelsParams) WithHddrpm ¶
func (o *PostPartmodelsParams) WithHddrpm(hddrpm *string) *PostPartmodelsParams
WithHddrpm adds the hddrpm to the post partmodels params
func (*PostPartmodelsParams) WithHddsize ¶
func (o *PostPartmodelsParams) WithHddsize(hddsize *string) *PostPartmodelsParams
WithHddsize adds the hddsize to the post partmodels params
func (*PostPartmodelsParams) WithHddtype ¶
func (o *PostPartmodelsParams) WithHddtype(hddtype *string) *PostPartmodelsParams
WithHddtype adds the hddtype to the post partmodels params
func (*PostPartmodelsParams) WithLength ¶
func (o *PostPartmodelsParams) WithLength(length *string) *PostPartmodelsParams
WithLength adds the length to the post partmodels params
func (*PostPartmodelsParams) WithLocation ¶
func (o *PostPartmodelsParams) WithLocation(location *string) *PostPartmodelsParams
WithLocation adds the location to the post partmodels params
func (*PostPartmodelsParams) WithManufacturer ¶
func (o *PostPartmodelsParams) WithManufacturer(manufacturer *string) *PostPartmodelsParams
WithManufacturer adds the manufacturer to the post partmodels params
func (*PostPartmodelsParams) WithMediaType ¶
func (o *PostPartmodelsParams) WithMediaType(mediaType *string) *PostPartmodelsParams
WithMediaType adds the mediaType to the post partmodels params
func (*PostPartmodelsParams) WithModelno ¶
func (o *PostPartmodelsParams) WithModelno(modelno *string) *PostPartmodelsParams
WithModelno adds the modelno to the post partmodels params
func (*PostPartmodelsParams) WithName ¶
func (o *PostPartmodelsParams) WithName(name *string) *PostPartmodelsParams
WithName adds the name to the post partmodels params
func (*PostPartmodelsParams) WithNotes ¶
func (o *PostPartmodelsParams) WithNotes(notes *string) *PostPartmodelsParams
WithNotes adds the notes to the post partmodels params
func (*PostPartmodelsParams) WithPartmodelID ¶
func (o *PostPartmodelsParams) WithPartmodelID(partmodelID *string) *PostPartmodelsParams
WithPartmodelID adds the partmodelID to the post partmodels params
func (*PostPartmodelsParams) WithPartno ¶
func (o *PostPartmodelsParams) WithPartno(partno *string) *PostPartmodelsParams
WithPartno adds the partno to the post partmodels params
func (*PostPartmodelsParams) WithRamsize ¶
func (o *PostPartmodelsParams) WithRamsize(ramsize *string) *PostPartmodelsParams
WithRamsize adds the ramsize to the post partmodels params
func (*PostPartmodelsParams) WithRamspeed ¶
func (o *PostPartmodelsParams) WithRamspeed(ramspeed *string) *PostPartmodelsParams
WithRamspeed adds the ramspeed to the post partmodels params
func (*PostPartmodelsParams) WithRamtype ¶
func (o *PostPartmodelsParams) WithRamtype(ramtype *string) *PostPartmodelsParams
WithRamtype adds the ramtype to the post partmodels params
func (*PostPartmodelsParams) WithThreads ¶
func (o *PostPartmodelsParams) WithThreads(threads *string) *PostPartmodelsParams
WithThreads adds the threads to the post partmodels params
func (*PostPartmodelsParams) WithTimeout ¶
func (o *PostPartmodelsParams) WithTimeout(timeout time.Duration) *PostPartmodelsParams
WithTimeout adds the timeout to the post partmodels params
func (*PostPartmodelsParams) WithTotalCount ¶
func (o *PostPartmodelsParams) WithTotalCount(totalCount *string) *PostPartmodelsParams
WithTotalCount adds the totalCount to the post partmodels params
func (*PostPartmodelsParams) WithType ¶
func (o *PostPartmodelsParams) WithType(typeVar *string) *PostPartmodelsParams
WithType adds the typeVar to the post partmodels params
func (*PostPartmodelsParams) WriteToRequest ¶
func (o *PostPartmodelsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostPartmodelsReader ¶
type PostPartmodelsReader struct {
// contains filtered or unexported fields
}
PostPartmodelsReader is a Reader for the PostPartmodels structure.
func (*PostPartmodelsReader) ReadResponse ¶
func (o *PostPartmodelsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostPartmodelsServiceUnavailable ¶
type PostPartmodelsServiceUnavailable struct { }
PostPartmodelsServiceUnavailable handles this case with default header values.
Service Unavailable (Please check if your Device42 instance is working normally.)
func NewPostPartmodelsServiceUnavailable ¶
func NewPostPartmodelsServiceUnavailable() *PostPartmodelsServiceUnavailable
NewPostPartmodelsServiceUnavailable creates a PostPartmodelsServiceUnavailable with default headers values
func (*PostPartmodelsServiceUnavailable) Error ¶
func (o *PostPartmodelsServiceUnavailable) Error() string
type PostPartmodelsUnauthorized ¶
type PostPartmodelsUnauthorized struct { }
PostPartmodelsUnauthorized handles this case with default header values.
Unauthorized (Your credentials suck)
func NewPostPartmodelsUnauthorized ¶
func NewPostPartmodelsUnauthorized() *PostPartmodelsUnauthorized
NewPostPartmodelsUnauthorized creates a PostPartmodelsUnauthorized with default headers values
func (*PostPartmodelsUnauthorized) Error ¶
func (o *PostPartmodelsUnauthorized) Error() string
type PostPartsBadRequest ¶
type PostPartsBadRequest struct { }
PostPartsBadRequest handles this case with default header values.
Bad Request (A validation exception has occurred.)
func NewPostPartsBadRequest ¶
func NewPostPartsBadRequest() *PostPartsBadRequest
NewPostPartsBadRequest creates a PostPartsBadRequest with default headers values
func (*PostPartsBadRequest) Error ¶
func (o *PostPartsBadRequest) Error() string
type PostPartsForbidden ¶
type PostPartsForbidden struct { }
PostPartsForbidden handles this case with default header values.
Forbidden (The resource requested is hidden)
func NewPostPartsForbidden ¶
func NewPostPartsForbidden() *PostPartsForbidden
NewPostPartsForbidden creates a PostPartsForbidden with default headers values
func (*PostPartsForbidden) Error ¶
func (o *PostPartsForbidden) Error() string
type PostPartsGone ¶
type PostPartsGone struct { }
PostPartsGone handles this case with default header values.
Gone (The resource requested has been removed from our servers)
func NewPostPartsGone ¶
func NewPostPartsGone() *PostPartsGone
NewPostPartsGone creates a PostPartsGone with default headers values
func (*PostPartsGone) Error ¶
func (o *PostPartsGone) Error() string
type PostPartsInternalServerError ¶
type PostPartsInternalServerError struct { }
PostPartsInternalServerError 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 NewPostPartsInternalServerError ¶
func NewPostPartsInternalServerError() *PostPartsInternalServerError
NewPostPartsInternalServerError creates a PostPartsInternalServerError with default headers values
func (*PostPartsInternalServerError) Error ¶
func (o *PostPartsInternalServerError) Error() string
type PostPartsMethodNotAllowed ¶
type PostPartsMethodNotAllowed struct { }
PostPartsMethodNotAllowed handles this case with default header values.
Method Not Allowed (You tried to access a resource with an invalid method)
func NewPostPartsMethodNotAllowed ¶
func NewPostPartsMethodNotAllowed() *PostPartsMethodNotAllowed
NewPostPartsMethodNotAllowed creates a PostPartsMethodNotAllowed with default headers values
func (*PostPartsMethodNotAllowed) Error ¶
func (o *PostPartsMethodNotAllowed) Error() string
type PostPartsNotFound ¶
type PostPartsNotFound struct { }
PostPartsNotFound handles this case with default header values.
Not Found (The specified resource could not be found)
func NewPostPartsNotFound ¶
func NewPostPartsNotFound() *PostPartsNotFound
NewPostPartsNotFound creates a PostPartsNotFound with default headers values
func (*PostPartsNotFound) Error ¶
func (o *PostPartsNotFound) Error() string
type PostPartsOK ¶
type PostPartsOK struct {
Payload *PostPartsOKBody
}
PostPartsOK handles this case with default header values.
The above command returns results like this:
func NewPostPartsOK ¶
func NewPostPartsOK() *PostPartsOK
NewPostPartsOK creates a PostPartsOK with default headers values
func (*PostPartsOK) Error ¶
func (o *PostPartsOK) Error() string
func (*PostPartsOK) GetPayload ¶
func (o *PostPartsOK) GetPayload() *PostPartsOKBody
type PostPartsOKBody ¶
type PostPartsOKBody struct { // code Code interface{} `json:"code,omitempty"` // msg Msg interface{} `json:"msg,omitempty"` }
PostPartsOKBody post parts o k body swagger:model PostPartsOKBody
func (*PostPartsOKBody) MarshalBinary ¶
func (o *PostPartsOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PostPartsOKBody) UnmarshalBinary ¶
func (o *PostPartsOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PostPartsParams ¶
type PostPartsParams struct { /*Assignment room, device, rma - required if assigning device */ Assignment *string /*Cores number of cores */ Cores *string /*Count number of parts */ Count *int64 /*Cpuspeed enter in MHZ, e.g.: 3.5 GHZ use 3500 */ Cpuspeed *string /*DateChanged Update the Date Changed field, using format YYYY-MM-DD HH:MM:SS */ DateChanged *string /*Description*/ Description *string /*Device Room name - required if assigned to device */ Device *string /*Firmware*/ Firmware *string /*Hddrpm new or existing */ Hddrpm *string /*Hddsize enter in GB, e.g.: 250 GB enter 250 */ Hddsize *string /*Hddtype new or existing */ Hddtype *string /*Name name of part model - new or existing */ Name *string /*PartID Use for updating existing part */ PartID *string /*PartmodelID*/ PartmodelID *string /*RaidGroup RAID group name */ RaidGroup *string /*RaidType type of RAID */ RaidType *string /*Ramsize enter in MB, e.g.: 8 GB enter 8192 */ Ramsize *string /*Ramspeed e.g.: 1600 */ Ramspeed *string /*Ramtype e.g.: DDR3 */ Ramtype *string /*Room Room name - required if assigned to room */ Room *string /*SerialNo Use for updating existing part. Caution: will update first matching serial if multiple parts with same serial exist. Use part_id or partmodel_id to uniquely identify. */ SerialNo *string /*Threads number of threads */ Threads *string /*Type Part type - new or existing. Must be hdd or harddisk to update HDD model parameters (hddsize, hddtype, etc) */ Type *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PostPartsParams contains all the parameters to send to the API endpoint for the post parts operation typically these are written to a http.Request
func NewPostPartsParams ¶
func NewPostPartsParams() *PostPartsParams
NewPostPartsParams creates a new PostPartsParams object with the default values initialized.
func NewPostPartsParamsWithContext ¶
func NewPostPartsParamsWithContext(ctx context.Context) *PostPartsParams
NewPostPartsParamsWithContext creates a new PostPartsParams object with the default values initialized, and the ability to set a context for a request
func NewPostPartsParamsWithHTTPClient ¶
func NewPostPartsParamsWithHTTPClient(client *http.Client) *PostPartsParams
NewPostPartsParamsWithHTTPClient creates a new PostPartsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewPostPartsParamsWithTimeout ¶
func NewPostPartsParamsWithTimeout(timeout time.Duration) *PostPartsParams
NewPostPartsParamsWithTimeout creates a new PostPartsParams object with the default values initialized, and the ability to set a timeout on a request
func (*PostPartsParams) SetAssignment ¶
func (o *PostPartsParams) SetAssignment(assignment *string)
SetAssignment adds the assignment to the post parts params
func (*PostPartsParams) SetContext ¶
func (o *PostPartsParams) SetContext(ctx context.Context)
SetContext adds the context to the post parts params
func (*PostPartsParams) SetCores ¶
func (o *PostPartsParams) SetCores(cores *string)
SetCores adds the cores to the post parts params
func (*PostPartsParams) SetCount ¶
func (o *PostPartsParams) SetCount(count *int64)
SetCount adds the count to the post parts params
func (*PostPartsParams) SetCpuspeed ¶
func (o *PostPartsParams) SetCpuspeed(cpuspeed *string)
SetCpuspeed adds the cpuspeed to the post parts params
func (*PostPartsParams) SetDateChanged ¶
func (o *PostPartsParams) SetDateChanged(dateChanged *string)
SetDateChanged adds the dateChanged to the post parts params
func (*PostPartsParams) SetDescription ¶
func (o *PostPartsParams) SetDescription(description *string)
SetDescription adds the description to the post parts params
func (*PostPartsParams) SetDevice ¶
func (o *PostPartsParams) SetDevice(device *string)
SetDevice adds the device to the post parts params
func (*PostPartsParams) SetFirmware ¶
func (o *PostPartsParams) SetFirmware(firmware *string)
SetFirmware adds the firmware to the post parts params
func (*PostPartsParams) SetHTTPClient ¶
func (o *PostPartsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post parts params
func (*PostPartsParams) SetHddrpm ¶
func (o *PostPartsParams) SetHddrpm(hddrpm *string)
SetHddrpm adds the hddrpm to the post parts params
func (*PostPartsParams) SetHddsize ¶
func (o *PostPartsParams) SetHddsize(hddsize *string)
SetHddsize adds the hddsize to the post parts params
func (*PostPartsParams) SetHddtype ¶
func (o *PostPartsParams) SetHddtype(hddtype *string)
SetHddtype adds the hddtype to the post parts params
func (*PostPartsParams) SetName ¶
func (o *PostPartsParams) SetName(name *string)
SetName adds the name to the post parts params
func (*PostPartsParams) SetPartID ¶
func (o *PostPartsParams) SetPartID(partID *string)
SetPartID adds the partId to the post parts params
func (*PostPartsParams) SetPartmodelID ¶
func (o *PostPartsParams) SetPartmodelID(partmodelID *string)
SetPartmodelID adds the partmodelId to the post parts params
func (*PostPartsParams) SetRaidGroup ¶
func (o *PostPartsParams) SetRaidGroup(raidGroup *string)
SetRaidGroup adds the raidGroup to the post parts params
func (*PostPartsParams) SetRaidType ¶
func (o *PostPartsParams) SetRaidType(raidType *string)
SetRaidType adds the raidType to the post parts params
func (*PostPartsParams) SetRamsize ¶
func (o *PostPartsParams) SetRamsize(ramsize *string)
SetRamsize adds the ramsize to the post parts params
func (*PostPartsParams) SetRamspeed ¶
func (o *PostPartsParams) SetRamspeed(ramspeed *string)
SetRamspeed adds the ramspeed to the post parts params
func (*PostPartsParams) SetRamtype ¶
func (o *PostPartsParams) SetRamtype(ramtype *string)
SetRamtype adds the ramtype to the post parts params
func (*PostPartsParams) SetRoom ¶
func (o *PostPartsParams) SetRoom(room *string)
SetRoom adds the room to the post parts params
func (*PostPartsParams) SetSerialNo ¶
func (o *PostPartsParams) SetSerialNo(serialNo *string)
SetSerialNo adds the serialNo to the post parts params
func (*PostPartsParams) SetThreads ¶
func (o *PostPartsParams) SetThreads(threads *string)
SetThreads adds the threads to the post parts params
func (*PostPartsParams) SetTimeout ¶
func (o *PostPartsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post parts params
func (*PostPartsParams) SetType ¶
func (o *PostPartsParams) SetType(typeVar *string)
SetType adds the type to the post parts params
func (*PostPartsParams) WithAssignment ¶
func (o *PostPartsParams) WithAssignment(assignment *string) *PostPartsParams
WithAssignment adds the assignment to the post parts params
func (*PostPartsParams) WithContext ¶
func (o *PostPartsParams) WithContext(ctx context.Context) *PostPartsParams
WithContext adds the context to the post parts params
func (*PostPartsParams) WithCores ¶
func (o *PostPartsParams) WithCores(cores *string) *PostPartsParams
WithCores adds the cores to the post parts params
func (*PostPartsParams) WithCount ¶
func (o *PostPartsParams) WithCount(count *int64) *PostPartsParams
WithCount adds the count to the post parts params
func (*PostPartsParams) WithCpuspeed ¶
func (o *PostPartsParams) WithCpuspeed(cpuspeed *string) *PostPartsParams
WithCpuspeed adds the cpuspeed to the post parts params
func (*PostPartsParams) WithDateChanged ¶
func (o *PostPartsParams) WithDateChanged(dateChanged *string) *PostPartsParams
WithDateChanged adds the dateChanged to the post parts params
func (*PostPartsParams) WithDescription ¶
func (o *PostPartsParams) WithDescription(description *string) *PostPartsParams
WithDescription adds the description to the post parts params
func (*PostPartsParams) WithDevice ¶
func (o *PostPartsParams) WithDevice(device *string) *PostPartsParams
WithDevice adds the device to the post parts params
func (*PostPartsParams) WithFirmware ¶
func (o *PostPartsParams) WithFirmware(firmware *string) *PostPartsParams
WithFirmware adds the firmware to the post parts params
func (*PostPartsParams) WithHTTPClient ¶
func (o *PostPartsParams) WithHTTPClient(client *http.Client) *PostPartsParams
WithHTTPClient adds the HTTPClient to the post parts params
func (*PostPartsParams) WithHddrpm ¶
func (o *PostPartsParams) WithHddrpm(hddrpm *string) *PostPartsParams
WithHddrpm adds the hddrpm to the post parts params
func (*PostPartsParams) WithHddsize ¶
func (o *PostPartsParams) WithHddsize(hddsize *string) *PostPartsParams
WithHddsize adds the hddsize to the post parts params
func (*PostPartsParams) WithHddtype ¶
func (o *PostPartsParams) WithHddtype(hddtype *string) *PostPartsParams
WithHddtype adds the hddtype to the post parts params
func (*PostPartsParams) WithName ¶
func (o *PostPartsParams) WithName(name *string) *PostPartsParams
WithName adds the name to the post parts params
func (*PostPartsParams) WithPartID ¶
func (o *PostPartsParams) WithPartID(partID *string) *PostPartsParams
WithPartID adds the partID to the post parts params
func (*PostPartsParams) WithPartmodelID ¶
func (o *PostPartsParams) WithPartmodelID(partmodelID *string) *PostPartsParams
WithPartmodelID adds the partmodelID to the post parts params
func (*PostPartsParams) WithRaidGroup ¶
func (o *PostPartsParams) WithRaidGroup(raidGroup *string) *PostPartsParams
WithRaidGroup adds the raidGroup to the post parts params
func (*PostPartsParams) WithRaidType ¶
func (o *PostPartsParams) WithRaidType(raidType *string) *PostPartsParams
WithRaidType adds the raidType to the post parts params
func (*PostPartsParams) WithRamsize ¶
func (o *PostPartsParams) WithRamsize(ramsize *string) *PostPartsParams
WithRamsize adds the ramsize to the post parts params
func (*PostPartsParams) WithRamspeed ¶
func (o *PostPartsParams) WithRamspeed(ramspeed *string) *PostPartsParams
WithRamspeed adds the ramspeed to the post parts params
func (*PostPartsParams) WithRamtype ¶
func (o *PostPartsParams) WithRamtype(ramtype *string) *PostPartsParams
WithRamtype adds the ramtype to the post parts params
func (*PostPartsParams) WithRoom ¶
func (o *PostPartsParams) WithRoom(room *string) *PostPartsParams
WithRoom adds the room to the post parts params
func (*PostPartsParams) WithSerialNo ¶
func (o *PostPartsParams) WithSerialNo(serialNo *string) *PostPartsParams
WithSerialNo adds the serialNo to the post parts params
func (*PostPartsParams) WithThreads ¶
func (o *PostPartsParams) WithThreads(threads *string) *PostPartsParams
WithThreads adds the threads to the post parts params
func (*PostPartsParams) WithTimeout ¶
func (o *PostPartsParams) WithTimeout(timeout time.Duration) *PostPartsParams
WithTimeout adds the timeout to the post parts params
func (*PostPartsParams) WithType ¶
func (o *PostPartsParams) WithType(typeVar *string) *PostPartsParams
WithType adds the typeVar to the post parts params
func (*PostPartsParams) WriteToRequest ¶
func (o *PostPartsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostPartsReader ¶
type PostPartsReader struct {
// contains filtered or unexported fields
}
PostPartsReader is a Reader for the PostParts structure.
func (*PostPartsReader) ReadResponse ¶
func (o *PostPartsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostPartsServiceUnavailable ¶
type PostPartsServiceUnavailable struct { }
PostPartsServiceUnavailable handles this case with default header values.
Service Unavailable (Please check if your Device42 instance is working normally.)
func NewPostPartsServiceUnavailable ¶
func NewPostPartsServiceUnavailable() *PostPartsServiceUnavailable
NewPostPartsServiceUnavailable creates a PostPartsServiceUnavailable with default headers values
func (*PostPartsServiceUnavailable) Error ¶
func (o *PostPartsServiceUnavailable) Error() string
type PostPartsUnauthorized ¶
type PostPartsUnauthorized struct { }
PostPartsUnauthorized handles this case with default header values.
Unauthorized (Your credentials suck)
func NewPostPartsUnauthorized ¶
func NewPostPartsUnauthorized() *PostPartsUnauthorized
NewPostPartsUnauthorized creates a PostPartsUnauthorized with default headers values
func (*PostPartsUnauthorized) Error ¶
func (o *PostPartsUnauthorized) Error() string
type PutCustomFieldPartBadRequest ¶
type PutCustomFieldPartBadRequest struct { }
PutCustomFieldPartBadRequest handles this case with default header values.
Bad Request (A validation exception has occurred.)
func NewPutCustomFieldPartBadRequest ¶
func NewPutCustomFieldPartBadRequest() *PutCustomFieldPartBadRequest
NewPutCustomFieldPartBadRequest creates a PutCustomFieldPartBadRequest with default headers values
func (*PutCustomFieldPartBadRequest) Error ¶
func (o *PutCustomFieldPartBadRequest) Error() string
type PutCustomFieldPartForbidden ¶
type PutCustomFieldPartForbidden struct { }
PutCustomFieldPartForbidden handles this case with default header values.
Forbidden (The resource requested is hidden)
func NewPutCustomFieldPartForbidden ¶
func NewPutCustomFieldPartForbidden() *PutCustomFieldPartForbidden
NewPutCustomFieldPartForbidden creates a PutCustomFieldPartForbidden with default headers values
func (*PutCustomFieldPartForbidden) Error ¶
func (o *PutCustomFieldPartForbidden) Error() string
type PutCustomFieldPartGone ¶
type PutCustomFieldPartGone struct { }
PutCustomFieldPartGone handles this case with default header values.
Gone (The resource requested has been removed from our servers)
func NewPutCustomFieldPartGone ¶
func NewPutCustomFieldPartGone() *PutCustomFieldPartGone
NewPutCustomFieldPartGone creates a PutCustomFieldPartGone with default headers values
func (*PutCustomFieldPartGone) Error ¶
func (o *PutCustomFieldPartGone) Error() string
type PutCustomFieldPartInternalServerError ¶
type PutCustomFieldPartInternalServerError struct { }
PutCustomFieldPartInternalServerError 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 NewPutCustomFieldPartInternalServerError ¶
func NewPutCustomFieldPartInternalServerError() *PutCustomFieldPartInternalServerError
NewPutCustomFieldPartInternalServerError creates a PutCustomFieldPartInternalServerError with default headers values
func (*PutCustomFieldPartInternalServerError) Error ¶
func (o *PutCustomFieldPartInternalServerError) Error() string
type PutCustomFieldPartMethodNotAllowed ¶
type PutCustomFieldPartMethodNotAllowed struct { }
PutCustomFieldPartMethodNotAllowed handles this case with default header values.
Method Not Allowed (You tried to access a resource with an invalid method)
func NewPutCustomFieldPartMethodNotAllowed ¶
func NewPutCustomFieldPartMethodNotAllowed() *PutCustomFieldPartMethodNotAllowed
NewPutCustomFieldPartMethodNotAllowed creates a PutCustomFieldPartMethodNotAllowed with default headers values
func (*PutCustomFieldPartMethodNotAllowed) Error ¶
func (o *PutCustomFieldPartMethodNotAllowed) Error() string
type PutCustomFieldPartNotFound ¶
type PutCustomFieldPartNotFound struct { }
PutCustomFieldPartNotFound handles this case with default header values.
Not Found (The specified resource could not be found)
func NewPutCustomFieldPartNotFound ¶
func NewPutCustomFieldPartNotFound() *PutCustomFieldPartNotFound
NewPutCustomFieldPartNotFound creates a PutCustomFieldPartNotFound with default headers values
func (*PutCustomFieldPartNotFound) Error ¶
func (o *PutCustomFieldPartNotFound) Error() string
type PutCustomFieldPartOK ¶
type PutCustomFieldPartOK struct {
Payload *PutCustomFieldPartOKBody
}
PutCustomFieldPartOK handles this case with default header values.
The above command returns results like this:
func NewPutCustomFieldPartOK ¶
func NewPutCustomFieldPartOK() *PutCustomFieldPartOK
NewPutCustomFieldPartOK creates a PutCustomFieldPartOK with default headers values
func (*PutCustomFieldPartOK) Error ¶
func (o *PutCustomFieldPartOK) Error() string
func (*PutCustomFieldPartOK) GetPayload ¶
func (o *PutCustomFieldPartOK) GetPayload() *PutCustomFieldPartOKBody
type PutCustomFieldPartOKBody ¶
type PutCustomFieldPartOKBody struct { // code Code interface{} `json:"code,omitempty"` // msg Msg interface{} `json:"msg,omitempty"` }
PutCustomFieldPartOKBody put custom field part o k body swagger:model PutCustomFieldPartOKBody
func (*PutCustomFieldPartOKBody) MarshalBinary ¶
func (o *PutCustomFieldPartOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PutCustomFieldPartOKBody) UnmarshalBinary ¶
func (o *PutCustomFieldPartOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PutCustomFieldPartParams ¶
type PutCustomFieldPartParams struct { /*AddToPicklist Comma separated values to add to picklist. If type is picklist and custom field is new, this is a required field. Duplicates will be ignored. */ AddToPicklist *string /*BulkFields comma separated key value pairs, with key and value separated by colon. e.g.key1:value1, key2:value2 */ BulkFields *string /*ClearValue yes to clear existing value for that field */ ClearValue *string /*ID ID of part. */ ID string /*Key Can be new or existing. This is the custom field name. */ Key string /*Notes Any additional notes */ Notes *string /*RelatedFieldName Required if type = related field. */ RelatedFieldName *string /*Type this is the custom field type. If left blank, default is text. Date should be formatted as YYYY-MM-DD */ Type *string /*Value This will set the value of the custom field for the specific object. */ Value *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PutCustomFieldPartParams contains all the parameters to send to the API endpoint for the put custom field part operation typically these are written to a http.Request
func NewPutCustomFieldPartParams ¶
func NewPutCustomFieldPartParams() *PutCustomFieldPartParams
NewPutCustomFieldPartParams creates a new PutCustomFieldPartParams object with the default values initialized.
func NewPutCustomFieldPartParamsWithContext ¶
func NewPutCustomFieldPartParamsWithContext(ctx context.Context) *PutCustomFieldPartParams
NewPutCustomFieldPartParamsWithContext creates a new PutCustomFieldPartParams object with the default values initialized, and the ability to set a context for a request
func NewPutCustomFieldPartParamsWithHTTPClient ¶
func NewPutCustomFieldPartParamsWithHTTPClient(client *http.Client) *PutCustomFieldPartParams
NewPutCustomFieldPartParamsWithHTTPClient creates a new PutCustomFieldPartParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewPutCustomFieldPartParamsWithTimeout ¶
func NewPutCustomFieldPartParamsWithTimeout(timeout time.Duration) *PutCustomFieldPartParams
NewPutCustomFieldPartParamsWithTimeout creates a new PutCustomFieldPartParams object with the default values initialized, and the ability to set a timeout on a request
func (*PutCustomFieldPartParams) SetAddToPicklist ¶
func (o *PutCustomFieldPartParams) SetAddToPicklist(addToPicklist *string)
SetAddToPicklist adds the addToPicklist to the put custom field part params
func (*PutCustomFieldPartParams) SetBulkFields ¶
func (o *PutCustomFieldPartParams) SetBulkFields(bulkFields *string)
SetBulkFields adds the bulkFields to the put custom field part params
func (*PutCustomFieldPartParams) SetClearValue ¶
func (o *PutCustomFieldPartParams) SetClearValue(clearValue *string)
SetClearValue adds the clearValue to the put custom field part params
func (*PutCustomFieldPartParams) SetContext ¶
func (o *PutCustomFieldPartParams) SetContext(ctx context.Context)
SetContext adds the context to the put custom field part params
func (*PutCustomFieldPartParams) SetHTTPClient ¶
func (o *PutCustomFieldPartParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the put custom field part params
func (*PutCustomFieldPartParams) SetID ¶
func (o *PutCustomFieldPartParams) SetID(id string)
SetID adds the id to the put custom field part params
func (*PutCustomFieldPartParams) SetKey ¶
func (o *PutCustomFieldPartParams) SetKey(key string)
SetKey adds the key to the put custom field part params
func (*PutCustomFieldPartParams) SetNotes ¶
func (o *PutCustomFieldPartParams) SetNotes(notes *string)
SetNotes adds the notes to the put custom field part params
func (*PutCustomFieldPartParams) SetRelatedFieldName ¶
func (o *PutCustomFieldPartParams) SetRelatedFieldName(relatedFieldName *string)
SetRelatedFieldName adds the relatedFieldName to the put custom field part params
func (*PutCustomFieldPartParams) SetTimeout ¶
func (o *PutCustomFieldPartParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the put custom field part params
func (*PutCustomFieldPartParams) SetType ¶
func (o *PutCustomFieldPartParams) SetType(typeVar *string)
SetType adds the type to the put custom field part params
func (*PutCustomFieldPartParams) SetValue ¶
func (o *PutCustomFieldPartParams) SetValue(value *string)
SetValue adds the value to the put custom field part params
func (*PutCustomFieldPartParams) WithAddToPicklist ¶
func (o *PutCustomFieldPartParams) WithAddToPicklist(addToPicklist *string) *PutCustomFieldPartParams
WithAddToPicklist adds the addToPicklist to the put custom field part params
func (*PutCustomFieldPartParams) WithBulkFields ¶
func (o *PutCustomFieldPartParams) WithBulkFields(bulkFields *string) *PutCustomFieldPartParams
WithBulkFields adds the bulkFields to the put custom field part params
func (*PutCustomFieldPartParams) WithClearValue ¶
func (o *PutCustomFieldPartParams) WithClearValue(clearValue *string) *PutCustomFieldPartParams
WithClearValue adds the clearValue to the put custom field part params
func (*PutCustomFieldPartParams) WithContext ¶
func (o *PutCustomFieldPartParams) WithContext(ctx context.Context) *PutCustomFieldPartParams
WithContext adds the context to the put custom field part params
func (*PutCustomFieldPartParams) WithHTTPClient ¶
func (o *PutCustomFieldPartParams) WithHTTPClient(client *http.Client) *PutCustomFieldPartParams
WithHTTPClient adds the HTTPClient to the put custom field part params
func (*PutCustomFieldPartParams) WithID ¶
func (o *PutCustomFieldPartParams) WithID(id string) *PutCustomFieldPartParams
WithID adds the id to the put custom field part params
func (*PutCustomFieldPartParams) WithKey ¶
func (o *PutCustomFieldPartParams) WithKey(key string) *PutCustomFieldPartParams
WithKey adds the key to the put custom field part params
func (*PutCustomFieldPartParams) WithNotes ¶
func (o *PutCustomFieldPartParams) WithNotes(notes *string) *PutCustomFieldPartParams
WithNotes adds the notes to the put custom field part params
func (*PutCustomFieldPartParams) WithRelatedFieldName ¶
func (o *PutCustomFieldPartParams) WithRelatedFieldName(relatedFieldName *string) *PutCustomFieldPartParams
WithRelatedFieldName adds the relatedFieldName to the put custom field part params
func (*PutCustomFieldPartParams) WithTimeout ¶
func (o *PutCustomFieldPartParams) WithTimeout(timeout time.Duration) *PutCustomFieldPartParams
WithTimeout adds the timeout to the put custom field part params
func (*PutCustomFieldPartParams) WithType ¶
func (o *PutCustomFieldPartParams) WithType(typeVar *string) *PutCustomFieldPartParams
WithType adds the typeVar to the put custom field part params
func (*PutCustomFieldPartParams) WithValue ¶
func (o *PutCustomFieldPartParams) WithValue(value *string) *PutCustomFieldPartParams
WithValue adds the value to the put custom field part params
func (*PutCustomFieldPartParams) WriteToRequest ¶
func (o *PutCustomFieldPartParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PutCustomFieldPartReader ¶
type PutCustomFieldPartReader struct {
// contains filtered or unexported fields
}
PutCustomFieldPartReader is a Reader for the PutCustomFieldPart structure.
func (*PutCustomFieldPartReader) ReadResponse ¶
func (o *PutCustomFieldPartReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PutCustomFieldPartServiceUnavailable ¶
type PutCustomFieldPartServiceUnavailable struct { }
PutCustomFieldPartServiceUnavailable handles this case with default header values.
Service Unavailable (Please check if your Device42 instance is working normally.)
func NewPutCustomFieldPartServiceUnavailable ¶
func NewPutCustomFieldPartServiceUnavailable() *PutCustomFieldPartServiceUnavailable
NewPutCustomFieldPartServiceUnavailable creates a PutCustomFieldPartServiceUnavailable with default headers values
func (*PutCustomFieldPartServiceUnavailable) Error ¶
func (o *PutCustomFieldPartServiceUnavailable) Error() string
type PutCustomFieldPartUnauthorized ¶
type PutCustomFieldPartUnauthorized struct { }
PutCustomFieldPartUnauthorized handles this case with default header values.
Unauthorized (Your credentials suck)
func NewPutCustomFieldPartUnauthorized ¶
func NewPutCustomFieldPartUnauthorized() *PutCustomFieldPartUnauthorized
NewPutCustomFieldPartUnauthorized creates a PutCustomFieldPartUnauthorized with default headers values
func (*PutCustomFieldPartUnauthorized) Error ¶
func (o *PutCustomFieldPartUnauthorized) Error() string
type PutCustomFieldPartmodelBadRequest ¶
type PutCustomFieldPartmodelBadRequest struct { }
PutCustomFieldPartmodelBadRequest handles this case with default header values.
Bad Request (A validation exception has occurred.)
func NewPutCustomFieldPartmodelBadRequest ¶
func NewPutCustomFieldPartmodelBadRequest() *PutCustomFieldPartmodelBadRequest
NewPutCustomFieldPartmodelBadRequest creates a PutCustomFieldPartmodelBadRequest with default headers values
func (*PutCustomFieldPartmodelBadRequest) Error ¶
func (o *PutCustomFieldPartmodelBadRequest) Error() string
type PutCustomFieldPartmodelForbidden ¶
type PutCustomFieldPartmodelForbidden struct { }
PutCustomFieldPartmodelForbidden handles this case with default header values.
Forbidden (The resource requested is hidden)
func NewPutCustomFieldPartmodelForbidden ¶
func NewPutCustomFieldPartmodelForbidden() *PutCustomFieldPartmodelForbidden
NewPutCustomFieldPartmodelForbidden creates a PutCustomFieldPartmodelForbidden with default headers values
func (*PutCustomFieldPartmodelForbidden) Error ¶
func (o *PutCustomFieldPartmodelForbidden) Error() string
type PutCustomFieldPartmodelGone ¶
type PutCustomFieldPartmodelGone struct { }
PutCustomFieldPartmodelGone handles this case with default header values.
Gone (The resource requested has been removed from our servers)
func NewPutCustomFieldPartmodelGone ¶
func NewPutCustomFieldPartmodelGone() *PutCustomFieldPartmodelGone
NewPutCustomFieldPartmodelGone creates a PutCustomFieldPartmodelGone with default headers values
func (*PutCustomFieldPartmodelGone) Error ¶
func (o *PutCustomFieldPartmodelGone) Error() string
type PutCustomFieldPartmodelInternalServerError ¶
type PutCustomFieldPartmodelInternalServerError struct { }
PutCustomFieldPartmodelInternalServerError 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 NewPutCustomFieldPartmodelInternalServerError ¶
func NewPutCustomFieldPartmodelInternalServerError() *PutCustomFieldPartmodelInternalServerError
NewPutCustomFieldPartmodelInternalServerError creates a PutCustomFieldPartmodelInternalServerError with default headers values
func (*PutCustomFieldPartmodelInternalServerError) Error ¶
func (o *PutCustomFieldPartmodelInternalServerError) Error() string
type PutCustomFieldPartmodelMethodNotAllowed ¶
type PutCustomFieldPartmodelMethodNotAllowed struct { }
PutCustomFieldPartmodelMethodNotAllowed handles this case with default header values.
Method Not Allowed (You tried to access a resource with an invalid method)
func NewPutCustomFieldPartmodelMethodNotAllowed ¶
func NewPutCustomFieldPartmodelMethodNotAllowed() *PutCustomFieldPartmodelMethodNotAllowed
NewPutCustomFieldPartmodelMethodNotAllowed creates a PutCustomFieldPartmodelMethodNotAllowed with default headers values
func (*PutCustomFieldPartmodelMethodNotAllowed) Error ¶
func (o *PutCustomFieldPartmodelMethodNotAllowed) Error() string
type PutCustomFieldPartmodelNotFound ¶
type PutCustomFieldPartmodelNotFound struct { }
PutCustomFieldPartmodelNotFound handles this case with default header values.
Not Found (The specified resource could not be found)
func NewPutCustomFieldPartmodelNotFound ¶
func NewPutCustomFieldPartmodelNotFound() *PutCustomFieldPartmodelNotFound
NewPutCustomFieldPartmodelNotFound creates a PutCustomFieldPartmodelNotFound with default headers values
func (*PutCustomFieldPartmodelNotFound) Error ¶
func (o *PutCustomFieldPartmodelNotFound) Error() string
type PutCustomFieldPartmodelOK ¶
type PutCustomFieldPartmodelOK struct {
Payload *PutCustomFieldPartmodelOKBody
}
PutCustomFieldPartmodelOK handles this case with default header values.
The above command returns results like this:
func NewPutCustomFieldPartmodelOK ¶
func NewPutCustomFieldPartmodelOK() *PutCustomFieldPartmodelOK
NewPutCustomFieldPartmodelOK creates a PutCustomFieldPartmodelOK with default headers values
func (*PutCustomFieldPartmodelOK) Error ¶
func (o *PutCustomFieldPartmodelOK) Error() string
func (*PutCustomFieldPartmodelOK) GetPayload ¶
func (o *PutCustomFieldPartmodelOK) GetPayload() *PutCustomFieldPartmodelOKBody
type PutCustomFieldPartmodelOKBody ¶
type PutCustomFieldPartmodelOKBody struct { // code Code interface{} `json:"code,omitempty"` // msg Msg interface{} `json:"msg,omitempty"` }
PutCustomFieldPartmodelOKBody put custom field partmodel o k body swagger:model PutCustomFieldPartmodelOKBody
func (*PutCustomFieldPartmodelOKBody) MarshalBinary ¶
func (o *PutCustomFieldPartmodelOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PutCustomFieldPartmodelOKBody) UnmarshalBinary ¶
func (o *PutCustomFieldPartmodelOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PutCustomFieldPartmodelParams ¶
type PutCustomFieldPartmodelParams struct { /*AddToPicklist Comma separated values to add to picklist. If type is picklist and custom field is new, this is a required field. Duplicates will be ignored. */ AddToPicklist *string /*BulkFields comma separated key value pairs, with key and value separated by colon. e.g.key1:value1, key2:value2 */ BulkFields *string /*ClearValue yes to clear existing value for that field */ ClearValue *string /*ID ID of part. */ ID string /*Key Can be new or existing. This is the custom field name. */ Key string /*Notes Any additional notes */ Notes *string /*RelatedFieldName Required if type = related field. */ RelatedFieldName *string /*Type this is the custom field type. If left blank, default is text. Date should be formatted as YYYY-MM-DD */ Type *string /*Value This will set the value of the custom field for the specific object. */ Value *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PutCustomFieldPartmodelParams contains all the parameters to send to the API endpoint for the put custom field partmodel operation typically these are written to a http.Request
func NewPutCustomFieldPartmodelParams ¶
func NewPutCustomFieldPartmodelParams() *PutCustomFieldPartmodelParams
NewPutCustomFieldPartmodelParams creates a new PutCustomFieldPartmodelParams object with the default values initialized.
func NewPutCustomFieldPartmodelParamsWithContext ¶
func NewPutCustomFieldPartmodelParamsWithContext(ctx context.Context) *PutCustomFieldPartmodelParams
NewPutCustomFieldPartmodelParamsWithContext creates a new PutCustomFieldPartmodelParams object with the default values initialized, and the ability to set a context for a request
func NewPutCustomFieldPartmodelParamsWithHTTPClient ¶
func NewPutCustomFieldPartmodelParamsWithHTTPClient(client *http.Client) *PutCustomFieldPartmodelParams
NewPutCustomFieldPartmodelParamsWithHTTPClient creates a new PutCustomFieldPartmodelParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewPutCustomFieldPartmodelParamsWithTimeout ¶
func NewPutCustomFieldPartmodelParamsWithTimeout(timeout time.Duration) *PutCustomFieldPartmodelParams
NewPutCustomFieldPartmodelParamsWithTimeout creates a new PutCustomFieldPartmodelParams object with the default values initialized, and the ability to set a timeout on a request
func (*PutCustomFieldPartmodelParams) SetAddToPicklist ¶
func (o *PutCustomFieldPartmodelParams) SetAddToPicklist(addToPicklist *string)
SetAddToPicklist adds the addToPicklist to the put custom field partmodel params
func (*PutCustomFieldPartmodelParams) SetBulkFields ¶
func (o *PutCustomFieldPartmodelParams) SetBulkFields(bulkFields *string)
SetBulkFields adds the bulkFields to the put custom field partmodel params
func (*PutCustomFieldPartmodelParams) SetClearValue ¶
func (o *PutCustomFieldPartmodelParams) SetClearValue(clearValue *string)
SetClearValue adds the clearValue to the put custom field partmodel params
func (*PutCustomFieldPartmodelParams) SetContext ¶
func (o *PutCustomFieldPartmodelParams) SetContext(ctx context.Context)
SetContext adds the context to the put custom field partmodel params
func (*PutCustomFieldPartmodelParams) SetHTTPClient ¶
func (o *PutCustomFieldPartmodelParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the put custom field partmodel params
func (*PutCustomFieldPartmodelParams) SetID ¶
func (o *PutCustomFieldPartmodelParams) SetID(id string)
SetID adds the id to the put custom field partmodel params
func (*PutCustomFieldPartmodelParams) SetKey ¶
func (o *PutCustomFieldPartmodelParams) SetKey(key string)
SetKey adds the key to the put custom field partmodel params
func (*PutCustomFieldPartmodelParams) SetNotes ¶
func (o *PutCustomFieldPartmodelParams) SetNotes(notes *string)
SetNotes adds the notes to the put custom field partmodel params
func (*PutCustomFieldPartmodelParams) SetRelatedFieldName ¶
func (o *PutCustomFieldPartmodelParams) SetRelatedFieldName(relatedFieldName *string)
SetRelatedFieldName adds the relatedFieldName to the put custom field partmodel params
func (*PutCustomFieldPartmodelParams) SetTimeout ¶
func (o *PutCustomFieldPartmodelParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the put custom field partmodel params
func (*PutCustomFieldPartmodelParams) SetType ¶
func (o *PutCustomFieldPartmodelParams) SetType(typeVar *string)
SetType adds the type to the put custom field partmodel params
func (*PutCustomFieldPartmodelParams) SetValue ¶
func (o *PutCustomFieldPartmodelParams) SetValue(value *string)
SetValue adds the value to the put custom field partmodel params
func (*PutCustomFieldPartmodelParams) WithAddToPicklist ¶
func (o *PutCustomFieldPartmodelParams) WithAddToPicklist(addToPicklist *string) *PutCustomFieldPartmodelParams
WithAddToPicklist adds the addToPicklist to the put custom field partmodel params
func (*PutCustomFieldPartmodelParams) WithBulkFields ¶
func (o *PutCustomFieldPartmodelParams) WithBulkFields(bulkFields *string) *PutCustomFieldPartmodelParams
WithBulkFields adds the bulkFields to the put custom field partmodel params
func (*PutCustomFieldPartmodelParams) WithClearValue ¶
func (o *PutCustomFieldPartmodelParams) WithClearValue(clearValue *string) *PutCustomFieldPartmodelParams
WithClearValue adds the clearValue to the put custom field partmodel params
func (*PutCustomFieldPartmodelParams) WithContext ¶
func (o *PutCustomFieldPartmodelParams) WithContext(ctx context.Context) *PutCustomFieldPartmodelParams
WithContext adds the context to the put custom field partmodel params
func (*PutCustomFieldPartmodelParams) WithHTTPClient ¶
func (o *PutCustomFieldPartmodelParams) WithHTTPClient(client *http.Client) *PutCustomFieldPartmodelParams
WithHTTPClient adds the HTTPClient to the put custom field partmodel params
func (*PutCustomFieldPartmodelParams) WithID ¶
func (o *PutCustomFieldPartmodelParams) WithID(id string) *PutCustomFieldPartmodelParams
WithID adds the id to the put custom field partmodel params
func (*PutCustomFieldPartmodelParams) WithKey ¶
func (o *PutCustomFieldPartmodelParams) WithKey(key string) *PutCustomFieldPartmodelParams
WithKey adds the key to the put custom field partmodel params
func (*PutCustomFieldPartmodelParams) WithNotes ¶
func (o *PutCustomFieldPartmodelParams) WithNotes(notes *string) *PutCustomFieldPartmodelParams
WithNotes adds the notes to the put custom field partmodel params
func (*PutCustomFieldPartmodelParams) WithRelatedFieldName ¶
func (o *PutCustomFieldPartmodelParams) WithRelatedFieldName(relatedFieldName *string) *PutCustomFieldPartmodelParams
WithRelatedFieldName adds the relatedFieldName to the put custom field partmodel params
func (*PutCustomFieldPartmodelParams) WithTimeout ¶
func (o *PutCustomFieldPartmodelParams) WithTimeout(timeout time.Duration) *PutCustomFieldPartmodelParams
WithTimeout adds the timeout to the put custom field partmodel params
func (*PutCustomFieldPartmodelParams) WithType ¶
func (o *PutCustomFieldPartmodelParams) WithType(typeVar *string) *PutCustomFieldPartmodelParams
WithType adds the typeVar to the put custom field partmodel params
func (*PutCustomFieldPartmodelParams) WithValue ¶
func (o *PutCustomFieldPartmodelParams) WithValue(value *string) *PutCustomFieldPartmodelParams
WithValue adds the value to the put custom field partmodel params
func (*PutCustomFieldPartmodelParams) WriteToRequest ¶
func (o *PutCustomFieldPartmodelParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PutCustomFieldPartmodelReader ¶
type PutCustomFieldPartmodelReader struct {
// contains filtered or unexported fields
}
PutCustomFieldPartmodelReader is a Reader for the PutCustomFieldPartmodel structure.
func (*PutCustomFieldPartmodelReader) ReadResponse ¶
func (o *PutCustomFieldPartmodelReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PutCustomFieldPartmodelServiceUnavailable ¶
type PutCustomFieldPartmodelServiceUnavailable struct { }
PutCustomFieldPartmodelServiceUnavailable handles this case with default header values.
Service Unavailable (Please check if your Device42 instance is working normally.)
func NewPutCustomFieldPartmodelServiceUnavailable ¶
func NewPutCustomFieldPartmodelServiceUnavailable() *PutCustomFieldPartmodelServiceUnavailable
NewPutCustomFieldPartmodelServiceUnavailable creates a PutCustomFieldPartmodelServiceUnavailable with default headers values
func (*PutCustomFieldPartmodelServiceUnavailable) Error ¶
func (o *PutCustomFieldPartmodelServiceUnavailable) Error() string
type PutCustomFieldPartmodelUnauthorized ¶
type PutCustomFieldPartmodelUnauthorized struct { }
PutCustomFieldPartmodelUnauthorized handles this case with default header values.
Unauthorized (Your credentials suck)
func NewPutCustomFieldPartmodelUnauthorized ¶
func NewPutCustomFieldPartmodelUnauthorized() *PutCustomFieldPartmodelUnauthorized
NewPutCustomFieldPartmodelUnauthorized creates a PutCustomFieldPartmodelUnauthorized with default headers values
func (*PutCustomFieldPartmodelUnauthorized) Error ¶
func (o *PutCustomFieldPartmodelUnauthorized) Error() string
Source Files
¶
- delete_partmodels_parameters.go
- delete_partmodels_responses.go
- delete_parts_parameters.go
- delete_parts_responses.go
- get_partmodels_parameters.go
- get_partmodels_responses.go
- get_parts_parameters.go
- get_parts_responses.go
- parts_management_client.go
- post_partmodels_parameters.go
- post_partmodels_responses.go
- post_parts_parameters.go
- post_parts_responses.go
- put_custom_field_part_parameters.go
- put_custom_field_part_responses.go
- put_custom_field_partmodel_parameters.go
- put_custom_field_partmodel_responses.go