Documentation
¶
Index ¶
- type Client
- func (a *Client) DeletePowerCircuit(params *DeletePowerCircuitParams, authInfo runtime.ClientAuthInfoWriter) (*DeletePowerCircuitOK, error)
- func (a *Client) GetAllPowerCircuits(params *GetAllPowerCircuitsParams, authInfo runtime.ClientAuthInfoWriter) (*GetAllPowerCircuitsOK, error)
- func (a *Client) PostUpdatePowerCircuits(params *PostUpdatePowerCircuitsParams, authInfo runtime.ClientAuthInfoWriter) (*PostUpdatePowerCircuitsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type DeletePowerCircuitBadRequest
- type DeletePowerCircuitForbidden
- type DeletePowerCircuitGone
- type DeletePowerCircuitInternalServerError
- type DeletePowerCircuitMethodNotAllowed
- type DeletePowerCircuitNotFound
- type DeletePowerCircuitOK
- type DeletePowerCircuitOKBody
- type DeletePowerCircuitParams
- func NewDeletePowerCircuitParams() *DeletePowerCircuitParams
- func NewDeletePowerCircuitParamsWithContext(ctx context.Context) *DeletePowerCircuitParams
- func NewDeletePowerCircuitParamsWithHTTPClient(client *http.Client) *DeletePowerCircuitParams
- func NewDeletePowerCircuitParamsWithTimeout(timeout time.Duration) *DeletePowerCircuitParams
- func (o *DeletePowerCircuitParams) SetContext(ctx context.Context)
- func (o *DeletePowerCircuitParams) SetHTTPClient(client *http.Client)
- func (o *DeletePowerCircuitParams) SetID(id int64)
- func (o *DeletePowerCircuitParams) SetTimeout(timeout time.Duration)
- func (o *DeletePowerCircuitParams) WithContext(ctx context.Context) *DeletePowerCircuitParams
- func (o *DeletePowerCircuitParams) WithHTTPClient(client *http.Client) *DeletePowerCircuitParams
- func (o *DeletePowerCircuitParams) WithID(id int64) *DeletePowerCircuitParams
- func (o *DeletePowerCircuitParams) WithTimeout(timeout time.Duration) *DeletePowerCircuitParams
- func (o *DeletePowerCircuitParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeletePowerCircuitReader
- type DeletePowerCircuitServiceUnavailable
- type DeletePowerCircuitUnauthorized
- type GetAllPowerCircuitsBadRequest
- type GetAllPowerCircuitsForbidden
- type GetAllPowerCircuitsGone
- type GetAllPowerCircuitsInternalServerError
- type GetAllPowerCircuitsMethodNotAllowed
- type GetAllPowerCircuitsNotFound
- type GetAllPowerCircuitsOK
- type GetAllPowerCircuitsOKBody
- type GetAllPowerCircuitsParams
- func NewGetAllPowerCircuitsParams() *GetAllPowerCircuitsParams
- func NewGetAllPowerCircuitsParamsWithContext(ctx context.Context) *GetAllPowerCircuitsParams
- func NewGetAllPowerCircuitsParamsWithHTTPClient(client *http.Client) *GetAllPowerCircuitsParams
- func NewGetAllPowerCircuitsParamsWithTimeout(timeout time.Duration) *GetAllPowerCircuitsParams
- func (o *GetAllPowerCircuitsParams) SetBcpmID(bcpmID *string)
- func (o *GetAllPowerCircuitsParams) SetBreakerpanelID(breakerpanelID *string)
- func (o *GetAllPowerCircuitsParams) SetContext(ctx context.Context)
- func (o *GetAllPowerCircuitsParams) SetHTTPClient(client *http.Client)
- func (o *GetAllPowerCircuitsParams) SetTimeout(timeout time.Duration)
- func (o *GetAllPowerCircuitsParams) WithBcpmID(bcpmID *string) *GetAllPowerCircuitsParams
- func (o *GetAllPowerCircuitsParams) WithBreakerpanelID(breakerpanelID *string) *GetAllPowerCircuitsParams
- func (o *GetAllPowerCircuitsParams) WithContext(ctx context.Context) *GetAllPowerCircuitsParams
- func (o *GetAllPowerCircuitsParams) WithHTTPClient(client *http.Client) *GetAllPowerCircuitsParams
- func (o *GetAllPowerCircuitsParams) WithTimeout(timeout time.Duration) *GetAllPowerCircuitsParams
- func (o *GetAllPowerCircuitsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAllPowerCircuitsReader
- type GetAllPowerCircuitsServiceUnavailable
- type GetAllPowerCircuitsUnauthorized
- type PostUpdatePowerCircuitsBadRequest
- type PostUpdatePowerCircuitsForbidden
- type PostUpdatePowerCircuitsGone
- type PostUpdatePowerCircuitsInternalServerError
- type PostUpdatePowerCircuitsMethodNotAllowed
- type PostUpdatePowerCircuitsNotFound
- type PostUpdatePowerCircuitsOK
- type PostUpdatePowerCircuitsOKBody
- type PostUpdatePowerCircuitsParams
- func NewPostUpdatePowerCircuitsParams() *PostUpdatePowerCircuitsParams
- func NewPostUpdatePowerCircuitsParamsWithContext(ctx context.Context) *PostUpdatePowerCircuitsParams
- func NewPostUpdatePowerCircuitsParamsWithHTTPClient(client *http.Client) *PostUpdatePowerCircuitsParams
- func NewPostUpdatePowerCircuitsParamsWithTimeout(timeout time.Duration) *PostUpdatePowerCircuitsParams
- func (o *PostUpdatePowerCircuitsParams) SetAmps(amps *string)
- func (o *PostUpdatePowerCircuitsParams) SetAssetConnectionIds(assetConnectionIds *string)
- func (o *PostUpdatePowerCircuitsParams) SetBreakerpanelID(breakerpanelID string)
- func (o *PostUpdatePowerCircuitsParams) SetConnection(connection *string)
- func (o *PostUpdatePowerCircuitsParams) SetContext(ctx context.Context)
- func (o *PostUpdatePowerCircuitsParams) SetDeviceConnectionIds(deviceConnectionIds *string)
- func (o *PostUpdatePowerCircuitsParams) SetDeviceConnectionNames(deviceConnectionNames *string)
- func (o *PostUpdatePowerCircuitsParams) SetHTTPClient(client *http.Client)
- func (o *PostUpdatePowerCircuitsParams) SetLabel(label *string)
- func (o *PostUpdatePowerCircuitsParams) SetNumber(number string)
- func (o *PostUpdatePowerCircuitsParams) SetPowerunitConnectionIds(powerunitConnectionIds *string)
- func (o *PostUpdatePowerCircuitsParams) SetTimeout(timeout time.Duration)
- func (o *PostUpdatePowerCircuitsParams) SetVoltage(voltage *string)
- func (o *PostUpdatePowerCircuitsParams) WithAmps(amps *string) *PostUpdatePowerCircuitsParams
- func (o *PostUpdatePowerCircuitsParams) WithAssetConnectionIds(assetConnectionIds *string) *PostUpdatePowerCircuitsParams
- func (o *PostUpdatePowerCircuitsParams) WithBreakerpanelID(breakerpanelID string) *PostUpdatePowerCircuitsParams
- func (o *PostUpdatePowerCircuitsParams) WithConnection(connection *string) *PostUpdatePowerCircuitsParams
- func (o *PostUpdatePowerCircuitsParams) WithContext(ctx context.Context) *PostUpdatePowerCircuitsParams
- func (o *PostUpdatePowerCircuitsParams) WithDeviceConnectionIds(deviceConnectionIds *string) *PostUpdatePowerCircuitsParams
- func (o *PostUpdatePowerCircuitsParams) WithDeviceConnectionNames(deviceConnectionNames *string) *PostUpdatePowerCircuitsParams
- func (o *PostUpdatePowerCircuitsParams) WithHTTPClient(client *http.Client) *PostUpdatePowerCircuitsParams
- func (o *PostUpdatePowerCircuitsParams) WithLabel(label *string) *PostUpdatePowerCircuitsParams
- func (o *PostUpdatePowerCircuitsParams) WithNumber(number string) *PostUpdatePowerCircuitsParams
- func (o *PostUpdatePowerCircuitsParams) WithPowerunitConnectionIds(powerunitConnectionIds *string) *PostUpdatePowerCircuitsParams
- func (o *PostUpdatePowerCircuitsParams) WithTimeout(timeout time.Duration) *PostUpdatePowerCircuitsParams
- func (o *PostUpdatePowerCircuitsParams) WithVoltage(voltage *string) *PostUpdatePowerCircuitsParams
- func (o *PostUpdatePowerCircuitsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostUpdatePowerCircuitsReader
- type PostUpdatePowerCircuitsServiceUnavailable
- type PostUpdatePowerCircuitsUnauthorized
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 ¶
func (o *DeletePowerCircuitBadRequest) Error() string
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 ¶
func (o *DeletePowerCircuitForbidden) Error() string
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 ¶
func (o *DeletePowerCircuitInternalServerError) Error() string
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 ¶
func (o *DeletePowerCircuitMethodNotAllowed) Error() string
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 ¶
func (o *DeletePowerCircuitNotFound) Error() string
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 ¶
func (o *DeletePowerCircuitOK) GetPayload() *DeletePowerCircuitOKBody
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
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 ¶
func (o *DeletePowerCircuitParams) WithContext(ctx context.Context) *DeletePowerCircuitParams
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 ¶
func (o *DeletePowerCircuitParams) WithID(id int64) *DeletePowerCircuitParams
WithID adds the id to the delete power circuit params
func (*DeletePowerCircuitParams) WithTimeout ¶
func (o *DeletePowerCircuitParams) WithTimeout(timeout time.Duration) *DeletePowerCircuitParams
WithTimeout adds the timeout to the delete power circuit params
func (*DeletePowerCircuitParams) WriteToRequest ¶
func (o *DeletePowerCircuitParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *DeletePowerCircuitServiceUnavailable) Error() string
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 ¶
func (o *DeletePowerCircuitUnauthorized) Error() string
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 ¶
func (o *GetAllPowerCircuitsBadRequest) Error() string
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 ¶
func (o *GetAllPowerCircuitsForbidden) Error() string
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 ¶
func (o *GetAllPowerCircuitsInternalServerError) Error() string
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 ¶
func (o *GetAllPowerCircuitsMethodNotAllowed) Error() string
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 ¶
func (o *GetAllPowerCircuitsNotFound) Error() string
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 ¶
func (o *GetAllPowerCircuitsOK) GetPayload() *GetAllPowerCircuitsOKBody
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
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 ¶
func (o *GetAllPowerCircuitsParams) WithBcpmID(bcpmID *string) *GetAllPowerCircuitsParams
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 ¶
func (o *GetAllPowerCircuitsParams) WithContext(ctx context.Context) *GetAllPowerCircuitsParams
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 ¶
func (o *GetAllPowerCircuitsParams) WithTimeout(timeout time.Duration) *GetAllPowerCircuitsParams
WithTimeout adds the timeout to the get all power circuits params
func (*GetAllPowerCircuitsParams) WriteToRequest ¶
func (o *GetAllPowerCircuitsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *GetAllPowerCircuitsServiceUnavailable) Error() string
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 ¶
func (o *GetAllPowerCircuitsUnauthorized) Error() string
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 ¶
func (o *PostUpdatePowerCircuitsBadRequest) Error() string
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 ¶
func (o *PostUpdatePowerCircuitsForbidden) Error() string
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 ¶
func (o *PostUpdatePowerCircuitsGone) Error() string
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 ¶
func (o *PostUpdatePowerCircuitsInternalServerError) Error() string
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 ¶
func (o *PostUpdatePowerCircuitsMethodNotAllowed) Error() string
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 ¶
func (o *PostUpdatePowerCircuitsNotFound) Error() string
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 ¶
func (o *PostUpdatePowerCircuitsOK) GetPayload() *PostUpdatePowerCircuitsOKBody
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
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 ¶
func (o *PostUpdatePowerCircuitsParams) WithAmps(amps *string) *PostUpdatePowerCircuitsParams
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 ¶
func (o *PostUpdatePowerCircuitsParams) WithContext(ctx context.Context) *PostUpdatePowerCircuitsParams
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 ¶
func (o *PostUpdatePowerCircuitsParams) WithHTTPClient(client *http.Client) *PostUpdatePowerCircuitsParams
WithHTTPClient adds the HTTPClient to the post update power circuits params
func (*PostUpdatePowerCircuitsParams) WithLabel ¶
func (o *PostUpdatePowerCircuitsParams) WithLabel(label *string) *PostUpdatePowerCircuitsParams
WithLabel adds the label to the post update power circuits params
func (*PostUpdatePowerCircuitsParams) WithNumber ¶
func (o *PostUpdatePowerCircuitsParams) WithNumber(number string) *PostUpdatePowerCircuitsParams
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 ¶
func (o *PostUpdatePowerCircuitsParams) WithTimeout(timeout time.Duration) *PostUpdatePowerCircuitsParams
WithTimeout adds the timeout to the post update power circuits params
func (*PostUpdatePowerCircuitsParams) WithVoltage ¶
func (o *PostUpdatePowerCircuitsParams) WithVoltage(voltage *string) *PostUpdatePowerCircuitsParams
WithVoltage adds the voltage to the post update power circuits params
func (*PostUpdatePowerCircuitsParams) WriteToRequest ¶
func (o *PostUpdatePowerCircuitsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *PostUpdatePowerCircuitsServiceUnavailable) Error() string
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 ¶
func (o *PostUpdatePowerCircuitsUnauthorized) Error() string