Documentation
¶
Index ¶
- type Client
- func (a *Client) DeleteCable(params *DeleteCableParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteCableOK, error)
- func (a *Client) GetCables(params *GetCablesParams, authInfo runtime.ClientAuthInfoWriter) (*GetCablesOK, error)
- func (a *Client) PostCables(params *PostCablesParams, authInfo runtime.ClientAuthInfoWriter) (*PostCablesOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type DeleteCableBadRequest
- type DeleteCableForbidden
- type DeleteCableGone
- type DeleteCableInternalServerError
- type DeleteCableMethodNotAllowed
- type DeleteCableNotFound
- type DeleteCableOK
- type DeleteCableOKBody
- type DeleteCableParams
- func (o *DeleteCableParams) SetContext(ctx context.Context)
- func (o *DeleteCableParams) SetHTTPClient(client *http.Client)
- func (o *DeleteCableParams) SetID(id int64)
- func (o *DeleteCableParams) SetTimeout(timeout time.Duration)
- func (o *DeleteCableParams) WithContext(ctx context.Context) *DeleteCableParams
- func (o *DeleteCableParams) WithHTTPClient(client *http.Client) *DeleteCableParams
- func (o *DeleteCableParams) WithID(id int64) *DeleteCableParams
- func (o *DeleteCableParams) WithTimeout(timeout time.Duration) *DeleteCableParams
- func (o *DeleteCableParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteCableReader
- type DeleteCableServiceUnavailable
- type DeleteCableUnauthorized
- type GetCablesBadRequest
- type GetCablesForbidden
- type GetCablesGone
- type GetCablesInternalServerError
- type GetCablesMethodNotAllowed
- type GetCablesNotFound
- type GetCablesOK
- type GetCablesOKBody
- type GetCablesParams
- func (o *GetCablesParams) SetCableID(cableID *int64)
- func (o *GetCablesParams) SetContext(ctx context.Context)
- func (o *GetCablesParams) SetHTTPClient(client *http.Client)
- func (o *GetCablesParams) SetTimeout(timeout time.Duration)
- func (o *GetCablesParams) WithCableID(cableID *int64) *GetCablesParams
- func (o *GetCablesParams) WithContext(ctx context.Context) *GetCablesParams
- func (o *GetCablesParams) WithHTTPClient(client *http.Client) *GetCablesParams
- func (o *GetCablesParams) WithTimeout(timeout time.Duration) *GetCablesParams
- func (o *GetCablesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetCablesReader
- type GetCablesServiceUnavailable
- type GetCablesUnauthorized
- type PostCablesBadRequest
- type PostCablesForbidden
- type PostCablesGone
- type PostCablesInternalServerError
- type PostCablesMethodNotAllowed
- type PostCablesNotFound
- type PostCablesOK
- type PostCablesOKBody
- type PostCablesParams
- func (o *PostCablesParams) SetCableID(cableID string)
- func (o *PostCablesParams) SetCableLength(cableLength *string)
- func (o *PostCablesParams) SetCableLengthUnits(cableLengthUnits *string)
- func (o *PostCablesParams) SetContext(ctx context.Context)
- func (o *PostCablesParams) SetEndPointBackPachPanel(endPointBackPachPanel *string)
- func (o *PostCablesParams) SetEndPointCable(endPointCable *string)
- func (o *PostCablesParams) SetEndPointCableColor(endPointCableColor *string)
- func (o *PostCablesParams) SetEndPointConnectorType(endPointConnectorType *string)
- func (o *PostCablesParams) SetEndPointID(endPointID *string)
- func (o *PostCablesParams) SetEndPointMultiple(endPointMultiple *string)
- func (o *PostCablesParams) SetEndPointOpticType(endPointOpticType *string)
- func (o *PostCablesParams) SetEndPointType(endPointType *string)
- func (o *PostCablesParams) SetGroups(groups *string)
- func (o *PostCablesParams) SetHTTPClient(client *http.Client)
- func (o *PostCablesParams) SetID(id string)
- func (o *PostCablesParams) SetNotes(notes *string)
- func (o *PostCablesParams) SetOriginBackPatchPanel(originBackPatchPanel *string)
- func (o *PostCablesParams) SetOriginCable(originCable *string)
- func (o *PostCablesParams) SetOriginCableColor(originCableColor *string)
- func (o *PostCablesParams) SetOriginConnectorType(originConnectorType *string)
- func (o *PostCablesParams) SetOriginID(originID *string)
- func (o *PostCablesParams) SetOriginOpticType(originOpticType *string)
- func (o *PostCablesParams) SetOriginType(originType *string)
- func (o *PostCablesParams) SetRoom(room *string)
- func (o *PostCablesParams) SetRoomID(roomID *string)
- func (o *PostCablesParams) SetTimeout(timeout time.Duration)
- func (o *PostCablesParams) SetVendor(vendor *string)
- func (o *PostCablesParams) WithCableID(cableID string) *PostCablesParams
- func (o *PostCablesParams) WithCableLength(cableLength *string) *PostCablesParams
- func (o *PostCablesParams) WithCableLengthUnits(cableLengthUnits *string) *PostCablesParams
- func (o *PostCablesParams) WithContext(ctx context.Context) *PostCablesParams
- func (o *PostCablesParams) WithEndPointBackPachPanel(endPointBackPachPanel *string) *PostCablesParams
- func (o *PostCablesParams) WithEndPointCable(endPointCable *string) *PostCablesParams
- func (o *PostCablesParams) WithEndPointCableColor(endPointCableColor *string) *PostCablesParams
- func (o *PostCablesParams) WithEndPointConnectorType(endPointConnectorType *string) *PostCablesParams
- func (o *PostCablesParams) WithEndPointID(endPointID *string) *PostCablesParams
- func (o *PostCablesParams) WithEndPointMultiple(endPointMultiple *string) *PostCablesParams
- func (o *PostCablesParams) WithEndPointOpticType(endPointOpticType *string) *PostCablesParams
- func (o *PostCablesParams) WithEndPointType(endPointType *string) *PostCablesParams
- func (o *PostCablesParams) WithGroups(groups *string) *PostCablesParams
- func (o *PostCablesParams) WithHTTPClient(client *http.Client) *PostCablesParams
- func (o *PostCablesParams) WithID(id string) *PostCablesParams
- func (o *PostCablesParams) WithNotes(notes *string) *PostCablesParams
- func (o *PostCablesParams) WithOriginBackPatchPanel(originBackPatchPanel *string) *PostCablesParams
- func (o *PostCablesParams) WithOriginCable(originCable *string) *PostCablesParams
- func (o *PostCablesParams) WithOriginCableColor(originCableColor *string) *PostCablesParams
- func (o *PostCablesParams) WithOriginConnectorType(originConnectorType *string) *PostCablesParams
- func (o *PostCablesParams) WithOriginID(originID *string) *PostCablesParams
- func (o *PostCablesParams) WithOriginOpticType(originOpticType *string) *PostCablesParams
- func (o *PostCablesParams) WithOriginType(originType *string) *PostCablesParams
- func (o *PostCablesParams) WithRoom(room *string) *PostCablesParams
- func (o *PostCablesParams) WithRoomID(roomID *string) *PostCablesParams
- func (o *PostCablesParams) WithTimeout(timeout time.Duration) *PostCablesParams
- func (o *PostCablesParams) WithVendor(vendor *string) *PostCablesParams
- func (o *PostCablesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostCablesReader
- type PostCablesServiceUnavailable
- type PostCablesUnauthorized
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 cables API
func (*Client) DeleteCable ¶
func (a *Client) DeleteCable(params *DeleteCableParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteCableOK, error)
DeleteCable deletes cable
This API is used to delete the cable with the ID supplied as the required argument.
func (*Client) GetCables ¶
func (a *Client) GetCables(params *GetCablesParams, authInfo runtime.ClientAuthInfoWriter) (*GetCablesOK, error)
GetCables retrieves information about all cables
Get All Cables
func (*Client) PostCables ¶
func (a *Client) PostCables(params *PostCablesParams, authInfo runtime.ClientAuthInfoWriter) (*PostCablesOK, error)
PostCables creates or update cables
Create/Update Cable
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface { DeleteCable(params *DeleteCableParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteCableOK, error) GetCables(params *GetCablesParams, authInfo runtime.ClientAuthInfoWriter) (*GetCablesOK, error) PostCables(params *PostCablesParams, authInfo runtime.ClientAuthInfoWriter) (*PostCablesOK, 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 cables API client.
type DeleteCableBadRequest ¶
type DeleteCableBadRequest struct { }
DeleteCableBadRequest handles this case with default header values.
Bad Request (A validation exception has occurred.)
func NewDeleteCableBadRequest ¶
func NewDeleteCableBadRequest() *DeleteCableBadRequest
NewDeleteCableBadRequest creates a DeleteCableBadRequest with default headers values
func (*DeleteCableBadRequest) Error ¶
func (o *DeleteCableBadRequest) Error() string
type DeleteCableForbidden ¶
type DeleteCableForbidden struct { }
DeleteCableForbidden handles this case with default header values.
Forbidden (The resource requested is hidden)
func NewDeleteCableForbidden ¶
func NewDeleteCableForbidden() *DeleteCableForbidden
NewDeleteCableForbidden creates a DeleteCableForbidden with default headers values
func (*DeleteCableForbidden) Error ¶
func (o *DeleteCableForbidden) Error() string
type DeleteCableGone ¶
type DeleteCableGone struct { }
DeleteCableGone handles this case with default header values.
Gone (The resource requested has been removed from our servers)
func NewDeleteCableGone ¶
func NewDeleteCableGone() *DeleteCableGone
NewDeleteCableGone creates a DeleteCableGone with default headers values
func (*DeleteCableGone) Error ¶
func (o *DeleteCableGone) Error() string
type DeleteCableInternalServerError ¶
type DeleteCableInternalServerError struct { }
DeleteCableInternalServerError 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 NewDeleteCableInternalServerError ¶
func NewDeleteCableInternalServerError() *DeleteCableInternalServerError
NewDeleteCableInternalServerError creates a DeleteCableInternalServerError with default headers values
func (*DeleteCableInternalServerError) Error ¶
func (o *DeleteCableInternalServerError) Error() string
type DeleteCableMethodNotAllowed ¶
type DeleteCableMethodNotAllowed struct { }
DeleteCableMethodNotAllowed handles this case with default header values.
Method Not Allowed (You tried to access a resource with an invalid method)
func NewDeleteCableMethodNotAllowed ¶
func NewDeleteCableMethodNotAllowed() *DeleteCableMethodNotAllowed
NewDeleteCableMethodNotAllowed creates a DeleteCableMethodNotAllowed with default headers values
func (*DeleteCableMethodNotAllowed) Error ¶
func (o *DeleteCableMethodNotAllowed) Error() string
type DeleteCableNotFound ¶
type DeleteCableNotFound struct { }
DeleteCableNotFound handles this case with default header values.
Not Found (The specified resource could not be found)
func NewDeleteCableNotFound ¶
func NewDeleteCableNotFound() *DeleteCableNotFound
NewDeleteCableNotFound creates a DeleteCableNotFound with default headers values
func (*DeleteCableNotFound) Error ¶
func (o *DeleteCableNotFound) Error() string
type DeleteCableOK ¶
type DeleteCableOK struct {
Payload *DeleteCableOKBody
}
DeleteCableOK handles this case with default header values.
The above command returns results like this:
func NewDeleteCableOK ¶
func NewDeleteCableOK() *DeleteCableOK
NewDeleteCableOK creates a DeleteCableOK with default headers values
func (*DeleteCableOK) Error ¶
func (o *DeleteCableOK) Error() string
func (*DeleteCableOK) GetPayload ¶
func (o *DeleteCableOK) GetPayload() *DeleteCableOKBody
type DeleteCableOKBody ¶
type DeleteCableOKBody struct { // deleted Deleted interface{} `json:"deleted,omitempty"` // id ID interface{} `json:"id,omitempty"` }
DeleteCableOKBody delete cable o k body swagger:model DeleteCableOKBody
func (*DeleteCableOKBody) MarshalBinary ¶
func (o *DeleteCableOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DeleteCableOKBody) UnmarshalBinary ¶
func (o *DeleteCableOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DeleteCableParams ¶
type DeleteCableParams struct { /*ID Cable ID */ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteCableParams contains all the parameters to send to the API endpoint for the delete cable operation typically these are written to a http.Request
func NewDeleteCableParams ¶
func NewDeleteCableParams() *DeleteCableParams
NewDeleteCableParams creates a new DeleteCableParams object with the default values initialized.
func NewDeleteCableParamsWithContext ¶
func NewDeleteCableParamsWithContext(ctx context.Context) *DeleteCableParams
NewDeleteCableParamsWithContext creates a new DeleteCableParams object with the default values initialized, and the ability to set a context for a request
func NewDeleteCableParamsWithHTTPClient ¶
func NewDeleteCableParamsWithHTTPClient(client *http.Client) *DeleteCableParams
NewDeleteCableParamsWithHTTPClient creates a new DeleteCableParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDeleteCableParamsWithTimeout ¶
func NewDeleteCableParamsWithTimeout(timeout time.Duration) *DeleteCableParams
NewDeleteCableParamsWithTimeout creates a new DeleteCableParams object with the default values initialized, and the ability to set a timeout on a request
func (*DeleteCableParams) SetContext ¶
func (o *DeleteCableParams) SetContext(ctx context.Context)
SetContext adds the context to the delete cable params
func (*DeleteCableParams) SetHTTPClient ¶
func (o *DeleteCableParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete cable params
func (*DeleteCableParams) SetID ¶
func (o *DeleteCableParams) SetID(id int64)
SetID adds the id to the delete cable params
func (*DeleteCableParams) SetTimeout ¶
func (o *DeleteCableParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete cable params
func (*DeleteCableParams) WithContext ¶
func (o *DeleteCableParams) WithContext(ctx context.Context) *DeleteCableParams
WithContext adds the context to the delete cable params
func (*DeleteCableParams) WithHTTPClient ¶
func (o *DeleteCableParams) WithHTTPClient(client *http.Client) *DeleteCableParams
WithHTTPClient adds the HTTPClient to the delete cable params
func (*DeleteCableParams) WithID ¶
func (o *DeleteCableParams) WithID(id int64) *DeleteCableParams
WithID adds the id to the delete cable params
func (*DeleteCableParams) WithTimeout ¶
func (o *DeleteCableParams) WithTimeout(timeout time.Duration) *DeleteCableParams
WithTimeout adds the timeout to the delete cable params
func (*DeleteCableParams) WriteToRequest ¶
func (o *DeleteCableParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteCableReader ¶
type DeleteCableReader struct {
// contains filtered or unexported fields
}
DeleteCableReader is a Reader for the DeleteCable structure.
func (*DeleteCableReader) ReadResponse ¶
func (o *DeleteCableReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteCableServiceUnavailable ¶
type DeleteCableServiceUnavailable struct { }
DeleteCableServiceUnavailable handles this case with default header values.
Service Unavailable (Please check if your Device42 instance is working normally.)
func NewDeleteCableServiceUnavailable ¶
func NewDeleteCableServiceUnavailable() *DeleteCableServiceUnavailable
NewDeleteCableServiceUnavailable creates a DeleteCableServiceUnavailable with default headers values
func (*DeleteCableServiceUnavailable) Error ¶
func (o *DeleteCableServiceUnavailable) Error() string
type DeleteCableUnauthorized ¶
type DeleteCableUnauthorized struct { }
DeleteCableUnauthorized handles this case with default header values.
Unauthorized (Your credentials suck)
func NewDeleteCableUnauthorized ¶
func NewDeleteCableUnauthorized() *DeleteCableUnauthorized
NewDeleteCableUnauthorized creates a DeleteCableUnauthorized with default headers values
func (*DeleteCableUnauthorized) Error ¶
func (o *DeleteCableUnauthorized) Error() string
type GetCablesBadRequest ¶
type GetCablesBadRequest struct { }
GetCablesBadRequest handles this case with default header values.
Bad Request (A validation exception has occurred.)
func NewGetCablesBadRequest ¶
func NewGetCablesBadRequest() *GetCablesBadRequest
NewGetCablesBadRequest creates a GetCablesBadRequest with default headers values
func (*GetCablesBadRequest) Error ¶
func (o *GetCablesBadRequest) Error() string
type GetCablesForbidden ¶
type GetCablesForbidden struct { }
GetCablesForbidden handles this case with default header values.
Forbidden (The resource requested is hidden)
func NewGetCablesForbidden ¶
func NewGetCablesForbidden() *GetCablesForbidden
NewGetCablesForbidden creates a GetCablesForbidden with default headers values
func (*GetCablesForbidden) Error ¶
func (o *GetCablesForbidden) Error() string
type GetCablesGone ¶
type GetCablesGone struct { }
GetCablesGone handles this case with default header values.
Gone (The resource requested has been removed from our servers)
func NewGetCablesGone ¶
func NewGetCablesGone() *GetCablesGone
NewGetCablesGone creates a GetCablesGone with default headers values
func (*GetCablesGone) Error ¶
func (o *GetCablesGone) Error() string
type GetCablesInternalServerError ¶
type GetCablesInternalServerError struct { }
GetCablesInternalServerError 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 NewGetCablesInternalServerError ¶
func NewGetCablesInternalServerError() *GetCablesInternalServerError
NewGetCablesInternalServerError creates a GetCablesInternalServerError with default headers values
func (*GetCablesInternalServerError) Error ¶
func (o *GetCablesInternalServerError) Error() string
type GetCablesMethodNotAllowed ¶
type GetCablesMethodNotAllowed struct { }
GetCablesMethodNotAllowed handles this case with default header values.
Method Not Allowed (You tried to access a resource with an invalid method)
func NewGetCablesMethodNotAllowed ¶
func NewGetCablesMethodNotAllowed() *GetCablesMethodNotAllowed
NewGetCablesMethodNotAllowed creates a GetCablesMethodNotAllowed with default headers values
func (*GetCablesMethodNotAllowed) Error ¶
func (o *GetCablesMethodNotAllowed) Error() string
type GetCablesNotFound ¶
type GetCablesNotFound struct { }
GetCablesNotFound handles this case with default header values.
Not Found (The specified resource could not be found)
func NewGetCablesNotFound ¶
func NewGetCablesNotFound() *GetCablesNotFound
NewGetCablesNotFound creates a GetCablesNotFound with default headers values
func (*GetCablesNotFound) Error ¶
func (o *GetCablesNotFound) Error() string
type GetCablesOK ¶
type GetCablesOK struct {
Payload *GetCablesOKBody
}
GetCablesOK handles this case with default header values.
The above command returns results like this:
func NewGetCablesOK ¶
func NewGetCablesOK() *GetCablesOK
NewGetCablesOK creates a GetCablesOK with default headers values
func (*GetCablesOK) Error ¶
func (o *GetCablesOK) Error() string
func (*GetCablesOK) GetPayload ¶
func (o *GetCablesOK) GetPayload() *GetCablesOKBody
type GetCablesOKBody ¶
GetCablesOKBody get cables o k body swagger:model GetCablesOKBody
func (*GetCablesOKBody) MarshalBinary ¶
func (o *GetCablesOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetCablesOKBody) UnmarshalBinary ¶
func (o *GetCablesOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetCablesParams ¶
type GetCablesParams struct { /*CableID filter by cable_id */ CableID *int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetCablesParams contains all the parameters to send to the API endpoint for the get cables operation typically these are written to a http.Request
func NewGetCablesParams ¶
func NewGetCablesParams() *GetCablesParams
NewGetCablesParams creates a new GetCablesParams object with the default values initialized.
func NewGetCablesParamsWithContext ¶
func NewGetCablesParamsWithContext(ctx context.Context) *GetCablesParams
NewGetCablesParamsWithContext creates a new GetCablesParams object with the default values initialized, and the ability to set a context for a request
func NewGetCablesParamsWithHTTPClient ¶
func NewGetCablesParamsWithHTTPClient(client *http.Client) *GetCablesParams
NewGetCablesParamsWithHTTPClient creates a new GetCablesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetCablesParamsWithTimeout ¶
func NewGetCablesParamsWithTimeout(timeout time.Duration) *GetCablesParams
NewGetCablesParamsWithTimeout creates a new GetCablesParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetCablesParams) SetCableID ¶
func (o *GetCablesParams) SetCableID(cableID *int64)
SetCableID adds the cableId to the get cables params
func (*GetCablesParams) SetContext ¶
func (o *GetCablesParams) SetContext(ctx context.Context)
SetContext adds the context to the get cables params
func (*GetCablesParams) SetHTTPClient ¶
func (o *GetCablesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get cables params
func (*GetCablesParams) SetTimeout ¶
func (o *GetCablesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get cables params
func (*GetCablesParams) WithCableID ¶
func (o *GetCablesParams) WithCableID(cableID *int64) *GetCablesParams
WithCableID adds the cableID to the get cables params
func (*GetCablesParams) WithContext ¶
func (o *GetCablesParams) WithContext(ctx context.Context) *GetCablesParams
WithContext adds the context to the get cables params
func (*GetCablesParams) WithHTTPClient ¶
func (o *GetCablesParams) WithHTTPClient(client *http.Client) *GetCablesParams
WithHTTPClient adds the HTTPClient to the get cables params
func (*GetCablesParams) WithTimeout ¶
func (o *GetCablesParams) WithTimeout(timeout time.Duration) *GetCablesParams
WithTimeout adds the timeout to the get cables params
func (*GetCablesParams) WriteToRequest ¶
func (o *GetCablesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetCablesReader ¶
type GetCablesReader struct {
// contains filtered or unexported fields
}
GetCablesReader is a Reader for the GetCables structure.
func (*GetCablesReader) ReadResponse ¶
func (o *GetCablesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetCablesServiceUnavailable ¶
type GetCablesServiceUnavailable struct { }
GetCablesServiceUnavailable handles this case with default header values.
Service Unavailable (Please check if your Device42 instance is working normally.)
func NewGetCablesServiceUnavailable ¶
func NewGetCablesServiceUnavailable() *GetCablesServiceUnavailable
NewGetCablesServiceUnavailable creates a GetCablesServiceUnavailable with default headers values
func (*GetCablesServiceUnavailable) Error ¶
func (o *GetCablesServiceUnavailable) Error() string
type GetCablesUnauthorized ¶
type GetCablesUnauthorized struct { }
GetCablesUnauthorized handles this case with default header values.
Unauthorized (Your credentials suck)
func NewGetCablesUnauthorized ¶
func NewGetCablesUnauthorized() *GetCablesUnauthorized
NewGetCablesUnauthorized creates a GetCablesUnauthorized with default headers values
func (*GetCablesUnauthorized) Error ¶
func (o *GetCablesUnauthorized) Error() string
type PostCablesBadRequest ¶
type PostCablesBadRequest struct { }
PostCablesBadRequest handles this case with default header values.
Bad Request (A validation exception has occurred.)
func NewPostCablesBadRequest ¶
func NewPostCablesBadRequest() *PostCablesBadRequest
NewPostCablesBadRequest creates a PostCablesBadRequest with default headers values
func (*PostCablesBadRequest) Error ¶
func (o *PostCablesBadRequest) Error() string
type PostCablesForbidden ¶
type PostCablesForbidden struct { }
PostCablesForbidden handles this case with default header values.
Forbidden (The resource requested is hidden)
func NewPostCablesForbidden ¶
func NewPostCablesForbidden() *PostCablesForbidden
NewPostCablesForbidden creates a PostCablesForbidden with default headers values
func (*PostCablesForbidden) Error ¶
func (o *PostCablesForbidden) Error() string
type PostCablesGone ¶
type PostCablesGone struct { }
PostCablesGone handles this case with default header values.
Gone (The resource requested has been removed from our servers)
func NewPostCablesGone ¶
func NewPostCablesGone() *PostCablesGone
NewPostCablesGone creates a PostCablesGone with default headers values
func (*PostCablesGone) Error ¶
func (o *PostCablesGone) Error() string
type PostCablesInternalServerError ¶
type PostCablesInternalServerError struct { }
PostCablesInternalServerError 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 NewPostCablesInternalServerError ¶
func NewPostCablesInternalServerError() *PostCablesInternalServerError
NewPostCablesInternalServerError creates a PostCablesInternalServerError with default headers values
func (*PostCablesInternalServerError) Error ¶
func (o *PostCablesInternalServerError) Error() string
type PostCablesMethodNotAllowed ¶
type PostCablesMethodNotAllowed struct { }
PostCablesMethodNotAllowed handles this case with default header values.
Method Not Allowed (You tried to access a resource with an invalid method)
func NewPostCablesMethodNotAllowed ¶
func NewPostCablesMethodNotAllowed() *PostCablesMethodNotAllowed
NewPostCablesMethodNotAllowed creates a PostCablesMethodNotAllowed with default headers values
func (*PostCablesMethodNotAllowed) Error ¶
func (o *PostCablesMethodNotAllowed) Error() string
type PostCablesNotFound ¶
type PostCablesNotFound struct { }
PostCablesNotFound handles this case with default header values.
Not Found (The specified resource could not be found)
func NewPostCablesNotFound ¶
func NewPostCablesNotFound() *PostCablesNotFound
NewPostCablesNotFound creates a PostCablesNotFound with default headers values
func (*PostCablesNotFound) Error ¶
func (o *PostCablesNotFound) Error() string
type PostCablesOK ¶
type PostCablesOK struct {
Payload *PostCablesOKBody
}
PostCablesOK handles this case with default header values.
The above command returns results like this:
func NewPostCablesOK ¶
func NewPostCablesOK() *PostCablesOK
NewPostCablesOK creates a PostCablesOK with default headers values
func (*PostCablesOK) Error ¶
func (o *PostCablesOK) Error() string
func (*PostCablesOK) GetPayload ¶
func (o *PostCablesOK) GetPayload() *PostCablesOKBody
type PostCablesOKBody ¶
type PostCablesOKBody struct { // code Code interface{} `json:"code,omitempty"` // msg Msg interface{} `json:"msg,omitempty"` }
PostCablesOKBody post cables o k body swagger:model PostCablesOKBody
func (*PostCablesOKBody) MarshalBinary ¶
func (o *PostCablesOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PostCablesOKBody) UnmarshalBinary ¶
func (o *PostCablesOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PostCablesParams ¶
type PostCablesParams struct { /*ID Device42 ID of cable */ ID string /*CableID Cable ID/Name */ CableID string /*CableLength Length of Cable */ CableLength *string /*CableLengthUnits Units for Cable Length (“m” or “ft”) */ CableLengthUnits *string /*EndPointBackPachPanel*/ EndPointBackPachPanel *string /*EndPointCable Endpoint Cable Type (User Definable) */ EndPointCable *string /*EndPointCableColor Endpoint Cable Color */ EndPointCableColor *string /*EndPointConnectorType Connector Type (User Definable) */ EndPointConnectorType *string /*EndPointID ID of the end point */ EndPointID *string /*EndPointMultiple yes to allow multiple endpoints */ EndPointMultiple *string /*EndPointOpticType Optic Type (Definable, ie multimode) */ EndPointOpticType *string /*EndPointType Type of end point. */ EndPointType *string /*Groups If multitenancy is on, admin groups that have access to this object are specified here, e.g. Prod_East:no,Corp:yes specifies that the admin groups for this object are Prod_East with view only permission and Corp with change permission. If this parameter is present with no value, all groups are deleted. */ Groups *string /*Notes Any additional notes */ Notes *string /*OriginBackPatchPanel*/ OriginBackPatchPanel *string /*OriginCable Cable Type (User definable) */ OriginCable *string /*OriginCableColor Origin Cable Color */ OriginCableColor *string /*OriginConnectorType Connector Type (User Definable) */ OriginConnectorType *string /*OriginID ID of the origin point */ OriginID *string /*OriginOpticType Optic Type (Definable, ie multimode) */ OriginOpticType *string /*OriginType Type of origin point. */ OriginType *string /*Room Room name */ Room *string /*RoomID Room ID */ RoomID *string /*Vendor Cable vendor */ Vendor *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PostCablesParams contains all the parameters to send to the API endpoint for the post cables operation typically these are written to a http.Request
func NewPostCablesParams ¶
func NewPostCablesParams() *PostCablesParams
NewPostCablesParams creates a new PostCablesParams object with the default values initialized.
func NewPostCablesParamsWithContext ¶
func NewPostCablesParamsWithContext(ctx context.Context) *PostCablesParams
NewPostCablesParamsWithContext creates a new PostCablesParams object with the default values initialized, and the ability to set a context for a request
func NewPostCablesParamsWithHTTPClient ¶
func NewPostCablesParamsWithHTTPClient(client *http.Client) *PostCablesParams
NewPostCablesParamsWithHTTPClient creates a new PostCablesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewPostCablesParamsWithTimeout ¶
func NewPostCablesParamsWithTimeout(timeout time.Duration) *PostCablesParams
NewPostCablesParamsWithTimeout creates a new PostCablesParams object with the default values initialized, and the ability to set a timeout on a request
func (*PostCablesParams) SetCableID ¶
func (o *PostCablesParams) SetCableID(cableID string)
SetCableID adds the cableId to the post cables params
func (*PostCablesParams) SetCableLength ¶
func (o *PostCablesParams) SetCableLength(cableLength *string)
SetCableLength adds the cableLength to the post cables params
func (*PostCablesParams) SetCableLengthUnits ¶
func (o *PostCablesParams) SetCableLengthUnits(cableLengthUnits *string)
SetCableLengthUnits adds the cableLengthUnits to the post cables params
func (*PostCablesParams) SetContext ¶
func (o *PostCablesParams) SetContext(ctx context.Context)
SetContext adds the context to the post cables params
func (*PostCablesParams) SetEndPointBackPachPanel ¶
func (o *PostCablesParams) SetEndPointBackPachPanel(endPointBackPachPanel *string)
SetEndPointBackPachPanel adds the endPointBackPachPanel to the post cables params
func (*PostCablesParams) SetEndPointCable ¶
func (o *PostCablesParams) SetEndPointCable(endPointCable *string)
SetEndPointCable adds the endPointCable to the post cables params
func (*PostCablesParams) SetEndPointCableColor ¶
func (o *PostCablesParams) SetEndPointCableColor(endPointCableColor *string)
SetEndPointCableColor adds the endPointCableColor to the post cables params
func (*PostCablesParams) SetEndPointConnectorType ¶
func (o *PostCablesParams) SetEndPointConnectorType(endPointConnectorType *string)
SetEndPointConnectorType adds the endPointConnectorType to the post cables params
func (*PostCablesParams) SetEndPointID ¶
func (o *PostCablesParams) SetEndPointID(endPointID *string)
SetEndPointID adds the endPointId to the post cables params
func (*PostCablesParams) SetEndPointMultiple ¶
func (o *PostCablesParams) SetEndPointMultiple(endPointMultiple *string)
SetEndPointMultiple adds the endPointMultiple to the post cables params
func (*PostCablesParams) SetEndPointOpticType ¶
func (o *PostCablesParams) SetEndPointOpticType(endPointOpticType *string)
SetEndPointOpticType adds the endPointOpticType to the post cables params
func (*PostCablesParams) SetEndPointType ¶
func (o *PostCablesParams) SetEndPointType(endPointType *string)
SetEndPointType adds the endPointType to the post cables params
func (*PostCablesParams) SetGroups ¶
func (o *PostCablesParams) SetGroups(groups *string)
SetGroups adds the groups to the post cables params
func (*PostCablesParams) SetHTTPClient ¶
func (o *PostCablesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post cables params
func (*PostCablesParams) SetID ¶
func (o *PostCablesParams) SetID(id string)
SetID adds the id to the post cables params
func (*PostCablesParams) SetNotes ¶
func (o *PostCablesParams) SetNotes(notes *string)
SetNotes adds the notes to the post cables params
func (*PostCablesParams) SetOriginBackPatchPanel ¶
func (o *PostCablesParams) SetOriginBackPatchPanel(originBackPatchPanel *string)
SetOriginBackPatchPanel adds the originBackPatchPanel to the post cables params
func (*PostCablesParams) SetOriginCable ¶
func (o *PostCablesParams) SetOriginCable(originCable *string)
SetOriginCable adds the originCable to the post cables params
func (*PostCablesParams) SetOriginCableColor ¶
func (o *PostCablesParams) SetOriginCableColor(originCableColor *string)
SetOriginCableColor adds the originCableColor to the post cables params
func (*PostCablesParams) SetOriginConnectorType ¶
func (o *PostCablesParams) SetOriginConnectorType(originConnectorType *string)
SetOriginConnectorType adds the originConnectorType to the post cables params
func (*PostCablesParams) SetOriginID ¶
func (o *PostCablesParams) SetOriginID(originID *string)
SetOriginID adds the originId to the post cables params
func (*PostCablesParams) SetOriginOpticType ¶
func (o *PostCablesParams) SetOriginOpticType(originOpticType *string)
SetOriginOpticType adds the originOpticType to the post cables params
func (*PostCablesParams) SetOriginType ¶
func (o *PostCablesParams) SetOriginType(originType *string)
SetOriginType adds the originType to the post cables params
func (*PostCablesParams) SetRoom ¶
func (o *PostCablesParams) SetRoom(room *string)
SetRoom adds the room to the post cables params
func (*PostCablesParams) SetRoomID ¶
func (o *PostCablesParams) SetRoomID(roomID *string)
SetRoomID adds the roomId to the post cables params
func (*PostCablesParams) SetTimeout ¶
func (o *PostCablesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post cables params
func (*PostCablesParams) SetVendor ¶
func (o *PostCablesParams) SetVendor(vendor *string)
SetVendor adds the vendor to the post cables params
func (*PostCablesParams) WithCableID ¶
func (o *PostCablesParams) WithCableID(cableID string) *PostCablesParams
WithCableID adds the cableID to the post cables params
func (*PostCablesParams) WithCableLength ¶
func (o *PostCablesParams) WithCableLength(cableLength *string) *PostCablesParams
WithCableLength adds the cableLength to the post cables params
func (*PostCablesParams) WithCableLengthUnits ¶
func (o *PostCablesParams) WithCableLengthUnits(cableLengthUnits *string) *PostCablesParams
WithCableLengthUnits adds the cableLengthUnits to the post cables params
func (*PostCablesParams) WithContext ¶
func (o *PostCablesParams) WithContext(ctx context.Context) *PostCablesParams
WithContext adds the context to the post cables params
func (*PostCablesParams) WithEndPointBackPachPanel ¶
func (o *PostCablesParams) WithEndPointBackPachPanel(endPointBackPachPanel *string) *PostCablesParams
WithEndPointBackPachPanel adds the endPointBackPachPanel to the post cables params
func (*PostCablesParams) WithEndPointCable ¶
func (o *PostCablesParams) WithEndPointCable(endPointCable *string) *PostCablesParams
WithEndPointCable adds the endPointCable to the post cables params
func (*PostCablesParams) WithEndPointCableColor ¶
func (o *PostCablesParams) WithEndPointCableColor(endPointCableColor *string) *PostCablesParams
WithEndPointCableColor adds the endPointCableColor to the post cables params
func (*PostCablesParams) WithEndPointConnectorType ¶
func (o *PostCablesParams) WithEndPointConnectorType(endPointConnectorType *string) *PostCablesParams
WithEndPointConnectorType adds the endPointConnectorType to the post cables params
func (*PostCablesParams) WithEndPointID ¶
func (o *PostCablesParams) WithEndPointID(endPointID *string) *PostCablesParams
WithEndPointID adds the endPointID to the post cables params
func (*PostCablesParams) WithEndPointMultiple ¶
func (o *PostCablesParams) WithEndPointMultiple(endPointMultiple *string) *PostCablesParams
WithEndPointMultiple adds the endPointMultiple to the post cables params
func (*PostCablesParams) WithEndPointOpticType ¶
func (o *PostCablesParams) WithEndPointOpticType(endPointOpticType *string) *PostCablesParams
WithEndPointOpticType adds the endPointOpticType to the post cables params
func (*PostCablesParams) WithEndPointType ¶
func (o *PostCablesParams) WithEndPointType(endPointType *string) *PostCablesParams
WithEndPointType adds the endPointType to the post cables params
func (*PostCablesParams) WithGroups ¶
func (o *PostCablesParams) WithGroups(groups *string) *PostCablesParams
WithGroups adds the groups to the post cables params
func (*PostCablesParams) WithHTTPClient ¶
func (o *PostCablesParams) WithHTTPClient(client *http.Client) *PostCablesParams
WithHTTPClient adds the HTTPClient to the post cables params
func (*PostCablesParams) WithID ¶
func (o *PostCablesParams) WithID(id string) *PostCablesParams
WithID adds the id to the post cables params
func (*PostCablesParams) WithNotes ¶
func (o *PostCablesParams) WithNotes(notes *string) *PostCablesParams
WithNotes adds the notes to the post cables params
func (*PostCablesParams) WithOriginBackPatchPanel ¶
func (o *PostCablesParams) WithOriginBackPatchPanel(originBackPatchPanel *string) *PostCablesParams
WithOriginBackPatchPanel adds the originBackPatchPanel to the post cables params
func (*PostCablesParams) WithOriginCable ¶
func (o *PostCablesParams) WithOriginCable(originCable *string) *PostCablesParams
WithOriginCable adds the originCable to the post cables params
func (*PostCablesParams) WithOriginCableColor ¶
func (o *PostCablesParams) WithOriginCableColor(originCableColor *string) *PostCablesParams
WithOriginCableColor adds the originCableColor to the post cables params
func (*PostCablesParams) WithOriginConnectorType ¶
func (o *PostCablesParams) WithOriginConnectorType(originConnectorType *string) *PostCablesParams
WithOriginConnectorType adds the originConnectorType to the post cables params
func (*PostCablesParams) WithOriginID ¶
func (o *PostCablesParams) WithOriginID(originID *string) *PostCablesParams
WithOriginID adds the originID to the post cables params
func (*PostCablesParams) WithOriginOpticType ¶
func (o *PostCablesParams) WithOriginOpticType(originOpticType *string) *PostCablesParams
WithOriginOpticType adds the originOpticType to the post cables params
func (*PostCablesParams) WithOriginType ¶
func (o *PostCablesParams) WithOriginType(originType *string) *PostCablesParams
WithOriginType adds the originType to the post cables params
func (*PostCablesParams) WithRoom ¶
func (o *PostCablesParams) WithRoom(room *string) *PostCablesParams
WithRoom adds the room to the post cables params
func (*PostCablesParams) WithRoomID ¶
func (o *PostCablesParams) WithRoomID(roomID *string) *PostCablesParams
WithRoomID adds the roomID to the post cables params
func (*PostCablesParams) WithTimeout ¶
func (o *PostCablesParams) WithTimeout(timeout time.Duration) *PostCablesParams
WithTimeout adds the timeout to the post cables params
func (*PostCablesParams) WithVendor ¶
func (o *PostCablesParams) WithVendor(vendor *string) *PostCablesParams
WithVendor adds the vendor to the post cables params
func (*PostCablesParams) WriteToRequest ¶
func (o *PostCablesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostCablesReader ¶
type PostCablesReader struct {
// contains filtered or unexported fields
}
PostCablesReader is a Reader for the PostCables structure.
func (*PostCablesReader) ReadResponse ¶
func (o *PostCablesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostCablesServiceUnavailable ¶
type PostCablesServiceUnavailable struct { }
PostCablesServiceUnavailable handles this case with default header values.
Service Unavailable (Please check if your Device42 instance is working normally.)
func NewPostCablesServiceUnavailable ¶
func NewPostCablesServiceUnavailable() *PostCablesServiceUnavailable
NewPostCablesServiceUnavailable creates a PostCablesServiceUnavailable with default headers values
func (*PostCablesServiceUnavailable) Error ¶
func (o *PostCablesServiceUnavailable) Error() string
type PostCablesUnauthorized ¶
type PostCablesUnauthorized struct { }
PostCablesUnauthorized handles this case with default header values.
Unauthorized (Your credentials suck)
func NewPostCablesUnauthorized ¶
func NewPostCablesUnauthorized() *PostCablesUnauthorized
NewPostCablesUnauthorized creates a PostCablesUnauthorized with default headers values
func (*PostCablesUnauthorized) Error ¶
func (o *PostCablesUnauthorized) Error() string