p_d_u

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for p d u API

func (*Client) DeletePdus

func (a *Client) DeletePdus(params *DeletePdusParams, authInfo runtime.ClientAuthInfoWriter) (*DeletePdusOK, error)

DeletePdus deletes p d u

This API is used to delete the pdu with the pdu id supplied as the required argument.

func (*Client) DeletePdusRack

func (a *Client) DeletePdusRack(params *DeletePdusRackParams, authInfo runtime.ClientAuthInfoWriter) (*DeletePdusRackOK, error)

DeletePdusRack deletes p d u from a rack

This API is used to delete from its rack the device with the device id supplied as the required argument. (The device itself is not deleted).

func (*Client) GetPduModels

func (a *Client) GetPduModels(params *GetPduModelsParams, authInfo runtime.ClientAuthInfoWriter) (*GetPduModelsOK, error)

GetPduModels gs e t method retrieves all p d u models

Get all PDU Models

func (*Client) GetPdus

func (a *Client) GetPdus(params *GetPdusParams, authInfo runtime.ClientAuthInfoWriter) (*GetPdusOK, error)

GetPdus gs e t method retrieves all p d us

Get all PDUs

func (*Client) GetPdusID

func (a *Client) GetPdusID(params *GetPdusIDParams, authInfo runtime.ClientAuthInfoWriter) (*GetPdusIDOK, error)

GetPdusID gets p d u by ID

Retrieve detailed information about a specific PDU by PDU ID. This also includes end point connections.

func (*Client) PostPduModels

func (a *Client) PostPduModels(params *PostPduModelsParams, authInfo runtime.ClientAuthInfoWriter) (*PostPduModelsOK, error)

PostPduModels creates update p d u models

Create / Update PDU Models

func (*Client) PostPduModelsPorts

func (a *Client) PostPduModelsPorts(params *PostPduModelsPortsParams, authInfo runtime.ClientAuthInfoWriter) (*PostPduModelsPortsOK, error)

PostPduModelsPorts creates p d u model ports

Create PDU Model Ports. Required parameters: <ul><li>pdu_model_id <b>OR</b> pdu_model_name</li> <li>count</li> <li>type</li></ul>

func (*Client) PostPdus

func (a *Client) PostPdus(params *PostPdusParams, authInfo runtime.ClientAuthInfoWriter) (*PostPdusOK, error)

PostPdus this call will create p d us

Create PDUs

func (*Client) PostPdusPorts

func (a *Client) PostPdusPorts(params *PostPdusPortsParams, authInfo runtime.ClientAuthInfoWriter) (*PostPdusPortsOK, error)

PostPdusPorts updates p d u ports w no names

Assign a name and/or an object (see below) objects to a pdu port. It will pick the lowest port id # available (or first available port in order created).

func (*Client) PostPdusRack

func (a *Client) PostPdusRack(params *PostPdusRackParams, authInfo runtime.ClientAuthInfoWriter) (*PostPdusRackOK, error)

PostPdusRack this call will add update p d us in or around a rack

Add / Update PDUs in Racks

func (*Client) PutPdus

func (a *Client) PutPdus(params *PutPdusParams, authInfo runtime.ClientAuthInfoWriter) (*PutPdusOK, error)

PutPdus updates p d us

This call will update existing PDUs. PDU ID or name required.

func (*Client) PutPdusPorts

func (a *Client) PutPdusPorts(params *PutPdusPortsParams, authInfo runtime.ClientAuthInfoWriter) (*PutPdusPortsOK, error)

PutPdusPorts updates p d u ports w names

This call requires the name of an existing pdu port and enables you to add new or edit existing values for that particular PDU port. Requires parent_pdu_id or parent_pdu

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	DeletePdus(params *DeletePdusParams, authInfo runtime.ClientAuthInfoWriter) (*DeletePdusOK, error)

	DeletePdusRack(params *DeletePdusRackParams, authInfo runtime.ClientAuthInfoWriter) (*DeletePdusRackOK, error)

	GetPduModels(params *GetPduModelsParams, authInfo runtime.ClientAuthInfoWriter) (*GetPduModelsOK, error)

	GetPdus(params *GetPdusParams, authInfo runtime.ClientAuthInfoWriter) (*GetPdusOK, error)

	GetPdusID(params *GetPdusIDParams, authInfo runtime.ClientAuthInfoWriter) (*GetPdusIDOK, error)

	PostPduModels(params *PostPduModelsParams, authInfo runtime.ClientAuthInfoWriter) (*PostPduModelsOK, error)

	PostPduModelsPorts(params *PostPduModelsPortsParams, authInfo runtime.ClientAuthInfoWriter) (*PostPduModelsPortsOK, error)

	PostPdus(params *PostPdusParams, authInfo runtime.ClientAuthInfoWriter) (*PostPdusOK, error)

	PostPdusPorts(params *PostPdusPortsParams, authInfo runtime.ClientAuthInfoWriter) (*PostPdusPortsOK, error)

	PostPdusRack(params *PostPdusRackParams, authInfo runtime.ClientAuthInfoWriter) (*PostPdusRackOK, error)

	PutPdus(params *PutPdusParams, authInfo runtime.ClientAuthInfoWriter) (*PutPdusOK, error)

	PutPdusPorts(params *PutPdusPortsParams, authInfo runtime.ClientAuthInfoWriter) (*PutPdusPortsOK, 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 p d u API client.

type DeletePdusBadRequest

type DeletePdusBadRequest struct {
}

DeletePdusBadRequest handles this case with default header values.

Bad Request (A validation exception has occurred.)

func NewDeletePdusBadRequest

func NewDeletePdusBadRequest() *DeletePdusBadRequest

NewDeletePdusBadRequest creates a DeletePdusBadRequest with default headers values

func (*DeletePdusBadRequest) Error

func (o *DeletePdusBadRequest) Error() string

type DeletePdusForbidden

type DeletePdusForbidden struct {
}

DeletePdusForbidden handles this case with default header values.

Forbidden (The resource requested is hidden)

func NewDeletePdusForbidden

func NewDeletePdusForbidden() *DeletePdusForbidden

NewDeletePdusForbidden creates a DeletePdusForbidden with default headers values

func (*DeletePdusForbidden) Error

func (o *DeletePdusForbidden) Error() string

type DeletePdusGone

type DeletePdusGone struct {
}

DeletePdusGone handles this case with default header values.

Gone (The resource requested has been removed from our servers)

func NewDeletePdusGone

func NewDeletePdusGone() *DeletePdusGone

NewDeletePdusGone creates a DeletePdusGone with default headers values

func (*DeletePdusGone) Error

func (o *DeletePdusGone) Error() string

type DeletePdusInternalServerError

type DeletePdusInternalServerError struct {
}

DeletePdusInternalServerError 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 NewDeletePdusInternalServerError

func NewDeletePdusInternalServerError() *DeletePdusInternalServerError

NewDeletePdusInternalServerError creates a DeletePdusInternalServerError with default headers values

func (*DeletePdusInternalServerError) Error

type DeletePdusMethodNotAllowed

type DeletePdusMethodNotAllowed struct {
}

DeletePdusMethodNotAllowed handles this case with default header values.

Method Not Allowed (You tried to access a resource with an invalid method)

func NewDeletePdusMethodNotAllowed

func NewDeletePdusMethodNotAllowed() *DeletePdusMethodNotAllowed

NewDeletePdusMethodNotAllowed creates a DeletePdusMethodNotAllowed with default headers values

func (*DeletePdusMethodNotAllowed) Error

type DeletePdusNotFound

type DeletePdusNotFound struct {
}

DeletePdusNotFound handles this case with default header values.

Not Found (The specified resource could not be found)

func NewDeletePdusNotFound

func NewDeletePdusNotFound() *DeletePdusNotFound

NewDeletePdusNotFound creates a DeletePdusNotFound with default headers values

func (*DeletePdusNotFound) Error

func (o *DeletePdusNotFound) Error() string

type DeletePdusOK

type DeletePdusOK struct {
	Payload *DeletePdusOKBody
}

DeletePdusOK handles this case with default header values.

The above command returns results like this:

func NewDeletePdusOK

func NewDeletePdusOK() *DeletePdusOK

NewDeletePdusOK creates a DeletePdusOK with default headers values

func (*DeletePdusOK) Error

func (o *DeletePdusOK) Error() string

func (*DeletePdusOK) GetPayload

func (o *DeletePdusOK) GetPayload() *DeletePdusOKBody

type DeletePdusOKBody

type DeletePdusOKBody struct {

	// deleted
	Deleted interface{} `json:"deleted,omitempty"`

	// id
	ID interface{} `json:"id,omitempty"`
}

DeletePdusOKBody delete pdus o k body swagger:model DeletePdusOKBody

func (*DeletePdusOKBody) MarshalBinary

func (o *DeletePdusOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DeletePdusOKBody) UnmarshalBinary

func (o *DeletePdusOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DeletePdusOKBody) Validate

func (o *DeletePdusOKBody) Validate(formats strfmt.Registry) error

Validate validates this delete pdus o k body

type DeletePdusParams

type DeletePdusParams struct {

	/*ID
	  PDU id

	*/
	ID int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeletePdusParams contains all the parameters to send to the API endpoint for the delete pdus operation typically these are written to a http.Request

func NewDeletePdusParams

func NewDeletePdusParams() *DeletePdusParams

NewDeletePdusParams creates a new DeletePdusParams object with the default values initialized.

func NewDeletePdusParamsWithContext

func NewDeletePdusParamsWithContext(ctx context.Context) *DeletePdusParams

NewDeletePdusParamsWithContext creates a new DeletePdusParams object with the default values initialized, and the ability to set a context for a request

func NewDeletePdusParamsWithHTTPClient

func NewDeletePdusParamsWithHTTPClient(client *http.Client) *DeletePdusParams

NewDeletePdusParamsWithHTTPClient creates a new DeletePdusParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeletePdusParamsWithTimeout

func NewDeletePdusParamsWithTimeout(timeout time.Duration) *DeletePdusParams

NewDeletePdusParamsWithTimeout creates a new DeletePdusParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeletePdusParams) SetContext

func (o *DeletePdusParams) SetContext(ctx context.Context)

SetContext adds the context to the delete pdus params

func (*DeletePdusParams) SetHTTPClient

func (o *DeletePdusParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the delete pdus params

func (*DeletePdusParams) SetID

func (o *DeletePdusParams) SetID(id int64)

SetID adds the id to the delete pdus params

func (*DeletePdusParams) SetTimeout

func (o *DeletePdusParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the delete pdus params

func (*DeletePdusParams) WithContext

func (o *DeletePdusParams) WithContext(ctx context.Context) *DeletePdusParams

WithContext adds the context to the delete pdus params

func (*DeletePdusParams) WithHTTPClient

func (o *DeletePdusParams) WithHTTPClient(client *http.Client) *DeletePdusParams

WithHTTPClient adds the HTTPClient to the delete pdus params

func (*DeletePdusParams) WithID

func (o *DeletePdusParams) WithID(id int64) *DeletePdusParams

WithID adds the id to the delete pdus params

func (*DeletePdusParams) WithTimeout

func (o *DeletePdusParams) WithTimeout(timeout time.Duration) *DeletePdusParams

WithTimeout adds the timeout to the delete pdus params

func (*DeletePdusParams) WriteToRequest

func (o *DeletePdusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type DeletePdusRackBadRequest

type DeletePdusRackBadRequest struct {
}

DeletePdusRackBadRequest handles this case with default header values.

Bad Request (A validation exception has occurred.)

func NewDeletePdusRackBadRequest

func NewDeletePdusRackBadRequest() *DeletePdusRackBadRequest

NewDeletePdusRackBadRequest creates a DeletePdusRackBadRequest with default headers values

func (*DeletePdusRackBadRequest) Error

func (o *DeletePdusRackBadRequest) Error() string

type DeletePdusRackForbidden

type DeletePdusRackForbidden struct {
}

DeletePdusRackForbidden handles this case with default header values.

Forbidden (The resource requested is hidden)

func NewDeletePdusRackForbidden

func NewDeletePdusRackForbidden() *DeletePdusRackForbidden

NewDeletePdusRackForbidden creates a DeletePdusRackForbidden with default headers values

func (*DeletePdusRackForbidden) Error

func (o *DeletePdusRackForbidden) Error() string

type DeletePdusRackGone

type DeletePdusRackGone struct {
}

DeletePdusRackGone handles this case with default header values.

Gone (The resource requested has been removed from our servers)

func NewDeletePdusRackGone

func NewDeletePdusRackGone() *DeletePdusRackGone

NewDeletePdusRackGone creates a DeletePdusRackGone with default headers values

func (*DeletePdusRackGone) Error

func (o *DeletePdusRackGone) Error() string

type DeletePdusRackInternalServerError

type DeletePdusRackInternalServerError struct {
}

DeletePdusRackInternalServerError 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 NewDeletePdusRackInternalServerError

func NewDeletePdusRackInternalServerError() *DeletePdusRackInternalServerError

NewDeletePdusRackInternalServerError creates a DeletePdusRackInternalServerError with default headers values

func (*DeletePdusRackInternalServerError) Error

type DeletePdusRackMethodNotAllowed

type DeletePdusRackMethodNotAllowed struct {
}

DeletePdusRackMethodNotAllowed handles this case with default header values.

Method Not Allowed (You tried to access a resource with an invalid method)

func NewDeletePdusRackMethodNotAllowed

func NewDeletePdusRackMethodNotAllowed() *DeletePdusRackMethodNotAllowed

NewDeletePdusRackMethodNotAllowed creates a DeletePdusRackMethodNotAllowed with default headers values

func (*DeletePdusRackMethodNotAllowed) Error

type DeletePdusRackNotFound

type DeletePdusRackNotFound struct {
}

DeletePdusRackNotFound handles this case with default header values.

Not Found (The specified resource could not be found)

func NewDeletePdusRackNotFound

func NewDeletePdusRackNotFound() *DeletePdusRackNotFound

NewDeletePdusRackNotFound creates a DeletePdusRackNotFound with default headers values

func (*DeletePdusRackNotFound) Error

func (o *DeletePdusRackNotFound) Error() string

type DeletePdusRackOK

type DeletePdusRackOK struct {
	Payload *DeletePdusRackOKBody
}

DeletePdusRackOK handles this case with default header values.

The above command returns results like this:

func NewDeletePdusRackOK

func NewDeletePdusRackOK() *DeletePdusRackOK

NewDeletePdusRackOK creates a DeletePdusRackOK with default headers values

func (*DeletePdusRackOK) Error

func (o *DeletePdusRackOK) Error() string

func (*DeletePdusRackOK) GetPayload

func (o *DeletePdusRackOK) GetPayload() *DeletePdusRackOKBody

type DeletePdusRackOKBody

type DeletePdusRackOKBody struct {

	// deleted
	Deleted interface{} `json:"deleted,omitempty"`

	// id
	ID interface{} `json:"id,omitempty"`
}

DeletePdusRackOKBody delete pdus rack o k body swagger:model DeletePdusRackOKBody

func (*DeletePdusRackOKBody) MarshalBinary

func (o *DeletePdusRackOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DeletePdusRackOKBody) UnmarshalBinary

func (o *DeletePdusRackOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DeletePdusRackOKBody) Validate

func (o *DeletePdusRackOKBody) Validate(formats strfmt.Registry) error

Validate validates this delete pdus rack o k body

type DeletePdusRackParams

type DeletePdusRackParams struct {

	/*ID
	  device id

	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeletePdusRackParams contains all the parameters to send to the API endpoint for the delete pdus rack operation typically these are written to a http.Request

func NewDeletePdusRackParams

func NewDeletePdusRackParams() *DeletePdusRackParams

NewDeletePdusRackParams creates a new DeletePdusRackParams object with the default values initialized.

func NewDeletePdusRackParamsWithContext

func NewDeletePdusRackParamsWithContext(ctx context.Context) *DeletePdusRackParams

NewDeletePdusRackParamsWithContext creates a new DeletePdusRackParams object with the default values initialized, and the ability to set a context for a request

func NewDeletePdusRackParamsWithHTTPClient

func NewDeletePdusRackParamsWithHTTPClient(client *http.Client) *DeletePdusRackParams

NewDeletePdusRackParamsWithHTTPClient creates a new DeletePdusRackParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeletePdusRackParamsWithTimeout

func NewDeletePdusRackParamsWithTimeout(timeout time.Duration) *DeletePdusRackParams

NewDeletePdusRackParamsWithTimeout creates a new DeletePdusRackParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeletePdusRackParams) SetContext

func (o *DeletePdusRackParams) SetContext(ctx context.Context)

SetContext adds the context to the delete pdus rack params

func (*DeletePdusRackParams) SetHTTPClient

func (o *DeletePdusRackParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the delete pdus rack params

func (*DeletePdusRackParams) SetID

func (o *DeletePdusRackParams) SetID(id string)

SetID adds the id to the delete pdus rack params

func (*DeletePdusRackParams) SetTimeout

func (o *DeletePdusRackParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the delete pdus rack params

func (*DeletePdusRackParams) WithContext

WithContext adds the context to the delete pdus rack params

func (*DeletePdusRackParams) WithHTTPClient

func (o *DeletePdusRackParams) WithHTTPClient(client *http.Client) *DeletePdusRackParams

WithHTTPClient adds the HTTPClient to the delete pdus rack params

func (*DeletePdusRackParams) WithID

WithID adds the id to the delete pdus rack params

func (*DeletePdusRackParams) WithTimeout

func (o *DeletePdusRackParams) WithTimeout(timeout time.Duration) *DeletePdusRackParams

WithTimeout adds the timeout to the delete pdus rack params

func (*DeletePdusRackParams) WriteToRequest

func (o *DeletePdusRackParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type DeletePdusRackReader

type DeletePdusRackReader struct {
	// contains filtered or unexported fields
}

DeletePdusRackReader is a Reader for the DeletePdusRack structure.

func (*DeletePdusRackReader) ReadResponse

func (o *DeletePdusRackReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type DeletePdusRackServiceUnavailable

type DeletePdusRackServiceUnavailable struct {
}

DeletePdusRackServiceUnavailable handles this case with default header values.

Service Unavailable (Please check if your Device42 instance is working normally.)

func NewDeletePdusRackServiceUnavailable

func NewDeletePdusRackServiceUnavailable() *DeletePdusRackServiceUnavailable

NewDeletePdusRackServiceUnavailable creates a DeletePdusRackServiceUnavailable with default headers values

func (*DeletePdusRackServiceUnavailable) Error

type DeletePdusRackUnauthorized

type DeletePdusRackUnauthorized struct {
}

DeletePdusRackUnauthorized handles this case with default header values.

Unauthorized (Your credentials suck)

func NewDeletePdusRackUnauthorized

func NewDeletePdusRackUnauthorized() *DeletePdusRackUnauthorized

NewDeletePdusRackUnauthorized creates a DeletePdusRackUnauthorized with default headers values

func (*DeletePdusRackUnauthorized) Error

type DeletePdusReader

type DeletePdusReader struct {
	// contains filtered or unexported fields
}

DeletePdusReader is a Reader for the DeletePdus structure.

func (*DeletePdusReader) ReadResponse

func (o *DeletePdusReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type DeletePdusServiceUnavailable

type DeletePdusServiceUnavailable struct {
}

DeletePdusServiceUnavailable handles this case with default header values.

Service Unavailable (Please check if your Device42 instance is working normally.)

func NewDeletePdusServiceUnavailable

func NewDeletePdusServiceUnavailable() *DeletePdusServiceUnavailable

NewDeletePdusServiceUnavailable creates a DeletePdusServiceUnavailable with default headers values

func (*DeletePdusServiceUnavailable) Error

type DeletePdusUnauthorized

type DeletePdusUnauthorized struct {
}

DeletePdusUnauthorized handles this case with default header values.

Unauthorized (Your credentials suck)

func NewDeletePdusUnauthorized

func NewDeletePdusUnauthorized() *DeletePdusUnauthorized

NewDeletePdusUnauthorized creates a DeletePdusUnauthorized with default headers values

func (*DeletePdusUnauthorized) Error

func (o *DeletePdusUnauthorized) Error() string

type GetPduModelsBadRequest

type GetPduModelsBadRequest struct {
}

GetPduModelsBadRequest handles this case with default header values.

Bad Request (A validation exception has occurred.)

func NewGetPduModelsBadRequest

func NewGetPduModelsBadRequest() *GetPduModelsBadRequest

NewGetPduModelsBadRequest creates a GetPduModelsBadRequest with default headers values

func (*GetPduModelsBadRequest) Error

func (o *GetPduModelsBadRequest) Error() string

type GetPduModelsForbidden

type GetPduModelsForbidden struct {
}

GetPduModelsForbidden handles this case with default header values.

Forbidden (The resource requested is hidden)

func NewGetPduModelsForbidden

func NewGetPduModelsForbidden() *GetPduModelsForbidden

NewGetPduModelsForbidden creates a GetPduModelsForbidden with default headers values

func (*GetPduModelsForbidden) Error

func (o *GetPduModelsForbidden) Error() string

type GetPduModelsGone

type GetPduModelsGone struct {
}

GetPduModelsGone handles this case with default header values.

Gone (The resource requested has been removed from our servers)

func NewGetPduModelsGone

func NewGetPduModelsGone() *GetPduModelsGone

NewGetPduModelsGone creates a GetPduModelsGone with default headers values

func (*GetPduModelsGone) Error

func (o *GetPduModelsGone) Error() string

type GetPduModelsInternalServerError

type GetPduModelsInternalServerError struct {
}

GetPduModelsInternalServerError 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 NewGetPduModelsInternalServerError

func NewGetPduModelsInternalServerError() *GetPduModelsInternalServerError

NewGetPduModelsInternalServerError creates a GetPduModelsInternalServerError with default headers values

func (*GetPduModelsInternalServerError) Error

type GetPduModelsMethodNotAllowed

type GetPduModelsMethodNotAllowed struct {
}

GetPduModelsMethodNotAllowed handles this case with default header values.

Method Not Allowed (You tried to access a resource with an invalid method)

func NewGetPduModelsMethodNotAllowed

func NewGetPduModelsMethodNotAllowed() *GetPduModelsMethodNotAllowed

NewGetPduModelsMethodNotAllowed creates a GetPduModelsMethodNotAllowed with default headers values

func (*GetPduModelsMethodNotAllowed) Error

type GetPduModelsNotFound

type GetPduModelsNotFound struct {
}

GetPduModelsNotFound handles this case with default header values.

Not Found (The specified resource could not be found)

func NewGetPduModelsNotFound

func NewGetPduModelsNotFound() *GetPduModelsNotFound

NewGetPduModelsNotFound creates a GetPduModelsNotFound with default headers values

func (*GetPduModelsNotFound) Error

func (o *GetPduModelsNotFound) Error() string

type GetPduModelsOK

type GetPduModelsOK struct {
	Payload *GetPduModelsOKBody
}

GetPduModelsOK handles this case with default header values.

The above command returns results like this:

func NewGetPduModelsOK

func NewGetPduModelsOK() *GetPduModelsOK

NewGetPduModelsOK creates a GetPduModelsOK with default headers values

func (*GetPduModelsOK) Error

func (o *GetPduModelsOK) Error() string

func (*GetPduModelsOK) GetPayload

func (o *GetPduModelsOK) GetPayload() *GetPduModelsOKBody

type GetPduModelsOKBody

type GetPduModelsOKBody struct {

	// pdu models
	PduModels []*models.PduModels `json:"pdu_models"`
}

GetPduModelsOKBody get pdu models o k body swagger:model GetPduModelsOKBody

func (*GetPduModelsOKBody) MarshalBinary

func (o *GetPduModelsOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetPduModelsOKBody) UnmarshalBinary

func (o *GetPduModelsOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetPduModelsOKBody) Validate

func (o *GetPduModelsOKBody) Validate(formats strfmt.Registry) error

Validate validates this get pdu models o k body

type GetPduModelsParams

type GetPduModelsParams struct {

	/*Name
	  filter by model name

	*/
	Name *string
	/*PduModelID
	  filter by pdu model id

	*/
	PduModelID *int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetPduModelsParams contains all the parameters to send to the API endpoint for the get pdu models operation typically these are written to a http.Request

func NewGetPduModelsParams

func NewGetPduModelsParams() *GetPduModelsParams

NewGetPduModelsParams creates a new GetPduModelsParams object with the default values initialized.

func NewGetPduModelsParamsWithContext

func NewGetPduModelsParamsWithContext(ctx context.Context) *GetPduModelsParams

NewGetPduModelsParamsWithContext creates a new GetPduModelsParams object with the default values initialized, and the ability to set a context for a request

func NewGetPduModelsParamsWithHTTPClient

func NewGetPduModelsParamsWithHTTPClient(client *http.Client) *GetPduModelsParams

NewGetPduModelsParamsWithHTTPClient creates a new GetPduModelsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetPduModelsParamsWithTimeout

func NewGetPduModelsParamsWithTimeout(timeout time.Duration) *GetPduModelsParams

NewGetPduModelsParamsWithTimeout creates a new GetPduModelsParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetPduModelsParams) SetContext

func (o *GetPduModelsParams) SetContext(ctx context.Context)

SetContext adds the context to the get pdu models params

func (*GetPduModelsParams) SetHTTPClient

func (o *GetPduModelsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get pdu models params

func (*GetPduModelsParams) SetName

func (o *GetPduModelsParams) SetName(name *string)

SetName adds the name to the get pdu models params

func (*GetPduModelsParams) SetPduModelID

func (o *GetPduModelsParams) SetPduModelID(pduModelID *int64)

SetPduModelID adds the pduModelId to the get pdu models params

func (*GetPduModelsParams) SetTimeout

func (o *GetPduModelsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get pdu models params

func (*GetPduModelsParams) WithContext

WithContext adds the context to the get pdu models params

func (*GetPduModelsParams) WithHTTPClient

func (o *GetPduModelsParams) WithHTTPClient(client *http.Client) *GetPduModelsParams

WithHTTPClient adds the HTTPClient to the get pdu models params

func (*GetPduModelsParams) WithName

func (o *GetPduModelsParams) WithName(name *string) *GetPduModelsParams

WithName adds the name to the get pdu models params

func (*GetPduModelsParams) WithPduModelID

func (o *GetPduModelsParams) WithPduModelID(pduModelID *int64) *GetPduModelsParams

WithPduModelID adds the pduModelID to the get pdu models params

func (*GetPduModelsParams) WithTimeout

func (o *GetPduModelsParams) WithTimeout(timeout time.Duration) *GetPduModelsParams

WithTimeout adds the timeout to the get pdu models params

func (*GetPduModelsParams) WriteToRequest

func (o *GetPduModelsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetPduModelsReader

type GetPduModelsReader struct {
	// contains filtered or unexported fields
}

GetPduModelsReader is a Reader for the GetPduModels structure.

func (*GetPduModelsReader) ReadResponse

func (o *GetPduModelsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetPduModelsServiceUnavailable

type GetPduModelsServiceUnavailable struct {
}

GetPduModelsServiceUnavailable handles this case with default header values.

Service Unavailable (Please check if your Device42 instance is working normally.)

func NewGetPduModelsServiceUnavailable

func NewGetPduModelsServiceUnavailable() *GetPduModelsServiceUnavailable

NewGetPduModelsServiceUnavailable creates a GetPduModelsServiceUnavailable with default headers values

func (*GetPduModelsServiceUnavailable) Error

type GetPduModelsUnauthorized

type GetPduModelsUnauthorized struct {
}

GetPduModelsUnauthorized handles this case with default header values.

Unauthorized (Your credentials suck)

func NewGetPduModelsUnauthorized

func NewGetPduModelsUnauthorized() *GetPduModelsUnauthorized

NewGetPduModelsUnauthorized creates a GetPduModelsUnauthorized with default headers values

func (*GetPduModelsUnauthorized) Error

func (o *GetPduModelsUnauthorized) Error() string

type GetPdusBadRequest

type GetPdusBadRequest struct {
}

GetPdusBadRequest handles this case with default header values.

Bad Request (A validation exception has occurred.)

func NewGetPdusBadRequest

func NewGetPdusBadRequest() *GetPdusBadRequest

NewGetPdusBadRequest creates a GetPdusBadRequest with default headers values

func (*GetPdusBadRequest) Error

func (o *GetPdusBadRequest) Error() string

type GetPdusForbidden

type GetPdusForbidden struct {
}

GetPdusForbidden handles this case with default header values.

Forbidden (The resource requested is hidden)

func NewGetPdusForbidden

func NewGetPdusForbidden() *GetPdusForbidden

NewGetPdusForbidden creates a GetPdusForbidden with default headers values

func (*GetPdusForbidden) Error

func (o *GetPdusForbidden) Error() string

type GetPdusGone

type GetPdusGone struct {
}

GetPdusGone handles this case with default header values.

Gone (The resource requested has been removed from our servers)

func NewGetPdusGone

func NewGetPdusGone() *GetPdusGone

NewGetPdusGone creates a GetPdusGone with default headers values

func (*GetPdusGone) Error

func (o *GetPdusGone) Error() string

type GetPdusIDBadRequest

type GetPdusIDBadRequest struct {
}

GetPdusIDBadRequest handles this case with default header values.

Bad Request (A validation exception has occurred.)

func NewGetPdusIDBadRequest

func NewGetPdusIDBadRequest() *GetPdusIDBadRequest

NewGetPdusIDBadRequest creates a GetPdusIDBadRequest with default headers values

func (*GetPdusIDBadRequest) Error

func (o *GetPdusIDBadRequest) Error() string

type GetPdusIDForbidden

type GetPdusIDForbidden struct {
}

GetPdusIDForbidden handles this case with default header values.

Forbidden (The resource requested is hidden)

func NewGetPdusIDForbidden

func NewGetPdusIDForbidden() *GetPdusIDForbidden

NewGetPdusIDForbidden creates a GetPdusIDForbidden with default headers values

func (*GetPdusIDForbidden) Error

func (o *GetPdusIDForbidden) Error() string

type GetPdusIDGone

type GetPdusIDGone struct {
}

GetPdusIDGone handles this case with default header values.

Gone (The resource requested has been removed from our servers)

func NewGetPdusIDGone

func NewGetPdusIDGone() *GetPdusIDGone

NewGetPdusIDGone creates a GetPdusIDGone with default headers values

func (*GetPdusIDGone) Error

func (o *GetPdusIDGone) Error() string

type GetPdusIDInternalServerError

type GetPdusIDInternalServerError struct {
}

GetPdusIDInternalServerError 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 NewGetPdusIDInternalServerError

func NewGetPdusIDInternalServerError() *GetPdusIDInternalServerError

NewGetPdusIDInternalServerError creates a GetPdusIDInternalServerError with default headers values

func (*GetPdusIDInternalServerError) Error

type GetPdusIDMethodNotAllowed

type GetPdusIDMethodNotAllowed struct {
}

GetPdusIDMethodNotAllowed handles this case with default header values.

Method Not Allowed (You tried to access a resource with an invalid method)

func NewGetPdusIDMethodNotAllowed

func NewGetPdusIDMethodNotAllowed() *GetPdusIDMethodNotAllowed

NewGetPdusIDMethodNotAllowed creates a GetPdusIDMethodNotAllowed with default headers values

func (*GetPdusIDMethodNotAllowed) Error

func (o *GetPdusIDMethodNotAllowed) Error() string

type GetPdusIDNotFound

type GetPdusIDNotFound struct {
}

GetPdusIDNotFound handles this case with default header values.

Not Found (The specified resource could not be found)

func NewGetPdusIDNotFound

func NewGetPdusIDNotFound() *GetPdusIDNotFound

NewGetPdusIDNotFound creates a GetPdusIDNotFound with default headers values

func (*GetPdusIDNotFound) Error

func (o *GetPdusIDNotFound) Error() string

type GetPdusIDOK

type GetPdusIDOK struct {
	Payload *models.PduByID
}

GetPdusIDOK handles this case with default header values.

The above command returns results like this:

func NewGetPdusIDOK

func NewGetPdusIDOK() *GetPdusIDOK

NewGetPdusIDOK creates a GetPdusIDOK with default headers values

func (*GetPdusIDOK) Error

func (o *GetPdusIDOK) Error() string

func (*GetPdusIDOK) GetPayload

func (o *GetPdusIDOK) GetPayload() *models.PduByID

type GetPdusIDParams

type GetPdusIDParams struct {

	/*ID
	  The ID of the PDU to retrieve

	*/
	ID int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetPdusIDParams contains all the parameters to send to the API endpoint for the get pdus ID operation typically these are written to a http.Request

func NewGetPdusIDParams

func NewGetPdusIDParams() *GetPdusIDParams

NewGetPdusIDParams creates a new GetPdusIDParams object with the default values initialized.

func NewGetPdusIDParamsWithContext

func NewGetPdusIDParamsWithContext(ctx context.Context) *GetPdusIDParams

NewGetPdusIDParamsWithContext creates a new GetPdusIDParams object with the default values initialized, and the ability to set a context for a request

func NewGetPdusIDParamsWithHTTPClient

func NewGetPdusIDParamsWithHTTPClient(client *http.Client) *GetPdusIDParams

NewGetPdusIDParamsWithHTTPClient creates a new GetPdusIDParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetPdusIDParamsWithTimeout

func NewGetPdusIDParamsWithTimeout(timeout time.Duration) *GetPdusIDParams

NewGetPdusIDParamsWithTimeout creates a new GetPdusIDParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetPdusIDParams) SetContext

func (o *GetPdusIDParams) SetContext(ctx context.Context)

SetContext adds the context to the get pdus ID params

func (*GetPdusIDParams) SetHTTPClient

func (o *GetPdusIDParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get pdus ID params

func (*GetPdusIDParams) SetID

func (o *GetPdusIDParams) SetID(id int64)

SetID adds the id to the get pdus ID params

func (*GetPdusIDParams) SetTimeout

func (o *GetPdusIDParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get pdus ID params

func (*GetPdusIDParams) WithContext

func (o *GetPdusIDParams) WithContext(ctx context.Context) *GetPdusIDParams

WithContext adds the context to the get pdus ID params

func (*GetPdusIDParams) WithHTTPClient

func (o *GetPdusIDParams) WithHTTPClient(client *http.Client) *GetPdusIDParams

WithHTTPClient adds the HTTPClient to the get pdus ID params

func (*GetPdusIDParams) WithID

func (o *GetPdusIDParams) WithID(id int64) *GetPdusIDParams

WithID adds the id to the get pdus ID params

func (*GetPdusIDParams) WithTimeout

func (o *GetPdusIDParams) WithTimeout(timeout time.Duration) *GetPdusIDParams

WithTimeout adds the timeout to the get pdus ID params

func (*GetPdusIDParams) WriteToRequest

func (o *GetPdusIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetPdusIDReader

type GetPdusIDReader struct {
	// contains filtered or unexported fields
}

GetPdusIDReader is a Reader for the GetPdusID structure.

func (*GetPdusIDReader) ReadResponse

func (o *GetPdusIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetPdusIDServiceUnavailable

type GetPdusIDServiceUnavailable struct {
}

GetPdusIDServiceUnavailable handles this case with default header values.

Service Unavailable (Please check if your Device42 instance is working normally.)

func NewGetPdusIDServiceUnavailable

func NewGetPdusIDServiceUnavailable() *GetPdusIDServiceUnavailable

NewGetPdusIDServiceUnavailable creates a GetPdusIDServiceUnavailable with default headers values

func (*GetPdusIDServiceUnavailable) Error

type GetPdusIDUnauthorized

type GetPdusIDUnauthorized struct {
}

GetPdusIDUnauthorized handles this case with default header values.

Unauthorized (Your credentials suck)

func NewGetPdusIDUnauthorized

func NewGetPdusIDUnauthorized() *GetPdusIDUnauthorized

NewGetPdusIDUnauthorized creates a GetPdusIDUnauthorized with default headers values

func (*GetPdusIDUnauthorized) Error

func (o *GetPdusIDUnauthorized) Error() string

type GetPdusInternalServerError

type GetPdusInternalServerError struct {
}

GetPdusInternalServerError 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 NewGetPdusInternalServerError

func NewGetPdusInternalServerError() *GetPdusInternalServerError

NewGetPdusInternalServerError creates a GetPdusInternalServerError with default headers values

func (*GetPdusInternalServerError) Error

type GetPdusMethodNotAllowed

type GetPdusMethodNotAllowed struct {
}

GetPdusMethodNotAllowed handles this case with default header values.

Method Not Allowed (You tried to access a resource with an invalid method)

func NewGetPdusMethodNotAllowed

func NewGetPdusMethodNotAllowed() *GetPdusMethodNotAllowed

NewGetPdusMethodNotAllowed creates a GetPdusMethodNotAllowed with default headers values

func (*GetPdusMethodNotAllowed) Error

func (o *GetPdusMethodNotAllowed) Error() string

type GetPdusNotFound

type GetPdusNotFound struct {
}

GetPdusNotFound handles this case with default header values.

Not Found (The specified resource could not be found)

func NewGetPdusNotFound

func NewGetPdusNotFound() *GetPdusNotFound

NewGetPdusNotFound creates a GetPdusNotFound with default headers values

func (*GetPdusNotFound) Error

func (o *GetPdusNotFound) Error() string

type GetPdusOK

type GetPdusOK struct {
	Payload *GetPdusOKBody
}

GetPdusOK handles this case with default header values.

The above command returns results like this:

func NewGetPdusOK

func NewGetPdusOK() *GetPdusOK

NewGetPdusOK creates a GetPdusOK with default headers values

func (*GetPdusOK) Error

func (o *GetPdusOK) Error() string

func (*GetPdusOK) GetPayload

func (o *GetPdusOK) GetPayload() *GetPdusOKBody

type GetPdusOKBody

type GetPdusOKBody struct {

	// pdus
	Pdus []*models.Pdus `json:"pdus"`
}

GetPdusOKBody get pdus o k body swagger:model GetPdusOKBody

func (*GetPdusOKBody) MarshalBinary

func (o *GetPdusOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetPdusOKBody) UnmarshalBinary

func (o *GetPdusOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetPdusOKBody) Validate

func (o *GetPdusOKBody) Validate(formats strfmt.Registry) error

Validate validates this get pdus o k body

type GetPdusParams

type GetPdusParams struct {

	/*BuildingID
	  filter by building id

	*/
	BuildingID *int64
	/*DeviceID
	  filter by device id

	*/
	DeviceID *int64
	/*Name
	  filter by name

	*/
	Name *string
	/*PduModel
	  filter by PDU model name

	*/
	PduModel *string
	/*PduModelID
	  filter by PDU model ID

	*/
	PduModelID *int64
	/*RackID
	  filter by rack id

	*/
	RackID *int64
	/*RoomID
	  filter by room id

	*/
	RoomID *int64
	/*SerialNo
	  filter by PDU serial_no

	*/
	SerialNo *string
	/*Type
	  filter by type

	*/
	Type *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetPdusParams contains all the parameters to send to the API endpoint for the get pdus operation typically these are written to a http.Request

func NewGetPdusParams

func NewGetPdusParams() *GetPdusParams

NewGetPdusParams creates a new GetPdusParams object with the default values initialized.

func NewGetPdusParamsWithContext

func NewGetPdusParamsWithContext(ctx context.Context) *GetPdusParams

NewGetPdusParamsWithContext creates a new GetPdusParams object with the default values initialized, and the ability to set a context for a request

func NewGetPdusParamsWithHTTPClient

func NewGetPdusParamsWithHTTPClient(client *http.Client) *GetPdusParams

NewGetPdusParamsWithHTTPClient creates a new GetPdusParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetPdusParamsWithTimeout

func NewGetPdusParamsWithTimeout(timeout time.Duration) *GetPdusParams

NewGetPdusParamsWithTimeout creates a new GetPdusParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetPdusParams) SetBuildingID

func (o *GetPdusParams) SetBuildingID(buildingID *int64)

SetBuildingID adds the buildingId to the get pdus params

func (*GetPdusParams) SetContext

func (o *GetPdusParams) SetContext(ctx context.Context)

SetContext adds the context to the get pdus params

func (*GetPdusParams) SetDeviceID

func (o *GetPdusParams) SetDeviceID(deviceID *int64)

SetDeviceID adds the deviceId to the get pdus params

func (*GetPdusParams) SetHTTPClient

func (o *GetPdusParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get pdus params

func (*GetPdusParams) SetName

func (o *GetPdusParams) SetName(name *string)

SetName adds the name to the get pdus params

func (*GetPdusParams) SetPduModel

func (o *GetPdusParams) SetPduModel(pduModel *string)

SetPduModel adds the pduModel to the get pdus params

func (*GetPdusParams) SetPduModelID

func (o *GetPdusParams) SetPduModelID(pduModelID *int64)

SetPduModelID adds the pduModelId to the get pdus params

func (*GetPdusParams) SetRackID

func (o *GetPdusParams) SetRackID(rackID *int64)

SetRackID adds the rackId to the get pdus params

func (*GetPdusParams) SetRoomID

func (o *GetPdusParams) SetRoomID(roomID *int64)

SetRoomID adds the roomId to the get pdus params

func (*GetPdusParams) SetSerialNo

func (o *GetPdusParams) SetSerialNo(serialNo *string)

SetSerialNo adds the serialNo to the get pdus params

func (*GetPdusParams) SetTimeout

func (o *GetPdusParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get pdus params

func (*GetPdusParams) SetType

func (o *GetPdusParams) SetType(typeVar *string)

SetType adds the type to the get pdus params

func (*GetPdusParams) WithBuildingID

func (o *GetPdusParams) WithBuildingID(buildingID *int64) *GetPdusParams

WithBuildingID adds the buildingID to the get pdus params

func (*GetPdusParams) WithContext

func (o *GetPdusParams) WithContext(ctx context.Context) *GetPdusParams

WithContext adds the context to the get pdus params

func (*GetPdusParams) WithDeviceID

func (o *GetPdusParams) WithDeviceID(deviceID *int64) *GetPdusParams

WithDeviceID adds the deviceID to the get pdus params

func (*GetPdusParams) WithHTTPClient

func (o *GetPdusParams) WithHTTPClient(client *http.Client) *GetPdusParams

WithHTTPClient adds the HTTPClient to the get pdus params

func (*GetPdusParams) WithName

func (o *GetPdusParams) WithName(name *string) *GetPdusParams

WithName adds the name to the get pdus params

func (*GetPdusParams) WithPduModel

func (o *GetPdusParams) WithPduModel(pduModel *string) *GetPdusParams

WithPduModel adds the pduModel to the get pdus params

func (*GetPdusParams) WithPduModelID

func (o *GetPdusParams) WithPduModelID(pduModelID *int64) *GetPdusParams

WithPduModelID adds the pduModelID to the get pdus params

func (*GetPdusParams) WithRackID

func (o *GetPdusParams) WithRackID(rackID *int64) *GetPdusParams

WithRackID adds the rackID to the get pdus params

func (*GetPdusParams) WithRoomID

func (o *GetPdusParams) WithRoomID(roomID *int64) *GetPdusParams

WithRoomID adds the roomID to the get pdus params

func (*GetPdusParams) WithSerialNo

func (o *GetPdusParams) WithSerialNo(serialNo *string) *GetPdusParams

WithSerialNo adds the serialNo to the get pdus params

func (*GetPdusParams) WithTimeout

func (o *GetPdusParams) WithTimeout(timeout time.Duration) *GetPdusParams

WithTimeout adds the timeout to the get pdus params

func (*GetPdusParams) WithType

func (o *GetPdusParams) WithType(typeVar *string) *GetPdusParams

WithType adds the typeVar to the get pdus params

func (*GetPdusParams) WriteToRequest

func (o *GetPdusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetPdusReader

type GetPdusReader struct {
	// contains filtered or unexported fields
}

GetPdusReader is a Reader for the GetPdus structure.

func (*GetPdusReader) ReadResponse

func (o *GetPdusReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetPdusServiceUnavailable

type GetPdusServiceUnavailable struct {
}

GetPdusServiceUnavailable handles this case with default header values.

Service Unavailable (Please check if your Device42 instance is working normally.)

func NewGetPdusServiceUnavailable

func NewGetPdusServiceUnavailable() *GetPdusServiceUnavailable

NewGetPdusServiceUnavailable creates a GetPdusServiceUnavailable with default headers values

func (*GetPdusServiceUnavailable) Error

func (o *GetPdusServiceUnavailable) Error() string

type GetPdusUnauthorized

type GetPdusUnauthorized struct {
}

GetPdusUnauthorized handles this case with default header values.

Unauthorized (Your credentials suck)

func NewGetPdusUnauthorized

func NewGetPdusUnauthorized() *GetPdusUnauthorized

NewGetPdusUnauthorized creates a GetPdusUnauthorized with default headers values

func (*GetPdusUnauthorized) Error

func (o *GetPdusUnauthorized) Error() string

type PostPduModelsBadRequest

type PostPduModelsBadRequest struct {
}

PostPduModelsBadRequest handles this case with default header values.

Bad Request (A validation exception has occurred.)

func NewPostPduModelsBadRequest

func NewPostPduModelsBadRequest() *PostPduModelsBadRequest

NewPostPduModelsBadRequest creates a PostPduModelsBadRequest with default headers values

func (*PostPduModelsBadRequest) Error

func (o *PostPduModelsBadRequest) Error() string

type PostPduModelsForbidden

type PostPduModelsForbidden struct {
}

PostPduModelsForbidden handles this case with default header values.

Forbidden (The resource requested is hidden)

func NewPostPduModelsForbidden

func NewPostPduModelsForbidden() *PostPduModelsForbidden

NewPostPduModelsForbidden creates a PostPduModelsForbidden with default headers values

func (*PostPduModelsForbidden) Error

func (o *PostPduModelsForbidden) Error() string

type PostPduModelsGone

type PostPduModelsGone struct {
}

PostPduModelsGone handles this case with default header values.

Gone (The resource requested has been removed from our servers)

func NewPostPduModelsGone

func NewPostPduModelsGone() *PostPduModelsGone

NewPostPduModelsGone creates a PostPduModelsGone with default headers values

func (*PostPduModelsGone) Error

func (o *PostPduModelsGone) Error() string

type PostPduModelsInternalServerError

type PostPduModelsInternalServerError struct {
}

PostPduModelsInternalServerError 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 NewPostPduModelsInternalServerError

func NewPostPduModelsInternalServerError() *PostPduModelsInternalServerError

NewPostPduModelsInternalServerError creates a PostPduModelsInternalServerError with default headers values

func (*PostPduModelsInternalServerError) Error

type PostPduModelsMethodNotAllowed

type PostPduModelsMethodNotAllowed struct {
}

PostPduModelsMethodNotAllowed handles this case with default header values.

Method Not Allowed (You tried to access a resource with an invalid method)

func NewPostPduModelsMethodNotAllowed

func NewPostPduModelsMethodNotAllowed() *PostPduModelsMethodNotAllowed

NewPostPduModelsMethodNotAllowed creates a PostPduModelsMethodNotAllowed with default headers values

func (*PostPduModelsMethodNotAllowed) Error

type PostPduModelsNotFound

type PostPduModelsNotFound struct {
}

PostPduModelsNotFound handles this case with default header values.

Not Found (The specified resource could not be found)

func NewPostPduModelsNotFound

func NewPostPduModelsNotFound() *PostPduModelsNotFound

NewPostPduModelsNotFound creates a PostPduModelsNotFound with default headers values

func (*PostPduModelsNotFound) Error

func (o *PostPduModelsNotFound) Error() string

type PostPduModelsOK

type PostPduModelsOK struct {
	Payload *PostPduModelsOKBody
}

PostPduModelsOK handles this case with default header values.

The above command returns results like this:

func NewPostPduModelsOK

func NewPostPduModelsOK() *PostPduModelsOK

NewPostPduModelsOK creates a PostPduModelsOK with default headers values

func (*PostPduModelsOK) Error

func (o *PostPduModelsOK) Error() string

func (*PostPduModelsOK) GetPayload

func (o *PostPduModelsOK) GetPayload() *PostPduModelsOKBody

type PostPduModelsOKBody

type PostPduModelsOKBody struct {

	// code
	Code interface{} `json:"code,omitempty"`

	// msg
	Msg interface{} `json:"msg,omitempty"`
}

PostPduModelsOKBody post pdu models o k body swagger:model PostPduModelsOKBody

func (*PostPduModelsOKBody) MarshalBinary

func (o *PostPduModelsOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PostPduModelsOKBody) UnmarshalBinary

func (o *PostPduModelsOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PostPduModelsOKBody) Validate

func (o *PostPduModelsOKBody) Validate(formats strfmt.Registry) error

Validate validates this post pdu models o k body

type PostPduModelsParams

type PostPduModelsParams struct {

	/*BackImage
	  name of the back image file. Use instead of back_image_id.

	*/
	BackImage *string
	/*BackImageID
	  back image file id. You can see these from Tools > Import > Hardware Import for now.

	*/
	BackImageID *string
	/*Depth
	  Half depth by default. full to override. Optional.

	*/
	Depth *string
	/*Imgfile
	  name of the image file (Added in v5.8.2). Use instead of imgfile_id

	*/
	Imgfile *string
	/*ImgfileID
	  image file id. You can see these from Tools > Import > Hardware Import for now.

	*/
	ImgfileID *string
	/*Manufacturer
	  name of the hardware/software manufacturer.

	*/
	Manufacturer *string
	/*Name
	  Name of the PDU model you want to create or update

	*/
	Name *string
	/*PduModelID
	  ID of the PDU model you want to update

	*/
	PduModelID *string
	/*SequentialNumberingForPorts
	  Could be “yes” or “no”. Yes if ports are numbered starting from 1.

	*/
	SequentialNumberingForPorts *string
	/*Size
	  Size of the PDU in U

	*/
	Size *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PostPduModelsParams contains all the parameters to send to the API endpoint for the post pdu models operation typically these are written to a http.Request

func NewPostPduModelsParams

func NewPostPduModelsParams() *PostPduModelsParams

NewPostPduModelsParams creates a new PostPduModelsParams object with the default values initialized.

func NewPostPduModelsParamsWithContext

func NewPostPduModelsParamsWithContext(ctx context.Context) *PostPduModelsParams

NewPostPduModelsParamsWithContext creates a new PostPduModelsParams object with the default values initialized, and the ability to set a context for a request

func NewPostPduModelsParamsWithHTTPClient

func NewPostPduModelsParamsWithHTTPClient(client *http.Client) *PostPduModelsParams

NewPostPduModelsParamsWithHTTPClient creates a new PostPduModelsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPostPduModelsParamsWithTimeout

func NewPostPduModelsParamsWithTimeout(timeout time.Duration) *PostPduModelsParams

NewPostPduModelsParamsWithTimeout creates a new PostPduModelsParams object with the default values initialized, and the ability to set a timeout on a request

func (*PostPduModelsParams) SetBackImage

func (o *PostPduModelsParams) SetBackImage(backImage *string)

SetBackImage adds the backImage to the post pdu models params

func (*PostPduModelsParams) SetBackImageID

func (o *PostPduModelsParams) SetBackImageID(backImageID *string)

SetBackImageID adds the backImageId to the post pdu models params

func (*PostPduModelsParams) SetContext

func (o *PostPduModelsParams) SetContext(ctx context.Context)

SetContext adds the context to the post pdu models params

func (*PostPduModelsParams) SetDepth

func (o *PostPduModelsParams) SetDepth(depth *string)

SetDepth adds the depth to the post pdu models params

func (*PostPduModelsParams) SetHTTPClient

func (o *PostPduModelsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the post pdu models params

func (*PostPduModelsParams) SetImgfile

func (o *PostPduModelsParams) SetImgfile(imgfile *string)

SetImgfile adds the imgfile to the post pdu models params

func (*PostPduModelsParams) SetImgfileID

func (o *PostPduModelsParams) SetImgfileID(imgfileID *string)

SetImgfileID adds the imgfileId to the post pdu models params

func (*PostPduModelsParams) SetManufacturer

func (o *PostPduModelsParams) SetManufacturer(manufacturer *string)

SetManufacturer adds the manufacturer to the post pdu models params

func (*PostPduModelsParams) SetName

func (o *PostPduModelsParams) SetName(name *string)

SetName adds the name to the post pdu models params

func (*PostPduModelsParams) SetPduModelID

func (o *PostPduModelsParams) SetPduModelID(pduModelID *string)

SetPduModelID adds the pduModelId to the post pdu models params

func (*PostPduModelsParams) SetSequentialNumberingForPorts

func (o *PostPduModelsParams) SetSequentialNumberingForPorts(sequentialNumberingForPorts *string)

SetSequentialNumberingForPorts adds the sequentialNumberingForPorts to the post pdu models params

func (*PostPduModelsParams) SetSize

func (o *PostPduModelsParams) SetSize(size *string)

SetSize adds the size to the post pdu models params

func (*PostPduModelsParams) SetTimeout

func (o *PostPduModelsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the post pdu models params

func (*PostPduModelsParams) WithBackImage

func (o *PostPduModelsParams) WithBackImage(backImage *string) *PostPduModelsParams

WithBackImage adds the backImage to the post pdu models params

func (*PostPduModelsParams) WithBackImageID

func (o *PostPduModelsParams) WithBackImageID(backImageID *string) *PostPduModelsParams

WithBackImageID adds the backImageID to the post pdu models params

func (*PostPduModelsParams) WithContext

WithContext adds the context to the post pdu models params

func (*PostPduModelsParams) WithDepth

func (o *PostPduModelsParams) WithDepth(depth *string) *PostPduModelsParams

WithDepth adds the depth to the post pdu models params

func (*PostPduModelsParams) WithHTTPClient

func (o *PostPduModelsParams) WithHTTPClient(client *http.Client) *PostPduModelsParams

WithHTTPClient adds the HTTPClient to the post pdu models params

func (*PostPduModelsParams) WithImgfile

func (o *PostPduModelsParams) WithImgfile(imgfile *string) *PostPduModelsParams

WithImgfile adds the imgfile to the post pdu models params

func (*PostPduModelsParams) WithImgfileID

func (o *PostPduModelsParams) WithImgfileID(imgfileID *string) *PostPduModelsParams

WithImgfileID adds the imgfileID to the post pdu models params

func (*PostPduModelsParams) WithManufacturer

func (o *PostPduModelsParams) WithManufacturer(manufacturer *string) *PostPduModelsParams

WithManufacturer adds the manufacturer to the post pdu models params

func (*PostPduModelsParams) WithName

func (o *PostPduModelsParams) WithName(name *string) *PostPduModelsParams

WithName adds the name to the post pdu models params

func (*PostPduModelsParams) WithPduModelID

func (o *PostPduModelsParams) WithPduModelID(pduModelID *string) *PostPduModelsParams

WithPduModelID adds the pduModelID to the post pdu models params

func (*PostPduModelsParams) WithSequentialNumberingForPorts

func (o *PostPduModelsParams) WithSequentialNumberingForPorts(sequentialNumberingForPorts *string) *PostPduModelsParams

WithSequentialNumberingForPorts adds the sequentialNumberingForPorts to the post pdu models params

func (*PostPduModelsParams) WithSize

func (o *PostPduModelsParams) WithSize(size *string) *PostPduModelsParams

WithSize adds the size to the post pdu models params

func (*PostPduModelsParams) WithTimeout

func (o *PostPduModelsParams) WithTimeout(timeout time.Duration) *PostPduModelsParams

WithTimeout adds the timeout to the post pdu models params

func (*PostPduModelsParams) WriteToRequest

func (o *PostPduModelsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type PostPduModelsPortsBadRequest

type PostPduModelsPortsBadRequest struct {
}

PostPduModelsPortsBadRequest handles this case with default header values.

Bad Request (A validation exception has occurred.)

func NewPostPduModelsPortsBadRequest

func NewPostPduModelsPortsBadRequest() *PostPduModelsPortsBadRequest

NewPostPduModelsPortsBadRequest creates a PostPduModelsPortsBadRequest with default headers values

func (*PostPduModelsPortsBadRequest) Error

type PostPduModelsPortsForbidden

type PostPduModelsPortsForbidden struct {
}

PostPduModelsPortsForbidden handles this case with default header values.

Forbidden (The resource requested is hidden)

func NewPostPduModelsPortsForbidden

func NewPostPduModelsPortsForbidden() *PostPduModelsPortsForbidden

NewPostPduModelsPortsForbidden creates a PostPduModelsPortsForbidden with default headers values

func (*PostPduModelsPortsForbidden) Error

type PostPduModelsPortsGone

type PostPduModelsPortsGone struct {
}

PostPduModelsPortsGone handles this case with default header values.

Gone (The resource requested has been removed from our servers)

func NewPostPduModelsPortsGone

func NewPostPduModelsPortsGone() *PostPduModelsPortsGone

NewPostPduModelsPortsGone creates a PostPduModelsPortsGone with default headers values

func (*PostPduModelsPortsGone) Error

func (o *PostPduModelsPortsGone) Error() string

type PostPduModelsPortsInternalServerError

type PostPduModelsPortsInternalServerError struct {
}

PostPduModelsPortsInternalServerError 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 NewPostPduModelsPortsInternalServerError

func NewPostPduModelsPortsInternalServerError() *PostPduModelsPortsInternalServerError

NewPostPduModelsPortsInternalServerError creates a PostPduModelsPortsInternalServerError with default headers values

func (*PostPduModelsPortsInternalServerError) Error

type PostPduModelsPortsMethodNotAllowed

type PostPduModelsPortsMethodNotAllowed struct {
}

PostPduModelsPortsMethodNotAllowed handles this case with default header values.

Method Not Allowed (You tried to access a resource with an invalid method)

func NewPostPduModelsPortsMethodNotAllowed

func NewPostPduModelsPortsMethodNotAllowed() *PostPduModelsPortsMethodNotAllowed

NewPostPduModelsPortsMethodNotAllowed creates a PostPduModelsPortsMethodNotAllowed with default headers values

func (*PostPduModelsPortsMethodNotAllowed) Error

type PostPduModelsPortsNotFound

type PostPduModelsPortsNotFound struct {
}

PostPduModelsPortsNotFound handles this case with default header values.

Not Found (The specified resource could not be found)

func NewPostPduModelsPortsNotFound

func NewPostPduModelsPortsNotFound() *PostPduModelsPortsNotFound

NewPostPduModelsPortsNotFound creates a PostPduModelsPortsNotFound with default headers values

func (*PostPduModelsPortsNotFound) Error

type PostPduModelsPortsOK

type PostPduModelsPortsOK struct {
	Payload *PostPduModelsPortsOKBody
}

PostPduModelsPortsOK handles this case with default header values.

The above command returns results like this:

func NewPostPduModelsPortsOK

func NewPostPduModelsPortsOK() *PostPduModelsPortsOK

NewPostPduModelsPortsOK creates a PostPduModelsPortsOK with default headers values

func (*PostPduModelsPortsOK) Error

func (o *PostPduModelsPortsOK) Error() string

func (*PostPduModelsPortsOK) GetPayload

type PostPduModelsPortsOKBody

type PostPduModelsPortsOKBody struct {

	// code
	Code interface{} `json:"code,omitempty"`

	// msg
	Msg interface{} `json:"msg,omitempty"`
}

PostPduModelsPortsOKBody post pdu models ports o k body swagger:model PostPduModelsPortsOKBody

func (*PostPduModelsPortsOKBody) MarshalBinary

func (o *PostPduModelsPortsOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PostPduModelsPortsOKBody) UnmarshalBinary

func (o *PostPduModelsPortsOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PostPduModelsPortsOKBody) Validate

func (o *PostPduModelsPortsOKBody) Validate(formats strfmt.Registry) error

Validate validates this post pdu models ports o k body

type PostPduModelsPortsParams

type PostPduModelsPortsParams struct {

	/*Count
	  number of ports

	*/
	Count int64
	/*PduModelID
	  ID of the PDU model you want to update

	*/
	PduModelID *string
	/*PduModelName
	  Name of the PDU model you want to add ports to.

	*/
	PduModelName *string
	/*Type
	  Type of the port. If not already existing, a new port type is created.

	*/
	Type string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PostPduModelsPortsParams contains all the parameters to send to the API endpoint for the post pdu models ports operation typically these are written to a http.Request

func NewPostPduModelsPortsParams

func NewPostPduModelsPortsParams() *PostPduModelsPortsParams

NewPostPduModelsPortsParams creates a new PostPduModelsPortsParams object with the default values initialized.

func NewPostPduModelsPortsParamsWithContext

func NewPostPduModelsPortsParamsWithContext(ctx context.Context) *PostPduModelsPortsParams

NewPostPduModelsPortsParamsWithContext creates a new PostPduModelsPortsParams object with the default values initialized, and the ability to set a context for a request

func NewPostPduModelsPortsParamsWithHTTPClient

func NewPostPduModelsPortsParamsWithHTTPClient(client *http.Client) *PostPduModelsPortsParams

NewPostPduModelsPortsParamsWithHTTPClient creates a new PostPduModelsPortsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPostPduModelsPortsParamsWithTimeout

func NewPostPduModelsPortsParamsWithTimeout(timeout time.Duration) *PostPduModelsPortsParams

NewPostPduModelsPortsParamsWithTimeout creates a new PostPduModelsPortsParams object with the default values initialized, and the ability to set a timeout on a request

func (*PostPduModelsPortsParams) SetContext

func (o *PostPduModelsPortsParams) SetContext(ctx context.Context)

SetContext adds the context to the post pdu models ports params

func (*PostPduModelsPortsParams) SetCount

func (o *PostPduModelsPortsParams) SetCount(count int64)

SetCount adds the count to the post pdu models ports params

func (*PostPduModelsPortsParams) SetHTTPClient

func (o *PostPduModelsPortsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the post pdu models ports params

func (*PostPduModelsPortsParams) SetPduModelID

func (o *PostPduModelsPortsParams) SetPduModelID(pduModelID *string)

SetPduModelID adds the pduModelId to the post pdu models ports params

func (*PostPduModelsPortsParams) SetPduModelName

func (o *PostPduModelsPortsParams) SetPduModelName(pduModelName *string)

SetPduModelName adds the pduModelName to the post pdu models ports params

func (*PostPduModelsPortsParams) SetTimeout

func (o *PostPduModelsPortsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the post pdu models ports params

func (*PostPduModelsPortsParams) SetType

func (o *PostPduModelsPortsParams) SetType(typeVar string)

SetType adds the type to the post pdu models ports params

func (*PostPduModelsPortsParams) WithContext

WithContext adds the context to the post pdu models ports params

func (*PostPduModelsPortsParams) WithCount

WithCount adds the count to the post pdu models ports params

func (*PostPduModelsPortsParams) WithHTTPClient

func (o *PostPduModelsPortsParams) WithHTTPClient(client *http.Client) *PostPduModelsPortsParams

WithHTTPClient adds the HTTPClient to the post pdu models ports params

func (*PostPduModelsPortsParams) WithPduModelID

func (o *PostPduModelsPortsParams) WithPduModelID(pduModelID *string) *PostPduModelsPortsParams

WithPduModelID adds the pduModelID to the post pdu models ports params

func (*PostPduModelsPortsParams) WithPduModelName

func (o *PostPduModelsPortsParams) WithPduModelName(pduModelName *string) *PostPduModelsPortsParams

WithPduModelName adds the pduModelName to the post pdu models ports params

func (*PostPduModelsPortsParams) WithTimeout

WithTimeout adds the timeout to the post pdu models ports params

func (*PostPduModelsPortsParams) WithType

WithType adds the typeVar to the post pdu models ports params

func (*PostPduModelsPortsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostPduModelsPortsReader

type PostPduModelsPortsReader struct {
	// contains filtered or unexported fields
}

PostPduModelsPortsReader is a Reader for the PostPduModelsPorts structure.

func (*PostPduModelsPortsReader) ReadResponse

func (o *PostPduModelsPortsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PostPduModelsPortsServiceUnavailable

type PostPduModelsPortsServiceUnavailable struct {
}

PostPduModelsPortsServiceUnavailable handles this case with default header values.

Service Unavailable (Please check if your Device42 instance is working normally.)

func NewPostPduModelsPortsServiceUnavailable

func NewPostPduModelsPortsServiceUnavailable() *PostPduModelsPortsServiceUnavailable

NewPostPduModelsPortsServiceUnavailable creates a PostPduModelsPortsServiceUnavailable with default headers values

func (*PostPduModelsPortsServiceUnavailable) Error

type PostPduModelsPortsUnauthorized

type PostPduModelsPortsUnauthorized struct {
}

PostPduModelsPortsUnauthorized handles this case with default header values.

Unauthorized (Your credentials suck)

func NewPostPduModelsPortsUnauthorized

func NewPostPduModelsPortsUnauthorized() *PostPduModelsPortsUnauthorized

NewPostPduModelsPortsUnauthorized creates a PostPduModelsPortsUnauthorized with default headers values

func (*PostPduModelsPortsUnauthorized) Error

type PostPduModelsReader

type PostPduModelsReader struct {
	// contains filtered or unexported fields
}

PostPduModelsReader is a Reader for the PostPduModels structure.

func (*PostPduModelsReader) ReadResponse

func (o *PostPduModelsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PostPduModelsServiceUnavailable

type PostPduModelsServiceUnavailable struct {
}

PostPduModelsServiceUnavailable handles this case with default header values.

Service Unavailable (Please check if your Device42 instance is working normally.)

func NewPostPduModelsServiceUnavailable

func NewPostPduModelsServiceUnavailable() *PostPduModelsServiceUnavailable

NewPostPduModelsServiceUnavailable creates a PostPduModelsServiceUnavailable with default headers values

func (*PostPduModelsServiceUnavailable) Error

type PostPduModelsUnauthorized

type PostPduModelsUnauthorized struct {
}

PostPduModelsUnauthorized handles this case with default header values.

Unauthorized (Your credentials suck)

func NewPostPduModelsUnauthorized

func NewPostPduModelsUnauthorized() *PostPduModelsUnauthorized

NewPostPduModelsUnauthorized creates a PostPduModelsUnauthorized with default headers values

func (*PostPduModelsUnauthorized) Error

func (o *PostPduModelsUnauthorized) Error() string

type PostPdusBadRequest

type PostPdusBadRequest struct {
}

PostPdusBadRequest handles this case with default header values.

Bad Request (A validation exception has occurred.)

func NewPostPdusBadRequest

func NewPostPdusBadRequest() *PostPdusBadRequest

NewPostPdusBadRequest creates a PostPdusBadRequest with default headers values

func (*PostPdusBadRequest) Error

func (o *PostPdusBadRequest) Error() string

type PostPdusForbidden

type PostPdusForbidden struct {
}

PostPdusForbidden handles this case with default header values.

Forbidden (The resource requested is hidden)

func NewPostPdusForbidden

func NewPostPdusForbidden() *PostPdusForbidden

NewPostPdusForbidden creates a PostPdusForbidden with default headers values

func (*PostPdusForbidden) Error

func (o *PostPdusForbidden) Error() string

type PostPdusGone

type PostPdusGone struct {
}

PostPdusGone handles this case with default header values.

Gone (The resource requested has been removed from our servers)

func NewPostPdusGone

func NewPostPdusGone() *PostPdusGone

NewPostPdusGone creates a PostPdusGone with default headers values

func (*PostPdusGone) Error

func (o *PostPdusGone) Error() string

type PostPdusInternalServerError

type PostPdusInternalServerError struct {
}

PostPdusInternalServerError 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 NewPostPdusInternalServerError

func NewPostPdusInternalServerError() *PostPdusInternalServerError

NewPostPdusInternalServerError creates a PostPdusInternalServerError with default headers values

func (*PostPdusInternalServerError) Error

type PostPdusMethodNotAllowed

type PostPdusMethodNotAllowed struct {
}

PostPdusMethodNotAllowed handles this case with default header values.

Method Not Allowed (You tried to access a resource with an invalid method)

func NewPostPdusMethodNotAllowed

func NewPostPdusMethodNotAllowed() *PostPdusMethodNotAllowed

NewPostPdusMethodNotAllowed creates a PostPdusMethodNotAllowed with default headers values

func (*PostPdusMethodNotAllowed) Error

func (o *PostPdusMethodNotAllowed) Error() string

type PostPdusNotFound

type PostPdusNotFound struct {
}

PostPdusNotFound handles this case with default header values.

Not Found (The specified resource could not be found)

func NewPostPdusNotFound

func NewPostPdusNotFound() *PostPdusNotFound

NewPostPdusNotFound creates a PostPdusNotFound with default headers values

func (*PostPdusNotFound) Error

func (o *PostPdusNotFound) Error() string

type PostPdusOK

type PostPdusOK struct {
	Payload *PostPdusOKBody
}

PostPdusOK handles this case with default header values.

The above command returns results like this:

func NewPostPdusOK

func NewPostPdusOK() *PostPdusOK

NewPostPdusOK creates a PostPdusOK with default headers values

func (*PostPdusOK) Error

func (o *PostPdusOK) Error() string

func (*PostPdusOK) GetPayload

func (o *PostPdusOK) GetPayload() *PostPdusOKBody

type PostPdusOKBody

type PostPdusOKBody struct {

	// code
	Code interface{} `json:"code,omitempty"`

	// msg
	Msg interface{} `json:"msg,omitempty"`
}

PostPdusOKBody post pdus o k body swagger:model PostPdusOKBody

func (*PostPdusOKBody) MarshalBinary

func (o *PostPdusOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PostPdusOKBody) UnmarshalBinary

func (o *PostPdusOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PostPdusOKBody) Validate

func (o *PostPdusOKBody) Validate(formats strfmt.Registry) error

Validate validates this post pdus o k body

type PostPdusParams

type PostPdusParams struct {

	/*Category
	  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.

	*/
	Category *string
	/*Device
	  If you want to associate asset information with this PDU, use device type 'other'

	*/
	Device *string
	/*Name
	  PDU name

	*/
	Name string
	/*Notes
	  Any additional notes

	*/
	Notes *string
	/*PduModel
	  Name of the PDU model. You can use this instead of the ID above. (Added in v5.8.2)

	*/
	PduModel *string
	/*PduModelID
	  ID of the PDU model you want to update

	*/
	PduModelID *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PostPdusParams contains all the parameters to send to the API endpoint for the post pdus operation typically these are written to a http.Request

func NewPostPdusParams

func NewPostPdusParams() *PostPdusParams

NewPostPdusParams creates a new PostPdusParams object with the default values initialized.

func NewPostPdusParamsWithContext

func NewPostPdusParamsWithContext(ctx context.Context) *PostPdusParams

NewPostPdusParamsWithContext creates a new PostPdusParams object with the default values initialized, and the ability to set a context for a request

func NewPostPdusParamsWithHTTPClient

func NewPostPdusParamsWithHTTPClient(client *http.Client) *PostPdusParams

NewPostPdusParamsWithHTTPClient creates a new PostPdusParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPostPdusParamsWithTimeout

func NewPostPdusParamsWithTimeout(timeout time.Duration) *PostPdusParams

NewPostPdusParamsWithTimeout creates a new PostPdusParams object with the default values initialized, and the ability to set a timeout on a request

func (*PostPdusParams) SetCategory

func (o *PostPdusParams) SetCategory(category *string)

SetCategory adds the category to the post pdus params

func (*PostPdusParams) SetContext

func (o *PostPdusParams) SetContext(ctx context.Context)

SetContext adds the context to the post pdus params

func (*PostPdusParams) SetDevice

func (o *PostPdusParams) SetDevice(device *string)

SetDevice adds the device to the post pdus params

func (*PostPdusParams) SetHTTPClient

func (o *PostPdusParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the post pdus params

func (*PostPdusParams) SetName

func (o *PostPdusParams) SetName(name string)

SetName adds the name to the post pdus params

func (*PostPdusParams) SetNotes

func (o *PostPdusParams) SetNotes(notes *string)

SetNotes adds the notes to the post pdus params

func (*PostPdusParams) SetPduModel

func (o *PostPdusParams) SetPduModel(pduModel *string)

SetPduModel adds the pduModel to the post pdus params

func (*PostPdusParams) SetPduModelID

func (o *PostPdusParams) SetPduModelID(pduModelID *string)

SetPduModelID adds the pduModelId to the post pdus params

func (*PostPdusParams) SetTimeout

func (o *PostPdusParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the post pdus params

func (*PostPdusParams) WithCategory

func (o *PostPdusParams) WithCategory(category *string) *PostPdusParams

WithCategory adds the category to the post pdus params

func (*PostPdusParams) WithContext

func (o *PostPdusParams) WithContext(ctx context.Context) *PostPdusParams

WithContext adds the context to the post pdus params

func (*PostPdusParams) WithDevice

func (o *PostPdusParams) WithDevice(device *string) *PostPdusParams

WithDevice adds the device to the post pdus params

func (*PostPdusParams) WithHTTPClient

func (o *PostPdusParams) WithHTTPClient(client *http.Client) *PostPdusParams

WithHTTPClient adds the HTTPClient to the post pdus params

func (*PostPdusParams) WithName

func (o *PostPdusParams) WithName(name string) *PostPdusParams

WithName adds the name to the post pdus params

func (*PostPdusParams) WithNotes

func (o *PostPdusParams) WithNotes(notes *string) *PostPdusParams

WithNotes adds the notes to the post pdus params

func (*PostPdusParams) WithPduModel

func (o *PostPdusParams) WithPduModel(pduModel *string) *PostPdusParams

WithPduModel adds the pduModel to the post pdus params

func (*PostPdusParams) WithPduModelID

func (o *PostPdusParams) WithPduModelID(pduModelID *string) *PostPdusParams

WithPduModelID adds the pduModelID to the post pdus params

func (*PostPdusParams) WithTimeout

func (o *PostPdusParams) WithTimeout(timeout time.Duration) *PostPdusParams

WithTimeout adds the timeout to the post pdus params

func (*PostPdusParams) WriteToRequest

func (o *PostPdusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type PostPdusPortsBadRequest

type PostPdusPortsBadRequest struct {
}

PostPdusPortsBadRequest handles this case with default header values.

Bad Request (A validation exception has occurred.)

func NewPostPdusPortsBadRequest

func NewPostPdusPortsBadRequest() *PostPdusPortsBadRequest

NewPostPdusPortsBadRequest creates a PostPdusPortsBadRequest with default headers values

func (*PostPdusPortsBadRequest) Error

func (o *PostPdusPortsBadRequest) Error() string

type PostPdusPortsForbidden

type PostPdusPortsForbidden struct {
}

PostPdusPortsForbidden handles this case with default header values.

Forbidden (The resource requested is hidden)

func NewPostPdusPortsForbidden

func NewPostPdusPortsForbidden() *PostPdusPortsForbidden

NewPostPdusPortsForbidden creates a PostPdusPortsForbidden with default headers values

func (*PostPdusPortsForbidden) Error

func (o *PostPdusPortsForbidden) Error() string

type PostPdusPortsGone

type PostPdusPortsGone struct {
}

PostPdusPortsGone handles this case with default header values.

Gone (The resource requested has been removed from our servers)

func NewPostPdusPortsGone

func NewPostPdusPortsGone() *PostPdusPortsGone

NewPostPdusPortsGone creates a PostPdusPortsGone with default headers values

func (*PostPdusPortsGone) Error

func (o *PostPdusPortsGone) Error() string

type PostPdusPortsInternalServerError

type PostPdusPortsInternalServerError struct {
}

PostPdusPortsInternalServerError 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 NewPostPdusPortsInternalServerError

func NewPostPdusPortsInternalServerError() *PostPdusPortsInternalServerError

NewPostPdusPortsInternalServerError creates a PostPdusPortsInternalServerError with default headers values

func (*PostPdusPortsInternalServerError) Error

type PostPdusPortsMethodNotAllowed

type PostPdusPortsMethodNotAllowed struct {
}

PostPdusPortsMethodNotAllowed handles this case with default header values.

Method Not Allowed (You tried to access a resource with an invalid method)

func NewPostPdusPortsMethodNotAllowed

func NewPostPdusPortsMethodNotAllowed() *PostPdusPortsMethodNotAllowed

NewPostPdusPortsMethodNotAllowed creates a PostPdusPortsMethodNotAllowed with default headers values

func (*PostPdusPortsMethodNotAllowed) Error

type PostPdusPortsNotFound

type PostPdusPortsNotFound struct {
}

PostPdusPortsNotFound handles this case with default header values.

Not Found (The specified resource could not be found)

func NewPostPdusPortsNotFound

func NewPostPdusPortsNotFound() *PostPdusPortsNotFound

NewPostPdusPortsNotFound creates a PostPdusPortsNotFound with default headers values

func (*PostPdusPortsNotFound) Error

func (o *PostPdusPortsNotFound) Error() string

type PostPdusPortsOK

type PostPdusPortsOK struct {
	Payload *PostPdusPortsOKBody
}

PostPdusPortsOK handles this case with default header values.

The above command returns results like this:

func NewPostPdusPortsOK

func NewPostPdusPortsOK() *PostPdusPortsOK

NewPostPdusPortsOK creates a PostPdusPortsOK with default headers values

func (*PostPdusPortsOK) Error

func (o *PostPdusPortsOK) Error() string

func (*PostPdusPortsOK) GetPayload

func (o *PostPdusPortsOK) GetPayload() *PostPdusPortsOKBody

type PostPdusPortsOKBody

type PostPdusPortsOKBody struct {

	// code
	Code interface{} `json:"code,omitempty"`

	// msg
	Msg interface{} `json:"msg,omitempty"`
}

PostPdusPortsOKBody post pdus ports o k body swagger:model PostPdusPortsOKBody

func (*PostPdusPortsOKBody) MarshalBinary

func (o *PostPdusPortsOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PostPdusPortsOKBody) UnmarshalBinary

func (o *PostPdusPortsOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PostPdusPortsOKBody) Validate

func (o *PostPdusPortsOKBody) Validate(formats strfmt.Registry) error

Validate validates this post pdus ports o k body

type PostPdusPortsParams

type PostPdusPortsParams struct {

	/*AssetID
	  ID of the asset the port points to

	*/
	AssetID *string
	/*Device
	  Name of the device the port points to.

	*/
	Device *string
	/*DeviceID
	  ID of the device the port points to

	*/
	DeviceID *string
	/*Name
	  PDU port name, typically the PDU port number when autodiscovered.

	*/
	Name *string
	/*OutletName
	  outlet name

	*/
	OutletName *string
	/*ParentPdu
	  name of the parent PDU. Must be unique name. Added in v5.8.2

	*/
	ParentPdu *string
	/*ParentPduID
	  Available from /api/api/1.0/pdus/ or Tools

	*/
	ParentPduID *string
	/*PduID
	  ID of the PDU the port points to

	*/
	PduID *string
	/*PortType
	  Verbose name of the port type. Must exist already.

	*/
	PortType string
	/*PsuLabel
	  typically used when device has multiple power supplies, e.g.: power supply 1, power supply 2, etc.

	*/
	PsuLabel *string
	/*Watts
	  per power supply

	*/
	Watts *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PostPdusPortsParams contains all the parameters to send to the API endpoint for the post pdus ports operation typically these are written to a http.Request

func NewPostPdusPortsParams

func NewPostPdusPortsParams() *PostPdusPortsParams

NewPostPdusPortsParams creates a new PostPdusPortsParams object with the default values initialized.

func NewPostPdusPortsParamsWithContext

func NewPostPdusPortsParamsWithContext(ctx context.Context) *PostPdusPortsParams

NewPostPdusPortsParamsWithContext creates a new PostPdusPortsParams object with the default values initialized, and the ability to set a context for a request

func NewPostPdusPortsParamsWithHTTPClient

func NewPostPdusPortsParamsWithHTTPClient(client *http.Client) *PostPdusPortsParams

NewPostPdusPortsParamsWithHTTPClient creates a new PostPdusPortsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPostPdusPortsParamsWithTimeout

func NewPostPdusPortsParamsWithTimeout(timeout time.Duration) *PostPdusPortsParams

NewPostPdusPortsParamsWithTimeout creates a new PostPdusPortsParams object with the default values initialized, and the ability to set a timeout on a request

func (*PostPdusPortsParams) SetAssetID

func (o *PostPdusPortsParams) SetAssetID(assetID *string)

SetAssetID adds the assetId to the post pdus ports params

func (*PostPdusPortsParams) SetContext

func (o *PostPdusPortsParams) SetContext(ctx context.Context)

SetContext adds the context to the post pdus ports params

func (*PostPdusPortsParams) SetDevice

func (o *PostPdusPortsParams) SetDevice(device *string)

SetDevice adds the device to the post pdus ports params

func (*PostPdusPortsParams) SetDeviceID

func (o *PostPdusPortsParams) SetDeviceID(deviceID *string)

SetDeviceID adds the deviceId to the post pdus ports params

func (*PostPdusPortsParams) SetHTTPClient

func (o *PostPdusPortsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the post pdus ports params

func (*PostPdusPortsParams) SetName

func (o *PostPdusPortsParams) SetName(name *string)

SetName adds the name to the post pdus ports params

func (*PostPdusPortsParams) SetOutletName

func (o *PostPdusPortsParams) SetOutletName(outletName *string)

SetOutletName adds the outletName to the post pdus ports params

func (*PostPdusPortsParams) SetParentPdu

func (o *PostPdusPortsParams) SetParentPdu(parentPdu *string)

SetParentPdu adds the parentPdu to the post pdus ports params

func (*PostPdusPortsParams) SetParentPduID

func (o *PostPdusPortsParams) SetParentPduID(parentPduID *string)

SetParentPduID adds the parentPduId to the post pdus ports params

func (*PostPdusPortsParams) SetPduID

func (o *PostPdusPortsParams) SetPduID(pduID *string)

SetPduID adds the pduId to the post pdus ports params

func (*PostPdusPortsParams) SetPortType

func (o *PostPdusPortsParams) SetPortType(portType string)

SetPortType adds the portType to the post pdus ports params

func (*PostPdusPortsParams) SetPsuLabel

func (o *PostPdusPortsParams) SetPsuLabel(psuLabel *string)

SetPsuLabel adds the psuLabel to the post pdus ports params

func (*PostPdusPortsParams) SetTimeout

func (o *PostPdusPortsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the post pdus ports params

func (*PostPdusPortsParams) SetWatts

func (o *PostPdusPortsParams) SetWatts(watts *string)

SetWatts adds the watts to the post pdus ports params

func (*PostPdusPortsParams) WithAssetID

func (o *PostPdusPortsParams) WithAssetID(assetID *string) *PostPdusPortsParams

WithAssetID adds the assetID to the post pdus ports params

func (*PostPdusPortsParams) WithContext

WithContext adds the context to the post pdus ports params

func (*PostPdusPortsParams) WithDevice

func (o *PostPdusPortsParams) WithDevice(device *string) *PostPdusPortsParams

WithDevice adds the device to the post pdus ports params

func (*PostPdusPortsParams) WithDeviceID

func (o *PostPdusPortsParams) WithDeviceID(deviceID *string) *PostPdusPortsParams

WithDeviceID adds the deviceID to the post pdus ports params

func (*PostPdusPortsParams) WithHTTPClient

func (o *PostPdusPortsParams) WithHTTPClient(client *http.Client) *PostPdusPortsParams

WithHTTPClient adds the HTTPClient to the post pdus ports params

func (*PostPdusPortsParams) WithName

func (o *PostPdusPortsParams) WithName(name *string) *PostPdusPortsParams

WithName adds the name to the post pdus ports params

func (*PostPdusPortsParams) WithOutletName

func (o *PostPdusPortsParams) WithOutletName(outletName *string) *PostPdusPortsParams

WithOutletName adds the outletName to the post pdus ports params

func (*PostPdusPortsParams) WithParentPdu

func (o *PostPdusPortsParams) WithParentPdu(parentPdu *string) *PostPdusPortsParams

WithParentPdu adds the parentPdu to the post pdus ports params

func (*PostPdusPortsParams) WithParentPduID

func (o *PostPdusPortsParams) WithParentPduID(parentPduID *string) *PostPdusPortsParams

WithParentPduID adds the parentPduID to the post pdus ports params

func (*PostPdusPortsParams) WithPduID

func (o *PostPdusPortsParams) WithPduID(pduID *string) *PostPdusPortsParams

WithPduID adds the pduID to the post pdus ports params

func (*PostPdusPortsParams) WithPortType

func (o *PostPdusPortsParams) WithPortType(portType string) *PostPdusPortsParams

WithPortType adds the portType to the post pdus ports params

func (*PostPdusPortsParams) WithPsuLabel

func (o *PostPdusPortsParams) WithPsuLabel(psuLabel *string) *PostPdusPortsParams

WithPsuLabel adds the psuLabel to the post pdus ports params

func (*PostPdusPortsParams) WithTimeout

func (o *PostPdusPortsParams) WithTimeout(timeout time.Duration) *PostPdusPortsParams

WithTimeout adds the timeout to the post pdus ports params

func (*PostPdusPortsParams) WithWatts

func (o *PostPdusPortsParams) WithWatts(watts *string) *PostPdusPortsParams

WithWatts adds the watts to the post pdus ports params

func (*PostPdusPortsParams) WriteToRequest

func (o *PostPdusPortsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type PostPdusPortsReader

type PostPdusPortsReader struct {
	// contains filtered or unexported fields
}

PostPdusPortsReader is a Reader for the PostPdusPorts structure.

func (*PostPdusPortsReader) ReadResponse

func (o *PostPdusPortsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PostPdusPortsServiceUnavailable

type PostPdusPortsServiceUnavailable struct {
}

PostPdusPortsServiceUnavailable handles this case with default header values.

Service Unavailable (Please check if your Device42 instance is working normally.)

func NewPostPdusPortsServiceUnavailable

func NewPostPdusPortsServiceUnavailable() *PostPdusPortsServiceUnavailable

NewPostPdusPortsServiceUnavailable creates a PostPdusPortsServiceUnavailable with default headers values

func (*PostPdusPortsServiceUnavailable) Error

type PostPdusPortsUnauthorized

type PostPdusPortsUnauthorized struct {
}

PostPdusPortsUnauthorized handles this case with default header values.

Unauthorized (Your credentials suck)

func NewPostPdusPortsUnauthorized

func NewPostPdusPortsUnauthorized() *PostPdusPortsUnauthorized

NewPostPdusPortsUnauthorized creates a PostPdusPortsUnauthorized with default headers values

func (*PostPdusPortsUnauthorized) Error

func (o *PostPdusPortsUnauthorized) Error() string

type PostPdusRackBadRequest

type PostPdusRackBadRequest struct {
}

PostPdusRackBadRequest handles this case with default header values.

Bad Request (A validation exception has occurred.)

func NewPostPdusRackBadRequest

func NewPostPdusRackBadRequest() *PostPdusRackBadRequest

NewPostPdusRackBadRequest creates a PostPdusRackBadRequest with default headers values

func (*PostPdusRackBadRequest) Error

func (o *PostPdusRackBadRequest) Error() string

type PostPdusRackForbidden

type PostPdusRackForbidden struct {
}

PostPdusRackForbidden handles this case with default header values.

Forbidden (The resource requested is hidden)

func NewPostPdusRackForbidden

func NewPostPdusRackForbidden() *PostPdusRackForbidden

NewPostPdusRackForbidden creates a PostPdusRackForbidden with default headers values

func (*PostPdusRackForbidden) Error

func (o *PostPdusRackForbidden) Error() string

type PostPdusRackGone

type PostPdusRackGone struct {
}

PostPdusRackGone handles this case with default header values.

Gone (The resource requested has been removed from our servers)

func NewPostPdusRackGone

func NewPostPdusRackGone() *PostPdusRackGone

NewPostPdusRackGone creates a PostPdusRackGone with default headers values

func (*PostPdusRackGone) Error

func (o *PostPdusRackGone) Error() string

type PostPdusRackInternalServerError

type PostPdusRackInternalServerError struct {
}

PostPdusRackInternalServerError 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 NewPostPdusRackInternalServerError

func NewPostPdusRackInternalServerError() *PostPdusRackInternalServerError

NewPostPdusRackInternalServerError creates a PostPdusRackInternalServerError with default headers values

func (*PostPdusRackInternalServerError) Error

type PostPdusRackMethodNotAllowed

type PostPdusRackMethodNotAllowed struct {
}

PostPdusRackMethodNotAllowed handles this case with default header values.

Method Not Allowed (You tried to access a resource with an invalid method)

func NewPostPdusRackMethodNotAllowed

func NewPostPdusRackMethodNotAllowed() *PostPdusRackMethodNotAllowed

NewPostPdusRackMethodNotAllowed creates a PostPdusRackMethodNotAllowed with default headers values

func (*PostPdusRackMethodNotAllowed) Error

type PostPdusRackNotFound

type PostPdusRackNotFound struct {
}

PostPdusRackNotFound handles this case with default header values.

Not Found (The specified resource could not be found)

func NewPostPdusRackNotFound

func NewPostPdusRackNotFound() *PostPdusRackNotFound

NewPostPdusRackNotFound creates a PostPdusRackNotFound with default headers values

func (*PostPdusRackNotFound) Error

func (o *PostPdusRackNotFound) Error() string

type PostPdusRackOK

type PostPdusRackOK struct {
	Payload *PostPdusRackOKBody
}

PostPdusRackOK handles this case with default header values.

The above command returns results like this:

func NewPostPdusRackOK

func NewPostPdusRackOK() *PostPdusRackOK

NewPostPdusRackOK creates a PostPdusRackOK with default headers values

func (*PostPdusRackOK) Error

func (o *PostPdusRackOK) Error() string

func (*PostPdusRackOK) GetPayload

func (o *PostPdusRackOK) GetPayload() *PostPdusRackOKBody

type PostPdusRackOKBody

type PostPdusRackOKBody struct {

	// code
	Code interface{} `json:"code,omitempty"`

	// msg
	Msg interface{} `json:"msg,omitempty"`
}

PostPdusRackOKBody post pdus rack o k body swagger:model PostPdusRackOKBody

func (*PostPdusRackOKBody) MarshalBinary

func (o *PostPdusRackOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PostPdusRackOKBody) UnmarshalBinary

func (o *PostPdusRackOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PostPdusRackOKBody) Validate

func (o *PostPdusRackOKBody) Validate(formats strfmt.Registry) error

Validate validates this post pdus rack o k body

type PostPdusRackParams

type PostPdusRackParams struct {

	/*Building*/
	Building *string
	/*Orientation
	  orientation of the PDU in rack. back for rear facing, otherwise front is default.

	*/
	Orientation *string
	/*Pdu
	  name of the PDU. only works if the name is unique in the system

	*/
	Pdu *string
	/*PduID
	  ID of the PDU to be edited

	*/
	PduID *string
	/*RackID
	  This is the ID of the rack. It can be obtained from Tools > Import > Import Racked Devices or /api/api/1.0/racks/

	*/
	RackID *string
	/*StartAt
	  Required if adding to rack. U Start location.

	*/
	StartAt *string
	/*Where
	  Location in a rack. Note: If mounted a size must be provided or available from the hardware model.

	*/
	Where *string
	/*XPos
	  A number between 0 and 2520 representing the position within the u slot in increments of 252, which is equal to 1/10th of the width of the rack. 0 will place a device flush left, 1260 will place the left side of a device in center.

	*/
	XPos *int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PostPdusRackParams contains all the parameters to send to the API endpoint for the post pdus rack operation typically these are written to a http.Request

func NewPostPdusRackParams

func NewPostPdusRackParams() *PostPdusRackParams

NewPostPdusRackParams creates a new PostPdusRackParams object with the default values initialized.

func NewPostPdusRackParamsWithContext

func NewPostPdusRackParamsWithContext(ctx context.Context) *PostPdusRackParams

NewPostPdusRackParamsWithContext creates a new PostPdusRackParams object with the default values initialized, and the ability to set a context for a request

func NewPostPdusRackParamsWithHTTPClient

func NewPostPdusRackParamsWithHTTPClient(client *http.Client) *PostPdusRackParams

NewPostPdusRackParamsWithHTTPClient creates a new PostPdusRackParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPostPdusRackParamsWithTimeout

func NewPostPdusRackParamsWithTimeout(timeout time.Duration) *PostPdusRackParams

NewPostPdusRackParamsWithTimeout creates a new PostPdusRackParams object with the default values initialized, and the ability to set a timeout on a request

func (*PostPdusRackParams) SetBuilding

func (o *PostPdusRackParams) SetBuilding(building *string)

SetBuilding adds the building to the post pdus rack params

func (*PostPdusRackParams) SetContext

func (o *PostPdusRackParams) SetContext(ctx context.Context)

SetContext adds the context to the post pdus rack params

func (*PostPdusRackParams) SetHTTPClient

func (o *PostPdusRackParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the post pdus rack params

func (*PostPdusRackParams) SetOrientation

func (o *PostPdusRackParams) SetOrientation(orientation *string)

SetOrientation adds the orientation to the post pdus rack params

func (*PostPdusRackParams) SetPdu

func (o *PostPdusRackParams) SetPdu(pdu *string)

SetPdu adds the pdu to the post pdus rack params

func (*PostPdusRackParams) SetPduID

func (o *PostPdusRackParams) SetPduID(pduID *string)

SetPduID adds the pduId to the post pdus rack params

func (*PostPdusRackParams) SetRackID

func (o *PostPdusRackParams) SetRackID(rackID *string)

SetRackID adds the rackId to the post pdus rack params

func (*PostPdusRackParams) SetStartAt

func (o *PostPdusRackParams) SetStartAt(startAt *string)

SetStartAt adds the startAt to the post pdus rack params

func (*PostPdusRackParams) SetTimeout

func (o *PostPdusRackParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the post pdus rack params

func (*PostPdusRackParams) SetWhere

func (o *PostPdusRackParams) SetWhere(where *string)

SetWhere adds the where to the post pdus rack params

func (*PostPdusRackParams) SetXPos

func (o *PostPdusRackParams) SetXPos(xPos *int64)

SetXPos adds the xPos to the post pdus rack params

func (*PostPdusRackParams) WithBuilding

func (o *PostPdusRackParams) WithBuilding(building *string) *PostPdusRackParams

WithBuilding adds the building to the post pdus rack params

func (*PostPdusRackParams) WithContext

WithContext adds the context to the post pdus rack params

func (*PostPdusRackParams) WithHTTPClient

func (o *PostPdusRackParams) WithHTTPClient(client *http.Client) *PostPdusRackParams

WithHTTPClient adds the HTTPClient to the post pdus rack params

func (*PostPdusRackParams) WithOrientation

func (o *PostPdusRackParams) WithOrientation(orientation *string) *PostPdusRackParams

WithOrientation adds the orientation to the post pdus rack params

func (*PostPdusRackParams) WithPdu

func (o *PostPdusRackParams) WithPdu(pdu *string) *PostPdusRackParams

WithPdu adds the pdu to the post pdus rack params

func (*PostPdusRackParams) WithPduID

func (o *PostPdusRackParams) WithPduID(pduID *string) *PostPdusRackParams

WithPduID adds the pduID to the post pdus rack params

func (*PostPdusRackParams) WithRackID

func (o *PostPdusRackParams) WithRackID(rackID *string) *PostPdusRackParams

WithRackID adds the rackID to the post pdus rack params

func (*PostPdusRackParams) WithStartAt

func (o *PostPdusRackParams) WithStartAt(startAt *string) *PostPdusRackParams

WithStartAt adds the startAt to the post pdus rack params

func (*PostPdusRackParams) WithTimeout

func (o *PostPdusRackParams) WithTimeout(timeout time.Duration) *PostPdusRackParams

WithTimeout adds the timeout to the post pdus rack params

func (*PostPdusRackParams) WithWhere

func (o *PostPdusRackParams) WithWhere(where *string) *PostPdusRackParams

WithWhere adds the where to the post pdus rack params

func (*PostPdusRackParams) WithXPos

func (o *PostPdusRackParams) WithXPos(xPos *int64) *PostPdusRackParams

WithXPos adds the xPos to the post pdus rack params

func (*PostPdusRackParams) WriteToRequest

func (o *PostPdusRackParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type PostPdusRackReader

type PostPdusRackReader struct {
	// contains filtered or unexported fields
}

PostPdusRackReader is a Reader for the PostPdusRack structure.

func (*PostPdusRackReader) ReadResponse

func (o *PostPdusRackReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PostPdusRackServiceUnavailable

type PostPdusRackServiceUnavailable struct {
}

PostPdusRackServiceUnavailable handles this case with default header values.

Service Unavailable (Please check if your Device42 instance is working normally.)

func NewPostPdusRackServiceUnavailable

func NewPostPdusRackServiceUnavailable() *PostPdusRackServiceUnavailable

NewPostPdusRackServiceUnavailable creates a PostPdusRackServiceUnavailable with default headers values

func (*PostPdusRackServiceUnavailable) Error

type PostPdusRackUnauthorized

type PostPdusRackUnauthorized struct {
}

PostPdusRackUnauthorized handles this case with default header values.

Unauthorized (Your credentials suck)

func NewPostPdusRackUnauthorized

func NewPostPdusRackUnauthorized() *PostPdusRackUnauthorized

NewPostPdusRackUnauthorized creates a PostPdusRackUnauthorized with default headers values

func (*PostPdusRackUnauthorized) Error

func (o *PostPdusRackUnauthorized) Error() string

type PostPdusReader

type PostPdusReader struct {
	// contains filtered or unexported fields
}

PostPdusReader is a Reader for the PostPdus structure.

func (*PostPdusReader) ReadResponse

func (o *PostPdusReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PostPdusServiceUnavailable

type PostPdusServiceUnavailable struct {
}

PostPdusServiceUnavailable handles this case with default header values.

Service Unavailable (Please check if your Device42 instance is working normally.)

func NewPostPdusServiceUnavailable

func NewPostPdusServiceUnavailable() *PostPdusServiceUnavailable

NewPostPdusServiceUnavailable creates a PostPdusServiceUnavailable with default headers values

func (*PostPdusServiceUnavailable) Error

type PostPdusUnauthorized

type PostPdusUnauthorized struct {
}

PostPdusUnauthorized handles this case with default header values.

Unauthorized (Your credentials suck)

func NewPostPdusUnauthorized

func NewPostPdusUnauthorized() *PostPdusUnauthorized

NewPostPdusUnauthorized creates a PostPdusUnauthorized with default headers values

func (*PostPdusUnauthorized) Error

func (o *PostPdusUnauthorized) Error() string

type PutPdusBadRequest

type PutPdusBadRequest struct {
}

PutPdusBadRequest handles this case with default header values.

Bad Request (A validation exception has occurred.)

func NewPutPdusBadRequest

func NewPutPdusBadRequest() *PutPdusBadRequest

NewPutPdusBadRequest creates a PutPdusBadRequest with default headers values

func (*PutPdusBadRequest) Error

func (o *PutPdusBadRequest) Error() string

type PutPdusForbidden

type PutPdusForbidden struct {
}

PutPdusForbidden handles this case with default header values.

Forbidden (The resource requested is hidden)

func NewPutPdusForbidden

func NewPutPdusForbidden() *PutPdusForbidden

NewPutPdusForbidden creates a PutPdusForbidden with default headers values

func (*PutPdusForbidden) Error

func (o *PutPdusForbidden) Error() string

type PutPdusGone

type PutPdusGone struct {
}

PutPdusGone handles this case with default header values.

Gone (The resource requested has been removed from our servers)

func NewPutPdusGone

func NewPutPdusGone() *PutPdusGone

NewPutPdusGone creates a PutPdusGone with default headers values

func (*PutPdusGone) Error

func (o *PutPdusGone) Error() string

type PutPdusInternalServerError

type PutPdusInternalServerError struct {
}

PutPdusInternalServerError 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 NewPutPdusInternalServerError

func NewPutPdusInternalServerError() *PutPdusInternalServerError

NewPutPdusInternalServerError creates a PutPdusInternalServerError with default headers values

func (*PutPdusInternalServerError) Error

type PutPdusMethodNotAllowed

type PutPdusMethodNotAllowed struct {
}

PutPdusMethodNotAllowed handles this case with default header values.

Method Not Allowed (You tried to access a resource with an invalid method)

func NewPutPdusMethodNotAllowed

func NewPutPdusMethodNotAllowed() *PutPdusMethodNotAllowed

NewPutPdusMethodNotAllowed creates a PutPdusMethodNotAllowed with default headers values

func (*PutPdusMethodNotAllowed) Error

func (o *PutPdusMethodNotAllowed) Error() string

type PutPdusNotFound

type PutPdusNotFound struct {
}

PutPdusNotFound handles this case with default header values.

Not Found (The specified resource could not be found)

func NewPutPdusNotFound

func NewPutPdusNotFound() *PutPdusNotFound

NewPutPdusNotFound creates a PutPdusNotFound with default headers values

func (*PutPdusNotFound) Error

func (o *PutPdusNotFound) Error() string

type PutPdusOK

type PutPdusOK struct {
	Payload *PutPdusOKBody
}

PutPdusOK handles this case with default header values.

The above command returns results like this:

func NewPutPdusOK

func NewPutPdusOK() *PutPdusOK

NewPutPdusOK creates a PutPdusOK with default headers values

func (*PutPdusOK) Error

func (o *PutPdusOK) Error() string

func (*PutPdusOK) GetPayload

func (o *PutPdusOK) GetPayload() *PutPdusOKBody

type PutPdusOKBody

type PutPdusOKBody struct {

	// code
	Code interface{} `json:"code,omitempty"`

	// msg
	Msg interface{} `json:"msg,omitempty"`
}

PutPdusOKBody put pdus o k body swagger:model PutPdusOKBody

func (*PutPdusOKBody) MarshalBinary

func (o *PutPdusOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PutPdusOKBody) UnmarshalBinary

func (o *PutPdusOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PutPdusOKBody) Validate

func (o *PutPdusOKBody) Validate(formats strfmt.Registry) error

Validate validates this put pdus o k body

type PutPdusParams

type PutPdusParams struct {

	/*Category
	  If multitenancy is on, admin groups that have access to this category, will have access to the power unit. If this parameter is present with no value, all categories are deleted.

	*/
	Category *string
	/*Device
	  If you want to associate asset information with this PDU, use device type 'other'

	*/
	Device *string
	/*Name
	  Use instead of PDU ID. Must be unique

	*/
	Name string
	/*NewName
	  Use to change name of object.

	*/
	NewName *string
	/*Notes
	  Any additional notes

	*/
	Notes *string
	/*ObjectCategory*/
	ObjectCategory *string
	/*OutletName
	  outlet name

	*/
	OutletName *string
	/*PduID
	  ID of the PDU to be edited

	*/
	PduID *string
	/*PduModel
	  Name of the PDU model. You can use this instead of the ID above. (Added in v5.8.2)

	*/
	PduModel *string
	/*PduModelID
	  ID of the PDU model you want to update

	*/
	PduModelID *string
	/*PortNumber
	  port number

	*/
	PortNumber *string
	/*RatedPower*/
	RatedPower *string
	/*StorageRoom
	  Name of storage room to apply power unit to

	*/
	StorageRoom *string
	/*StorageRoomID
	  ID of storage room to assign power unit to

	*/
	StorageRoomID *string
	/*Type
	  Type of power unit (pdu, ups, ats)

	*/
	Type *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PutPdusParams contains all the parameters to send to the API endpoint for the put pdus operation typically these are written to a http.Request

func NewPutPdusParams

func NewPutPdusParams() *PutPdusParams

NewPutPdusParams creates a new PutPdusParams object with the default values initialized.

func NewPutPdusParamsWithContext

func NewPutPdusParamsWithContext(ctx context.Context) *PutPdusParams

NewPutPdusParamsWithContext creates a new PutPdusParams object with the default values initialized, and the ability to set a context for a request

func NewPutPdusParamsWithHTTPClient

func NewPutPdusParamsWithHTTPClient(client *http.Client) *PutPdusParams

NewPutPdusParamsWithHTTPClient creates a new PutPdusParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPutPdusParamsWithTimeout

func NewPutPdusParamsWithTimeout(timeout time.Duration) *PutPdusParams

NewPutPdusParamsWithTimeout creates a new PutPdusParams object with the default values initialized, and the ability to set a timeout on a request

func (*PutPdusParams) SetCategory

func (o *PutPdusParams) SetCategory(category *string)

SetCategory adds the category to the put pdus params

func (*PutPdusParams) SetContext

func (o *PutPdusParams) SetContext(ctx context.Context)

SetContext adds the context to the put pdus params

func (*PutPdusParams) SetDevice

func (o *PutPdusParams) SetDevice(device *string)

SetDevice adds the device to the put pdus params

func (*PutPdusParams) SetHTTPClient

func (o *PutPdusParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the put pdus params

func (*PutPdusParams) SetName

func (o *PutPdusParams) SetName(name string)

SetName adds the name to the put pdus params

func (*PutPdusParams) SetNewName

func (o *PutPdusParams) SetNewName(newName *string)

SetNewName adds the newName to the put pdus params

func (*PutPdusParams) SetNotes

func (o *PutPdusParams) SetNotes(notes *string)

SetNotes adds the notes to the put pdus params

func (*PutPdusParams) SetObjectCategory

func (o *PutPdusParams) SetObjectCategory(objectCategory *string)

SetObjectCategory adds the objectCategory to the put pdus params

func (*PutPdusParams) SetOutletName

func (o *PutPdusParams) SetOutletName(outletName *string)

SetOutletName adds the outletName to the put pdus params

func (*PutPdusParams) SetPduID

func (o *PutPdusParams) SetPduID(pduID *string)

SetPduID adds the pduId to the put pdus params

func (*PutPdusParams) SetPduModel

func (o *PutPdusParams) SetPduModel(pduModel *string)

SetPduModel adds the pduModel to the put pdus params

func (*PutPdusParams) SetPduModelID

func (o *PutPdusParams) SetPduModelID(pduModelID *string)

SetPduModelID adds the pduModelId to the put pdus params

func (*PutPdusParams) SetPortNumber

func (o *PutPdusParams) SetPortNumber(portNumber *string)

SetPortNumber adds the portNumber to the put pdus params

func (*PutPdusParams) SetRatedPower

func (o *PutPdusParams) SetRatedPower(ratedPower *string)

SetRatedPower adds the ratedPower to the put pdus params

func (*PutPdusParams) SetStorageRoom

func (o *PutPdusParams) SetStorageRoom(storageRoom *string)

SetStorageRoom adds the storageRoom to the put pdus params

func (*PutPdusParams) SetStorageRoomID

func (o *PutPdusParams) SetStorageRoomID(storageRoomID *string)

SetStorageRoomID adds the storageRoomId to the put pdus params

func (*PutPdusParams) SetTimeout

func (o *PutPdusParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the put pdus params

func (*PutPdusParams) SetType

func (o *PutPdusParams) SetType(typeVar *string)

SetType adds the type to the put pdus params

func (*PutPdusParams) WithCategory

func (o *PutPdusParams) WithCategory(category *string) *PutPdusParams

WithCategory adds the category to the put pdus params

func (*PutPdusParams) WithContext

func (o *PutPdusParams) WithContext(ctx context.Context) *PutPdusParams

WithContext adds the context to the put pdus params

func (*PutPdusParams) WithDevice

func (o *PutPdusParams) WithDevice(device *string) *PutPdusParams

WithDevice adds the device to the put pdus params

func (*PutPdusParams) WithHTTPClient

func (o *PutPdusParams) WithHTTPClient(client *http.Client) *PutPdusParams

WithHTTPClient adds the HTTPClient to the put pdus params

func (*PutPdusParams) WithName

func (o *PutPdusParams) WithName(name string) *PutPdusParams

WithName adds the name to the put pdus params

func (*PutPdusParams) WithNewName

func (o *PutPdusParams) WithNewName(newName *string) *PutPdusParams

WithNewName adds the newName to the put pdus params

func (*PutPdusParams) WithNotes

func (o *PutPdusParams) WithNotes(notes *string) *PutPdusParams

WithNotes adds the notes to the put pdus params

func (*PutPdusParams) WithObjectCategory

func (o *PutPdusParams) WithObjectCategory(objectCategory *string) *PutPdusParams

WithObjectCategory adds the objectCategory to the put pdus params

func (*PutPdusParams) WithOutletName

func (o *PutPdusParams) WithOutletName(outletName *string) *PutPdusParams

WithOutletName adds the outletName to the put pdus params

func (*PutPdusParams) WithPduID

func (o *PutPdusParams) WithPduID(pduID *string) *PutPdusParams

WithPduID adds the pduID to the put pdus params

func (*PutPdusParams) WithPduModel

func (o *PutPdusParams) WithPduModel(pduModel *string) *PutPdusParams

WithPduModel adds the pduModel to the put pdus params

func (*PutPdusParams) WithPduModelID

func (o *PutPdusParams) WithPduModelID(pduModelID *string) *PutPdusParams

WithPduModelID adds the pduModelID to the put pdus params

func (*PutPdusParams) WithPortNumber

func (o *PutPdusParams) WithPortNumber(portNumber *string) *PutPdusParams

WithPortNumber adds the portNumber to the put pdus params

func (*PutPdusParams) WithRatedPower

func (o *PutPdusParams) WithRatedPower(ratedPower *string) *PutPdusParams

WithRatedPower adds the ratedPower to the put pdus params

func (*PutPdusParams) WithStorageRoom

func (o *PutPdusParams) WithStorageRoom(storageRoom *string) *PutPdusParams

WithStorageRoom adds the storageRoom to the put pdus params

func (*PutPdusParams) WithStorageRoomID

func (o *PutPdusParams) WithStorageRoomID(storageRoomID *string) *PutPdusParams

WithStorageRoomID adds the storageRoomID to the put pdus params

func (*PutPdusParams) WithTimeout

func (o *PutPdusParams) WithTimeout(timeout time.Duration) *PutPdusParams

WithTimeout adds the timeout to the put pdus params

func (*PutPdusParams) WithType

func (o *PutPdusParams) WithType(typeVar *string) *PutPdusParams

WithType adds the typeVar to the put pdus params

func (*PutPdusParams) WriteToRequest

func (o *PutPdusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type PutPdusPortsBadRequest

type PutPdusPortsBadRequest struct {
}

PutPdusPortsBadRequest handles this case with default header values.

Bad Request (A validation exception has occurred.)

func NewPutPdusPortsBadRequest

func NewPutPdusPortsBadRequest() *PutPdusPortsBadRequest

NewPutPdusPortsBadRequest creates a PutPdusPortsBadRequest with default headers values

func (*PutPdusPortsBadRequest) Error

func (o *PutPdusPortsBadRequest) Error() string

type PutPdusPortsForbidden

type PutPdusPortsForbidden struct {
}

PutPdusPortsForbidden handles this case with default header values.

Forbidden (The resource requested is hidden)

func NewPutPdusPortsForbidden

func NewPutPdusPortsForbidden() *PutPdusPortsForbidden

NewPutPdusPortsForbidden creates a PutPdusPortsForbidden with default headers values

func (*PutPdusPortsForbidden) Error

func (o *PutPdusPortsForbidden) Error() string

type PutPdusPortsGone

type PutPdusPortsGone struct {
}

PutPdusPortsGone handles this case with default header values.

Gone (The resource requested has been removed from our servers)

func NewPutPdusPortsGone

func NewPutPdusPortsGone() *PutPdusPortsGone

NewPutPdusPortsGone creates a PutPdusPortsGone with default headers values

func (*PutPdusPortsGone) Error

func (o *PutPdusPortsGone) Error() string

type PutPdusPortsInternalServerError

type PutPdusPortsInternalServerError struct {
}

PutPdusPortsInternalServerError 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 NewPutPdusPortsInternalServerError

func NewPutPdusPortsInternalServerError() *PutPdusPortsInternalServerError

NewPutPdusPortsInternalServerError creates a PutPdusPortsInternalServerError with default headers values

func (*PutPdusPortsInternalServerError) Error

type PutPdusPortsMethodNotAllowed

type PutPdusPortsMethodNotAllowed struct {
}

PutPdusPortsMethodNotAllowed handles this case with default header values.

Method Not Allowed (You tried to access a resource with an invalid method)

func NewPutPdusPortsMethodNotAllowed

func NewPutPdusPortsMethodNotAllowed() *PutPdusPortsMethodNotAllowed

NewPutPdusPortsMethodNotAllowed creates a PutPdusPortsMethodNotAllowed with default headers values

func (*PutPdusPortsMethodNotAllowed) Error

type PutPdusPortsNotFound

type PutPdusPortsNotFound struct {
}

PutPdusPortsNotFound handles this case with default header values.

Not Found (The specified resource could not be found)

func NewPutPdusPortsNotFound

func NewPutPdusPortsNotFound() *PutPdusPortsNotFound

NewPutPdusPortsNotFound creates a PutPdusPortsNotFound with default headers values

func (*PutPdusPortsNotFound) Error

func (o *PutPdusPortsNotFound) Error() string

type PutPdusPortsOK

type PutPdusPortsOK struct {
	Payload *PutPdusPortsOKBody
}

PutPdusPortsOK handles this case with default header values.

The above command returns results like this:

func NewPutPdusPortsOK

func NewPutPdusPortsOK() *PutPdusPortsOK

NewPutPdusPortsOK creates a PutPdusPortsOK with default headers values

func (*PutPdusPortsOK) Error

func (o *PutPdusPortsOK) Error() string

func (*PutPdusPortsOK) GetPayload

func (o *PutPdusPortsOK) GetPayload() *PutPdusPortsOKBody

type PutPdusPortsOKBody

type PutPdusPortsOKBody struct {

	// code
	Code interface{} `json:"code,omitempty"`

	// msg
	Msg interface{} `json:"msg,omitempty"`
}

PutPdusPortsOKBody put pdus ports o k body swagger:model PutPdusPortsOKBody

func (*PutPdusPortsOKBody) MarshalBinary

func (o *PutPdusPortsOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PutPdusPortsOKBody) UnmarshalBinary

func (o *PutPdusPortsOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PutPdusPortsOKBody) Validate

func (o *PutPdusPortsOKBody) Validate(formats strfmt.Registry) error

Validate validates this put pdus ports o k body

type PutPdusPortsParams

type PutPdusPortsParams struct {

	/*AssetID
	  ID of the asset the port points to

	*/
	AssetID *string
	/*Device
	  Name of the device the port points to.

	*/
	Device *string
	/*DeviceID
	  ID of the device the port points to

	*/
	DeviceID *string
	/*Name
	  name of the existing PDU port

	*/
	Name string
	/*OutletName
	  outlet name

	*/
	OutletName *string
	/*ParentPdu
	  name of the parent PDU. Must be unique name. Added in v5.8.2

	*/
	ParentPdu *string
	/*ParentPduID
	  Available from /api/api/1.0/pdus/ or Tools

	*/
	ParentPduID *string
	/*PduID
	  ID of the PDU the port points to

	*/
	PduID *string
	/*PsuLabel
	  typically used when device has multiple power supplies, e.g.: power supply 1, power supply 2, etc.

	*/
	PsuLabel *string
	/*Watts
	  per power supply

	*/
	Watts *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PutPdusPortsParams contains all the parameters to send to the API endpoint for the put pdus ports operation typically these are written to a http.Request

func NewPutPdusPortsParams

func NewPutPdusPortsParams() *PutPdusPortsParams

NewPutPdusPortsParams creates a new PutPdusPortsParams object with the default values initialized.

func NewPutPdusPortsParamsWithContext

func NewPutPdusPortsParamsWithContext(ctx context.Context) *PutPdusPortsParams

NewPutPdusPortsParamsWithContext creates a new PutPdusPortsParams object with the default values initialized, and the ability to set a context for a request

func NewPutPdusPortsParamsWithHTTPClient

func NewPutPdusPortsParamsWithHTTPClient(client *http.Client) *PutPdusPortsParams

NewPutPdusPortsParamsWithHTTPClient creates a new PutPdusPortsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPutPdusPortsParamsWithTimeout

func NewPutPdusPortsParamsWithTimeout(timeout time.Duration) *PutPdusPortsParams

NewPutPdusPortsParamsWithTimeout creates a new PutPdusPortsParams object with the default values initialized, and the ability to set a timeout on a request

func (*PutPdusPortsParams) SetAssetID

func (o *PutPdusPortsParams) SetAssetID(assetID *string)

SetAssetID adds the assetId to the put pdus ports params

func (*PutPdusPortsParams) SetContext

func (o *PutPdusPortsParams) SetContext(ctx context.Context)

SetContext adds the context to the put pdus ports params

func (*PutPdusPortsParams) SetDevice

func (o *PutPdusPortsParams) SetDevice(device *string)

SetDevice adds the device to the put pdus ports params

func (*PutPdusPortsParams) SetDeviceID

func (o *PutPdusPortsParams) SetDeviceID(deviceID *string)

SetDeviceID adds the deviceId to the put pdus ports params

func (*PutPdusPortsParams) SetHTTPClient

func (o *PutPdusPortsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the put pdus ports params

func (*PutPdusPortsParams) SetName

func (o *PutPdusPortsParams) SetName(name string)

SetName adds the name to the put pdus ports params

func (*PutPdusPortsParams) SetOutletName

func (o *PutPdusPortsParams) SetOutletName(outletName *string)

SetOutletName adds the outletName to the put pdus ports params

func (*PutPdusPortsParams) SetParentPdu

func (o *PutPdusPortsParams) SetParentPdu(parentPdu *string)

SetParentPdu adds the parentPdu to the put pdus ports params

func (*PutPdusPortsParams) SetParentPduID

func (o *PutPdusPortsParams) SetParentPduID(parentPduID *string)

SetParentPduID adds the parentPduId to the put pdus ports params

func (*PutPdusPortsParams) SetPduID

func (o *PutPdusPortsParams) SetPduID(pduID *string)

SetPduID adds the pduId to the put pdus ports params

func (*PutPdusPortsParams) SetPsuLabel

func (o *PutPdusPortsParams) SetPsuLabel(psuLabel *string)

SetPsuLabel adds the psuLabel to the put pdus ports params

func (*PutPdusPortsParams) SetTimeout

func (o *PutPdusPortsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the put pdus ports params

func (*PutPdusPortsParams) SetWatts

func (o *PutPdusPortsParams) SetWatts(watts *string)

SetWatts adds the watts to the put pdus ports params

func (*PutPdusPortsParams) WithAssetID

func (o *PutPdusPortsParams) WithAssetID(assetID *string) *PutPdusPortsParams

WithAssetID adds the assetID to the put pdus ports params

func (*PutPdusPortsParams) WithContext

WithContext adds the context to the put pdus ports params

func (*PutPdusPortsParams) WithDevice

func (o *PutPdusPortsParams) WithDevice(device *string) *PutPdusPortsParams

WithDevice adds the device to the put pdus ports params

func (*PutPdusPortsParams) WithDeviceID

func (o *PutPdusPortsParams) WithDeviceID(deviceID *string) *PutPdusPortsParams

WithDeviceID adds the deviceID to the put pdus ports params

func (*PutPdusPortsParams) WithHTTPClient

func (o *PutPdusPortsParams) WithHTTPClient(client *http.Client) *PutPdusPortsParams

WithHTTPClient adds the HTTPClient to the put pdus ports params

func (*PutPdusPortsParams) WithName

func (o *PutPdusPortsParams) WithName(name string) *PutPdusPortsParams

WithName adds the name to the put pdus ports params

func (*PutPdusPortsParams) WithOutletName

func (o *PutPdusPortsParams) WithOutletName(outletName *string) *PutPdusPortsParams

WithOutletName adds the outletName to the put pdus ports params

func (*PutPdusPortsParams) WithParentPdu

func (o *PutPdusPortsParams) WithParentPdu(parentPdu *string) *PutPdusPortsParams

WithParentPdu adds the parentPdu to the put pdus ports params

func (*PutPdusPortsParams) WithParentPduID

func (o *PutPdusPortsParams) WithParentPduID(parentPduID *string) *PutPdusPortsParams

WithParentPduID adds the parentPduID to the put pdus ports params

func (*PutPdusPortsParams) WithPduID

func (o *PutPdusPortsParams) WithPduID(pduID *string) *PutPdusPortsParams

WithPduID adds the pduID to the put pdus ports params

func (*PutPdusPortsParams) WithPsuLabel

func (o *PutPdusPortsParams) WithPsuLabel(psuLabel *string) *PutPdusPortsParams

WithPsuLabel adds the psuLabel to the put pdus ports params

func (*PutPdusPortsParams) WithTimeout

func (o *PutPdusPortsParams) WithTimeout(timeout time.Duration) *PutPdusPortsParams

WithTimeout adds the timeout to the put pdus ports params

func (*PutPdusPortsParams) WithWatts

func (o *PutPdusPortsParams) WithWatts(watts *string) *PutPdusPortsParams

WithWatts adds the watts to the put pdus ports params

func (*PutPdusPortsParams) WriteToRequest

func (o *PutPdusPortsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type PutPdusPortsReader

type PutPdusPortsReader struct {
	// contains filtered or unexported fields
}

PutPdusPortsReader is a Reader for the PutPdusPorts structure.

func (*PutPdusPortsReader) ReadResponse

func (o *PutPdusPortsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PutPdusPortsServiceUnavailable

type PutPdusPortsServiceUnavailable struct {
}

PutPdusPortsServiceUnavailable handles this case with default header values.

Service Unavailable (Please check if your Device42 instance is working normally.)

func NewPutPdusPortsServiceUnavailable

func NewPutPdusPortsServiceUnavailable() *PutPdusPortsServiceUnavailable

NewPutPdusPortsServiceUnavailable creates a PutPdusPortsServiceUnavailable with default headers values

func (*PutPdusPortsServiceUnavailable) Error

type PutPdusPortsUnauthorized

type PutPdusPortsUnauthorized struct {
}

PutPdusPortsUnauthorized handles this case with default header values.

Unauthorized (Your credentials suck)

func NewPutPdusPortsUnauthorized

func NewPutPdusPortsUnauthorized() *PutPdusPortsUnauthorized

NewPutPdusPortsUnauthorized creates a PutPdusPortsUnauthorized with default headers values

func (*PutPdusPortsUnauthorized) Error

func (o *PutPdusPortsUnauthorized) Error() string

type PutPdusReader

type PutPdusReader struct {
	// contains filtered or unexported fields
}

PutPdusReader is a Reader for the PutPdus structure.

func (*PutPdusReader) ReadResponse

func (o *PutPdusReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PutPdusServiceUnavailable

type PutPdusServiceUnavailable struct {
}

PutPdusServiceUnavailable handles this case with default header values.

Service Unavailable (Please check if your Device42 instance is working normally.)

func NewPutPdusServiceUnavailable

func NewPutPdusServiceUnavailable() *PutPdusServiceUnavailable

NewPutPdusServiceUnavailable creates a PutPdusServiceUnavailable with default headers values

func (*PutPdusServiceUnavailable) Error

func (o *PutPdusServiceUnavailable) Error() string

type PutPdusUnauthorized

type PutPdusUnauthorized struct {
}

PutPdusUnauthorized handles this case with default header values.

Unauthorized (Your credentials suck)

func NewPutPdusUnauthorized

func NewPutPdusUnauthorized() *PutPdusUnauthorized

NewPutPdusUnauthorized creates a PutPdusUnauthorized with default headers values

func (*PutPdusUnauthorized) Error

func (o *PutPdusUnauthorized) Error() string

Jump to

Keyboard shortcuts

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