power_circuits

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 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 power circuits API

func (*Client) DeletePowerCircuit

func (a *Client) DeletePowerCircuit(params *DeletePowerCircuitParams, authInfo runtime.ClientAuthInfoWriter) (*DeletePowerCircuitOK, error)

DeletePowerCircuit powers circuit

This API is used to delete the power circuit with the ID supplied as the required argument.

func (*Client) GetAllPowerCircuits

func (a *Client) GetAllPowerCircuits(params *GetAllPowerCircuitsParams, authInfo runtime.ClientAuthInfoWriter) (*GetAllPowerCircuitsOK, error)

GetAllPowerCircuits gets all power circuits

Get All Power Circuits

func (*Client) PostUpdatePowerCircuits

func (a *Client) PostUpdatePowerCircuits(params *PostUpdatePowerCircuitsParams, authInfo runtime.ClientAuthInfoWriter) (*PostUpdatePowerCircuitsOK, error)

PostUpdatePowerCircuits creates update power circuit

Create/Update Power Circuit

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	DeletePowerCircuit(params *DeletePowerCircuitParams, authInfo runtime.ClientAuthInfoWriter) (*DeletePowerCircuitOK, error)

	GetAllPowerCircuits(params *GetAllPowerCircuitsParams, authInfo runtime.ClientAuthInfoWriter) (*GetAllPowerCircuitsOK, error)

	PostUpdatePowerCircuits(params *PostUpdatePowerCircuitsParams, authInfo runtime.ClientAuthInfoWriter) (*PostUpdatePowerCircuitsOK, 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 power circuits API client.

type DeletePowerCircuitBadRequest

type DeletePowerCircuitBadRequest struct {
}

DeletePowerCircuitBadRequest handles this case with default header values.

Bad Request (A validation exception has occurred.)

func NewDeletePowerCircuitBadRequest

func NewDeletePowerCircuitBadRequest() *DeletePowerCircuitBadRequest

NewDeletePowerCircuitBadRequest creates a DeletePowerCircuitBadRequest with default headers values

func (*DeletePowerCircuitBadRequest) Error

type DeletePowerCircuitForbidden

type DeletePowerCircuitForbidden struct {
}

DeletePowerCircuitForbidden handles this case with default header values.

Forbidden (The resource requested is hidden)

func NewDeletePowerCircuitForbidden

func NewDeletePowerCircuitForbidden() *DeletePowerCircuitForbidden

NewDeletePowerCircuitForbidden creates a DeletePowerCircuitForbidden with default headers values

func (*DeletePowerCircuitForbidden) Error

type DeletePowerCircuitGone

type DeletePowerCircuitGone struct {
}

DeletePowerCircuitGone handles this case with default header values.

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

func NewDeletePowerCircuitGone

func NewDeletePowerCircuitGone() *DeletePowerCircuitGone

NewDeletePowerCircuitGone creates a DeletePowerCircuitGone with default headers values

func (*DeletePowerCircuitGone) Error

func (o *DeletePowerCircuitGone) Error() string

type DeletePowerCircuitInternalServerError

type DeletePowerCircuitInternalServerError struct {
}

DeletePowerCircuitInternalServerError 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 NewDeletePowerCircuitInternalServerError

func NewDeletePowerCircuitInternalServerError() *DeletePowerCircuitInternalServerError

NewDeletePowerCircuitInternalServerError creates a DeletePowerCircuitInternalServerError with default headers values

func (*DeletePowerCircuitInternalServerError) Error

type DeletePowerCircuitMethodNotAllowed

type DeletePowerCircuitMethodNotAllowed struct {
}

DeletePowerCircuitMethodNotAllowed handles this case with default header values.

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

func NewDeletePowerCircuitMethodNotAllowed

func NewDeletePowerCircuitMethodNotAllowed() *DeletePowerCircuitMethodNotAllowed

NewDeletePowerCircuitMethodNotAllowed creates a DeletePowerCircuitMethodNotAllowed with default headers values

func (*DeletePowerCircuitMethodNotAllowed) Error

type DeletePowerCircuitNotFound

type DeletePowerCircuitNotFound struct {
}

DeletePowerCircuitNotFound handles this case with default header values.

Not Found (The specified resource could not be found)

func NewDeletePowerCircuitNotFound

func NewDeletePowerCircuitNotFound() *DeletePowerCircuitNotFound

NewDeletePowerCircuitNotFound creates a DeletePowerCircuitNotFound with default headers values

func (*DeletePowerCircuitNotFound) Error

type DeletePowerCircuitOK

type DeletePowerCircuitOK struct {
	Payload *DeletePowerCircuitOKBody
}

DeletePowerCircuitOK handles this case with default header values.

The above command returns results like this:

func NewDeletePowerCircuitOK

func NewDeletePowerCircuitOK() *DeletePowerCircuitOK

NewDeletePowerCircuitOK creates a DeletePowerCircuitOK with default headers values

func (*DeletePowerCircuitOK) Error

func (o *DeletePowerCircuitOK) Error() string

func (*DeletePowerCircuitOK) GetPayload

type DeletePowerCircuitOKBody

type DeletePowerCircuitOKBody struct {

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

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

DeletePowerCircuitOKBody delete power circuit o k body swagger:model DeletePowerCircuitOKBody

func (*DeletePowerCircuitOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*DeletePowerCircuitOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DeletePowerCircuitOKBody) Validate

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

Validate validates this delete power circuit o k body

type DeletePowerCircuitParams

type DeletePowerCircuitParams struct {

	/*ID
	  Power circuit ID

	*/
	ID int64

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

DeletePowerCircuitParams contains all the parameters to send to the API endpoint for the delete power circuit operation typically these are written to a http.Request

func NewDeletePowerCircuitParams

func NewDeletePowerCircuitParams() *DeletePowerCircuitParams

NewDeletePowerCircuitParams creates a new DeletePowerCircuitParams object with the default values initialized.

func NewDeletePowerCircuitParamsWithContext

func NewDeletePowerCircuitParamsWithContext(ctx context.Context) *DeletePowerCircuitParams

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

func NewDeletePowerCircuitParamsWithHTTPClient

func NewDeletePowerCircuitParamsWithHTTPClient(client *http.Client) *DeletePowerCircuitParams

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

func NewDeletePowerCircuitParamsWithTimeout

func NewDeletePowerCircuitParamsWithTimeout(timeout time.Duration) *DeletePowerCircuitParams

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

func (*DeletePowerCircuitParams) SetContext

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

SetContext adds the context to the delete power circuit params

func (*DeletePowerCircuitParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete power circuit params

func (*DeletePowerCircuitParams) SetID

func (o *DeletePowerCircuitParams) SetID(id int64)

SetID adds the id to the delete power circuit params

func (*DeletePowerCircuitParams) SetTimeout

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

SetTimeout adds the timeout to the delete power circuit params

func (*DeletePowerCircuitParams) WithContext

WithContext adds the context to the delete power circuit params

func (*DeletePowerCircuitParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete power circuit params

func (*DeletePowerCircuitParams) WithID

WithID adds the id to the delete power circuit params

func (*DeletePowerCircuitParams) WithTimeout

WithTimeout adds the timeout to the delete power circuit params

func (*DeletePowerCircuitParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeletePowerCircuitReader

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

DeletePowerCircuitReader is a Reader for the DeletePowerCircuit structure.

func (*DeletePowerCircuitReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeletePowerCircuitServiceUnavailable

type DeletePowerCircuitServiceUnavailable struct {
}

DeletePowerCircuitServiceUnavailable handles this case with default header values.

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

func NewDeletePowerCircuitServiceUnavailable

func NewDeletePowerCircuitServiceUnavailable() *DeletePowerCircuitServiceUnavailable

NewDeletePowerCircuitServiceUnavailable creates a DeletePowerCircuitServiceUnavailable with default headers values

func (*DeletePowerCircuitServiceUnavailable) Error

type DeletePowerCircuitUnauthorized

type DeletePowerCircuitUnauthorized struct {
}

DeletePowerCircuitUnauthorized handles this case with default header values.

Unauthorized (Your credentials suck)

func NewDeletePowerCircuitUnauthorized

func NewDeletePowerCircuitUnauthorized() *DeletePowerCircuitUnauthorized

NewDeletePowerCircuitUnauthorized creates a DeletePowerCircuitUnauthorized with default headers values

func (*DeletePowerCircuitUnauthorized) Error

type GetAllPowerCircuitsBadRequest

type GetAllPowerCircuitsBadRequest struct {
}

GetAllPowerCircuitsBadRequest handles this case with default header values.

Bad Request (A validation exception has occurred.)

func NewGetAllPowerCircuitsBadRequest

func NewGetAllPowerCircuitsBadRequest() *GetAllPowerCircuitsBadRequest

NewGetAllPowerCircuitsBadRequest creates a GetAllPowerCircuitsBadRequest with default headers values

func (*GetAllPowerCircuitsBadRequest) Error

type GetAllPowerCircuitsForbidden

type GetAllPowerCircuitsForbidden struct {
}

GetAllPowerCircuitsForbidden handles this case with default header values.

Forbidden (The resource requested is hidden)

func NewGetAllPowerCircuitsForbidden

func NewGetAllPowerCircuitsForbidden() *GetAllPowerCircuitsForbidden

NewGetAllPowerCircuitsForbidden creates a GetAllPowerCircuitsForbidden with default headers values

func (*GetAllPowerCircuitsForbidden) Error

type GetAllPowerCircuitsGone

type GetAllPowerCircuitsGone struct {
}

GetAllPowerCircuitsGone handles this case with default header values.

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

func NewGetAllPowerCircuitsGone

func NewGetAllPowerCircuitsGone() *GetAllPowerCircuitsGone

NewGetAllPowerCircuitsGone creates a GetAllPowerCircuitsGone with default headers values

func (*GetAllPowerCircuitsGone) Error

func (o *GetAllPowerCircuitsGone) Error() string

type GetAllPowerCircuitsInternalServerError

type GetAllPowerCircuitsInternalServerError struct {
}

GetAllPowerCircuitsInternalServerError 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 NewGetAllPowerCircuitsInternalServerError

func NewGetAllPowerCircuitsInternalServerError() *GetAllPowerCircuitsInternalServerError

NewGetAllPowerCircuitsInternalServerError creates a GetAllPowerCircuitsInternalServerError with default headers values

func (*GetAllPowerCircuitsInternalServerError) Error

type GetAllPowerCircuitsMethodNotAllowed

type GetAllPowerCircuitsMethodNotAllowed struct {
}

GetAllPowerCircuitsMethodNotAllowed handles this case with default header values.

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

func NewGetAllPowerCircuitsMethodNotAllowed

func NewGetAllPowerCircuitsMethodNotAllowed() *GetAllPowerCircuitsMethodNotAllowed

NewGetAllPowerCircuitsMethodNotAllowed creates a GetAllPowerCircuitsMethodNotAllowed with default headers values

func (*GetAllPowerCircuitsMethodNotAllowed) Error

type GetAllPowerCircuitsNotFound

type GetAllPowerCircuitsNotFound struct {
}

GetAllPowerCircuitsNotFound handles this case with default header values.

Not Found (The specified resource could not be found)

func NewGetAllPowerCircuitsNotFound

func NewGetAllPowerCircuitsNotFound() *GetAllPowerCircuitsNotFound

NewGetAllPowerCircuitsNotFound creates a GetAllPowerCircuitsNotFound with default headers values

func (*GetAllPowerCircuitsNotFound) Error

type GetAllPowerCircuitsOK

type GetAllPowerCircuitsOK struct {
	Payload *GetAllPowerCircuitsOKBody
}

GetAllPowerCircuitsOK handles this case with default header values.

The above command returns results like this:

func NewGetAllPowerCircuitsOK

func NewGetAllPowerCircuitsOK() *GetAllPowerCircuitsOK

NewGetAllPowerCircuitsOK creates a GetAllPowerCircuitsOK with default headers values

func (*GetAllPowerCircuitsOK) Error

func (o *GetAllPowerCircuitsOK) Error() string

func (*GetAllPowerCircuitsOK) GetPayload

type GetAllPowerCircuitsOKBody

type GetAllPowerCircuitsOKBody struct {

	// power circuits
	PowerCircuits []*models.GetAllPowerCircuits `json:"power_circuits"`
}

GetAllPowerCircuitsOKBody get all power circuits o k body swagger:model GetAllPowerCircuitsOKBody

func (*GetAllPowerCircuitsOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetAllPowerCircuitsOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetAllPowerCircuitsOKBody) Validate

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

Validate validates this get all power circuits o k body

type GetAllPowerCircuitsParams

type GetAllPowerCircuitsParams struct {

	/*BcpmID
	  Branch Circuit Power Meter ID

	*/
	BcpmID *string
	/*BreakerpanelID
	  Breaker panel ID

	*/
	BreakerpanelID *string

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

GetAllPowerCircuitsParams contains all the parameters to send to the API endpoint for the get all power circuits operation typically these are written to a http.Request

func NewGetAllPowerCircuitsParams

func NewGetAllPowerCircuitsParams() *GetAllPowerCircuitsParams

NewGetAllPowerCircuitsParams creates a new GetAllPowerCircuitsParams object with the default values initialized.

func NewGetAllPowerCircuitsParamsWithContext

func NewGetAllPowerCircuitsParamsWithContext(ctx context.Context) *GetAllPowerCircuitsParams

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

func NewGetAllPowerCircuitsParamsWithHTTPClient

func NewGetAllPowerCircuitsParamsWithHTTPClient(client *http.Client) *GetAllPowerCircuitsParams

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

func NewGetAllPowerCircuitsParamsWithTimeout

func NewGetAllPowerCircuitsParamsWithTimeout(timeout time.Duration) *GetAllPowerCircuitsParams

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

func (*GetAllPowerCircuitsParams) SetBcpmID

func (o *GetAllPowerCircuitsParams) SetBcpmID(bcpmID *string)

SetBcpmID adds the bcpmId to the get all power circuits params

func (*GetAllPowerCircuitsParams) SetBreakerpanelID

func (o *GetAllPowerCircuitsParams) SetBreakerpanelID(breakerpanelID *string)

SetBreakerpanelID adds the breakerpanelId to the get all power circuits params

func (*GetAllPowerCircuitsParams) SetContext

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

SetContext adds the context to the get all power circuits params

func (*GetAllPowerCircuitsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get all power circuits params

func (*GetAllPowerCircuitsParams) SetTimeout

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

SetTimeout adds the timeout to the get all power circuits params

func (*GetAllPowerCircuitsParams) WithBcpmID

WithBcpmID adds the bcpmID to the get all power circuits params

func (*GetAllPowerCircuitsParams) WithBreakerpanelID

func (o *GetAllPowerCircuitsParams) WithBreakerpanelID(breakerpanelID *string) *GetAllPowerCircuitsParams

WithBreakerpanelID adds the breakerpanelID to the get all power circuits params

func (*GetAllPowerCircuitsParams) WithContext

WithContext adds the context to the get all power circuits params

func (*GetAllPowerCircuitsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get all power circuits params

func (*GetAllPowerCircuitsParams) WithTimeout

WithTimeout adds the timeout to the get all power circuits params

func (*GetAllPowerCircuitsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetAllPowerCircuitsReader

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

GetAllPowerCircuitsReader is a Reader for the GetAllPowerCircuits structure.

func (*GetAllPowerCircuitsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetAllPowerCircuitsServiceUnavailable

type GetAllPowerCircuitsServiceUnavailable struct {
}

GetAllPowerCircuitsServiceUnavailable handles this case with default header values.

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

func NewGetAllPowerCircuitsServiceUnavailable

func NewGetAllPowerCircuitsServiceUnavailable() *GetAllPowerCircuitsServiceUnavailable

NewGetAllPowerCircuitsServiceUnavailable creates a GetAllPowerCircuitsServiceUnavailable with default headers values

func (*GetAllPowerCircuitsServiceUnavailable) Error

type GetAllPowerCircuitsUnauthorized

type GetAllPowerCircuitsUnauthorized struct {
}

GetAllPowerCircuitsUnauthorized handles this case with default header values.

Unauthorized (Your credentials suck)

func NewGetAllPowerCircuitsUnauthorized

func NewGetAllPowerCircuitsUnauthorized() *GetAllPowerCircuitsUnauthorized

NewGetAllPowerCircuitsUnauthorized creates a GetAllPowerCircuitsUnauthorized with default headers values

func (*GetAllPowerCircuitsUnauthorized) Error

type PostUpdatePowerCircuitsBadRequest

type PostUpdatePowerCircuitsBadRequest struct {
}

PostUpdatePowerCircuitsBadRequest handles this case with default header values.

Bad Request (A validation exception has occurred.)

func NewPostUpdatePowerCircuitsBadRequest

func NewPostUpdatePowerCircuitsBadRequest() *PostUpdatePowerCircuitsBadRequest

NewPostUpdatePowerCircuitsBadRequest creates a PostUpdatePowerCircuitsBadRequest with default headers values

func (*PostUpdatePowerCircuitsBadRequest) Error

type PostUpdatePowerCircuitsForbidden

type PostUpdatePowerCircuitsForbidden struct {
}

PostUpdatePowerCircuitsForbidden handles this case with default header values.

Forbidden (The resource requested is hidden)

func NewPostUpdatePowerCircuitsForbidden

func NewPostUpdatePowerCircuitsForbidden() *PostUpdatePowerCircuitsForbidden

NewPostUpdatePowerCircuitsForbidden creates a PostUpdatePowerCircuitsForbidden with default headers values

func (*PostUpdatePowerCircuitsForbidden) Error

type PostUpdatePowerCircuitsGone

type PostUpdatePowerCircuitsGone struct {
}

PostUpdatePowerCircuitsGone handles this case with default header values.

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

func NewPostUpdatePowerCircuitsGone

func NewPostUpdatePowerCircuitsGone() *PostUpdatePowerCircuitsGone

NewPostUpdatePowerCircuitsGone creates a PostUpdatePowerCircuitsGone with default headers values

func (*PostUpdatePowerCircuitsGone) Error

type PostUpdatePowerCircuitsInternalServerError

type PostUpdatePowerCircuitsInternalServerError struct {
}

PostUpdatePowerCircuitsInternalServerError 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 NewPostUpdatePowerCircuitsInternalServerError

func NewPostUpdatePowerCircuitsInternalServerError() *PostUpdatePowerCircuitsInternalServerError

NewPostUpdatePowerCircuitsInternalServerError creates a PostUpdatePowerCircuitsInternalServerError with default headers values

func (*PostUpdatePowerCircuitsInternalServerError) Error

type PostUpdatePowerCircuitsMethodNotAllowed

type PostUpdatePowerCircuitsMethodNotAllowed struct {
}

PostUpdatePowerCircuitsMethodNotAllowed handles this case with default header values.

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

func NewPostUpdatePowerCircuitsMethodNotAllowed

func NewPostUpdatePowerCircuitsMethodNotAllowed() *PostUpdatePowerCircuitsMethodNotAllowed

NewPostUpdatePowerCircuitsMethodNotAllowed creates a PostUpdatePowerCircuitsMethodNotAllowed with default headers values

func (*PostUpdatePowerCircuitsMethodNotAllowed) Error

type PostUpdatePowerCircuitsNotFound

type PostUpdatePowerCircuitsNotFound struct {
}

PostUpdatePowerCircuitsNotFound handles this case with default header values.

Not Found (The specified resource could not be found)

func NewPostUpdatePowerCircuitsNotFound

func NewPostUpdatePowerCircuitsNotFound() *PostUpdatePowerCircuitsNotFound

NewPostUpdatePowerCircuitsNotFound creates a PostUpdatePowerCircuitsNotFound with default headers values

func (*PostUpdatePowerCircuitsNotFound) Error

type PostUpdatePowerCircuitsOK

type PostUpdatePowerCircuitsOK struct {
	Payload *PostUpdatePowerCircuitsOKBody
}

PostUpdatePowerCircuitsOK handles this case with default header values.

The above command returns results like this:

func NewPostUpdatePowerCircuitsOK

func NewPostUpdatePowerCircuitsOK() *PostUpdatePowerCircuitsOK

NewPostUpdatePowerCircuitsOK creates a PostUpdatePowerCircuitsOK with default headers values

func (*PostUpdatePowerCircuitsOK) Error

func (o *PostUpdatePowerCircuitsOK) Error() string

func (*PostUpdatePowerCircuitsOK) GetPayload

type PostUpdatePowerCircuitsOKBody

type PostUpdatePowerCircuitsOKBody struct {

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

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

PostUpdatePowerCircuitsOKBody post update power circuits o k body swagger:model PostUpdatePowerCircuitsOKBody

func (*PostUpdatePowerCircuitsOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*PostUpdatePowerCircuitsOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PostUpdatePowerCircuitsOKBody) Validate

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

Validate validates this post update power circuits o k body

type PostUpdatePowerCircuitsParams

type PostUpdatePowerCircuitsParams struct {

	/*Amps
	  The rated amps on this circuit

	*/
	Amps *string
	/*AssetConnectionIds
	  A comma-separated list of asset IDs connected to this circuit

	*/
	AssetConnectionIds *string
	/*BreakerpanelID
	  Breaker panel ID

	*/
	BreakerpanelID string
	/*Connection
	  Description of the connection for the circuit

	*/
	Connection *string
	/*DeviceConnectionIds
	  A comma-separated list of device IDs connected to this circuit

	*/
	DeviceConnectionIds *string
	/*DeviceConnectionNames
	  A comma-separated list of device names connected to this circuit

	*/
	DeviceConnectionNames *string
	/*Label
	  Label of the circuit on the breaker panel

	*/
	Label *string
	/*Number
	  Number of the circuit on the breaker panel

	*/
	Number string
	/*PowerunitConnectionIds
	  A comma-separated list of PU IDs connected to this circuit

	*/
	PowerunitConnectionIds *string
	/*Voltage
	  The rated voltage on this circuit

	*/
	Voltage *string

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

PostUpdatePowerCircuitsParams contains all the parameters to send to the API endpoint for the post update power circuits operation typically these are written to a http.Request

func NewPostUpdatePowerCircuitsParams

func NewPostUpdatePowerCircuitsParams() *PostUpdatePowerCircuitsParams

NewPostUpdatePowerCircuitsParams creates a new PostUpdatePowerCircuitsParams object with the default values initialized.

func NewPostUpdatePowerCircuitsParamsWithContext

func NewPostUpdatePowerCircuitsParamsWithContext(ctx context.Context) *PostUpdatePowerCircuitsParams

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

func NewPostUpdatePowerCircuitsParamsWithHTTPClient

func NewPostUpdatePowerCircuitsParamsWithHTTPClient(client *http.Client) *PostUpdatePowerCircuitsParams

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

func NewPostUpdatePowerCircuitsParamsWithTimeout

func NewPostUpdatePowerCircuitsParamsWithTimeout(timeout time.Duration) *PostUpdatePowerCircuitsParams

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

func (*PostUpdatePowerCircuitsParams) SetAmps

func (o *PostUpdatePowerCircuitsParams) SetAmps(amps *string)

SetAmps adds the amps to the post update power circuits params

func (*PostUpdatePowerCircuitsParams) SetAssetConnectionIds

func (o *PostUpdatePowerCircuitsParams) SetAssetConnectionIds(assetConnectionIds *string)

SetAssetConnectionIds adds the assetConnectionIds to the post update power circuits params

func (*PostUpdatePowerCircuitsParams) SetBreakerpanelID

func (o *PostUpdatePowerCircuitsParams) SetBreakerpanelID(breakerpanelID string)

SetBreakerpanelID adds the breakerpanelId to the post update power circuits params

func (*PostUpdatePowerCircuitsParams) SetConnection

func (o *PostUpdatePowerCircuitsParams) SetConnection(connection *string)

SetConnection adds the connection to the post update power circuits params

func (*PostUpdatePowerCircuitsParams) SetContext

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

SetContext adds the context to the post update power circuits params

func (*PostUpdatePowerCircuitsParams) SetDeviceConnectionIds

func (o *PostUpdatePowerCircuitsParams) SetDeviceConnectionIds(deviceConnectionIds *string)

SetDeviceConnectionIds adds the deviceConnectionIds to the post update power circuits params

func (*PostUpdatePowerCircuitsParams) SetDeviceConnectionNames

func (o *PostUpdatePowerCircuitsParams) SetDeviceConnectionNames(deviceConnectionNames *string)

SetDeviceConnectionNames adds the deviceConnectionNames to the post update power circuits params

func (*PostUpdatePowerCircuitsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post update power circuits params

func (*PostUpdatePowerCircuitsParams) SetLabel

func (o *PostUpdatePowerCircuitsParams) SetLabel(label *string)

SetLabel adds the label to the post update power circuits params

func (*PostUpdatePowerCircuitsParams) SetNumber

func (o *PostUpdatePowerCircuitsParams) SetNumber(number string)

SetNumber adds the number to the post update power circuits params

func (*PostUpdatePowerCircuitsParams) SetPowerunitConnectionIds

func (o *PostUpdatePowerCircuitsParams) SetPowerunitConnectionIds(powerunitConnectionIds *string)

SetPowerunitConnectionIds adds the powerunitConnectionIds to the post update power circuits params

func (*PostUpdatePowerCircuitsParams) SetTimeout

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

SetTimeout adds the timeout to the post update power circuits params

func (*PostUpdatePowerCircuitsParams) SetVoltage

func (o *PostUpdatePowerCircuitsParams) SetVoltage(voltage *string)

SetVoltage adds the voltage to the post update power circuits params

func (*PostUpdatePowerCircuitsParams) WithAmps

WithAmps adds the amps to the post update power circuits params

func (*PostUpdatePowerCircuitsParams) WithAssetConnectionIds

func (o *PostUpdatePowerCircuitsParams) WithAssetConnectionIds(assetConnectionIds *string) *PostUpdatePowerCircuitsParams

WithAssetConnectionIds adds the assetConnectionIds to the post update power circuits params

func (*PostUpdatePowerCircuitsParams) WithBreakerpanelID

func (o *PostUpdatePowerCircuitsParams) WithBreakerpanelID(breakerpanelID string) *PostUpdatePowerCircuitsParams

WithBreakerpanelID adds the breakerpanelID to the post update power circuits params

func (*PostUpdatePowerCircuitsParams) WithConnection

func (o *PostUpdatePowerCircuitsParams) WithConnection(connection *string) *PostUpdatePowerCircuitsParams

WithConnection adds the connection to the post update power circuits params

func (*PostUpdatePowerCircuitsParams) WithContext

WithContext adds the context to the post update power circuits params

func (*PostUpdatePowerCircuitsParams) WithDeviceConnectionIds

func (o *PostUpdatePowerCircuitsParams) WithDeviceConnectionIds(deviceConnectionIds *string) *PostUpdatePowerCircuitsParams

WithDeviceConnectionIds adds the deviceConnectionIds to the post update power circuits params

func (*PostUpdatePowerCircuitsParams) WithDeviceConnectionNames

func (o *PostUpdatePowerCircuitsParams) WithDeviceConnectionNames(deviceConnectionNames *string) *PostUpdatePowerCircuitsParams

WithDeviceConnectionNames adds the deviceConnectionNames to the post update power circuits params

func (*PostUpdatePowerCircuitsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the post update power circuits params

func (*PostUpdatePowerCircuitsParams) WithLabel

WithLabel adds the label to the post update power circuits params

func (*PostUpdatePowerCircuitsParams) WithNumber

WithNumber adds the number to the post update power circuits params

func (*PostUpdatePowerCircuitsParams) WithPowerunitConnectionIds

func (o *PostUpdatePowerCircuitsParams) WithPowerunitConnectionIds(powerunitConnectionIds *string) *PostUpdatePowerCircuitsParams

WithPowerunitConnectionIds adds the powerunitConnectionIds to the post update power circuits params

func (*PostUpdatePowerCircuitsParams) WithTimeout

WithTimeout adds the timeout to the post update power circuits params

func (*PostUpdatePowerCircuitsParams) WithVoltage

WithVoltage adds the voltage to the post update power circuits params

func (*PostUpdatePowerCircuitsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostUpdatePowerCircuitsReader

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

PostUpdatePowerCircuitsReader is a Reader for the PostUpdatePowerCircuits structure.

func (*PostUpdatePowerCircuitsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostUpdatePowerCircuitsServiceUnavailable

type PostUpdatePowerCircuitsServiceUnavailable struct {
}

PostUpdatePowerCircuitsServiceUnavailable handles this case with default header values.

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

func NewPostUpdatePowerCircuitsServiceUnavailable

func NewPostUpdatePowerCircuitsServiceUnavailable() *PostUpdatePowerCircuitsServiceUnavailable

NewPostUpdatePowerCircuitsServiceUnavailable creates a PostUpdatePowerCircuitsServiceUnavailable with default headers values

func (*PostUpdatePowerCircuitsServiceUnavailable) Error

type PostUpdatePowerCircuitsUnauthorized

type PostUpdatePowerCircuitsUnauthorized struct {
}

PostUpdatePowerCircuitsUnauthorized handles this case with default header values.

Unauthorized (Your credentials suck)

func NewPostUpdatePowerCircuitsUnauthorized

func NewPostUpdatePowerCircuitsUnauthorized() *PostUpdatePowerCircuitsUnauthorized

NewPostUpdatePowerCircuitsUnauthorized creates a PostUpdatePowerCircuitsUnauthorized with default headers values

func (*PostUpdatePowerCircuitsUnauthorized) Error

Jump to

Keyboard shortcuts

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