inverter_data

package
v0.0.0-...-b500c14 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2025 License: Apache-2.0 Imports: 13 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 inverter data API

func (*Client) GetDataPoints2

func (a *Client) GetDataPoints2(params *GetDataPoints2Params, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDataPoints2OK, error)

GetDataPoints2 gets data points

Displays the entire data packet set from the chosen date

func (*Client) GetEvents

func (a *Client) GetEvents(params *GetEventsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetEventsOK, error)

GetEvents gets events

Retrieves a list of faults that were triggered from the inverter and when they were cleared

func (*Client) GetLatestEnergyData

func (a *Client) GetLatestEnergyData(params *GetLatestEnergyDataParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetLatestEnergyDataOK, error)

GetLatestEnergyData gets latest energy data

Retrieves the latest energy data from the inverter

func (*Client) GetLatestSystemData

func (a *Client) GetLatestSystemData(params *GetLatestSystemDataParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetLatestSystemDataOK, error)

GetLatestSystemData gets latest system data

Retrieves the latest system data from the inverter

func (*Client) RequestInverterData

func (a *Client) RequestInverterData(params *RequestInverterDataParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RequestInverterDataOK, error)
RequestInverterData requests inverter data

Sends a command to the inverter to force it to persist a data point

<aside class="notice">

A successful response is returned if the command was sent successfully but does not necessarily mean that the inverter has persisted a data point.
Whether the inverter has persisted a data point can be confirmed by checking the inverter's last update time

</aside>

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption may be used to customize the behavior of Client methods.

type ClientService

type ClientService interface {
	GetDataPoints2(params *GetDataPoints2Params, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDataPoints2OK, error)

	GetEvents(params *GetEventsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetEventsOK, error)

	GetLatestEnergyData(params *GetLatestEnergyDataParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetLatestEnergyDataOK, error)

	GetLatestSystemData(params *GetLatestSystemDataParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetLatestSystemDataOK, error)

	RequestInverterData(params *RequestInverterDataParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RequestInverterDataOK, 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 inverter data API client.

func NewClientWithBasicAuth

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new inverter data API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.

func NewClientWithBearerToken

func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService

New creates a new inverter data API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.

type GetDataPoints2OK

type GetDataPoints2OK struct {
	Payload *GetDataPoints2OKBody
}

GetDataPoints2OK describes a response with status code 200, with default header values.

GetDataPoints2OK get data points2 o k

func NewGetDataPoints2OK

func NewGetDataPoints2OK() *GetDataPoints2OK

NewGetDataPoints2OK creates a GetDataPoints2OK with default headers values

func (*GetDataPoints2OK) Code

func (o *GetDataPoints2OK) Code() int

Code gets the status code for the get data points2 o k response

func (*GetDataPoints2OK) Error

func (o *GetDataPoints2OK) Error() string

func (*GetDataPoints2OK) GetPayload

func (o *GetDataPoints2OK) GetPayload() *GetDataPoints2OKBody

func (*GetDataPoints2OK) IsClientError

func (o *GetDataPoints2OK) IsClientError() bool

IsClientError returns true when this get data points2 o k response has a 4xx status code

func (*GetDataPoints2OK) IsCode

func (o *GetDataPoints2OK) IsCode(code int) bool

IsCode returns true when this get data points2 o k response a status code equal to that given

func (*GetDataPoints2OK) IsRedirect

func (o *GetDataPoints2OK) IsRedirect() bool

IsRedirect returns true when this get data points2 o k response has a 3xx status code

func (*GetDataPoints2OK) IsServerError

func (o *GetDataPoints2OK) IsServerError() bool

IsServerError returns true when this get data points2 o k response has a 5xx status code

func (*GetDataPoints2OK) IsSuccess

func (o *GetDataPoints2OK) IsSuccess() bool

IsSuccess returns true when this get data points2 o k response has a 2xx status code

func (*GetDataPoints2OK) String

func (o *GetDataPoints2OK) String() string

type GetDataPoints2OKBody

type GetDataPoints2OKBody struct {

	// data
	// Example: [{"is_metered":true,"power":{"battery":{"percent":79,"power":-2289,"temperature":12},"consumption":{"power":22636},"grid":{"current":98.1,"frequency":49.25,"power":19821,"voltage":128.3},"inverter":{"eps_power":24672,"output_frequency":49.69,"output_voltage":144.7,"power":-9476,"temperature":50},"solar":{"arrays":[{"array":1,"current":3.3,"power":491,"voltage":198.6},{"array":2,"current":10,"power":2806,"voltage":170.8}],"power":4703}},"status":"LOST","time":"1997-04-14T05:24:20Z","today":{"ac_charge":8021.5,"battery":{"charge":8691.3,"discharge":4350.4},"consumption":5673.7,"grid":{"export":5384.4,"import":3168.4},"solar":4373.9},"total":{"ac_charge":9568.8,"battery":{"charge":1034.1,"discharge":1034.1},"consumption":7757.1,"grid":{"export":7045.8,"import":4625.8},"solar":4353.3}},{"is_metered":true,"power":{"battery":{"percent":46,"power":2048,"temperature":-25.9},"consumption":{"power":46950},"grid":{"current":98.9,"frequency":50.32,"power":11311,"voltage":199.5},"inverter":{"eps_power":64789,"output_frequency":49.01,"output_voltage":144.2,"power":-1516,"temperature":28.7},"solar":{"arrays":[{"array":1,"current":4.2,"power":1656,"voltage":398.9},{"array":2,"current":14.3,"power":3881,"voltage":449.8}],"power":4065}},"status":"WARNING","time":"1971-09-15T21:08:01Z","today":{"ac_charge":6372.2,"battery":{"charge":300.3,"discharge":9962.2},"consumption":5934.1,"grid":{"export":9864.4,"import":5510.6},"solar":1149.4},"total":{"ac_charge":3627.8,"battery":{"charge":3135.4,"discharge":3135.4},"consumption":2605.4,"grid":{"export":7876.6,"import":4190},"solar":4178.8}}]
	Data []*GetDataPoints2OKBodyDataItems0 `json:"data"`
}

GetDataPoints2OKBody get data points2 o k body // Example: {"data":[{"is_metered":true,"power":{"battery":{"percent":79,"power":-2289,"temperature":12},"consumption":{"power":22636},"grid":{"current":98.1,"frequency":49.25,"power":19821,"voltage":128.3},"inverter":{"eps_power":24672,"output_frequency":49.69,"output_voltage":144.7,"power":-9476,"temperature":50},"solar":{"arrays":[{"array":1,"current":3.3,"power":491,"voltage":198.6},{"array":2,"current":10,"power":2806,"voltage":170.8}],"power":4703}},"status":"LOST","time":"1997-04-14T05:24:20Z","today":{"ac_charge":8021.5,"battery":{"charge":8691.3,"discharge":4350.4},"consumption":5673.7,"grid":{"export":5384.4,"import":3168.4},"solar":4373.9},"total":{"ac_charge":9568.8,"battery":{"charge":1034.1,"discharge":1034.1},"consumption":7757.1,"grid":{"export":7045.8,"import":4625.8},"solar":4353.3}},{"is_metered":true,"power":{"battery":{"percent":46,"power":2048,"temperature":-25.9},"consumption":{"power":46950},"grid":{"current":98.9,"frequency":50.32,"power":11311,"voltage":199.5},"inverter":{"eps_power":64789,"output_frequency":49.01,"output_voltage":144.2,"power":-1516,"temperature":28.7},"solar":{"arrays":[{"array":1,"current":4.2,"power":1656,"voltage":398.9},{"array":2,"current":14.3,"power":3881,"voltage":449.8}],"power":4065}},"status":"WARNING","time":"1971-09-15T21:08:01Z","today":{"ac_charge":6372.2,"battery":{"charge":300.3,"discharge":9962.2},"consumption":5934.1,"grid":{"export":9864.4,"import":5510.6},"solar":1149.4},"total":{"ac_charge":3627.8,"battery":{"charge":3135.4,"discharge":3135.4},"consumption":2605.4,"grid":{"export":7876.6,"import":4190},"solar":4178.8}}]} swagger:model GetDataPoints2OKBody

func (*GetDataPoints2OKBody) ContextValidate

func (o *GetDataPoints2OKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get data points2 o k body based on the context it is used

func (*GetDataPoints2OKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetDataPoints2OKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetDataPoints2OKBody) Validate

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

Validate validates this get data points2 o k body

type GetDataPoints2OKBodyDataItems0

type GetDataPoints2OKBodyDataItems0 struct {

	// is metered
	// Example: true
	IsMetered bool `json:"is_metered,omitempty"`

	// power
	Power *GetDataPoints2OKBodyDataItems0Power `json:"power,omitempty"`

	// status
	// Example: LOST
	Status string `json:"status,omitempty"`

	// time
	// Example: 1997-04-14T05:24:20Z
	// Format: datetime
	Time strfmt.DateTime `json:"time,omitempty"`

	// today
	Today *GetDataPoints2OKBodyDataItems0Today `json:"today,omitempty"`

	// total
	Total *GetDataPoints2OKBodyDataItems0Total `json:"total,omitempty"`
}

GetDataPoints2OKBodyDataItems0 get data points2 o k body data items0 swagger:model GetDataPoints2OKBodyDataItems0

func (*GetDataPoints2OKBodyDataItems0) ContextValidate

func (o *GetDataPoints2OKBodyDataItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get data points2 o k body data items0 based on the context it is used

func (*GetDataPoints2OKBodyDataItems0) MarshalBinary

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

MarshalBinary interface implementation

func (*GetDataPoints2OKBodyDataItems0) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetDataPoints2OKBodyDataItems0) Validate

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

Validate validates this get data points2 o k body data items0

type GetDataPoints2OKBodyDataItems0Power

type GetDataPoints2OKBodyDataItems0Power struct {

	// battery
	Battery *GetDataPoints2OKBodyDataItems0PowerBattery `json:"battery,omitempty"`

	// consumption
	Consumption *GetDataPoints2OKBodyDataItems0PowerConsumption `json:"consumption,omitempty"`

	// grid
	Grid *GetDataPoints2OKBodyDataItems0PowerGrid `json:"grid,omitempty"`

	// inverter
	Inverter *GetDataPoints2OKBodyDataItems0PowerInverter `json:"inverter,omitempty"`

	// solar
	Solar *GetDataPoints2OKBodyDataItems0PowerSolar `json:"solar,omitempty"`
}

GetDataPoints2OKBodyDataItems0Power get data points2 o k body data items0 power swagger:model GetDataPoints2OKBodyDataItems0Power

func (*GetDataPoints2OKBodyDataItems0Power) ContextValidate

func (o *GetDataPoints2OKBodyDataItems0Power) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get data points2 o k body data items0 power based on the context it is used

func (*GetDataPoints2OKBodyDataItems0Power) MarshalBinary

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

MarshalBinary interface implementation

func (*GetDataPoints2OKBodyDataItems0Power) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetDataPoints2OKBodyDataItems0Power) Validate

Validate validates this get data points2 o k body data items0 power

type GetDataPoints2OKBodyDataItems0PowerBattery

type GetDataPoints2OKBodyDataItems0PowerBattery struct {

	// percent
	// Example: 79
	Percent int64 `json:"percent,omitempty"`

	// power
	// Example: -2289
	Power int64 `json:"power,omitempty"`

	// temperature
	// Example: 12
	Temperature float64 `json:"temperature,omitempty"`
}

GetDataPoints2OKBodyDataItems0PowerBattery get data points2 o k body data items0 power battery swagger:model GetDataPoints2OKBodyDataItems0PowerBattery

func (*GetDataPoints2OKBodyDataItems0PowerBattery) ContextValidate

ContextValidate validates this get data points2 o k body data items0 power battery based on context it is used

func (*GetDataPoints2OKBodyDataItems0PowerBattery) MarshalBinary

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

MarshalBinary interface implementation

func (*GetDataPoints2OKBodyDataItems0PowerBattery) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetDataPoints2OKBodyDataItems0PowerBattery) Validate

Validate validates this get data points2 o k body data items0 power battery

type GetDataPoints2OKBodyDataItems0PowerConsumption

type GetDataPoints2OKBodyDataItems0PowerConsumption struct {

	// power
	// Example: 22636
	Power int64 `json:"power,omitempty"`
}

GetDataPoints2OKBodyDataItems0PowerConsumption get data points2 o k body data items0 power consumption swagger:model GetDataPoints2OKBodyDataItems0PowerConsumption

func (*GetDataPoints2OKBodyDataItems0PowerConsumption) ContextValidate

ContextValidate validates this get data points2 o k body data items0 power consumption based on context it is used

func (*GetDataPoints2OKBodyDataItems0PowerConsumption) MarshalBinary

MarshalBinary interface implementation

func (*GetDataPoints2OKBodyDataItems0PowerConsumption) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetDataPoints2OKBodyDataItems0PowerConsumption) Validate

Validate validates this get data points2 o k body data items0 power consumption

type GetDataPoints2OKBodyDataItems0PowerGrid

type GetDataPoints2OKBodyDataItems0PowerGrid struct {

	// current
	// Example: 98.1
	Current float64 `json:"current,omitempty"`

	// frequency
	// Example: 49.25
	Frequency float64 `json:"frequency,omitempty"`

	// power
	// Example: 19821
	Power int64 `json:"power,omitempty"`

	// voltage
	// Example: 128.3
	Voltage float64 `json:"voltage,omitempty"`
}

GetDataPoints2OKBodyDataItems0PowerGrid get data points2 o k body data items0 power grid swagger:model GetDataPoints2OKBodyDataItems0PowerGrid

func (*GetDataPoints2OKBodyDataItems0PowerGrid) ContextValidate

ContextValidate validates this get data points2 o k body data items0 power grid based on context it is used

func (*GetDataPoints2OKBodyDataItems0PowerGrid) MarshalBinary

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

MarshalBinary interface implementation

func (*GetDataPoints2OKBodyDataItems0PowerGrid) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetDataPoints2OKBodyDataItems0PowerGrid) Validate

Validate validates this get data points2 o k body data items0 power grid

type GetDataPoints2OKBodyDataItems0PowerInverter

type GetDataPoints2OKBodyDataItems0PowerInverter struct {

	// eps power
	// Example: 24672
	EpsPower int64 `json:"eps_power,omitempty"`

	// output frequency
	// Example: 49.69
	OutputFrequency float64 `json:"output_frequency,omitempty"`

	// output voltage
	// Example: 144.7
	OutputVoltage float64 `json:"output_voltage,omitempty"`

	// power
	// Example: -9476
	Power int64 `json:"power,omitempty"`

	// temperature
	// Example: 50
	Temperature float64 `json:"temperature,omitempty"`
}

GetDataPoints2OKBodyDataItems0PowerInverter get data points2 o k body data items0 power inverter swagger:model GetDataPoints2OKBodyDataItems0PowerInverter

func (*GetDataPoints2OKBodyDataItems0PowerInverter) ContextValidate

ContextValidate validates this get data points2 o k body data items0 power inverter based on context it is used

func (*GetDataPoints2OKBodyDataItems0PowerInverter) MarshalBinary

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

MarshalBinary interface implementation

func (*GetDataPoints2OKBodyDataItems0PowerInverter) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetDataPoints2OKBodyDataItems0PowerInverter) Validate

Validate validates this get data points2 o k body data items0 power inverter

type GetDataPoints2OKBodyDataItems0PowerSolar

type GetDataPoints2OKBodyDataItems0PowerSolar struct {

	// arrays
	// Example: [{"array":1,"current":3.3,"power":491,"voltage":198.6},{"array":2,"current":10,"power":2806,"voltage":170.8}]
	Arrays []*GetDataPoints2OKBodyDataItems0PowerSolarArraysItems0 `json:"arrays"`

	// power
	// Example: 4703
	Power int64 `json:"power,omitempty"`
}

GetDataPoints2OKBodyDataItems0PowerSolar get data points2 o k body data items0 power solar swagger:model GetDataPoints2OKBodyDataItems0PowerSolar

func (*GetDataPoints2OKBodyDataItems0PowerSolar) ContextValidate

ContextValidate validate this get data points2 o k body data items0 power solar based on the context it is used

func (*GetDataPoints2OKBodyDataItems0PowerSolar) MarshalBinary

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

MarshalBinary interface implementation

func (*GetDataPoints2OKBodyDataItems0PowerSolar) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetDataPoints2OKBodyDataItems0PowerSolar) Validate

Validate validates this get data points2 o k body data items0 power solar

type GetDataPoints2OKBodyDataItems0PowerSolarArraysItems0

type GetDataPoints2OKBodyDataItems0PowerSolarArraysItems0 struct {

	// array
	// Example: 1
	Array int64 `json:"array,omitempty"`

	// current
	// Example: 3.3
	Current float64 `json:"current,omitempty"`

	// power
	// Example: 491
	Power int64 `json:"power,omitempty"`

	// voltage
	// Example: 198.6
	Voltage float64 `json:"voltage,omitempty"`
}

GetDataPoints2OKBodyDataItems0PowerSolarArraysItems0 get data points2 o k body data items0 power solar arrays items0 swagger:model GetDataPoints2OKBodyDataItems0PowerSolarArraysItems0

func (*GetDataPoints2OKBodyDataItems0PowerSolarArraysItems0) ContextValidate

ContextValidate validates this get data points2 o k body data items0 power solar arrays items0 based on context it is used

func (*GetDataPoints2OKBodyDataItems0PowerSolarArraysItems0) MarshalBinary

MarshalBinary interface implementation

func (*GetDataPoints2OKBodyDataItems0PowerSolarArraysItems0) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetDataPoints2OKBodyDataItems0PowerSolarArraysItems0) Validate

Validate validates this get data points2 o k body data items0 power solar arrays items0

type GetDataPoints2OKBodyDataItems0Today

type GetDataPoints2OKBodyDataItems0Today struct {

	// ac charge
	// Example: 8021.5
	AcCharge float64 `json:"ac_charge,omitempty"`

	// battery
	Battery *GetDataPoints2OKBodyDataItems0TodayBattery `json:"battery,omitempty"`

	// consumption
	// Example: 5673.7
	Consumption float64 `json:"consumption,omitempty"`

	// grid
	Grid *GetDataPoints2OKBodyDataItems0TodayGrid `json:"grid,omitempty"`

	// solar
	// Example: 4373.9
	Solar float64 `json:"solar,omitempty"`
}

GetDataPoints2OKBodyDataItems0Today get data points2 o k body data items0 today swagger:model GetDataPoints2OKBodyDataItems0Today

func (*GetDataPoints2OKBodyDataItems0Today) ContextValidate

func (o *GetDataPoints2OKBodyDataItems0Today) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get data points2 o k body data items0 today based on the context it is used

func (*GetDataPoints2OKBodyDataItems0Today) MarshalBinary

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

MarshalBinary interface implementation

func (*GetDataPoints2OKBodyDataItems0Today) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetDataPoints2OKBodyDataItems0Today) Validate

Validate validates this get data points2 o k body data items0 today

type GetDataPoints2OKBodyDataItems0TodayBattery

type GetDataPoints2OKBodyDataItems0TodayBattery struct {

	// charge
	// Example: 8691.3
	Charge float64 `json:"charge,omitempty"`

	// discharge
	// Example: 4350.4
	Discharge float64 `json:"discharge,omitempty"`
}

GetDataPoints2OKBodyDataItems0TodayBattery get data points2 o k body data items0 today battery swagger:model GetDataPoints2OKBodyDataItems0TodayBattery

func (*GetDataPoints2OKBodyDataItems0TodayBattery) ContextValidate

ContextValidate validates this get data points2 o k body data items0 today battery based on context it is used

func (*GetDataPoints2OKBodyDataItems0TodayBattery) MarshalBinary

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

MarshalBinary interface implementation

func (*GetDataPoints2OKBodyDataItems0TodayBattery) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetDataPoints2OKBodyDataItems0TodayBattery) Validate

Validate validates this get data points2 o k body data items0 today battery

type GetDataPoints2OKBodyDataItems0TodayGrid

type GetDataPoints2OKBodyDataItems0TodayGrid struct {

	// export
	// Example: 5384.4
	Export float64 `json:"export,omitempty"`

	// import
	// Example: 3168.4
	Import float64 `json:"import,omitempty"`
}

GetDataPoints2OKBodyDataItems0TodayGrid get data points2 o k body data items0 today grid swagger:model GetDataPoints2OKBodyDataItems0TodayGrid

func (*GetDataPoints2OKBodyDataItems0TodayGrid) ContextValidate

ContextValidate validates this get data points2 o k body data items0 today grid based on context it is used

func (*GetDataPoints2OKBodyDataItems0TodayGrid) MarshalBinary

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

MarshalBinary interface implementation

func (*GetDataPoints2OKBodyDataItems0TodayGrid) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetDataPoints2OKBodyDataItems0TodayGrid) Validate

Validate validates this get data points2 o k body data items0 today grid

type GetDataPoints2OKBodyDataItems0Total

type GetDataPoints2OKBodyDataItems0Total struct {

	// ac charge
	// Example: 9568.8
	AcCharge float64 `json:"ac_charge,omitempty"`

	// battery
	Battery *GetDataPoints2OKBodyDataItems0TotalBattery `json:"battery,omitempty"`

	// consumption
	// Example: 7757.1
	Consumption float64 `json:"consumption,omitempty"`

	// grid
	Grid *GetDataPoints2OKBodyDataItems0TotalGrid `json:"grid,omitempty"`

	// solar
	// Example: 4353.3
	Solar float64 `json:"solar,omitempty"`
}

GetDataPoints2OKBodyDataItems0Total get data points2 o k body data items0 total swagger:model GetDataPoints2OKBodyDataItems0Total

func (*GetDataPoints2OKBodyDataItems0Total) ContextValidate

func (o *GetDataPoints2OKBodyDataItems0Total) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get data points2 o k body data items0 total based on the context it is used

func (*GetDataPoints2OKBodyDataItems0Total) MarshalBinary

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

MarshalBinary interface implementation

func (*GetDataPoints2OKBodyDataItems0Total) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetDataPoints2OKBodyDataItems0Total) Validate

Validate validates this get data points2 o k body data items0 total

type GetDataPoints2OKBodyDataItems0TotalBattery

type GetDataPoints2OKBodyDataItems0TotalBattery struct {

	// charge
	// Example: 1034.1
	Charge float64 `json:"charge,omitempty"`

	// discharge
	// Example: 1034.1
	Discharge float64 `json:"discharge,omitempty"`
}

GetDataPoints2OKBodyDataItems0TotalBattery get data points2 o k body data items0 total battery swagger:model GetDataPoints2OKBodyDataItems0TotalBattery

func (*GetDataPoints2OKBodyDataItems0TotalBattery) ContextValidate

ContextValidate validates this get data points2 o k body data items0 total battery based on context it is used

func (*GetDataPoints2OKBodyDataItems0TotalBattery) MarshalBinary

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

MarshalBinary interface implementation

func (*GetDataPoints2OKBodyDataItems0TotalBattery) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetDataPoints2OKBodyDataItems0TotalBattery) Validate

Validate validates this get data points2 o k body data items0 total battery

type GetDataPoints2OKBodyDataItems0TotalGrid

type GetDataPoints2OKBodyDataItems0TotalGrid struct {

	// export
	// Example: 7045.8
	Export float64 `json:"export,omitempty"`

	// import
	// Example: 4625.8
	Import float64 `json:"import,omitempty"`
}

GetDataPoints2OKBodyDataItems0TotalGrid get data points2 o k body data items0 total grid swagger:model GetDataPoints2OKBodyDataItems0TotalGrid

func (*GetDataPoints2OKBodyDataItems0TotalGrid) ContextValidate

ContextValidate validates this get data points2 o k body data items0 total grid based on context it is used

func (*GetDataPoints2OKBodyDataItems0TotalGrid) MarshalBinary

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

MarshalBinary interface implementation

func (*GetDataPoints2OKBodyDataItems0TotalGrid) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetDataPoints2OKBodyDataItems0TotalGrid) Validate

Validate validates this get data points2 o k body data items0 total grid

type GetDataPoints2Params

type GetDataPoints2Params struct {

	// Authorization.
	Authorization *string

	/* Date.

	   Optional parameter. ISO8601-date required The date to fetch the data. This assumes the date at the system's local time
	*/
	Date string

	/* InverterSerialNumber.

	   The serial number of the inverter.
	*/
	InverterSerialNumber string

	/* Page.

	   Page number to return
	*/
	Page *int64

	/* PageSize.

	   Number of items to return in a page. Defaults to 15
	*/
	PageSize *int64

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

GetDataPoints2Params contains all the parameters to send to the API endpoint

for the get data points2 operation.

Typically these are written to a http.Request.

func NewGetDataPoints2Params

func NewGetDataPoints2Params() *GetDataPoints2Params

NewGetDataPoints2Params creates a new GetDataPoints2Params object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetDataPoints2ParamsWithContext

func NewGetDataPoints2ParamsWithContext(ctx context.Context) *GetDataPoints2Params

NewGetDataPoints2ParamsWithContext creates a new GetDataPoints2Params object with the ability to set a context for a request.

func NewGetDataPoints2ParamsWithHTTPClient

func NewGetDataPoints2ParamsWithHTTPClient(client *http.Client) *GetDataPoints2Params

NewGetDataPoints2ParamsWithHTTPClient creates a new GetDataPoints2Params object with the ability to set a custom HTTPClient for a request.

func NewGetDataPoints2ParamsWithTimeout

func NewGetDataPoints2ParamsWithTimeout(timeout time.Duration) *GetDataPoints2Params

NewGetDataPoints2ParamsWithTimeout creates a new GetDataPoints2Params object with the ability to set a timeout on a request.

func (*GetDataPoints2Params) SetAuthorization

func (o *GetDataPoints2Params) SetAuthorization(authorization *string)

SetAuthorization adds the authorization to the get data points2 params

func (*GetDataPoints2Params) SetContext

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

SetContext adds the context to the get data points2 params

func (*GetDataPoints2Params) SetDate

func (o *GetDataPoints2Params) SetDate(date string)

SetDate adds the date to the get data points2 params

func (*GetDataPoints2Params) SetDefaults

func (o *GetDataPoints2Params) SetDefaults()

SetDefaults hydrates default values in the get data points2 params (not the query body).

All values with no default are reset to their zero value.

func (*GetDataPoints2Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get data points2 params

func (*GetDataPoints2Params) SetInverterSerialNumber

func (o *GetDataPoints2Params) SetInverterSerialNumber(inverterSerialNumber string)

SetInverterSerialNumber adds the inverterSerialNumber to the get data points2 params

func (*GetDataPoints2Params) SetPage

func (o *GetDataPoints2Params) SetPage(page *int64)

SetPage adds the page to the get data points2 params

func (*GetDataPoints2Params) SetPageSize

func (o *GetDataPoints2Params) SetPageSize(pageSize *int64)

SetPageSize adds the pageSize to the get data points2 params

func (*GetDataPoints2Params) SetTimeout

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

SetTimeout adds the timeout to the get data points2 params

func (*GetDataPoints2Params) WithAuthorization

func (o *GetDataPoints2Params) WithAuthorization(authorization *string) *GetDataPoints2Params

WithAuthorization adds the authorization to the get data points2 params

func (*GetDataPoints2Params) WithContext

WithContext adds the context to the get data points2 params

func (*GetDataPoints2Params) WithDate

WithDate adds the date to the get data points2 params

func (*GetDataPoints2Params) WithDefaults

func (o *GetDataPoints2Params) WithDefaults() *GetDataPoints2Params

WithDefaults hydrates default values in the get data points2 params (not the query body).

All values with no default are reset to their zero value.

func (*GetDataPoints2Params) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get data points2 params

func (*GetDataPoints2Params) WithInverterSerialNumber

func (o *GetDataPoints2Params) WithInverterSerialNumber(inverterSerialNumber string) *GetDataPoints2Params

WithInverterSerialNumber adds the inverterSerialNumber to the get data points2 params

func (*GetDataPoints2Params) WithPage

func (o *GetDataPoints2Params) WithPage(page *int64) *GetDataPoints2Params

WithPage adds the page to the get data points2 params

func (*GetDataPoints2Params) WithPageSize

func (o *GetDataPoints2Params) WithPageSize(pageSize *int64) *GetDataPoints2Params

WithPageSize adds the pageSize to the get data points2 params

func (*GetDataPoints2Params) WithTimeout

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

WithTimeout adds the timeout to the get data points2 params

func (*GetDataPoints2Params) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetDataPoints2Reader

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

GetDataPoints2Reader is a Reader for the GetDataPoints2 structure.

func (*GetDataPoints2Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetEventsOK

type GetEventsOK struct {
	Payload *GetEventsOKBody
}

GetEventsOK describes a response with status code 200, with default header values.

GetEventsOK get events o k

func NewGetEventsOK

func NewGetEventsOK() *GetEventsOK

NewGetEventsOK creates a GetEventsOK with default headers values

func (*GetEventsOK) Code

func (o *GetEventsOK) Code() int

Code gets the status code for the get events o k response

func (*GetEventsOK) Error

func (o *GetEventsOK) Error() string

func (*GetEventsOK) GetPayload

func (o *GetEventsOK) GetPayload() *GetEventsOKBody

func (*GetEventsOK) IsClientError

func (o *GetEventsOK) IsClientError() bool

IsClientError returns true when this get events o k response has a 4xx status code

func (*GetEventsOK) IsCode

func (o *GetEventsOK) IsCode(code int) bool

IsCode returns true when this get events o k response a status code equal to that given

func (*GetEventsOK) IsRedirect

func (o *GetEventsOK) IsRedirect() bool

IsRedirect returns true when this get events o k response has a 3xx status code

func (*GetEventsOK) IsServerError

func (o *GetEventsOK) IsServerError() bool

IsServerError returns true when this get events o k response has a 5xx status code

func (*GetEventsOK) IsSuccess

func (o *GetEventsOK) IsSuccess() bool

IsSuccess returns true when this get events o k response has a 2xx status code

func (*GetEventsOK) String

func (o *GetEventsOK) String() string

type GetEventsOKBody

type GetEventsOKBody struct {

	// data
	// Example: [{"end_time":null,"event":"Parallel communication failure","start_time":"2004-04-04T04:33:02Z"},{"end_time":null,"event":"Low battery voltage","start_time":"1975-09-01T05:45:22Z"}]
	Data []*GetEventsOKBodyDataItems0 `json:"data"`
}

GetEventsOKBody get events o k body // Example: {"data":[{"end_time":null,"event":"Parallel communication failure","start_time":"2004-04-04T04:33:02Z"},{"end_time":null,"event":"Low battery voltage","start_time":"1975-09-01T05:45:22Z"}]} swagger:model GetEventsOKBody

func (*GetEventsOKBody) ContextValidate

func (o *GetEventsOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get events o k body based on the context it is used

func (*GetEventsOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetEventsOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetEventsOKBody) Validate

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

Validate validates this get events o k body

type GetEventsOKBodyDataItems0

type GetEventsOKBodyDataItems0 struct {

	// end time
	EndTime string `json:"end_time,omitempty"`

	// event
	// Example: Parallel communication failure
	Event string `json:"event,omitempty"`

	// start time
	// Example: 2004-04-04T04:33:02Z
	StartTime string `json:"start_time,omitempty"`
}

GetEventsOKBodyDataItems0 get events o k body data items0 swagger:model GetEventsOKBodyDataItems0

func (*GetEventsOKBodyDataItems0) ContextValidate

func (o *GetEventsOKBodyDataItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this get events o k body data items0 based on context it is used

func (*GetEventsOKBodyDataItems0) MarshalBinary

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

MarshalBinary interface implementation

func (*GetEventsOKBodyDataItems0) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetEventsOKBodyDataItems0) Validate

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

Validate validates this get events o k body data items0

type GetEventsParams

type GetEventsParams struct {

	// Authorization.
	Authorization *string

	/* Cleared.

	   Whether 'cleared' events should be included with the data. Default is false
	*/
	Cleared *bool

	/* End.

	   Must be a valid date. Must be a date after <code>start</code>.
	*/
	End *string

	/* InverterSerialNumber.

	   The serial number of the inverter.
	*/
	InverterSerialNumber string

	/* Page.

	   Page number to return
	*/
	Page *int64

	/* PageSize.

	   Number of items to return in a page. Defaults to 15
	*/
	PageSize *int64

	/* Start.

	   Must be a valid date. Must be a date before <code>tomorrow</code>.
	*/
	Start *string

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

GetEventsParams contains all the parameters to send to the API endpoint

for the get events operation.

Typically these are written to a http.Request.

func NewGetEventsParams

func NewGetEventsParams() *GetEventsParams

NewGetEventsParams creates a new GetEventsParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetEventsParamsWithContext

func NewGetEventsParamsWithContext(ctx context.Context) *GetEventsParams

NewGetEventsParamsWithContext creates a new GetEventsParams object with the ability to set a context for a request.

func NewGetEventsParamsWithHTTPClient

func NewGetEventsParamsWithHTTPClient(client *http.Client) *GetEventsParams

NewGetEventsParamsWithHTTPClient creates a new GetEventsParams object with the ability to set a custom HTTPClient for a request.

func NewGetEventsParamsWithTimeout

func NewGetEventsParamsWithTimeout(timeout time.Duration) *GetEventsParams

NewGetEventsParamsWithTimeout creates a new GetEventsParams object with the ability to set a timeout on a request.

func (*GetEventsParams) SetAuthorization

func (o *GetEventsParams) SetAuthorization(authorization *string)

SetAuthorization adds the authorization to the get events params

func (*GetEventsParams) SetCleared

func (o *GetEventsParams) SetCleared(cleared *bool)

SetCleared adds the cleared to the get events params

func (*GetEventsParams) SetContext

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

SetContext adds the context to the get events params

func (*GetEventsParams) SetDefaults

func (o *GetEventsParams) SetDefaults()

SetDefaults hydrates default values in the get events params (not the query body).

All values with no default are reset to their zero value.

func (*GetEventsParams) SetEnd

func (o *GetEventsParams) SetEnd(end *string)

SetEnd adds the end to the get events params

func (*GetEventsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get events params

func (*GetEventsParams) SetInverterSerialNumber

func (o *GetEventsParams) SetInverterSerialNumber(inverterSerialNumber string)

SetInverterSerialNumber adds the inverterSerialNumber to the get events params

func (*GetEventsParams) SetPage

func (o *GetEventsParams) SetPage(page *int64)

SetPage adds the page to the get events params

func (*GetEventsParams) SetPageSize

func (o *GetEventsParams) SetPageSize(pageSize *int64)

SetPageSize adds the pageSize to the get events params

func (*GetEventsParams) SetStart

func (o *GetEventsParams) SetStart(start *string)

SetStart adds the start to the get events params

func (*GetEventsParams) SetTimeout

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

SetTimeout adds the timeout to the get events params

func (*GetEventsParams) WithAuthorization

func (o *GetEventsParams) WithAuthorization(authorization *string) *GetEventsParams

WithAuthorization adds the authorization to the get events params

func (*GetEventsParams) WithCleared

func (o *GetEventsParams) WithCleared(cleared *bool) *GetEventsParams

WithCleared adds the cleared to the get events params

func (*GetEventsParams) WithContext

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

WithContext adds the context to the get events params

func (*GetEventsParams) WithDefaults

func (o *GetEventsParams) WithDefaults() *GetEventsParams

WithDefaults hydrates default values in the get events params (not the query body).

All values with no default are reset to their zero value.

func (*GetEventsParams) WithEnd

func (o *GetEventsParams) WithEnd(end *string) *GetEventsParams

WithEnd adds the end to the get events params

func (*GetEventsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get events params

func (*GetEventsParams) WithInverterSerialNumber

func (o *GetEventsParams) WithInverterSerialNumber(inverterSerialNumber string) *GetEventsParams

WithInverterSerialNumber adds the inverterSerialNumber to the get events params

func (*GetEventsParams) WithPage

func (o *GetEventsParams) WithPage(page *int64) *GetEventsParams

WithPage adds the page to the get events params

func (*GetEventsParams) WithPageSize

func (o *GetEventsParams) WithPageSize(pageSize *int64) *GetEventsParams

WithPageSize adds the pageSize to the get events params

func (*GetEventsParams) WithStart

func (o *GetEventsParams) WithStart(start *string) *GetEventsParams

WithStart adds the start to the get events params

func (*GetEventsParams) WithTimeout

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

WithTimeout adds the timeout to the get events params

func (*GetEventsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetEventsReader

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

GetEventsReader is a Reader for the GetEvents structure.

func (*GetEventsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetLatestEnergyDataOK

type GetLatestEnergyDataOK struct {
	Payload *GetLatestEnergyDataOKBody
}

GetLatestEnergyDataOK describes a response with status code 200, with default header values.

GetLatestEnergyDataOK get latest energy data o k

func NewGetLatestEnergyDataOK

func NewGetLatestEnergyDataOK() *GetLatestEnergyDataOK

NewGetLatestEnergyDataOK creates a GetLatestEnergyDataOK with default headers values

func (*GetLatestEnergyDataOK) Code

func (o *GetLatestEnergyDataOK) Code() int

Code gets the status code for the get latest energy data o k response

func (*GetLatestEnergyDataOK) Error

func (o *GetLatestEnergyDataOK) Error() string

func (*GetLatestEnergyDataOK) GetPayload

func (*GetLatestEnergyDataOK) IsClientError

func (o *GetLatestEnergyDataOK) IsClientError() bool

IsClientError returns true when this get latest energy data o k response has a 4xx status code

func (*GetLatestEnergyDataOK) IsCode

func (o *GetLatestEnergyDataOK) IsCode(code int) bool

IsCode returns true when this get latest energy data o k response a status code equal to that given

func (*GetLatestEnergyDataOK) IsRedirect

func (o *GetLatestEnergyDataOK) IsRedirect() bool

IsRedirect returns true when this get latest energy data o k response has a 3xx status code

func (*GetLatestEnergyDataOK) IsServerError

func (o *GetLatestEnergyDataOK) IsServerError() bool

IsServerError returns true when this get latest energy data o k response has a 5xx status code

func (*GetLatestEnergyDataOK) IsSuccess

func (o *GetLatestEnergyDataOK) IsSuccess() bool

IsSuccess returns true when this get latest energy data o k response has a 2xx status code

func (*GetLatestEnergyDataOK) String

func (o *GetLatestEnergyDataOK) String() string

type GetLatestEnergyDataOKBody

type GetLatestEnergyDataOKBody struct {

	// data
	Data *GetLatestEnergyDataOKBodyData `json:"data,omitempty"`
}

GetLatestEnergyDataOKBody get latest energy data o k body // Example: {"data":{"is_metered":true,"time":"1992-09-29T14:37:47Z","today":{"ac_charge":30996.9,"battery":{"charge":91852.3,"discharge":65419.6},"consumption":938.6,"grid":{"export":4294.6,"import":9880.9},"solar":5690.3},"total":{"ac_charge":26925.1,"battery":{"charge":8763.7,"discharge":8763.7},"consumption":66779,"grid":{"export":5659,"import":184.9},"solar":57462.4}}} swagger:model GetLatestEnergyDataOKBody

func (*GetLatestEnergyDataOKBody) ContextValidate

func (o *GetLatestEnergyDataOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get latest energy data o k body based on the context it is used

func (*GetLatestEnergyDataOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetLatestEnergyDataOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetLatestEnergyDataOKBody) Validate

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

Validate validates this get latest energy data o k body

type GetLatestEnergyDataOKBodyData

type GetLatestEnergyDataOKBodyData struct {

	// is metered
	// Example: true
	IsMetered bool `json:"is_metered,omitempty"`

	// time
	// Example: 1992-09-29T14:37:47Z
	Time string `json:"time,omitempty"`

	// today
	Today *GetLatestEnergyDataOKBodyDataToday `json:"today,omitempty"`

	// total
	Total *GetLatestEnergyDataOKBodyDataTotal `json:"total,omitempty"`
}

GetLatestEnergyDataOKBodyData get latest energy data o k body data swagger:model GetLatestEnergyDataOKBodyData

func (*GetLatestEnergyDataOKBodyData) ContextValidate

func (o *GetLatestEnergyDataOKBodyData) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get latest energy data o k body data based on the context it is used

func (*GetLatestEnergyDataOKBodyData) MarshalBinary

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

MarshalBinary interface implementation

func (*GetLatestEnergyDataOKBodyData) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetLatestEnergyDataOKBodyData) Validate

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

Validate validates this get latest energy data o k body data

type GetLatestEnergyDataOKBodyDataToday

type GetLatestEnergyDataOKBodyDataToday struct {

	// ac charge
	// Example: 30996.9
	AcCharge float64 `json:"ac_charge,omitempty"`

	// battery
	Battery *GetLatestEnergyDataOKBodyDataTodayBattery `json:"battery,omitempty"`

	// consumption
	// Example: 938.6
	Consumption float64 `json:"consumption,omitempty"`

	// grid
	Grid *GetLatestEnergyDataOKBodyDataTodayGrid `json:"grid,omitempty"`

	// solar
	// Example: 5690.3
	Solar float64 `json:"solar,omitempty"`
}

GetLatestEnergyDataOKBodyDataToday get latest energy data o k body data today swagger:model GetLatestEnergyDataOKBodyDataToday

func (*GetLatestEnergyDataOKBodyDataToday) ContextValidate

func (o *GetLatestEnergyDataOKBodyDataToday) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get latest energy data o k body data today based on the context it is used

func (*GetLatestEnergyDataOKBodyDataToday) MarshalBinary

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

MarshalBinary interface implementation

func (*GetLatestEnergyDataOKBodyDataToday) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetLatestEnergyDataOKBodyDataToday) Validate

Validate validates this get latest energy data o k body data today

type GetLatestEnergyDataOKBodyDataTodayBattery

type GetLatestEnergyDataOKBodyDataTodayBattery struct {

	// charge
	// Example: 91852.3
	Charge float64 `json:"charge,omitempty"`

	// discharge
	// Example: 65419.6
	Discharge float64 `json:"discharge,omitempty"`
}

GetLatestEnergyDataOKBodyDataTodayBattery get latest energy data o k body data today battery swagger:model GetLatestEnergyDataOKBodyDataTodayBattery

func (*GetLatestEnergyDataOKBodyDataTodayBattery) ContextValidate

ContextValidate validates this get latest energy data o k body data today battery based on context it is used

func (*GetLatestEnergyDataOKBodyDataTodayBattery) MarshalBinary

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

MarshalBinary interface implementation

func (*GetLatestEnergyDataOKBodyDataTodayBattery) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetLatestEnergyDataOKBodyDataTodayBattery) Validate

Validate validates this get latest energy data o k body data today battery

type GetLatestEnergyDataOKBodyDataTodayGrid

type GetLatestEnergyDataOKBodyDataTodayGrid struct {

	// export
	// Example: 4294.6
	Export float64 `json:"export,omitempty"`

	// import
	// Example: 9880.9
	Import float64 `json:"import,omitempty"`
}

GetLatestEnergyDataOKBodyDataTodayGrid get latest energy data o k body data today grid swagger:model GetLatestEnergyDataOKBodyDataTodayGrid

func (*GetLatestEnergyDataOKBodyDataTodayGrid) ContextValidate

ContextValidate validates this get latest energy data o k body data today grid based on context it is used

func (*GetLatestEnergyDataOKBodyDataTodayGrid) MarshalBinary

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

MarshalBinary interface implementation

func (*GetLatestEnergyDataOKBodyDataTodayGrid) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetLatestEnergyDataOKBodyDataTodayGrid) Validate

Validate validates this get latest energy data o k body data today grid

type GetLatestEnergyDataOKBodyDataTotal

type GetLatestEnergyDataOKBodyDataTotal struct {

	// ac charge
	// Example: 26925.1
	AcCharge float64 `json:"ac_charge,omitempty"`

	// battery
	Battery *GetLatestEnergyDataOKBodyDataTotalBattery `json:"battery,omitempty"`

	// consumption
	// Example: 66779
	Consumption int64 `json:"consumption,omitempty"`

	// grid
	Grid *GetLatestEnergyDataOKBodyDataTotalGrid `json:"grid,omitempty"`

	// solar
	// Example: 57462.4
	Solar float64 `json:"solar,omitempty"`
}

GetLatestEnergyDataOKBodyDataTotal get latest energy data o k body data total swagger:model GetLatestEnergyDataOKBodyDataTotal

func (*GetLatestEnergyDataOKBodyDataTotal) ContextValidate

func (o *GetLatestEnergyDataOKBodyDataTotal) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get latest energy data o k body data total based on the context it is used

func (*GetLatestEnergyDataOKBodyDataTotal) MarshalBinary

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

MarshalBinary interface implementation

func (*GetLatestEnergyDataOKBodyDataTotal) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetLatestEnergyDataOKBodyDataTotal) Validate

Validate validates this get latest energy data o k body data total

type GetLatestEnergyDataOKBodyDataTotalBattery

type GetLatestEnergyDataOKBodyDataTotalBattery struct {

	// charge
	// Example: 8763.7
	Charge float64 `json:"charge,omitempty"`

	// discharge
	// Example: 8763.7
	Discharge float64 `json:"discharge,omitempty"`
}

GetLatestEnergyDataOKBodyDataTotalBattery get latest energy data o k body data total battery swagger:model GetLatestEnergyDataOKBodyDataTotalBattery

func (*GetLatestEnergyDataOKBodyDataTotalBattery) ContextValidate

ContextValidate validates this get latest energy data o k body data total battery based on context it is used

func (*GetLatestEnergyDataOKBodyDataTotalBattery) MarshalBinary

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

MarshalBinary interface implementation

func (*GetLatestEnergyDataOKBodyDataTotalBattery) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetLatestEnergyDataOKBodyDataTotalBattery) Validate

Validate validates this get latest energy data o k body data total battery

type GetLatestEnergyDataOKBodyDataTotalGrid

type GetLatestEnergyDataOKBodyDataTotalGrid struct {

	// export
	// Example: 5659
	Export int64 `json:"export,omitempty"`

	// import
	// Example: 184.9
	Import float64 `json:"import,omitempty"`
}

GetLatestEnergyDataOKBodyDataTotalGrid get latest energy data o k body data total grid swagger:model GetLatestEnergyDataOKBodyDataTotalGrid

func (*GetLatestEnergyDataOKBodyDataTotalGrid) ContextValidate

ContextValidate validates this get latest energy data o k body data total grid based on context it is used

func (*GetLatestEnergyDataOKBodyDataTotalGrid) MarshalBinary

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

MarshalBinary interface implementation

func (*GetLatestEnergyDataOKBodyDataTotalGrid) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetLatestEnergyDataOKBodyDataTotalGrid) Validate

Validate validates this get latest energy data o k body data total grid

type GetLatestEnergyDataParams

type GetLatestEnergyDataParams struct {

	// Authorization.
	Authorization *string

	/* InverterSerialNumber.

	   The serial number of the inverter.
	*/
	InverterSerialNumber string

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

GetLatestEnergyDataParams contains all the parameters to send to the API endpoint

for the get latest energy data operation.

Typically these are written to a http.Request.

func NewGetLatestEnergyDataParams

func NewGetLatestEnergyDataParams() *GetLatestEnergyDataParams

NewGetLatestEnergyDataParams creates a new GetLatestEnergyDataParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetLatestEnergyDataParamsWithContext

func NewGetLatestEnergyDataParamsWithContext(ctx context.Context) *GetLatestEnergyDataParams

NewGetLatestEnergyDataParamsWithContext creates a new GetLatestEnergyDataParams object with the ability to set a context for a request.

func NewGetLatestEnergyDataParamsWithHTTPClient

func NewGetLatestEnergyDataParamsWithHTTPClient(client *http.Client) *GetLatestEnergyDataParams

NewGetLatestEnergyDataParamsWithHTTPClient creates a new GetLatestEnergyDataParams object with the ability to set a custom HTTPClient for a request.

func NewGetLatestEnergyDataParamsWithTimeout

func NewGetLatestEnergyDataParamsWithTimeout(timeout time.Duration) *GetLatestEnergyDataParams

NewGetLatestEnergyDataParamsWithTimeout creates a new GetLatestEnergyDataParams object with the ability to set a timeout on a request.

func (*GetLatestEnergyDataParams) SetAuthorization

func (o *GetLatestEnergyDataParams) SetAuthorization(authorization *string)

SetAuthorization adds the authorization to the get latest energy data params

func (*GetLatestEnergyDataParams) SetContext

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

SetContext adds the context to the get latest energy data params

func (*GetLatestEnergyDataParams) SetDefaults

func (o *GetLatestEnergyDataParams) SetDefaults()

SetDefaults hydrates default values in the get latest energy data params (not the query body).

All values with no default are reset to their zero value.

func (*GetLatestEnergyDataParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get latest energy data params

func (*GetLatestEnergyDataParams) SetInverterSerialNumber

func (o *GetLatestEnergyDataParams) SetInverterSerialNumber(inverterSerialNumber string)

SetInverterSerialNumber adds the inverterSerialNumber to the get latest energy data params

func (*GetLatestEnergyDataParams) SetTimeout

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

SetTimeout adds the timeout to the get latest energy data params

func (*GetLatestEnergyDataParams) WithAuthorization

func (o *GetLatestEnergyDataParams) WithAuthorization(authorization *string) *GetLatestEnergyDataParams

WithAuthorization adds the authorization to the get latest energy data params

func (*GetLatestEnergyDataParams) WithContext

WithContext adds the context to the get latest energy data params

func (*GetLatestEnergyDataParams) WithDefaults

WithDefaults hydrates default values in the get latest energy data params (not the query body).

All values with no default are reset to their zero value.

func (*GetLatestEnergyDataParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get latest energy data params

func (*GetLatestEnergyDataParams) WithInverterSerialNumber

func (o *GetLatestEnergyDataParams) WithInverterSerialNumber(inverterSerialNumber string) *GetLatestEnergyDataParams

WithInverterSerialNumber adds the inverterSerialNumber to the get latest energy data params

func (*GetLatestEnergyDataParams) WithTimeout

WithTimeout adds the timeout to the get latest energy data params

func (*GetLatestEnergyDataParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetLatestEnergyDataReader

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

GetLatestEnergyDataReader is a Reader for the GetLatestEnergyData structure.

func (*GetLatestEnergyDataReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetLatestSystemDataOK

type GetLatestSystemDataOK struct {
	Payload *GetLatestSystemDataOKBody
}

GetLatestSystemDataOK describes a response with status code 200, with default header values.

GetLatestSystemDataOK get latest system data o k

func NewGetLatestSystemDataOK

func NewGetLatestSystemDataOK() *GetLatestSystemDataOK

NewGetLatestSystemDataOK creates a GetLatestSystemDataOK with default headers values

func (*GetLatestSystemDataOK) Code

func (o *GetLatestSystemDataOK) Code() int

Code gets the status code for the get latest system data o k response

func (*GetLatestSystemDataOK) Error

func (o *GetLatestSystemDataOK) Error() string

func (*GetLatestSystemDataOK) GetPayload

func (*GetLatestSystemDataOK) IsClientError

func (o *GetLatestSystemDataOK) IsClientError() bool

IsClientError returns true when this get latest system data o k response has a 4xx status code

func (*GetLatestSystemDataOK) IsCode

func (o *GetLatestSystemDataOK) IsCode(code int) bool

IsCode returns true when this get latest system data o k response a status code equal to that given

func (*GetLatestSystemDataOK) IsRedirect

func (o *GetLatestSystemDataOK) IsRedirect() bool

IsRedirect returns true when this get latest system data o k response has a 3xx status code

func (*GetLatestSystemDataOK) IsServerError

func (o *GetLatestSystemDataOK) IsServerError() bool

IsServerError returns true when this get latest system data o k response has a 5xx status code

func (*GetLatestSystemDataOK) IsSuccess

func (o *GetLatestSystemDataOK) IsSuccess() bool

IsSuccess returns true when this get latest system data o k response has a 2xx status code

func (*GetLatestSystemDataOK) String

func (o *GetLatestSystemDataOK) String() string

type GetLatestSystemDataOKBody

type GetLatestSystemDataOKBody struct {

	// data
	Data *GetLatestSystemDataOKBodyData `json:"data,omitempty"`
}

GetLatestSystemDataOKBody get latest system data o k body // Example: {"data":{"battery":{"percent":83,"power":-2484,"temperature":85},"consumption":38674,"grid":{"current":-4688.5,"frequency":259.5,"power":-3270,"voltage":2155.3},"inverter":{"eps_power":224,"output_frequency":49.28,"output_voltage":222.1,"power":37241,"temperature":80},"solar":{"arrays":[{"array":1,"current":918.5,"power":881,"voltage":369.8},{"array":2,"current":654.2,"power":563,"voltage":413.1}],"power":1526},"status":"Normal","time":"2007-01-13T05:46:09Z"}} swagger:model GetLatestSystemDataOKBody

func (*GetLatestSystemDataOKBody) ContextValidate

func (o *GetLatestSystemDataOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get latest system data o k body based on the context it is used

func (*GetLatestSystemDataOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetLatestSystemDataOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetLatestSystemDataOKBody) Validate

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

Validate validates this get latest system data o k body

type GetLatestSystemDataOKBodyData

type GetLatestSystemDataOKBodyData struct {

	// battery
	Battery *GetLatestSystemDataOKBodyDataBattery `json:"battery,omitempty"`

	// consumption
	// Example: 38674
	Consumption int64 `json:"consumption,omitempty"`

	// grid
	Grid *GetLatestSystemDataOKBodyDataGrid `json:"grid,omitempty"`

	// inverter
	Inverter *GetLatestSystemDataOKBodyDataInverter `json:"inverter,omitempty"`

	// solar
	Solar *GetLatestSystemDataOKBodyDataSolar `json:"solar,omitempty"`

	// status
	// Example: Normal
	Status string `json:"status,omitempty"`

	// time
	// Example: 2007-01-13T05:46:09Z
	Time string `json:"time,omitempty"`
}

GetLatestSystemDataOKBodyData get latest system data o k body data swagger:model GetLatestSystemDataOKBodyData

func (*GetLatestSystemDataOKBodyData) ContextValidate

func (o *GetLatestSystemDataOKBodyData) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get latest system data o k body data based on the context it is used

func (*GetLatestSystemDataOKBodyData) MarshalBinary

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

MarshalBinary interface implementation

func (*GetLatestSystemDataOKBodyData) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetLatestSystemDataOKBodyData) Validate

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

Validate validates this get latest system data o k body data

type GetLatestSystemDataOKBodyDataBattery

type GetLatestSystemDataOKBodyDataBattery struct {

	// percent
	// Example: 83
	Percent int64 `json:"percent,omitempty"`

	// power
	// Example: -2484
	Power int64 `json:"power,omitempty"`

	// temperature
	// Example: 85
	Temperature float64 `json:"temperature,omitempty"`
}

GetLatestSystemDataOKBodyDataBattery get latest system data o k body data battery swagger:model GetLatestSystemDataOKBodyDataBattery

func (*GetLatestSystemDataOKBodyDataBattery) ContextValidate

func (o *GetLatestSystemDataOKBodyDataBattery) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this get latest system data o k body data battery based on context it is used

func (*GetLatestSystemDataOKBodyDataBattery) MarshalBinary

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

MarshalBinary interface implementation

func (*GetLatestSystemDataOKBodyDataBattery) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetLatestSystemDataOKBodyDataBattery) Validate

Validate validates this get latest system data o k body data battery

type GetLatestSystemDataOKBodyDataGrid

type GetLatestSystemDataOKBodyDataGrid struct {

	// current
	// Example: -4688.5
	Current float64 `json:"current,omitempty"`

	// frequency
	// Example: 259.5
	Frequency float64 `json:"frequency,omitempty"`

	// power
	// Example: -3270
	Power int64 `json:"power,omitempty"`

	// voltage
	// Example: 2155.3
	Voltage float64 `json:"voltage,omitempty"`
}

GetLatestSystemDataOKBodyDataGrid get latest system data o k body data grid swagger:model GetLatestSystemDataOKBodyDataGrid

func (*GetLatestSystemDataOKBodyDataGrid) ContextValidate

func (o *GetLatestSystemDataOKBodyDataGrid) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this get latest system data o k body data grid based on context it is used

func (*GetLatestSystemDataOKBodyDataGrid) MarshalBinary

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

MarshalBinary interface implementation

func (*GetLatestSystemDataOKBodyDataGrid) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetLatestSystemDataOKBodyDataGrid) Validate

Validate validates this get latest system data o k body data grid

type GetLatestSystemDataOKBodyDataInverter

type GetLatestSystemDataOKBodyDataInverter struct {

	// eps power
	// Example: 224
	EpsPower int64 `json:"eps_power,omitempty"`

	// output frequency
	// Example: 49.28
	OutputFrequency float64 `json:"output_frequency,omitempty"`

	// output voltage
	// Example: 222.1
	OutputVoltage float64 `json:"output_voltage,omitempty"`

	// power
	// Example: 37241
	Power int64 `json:"power,omitempty"`

	// temperature
	// Example: 80
	Temperature float64 `json:"temperature,omitempty"`
}

GetLatestSystemDataOKBodyDataInverter get latest system data o k body data inverter swagger:model GetLatestSystemDataOKBodyDataInverter

func (*GetLatestSystemDataOKBodyDataInverter) ContextValidate

func (o *GetLatestSystemDataOKBodyDataInverter) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this get latest system data o k body data inverter based on context it is used

func (*GetLatestSystemDataOKBodyDataInverter) MarshalBinary

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

MarshalBinary interface implementation

func (*GetLatestSystemDataOKBodyDataInverter) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetLatestSystemDataOKBodyDataInverter) Validate

Validate validates this get latest system data o k body data inverter

type GetLatestSystemDataOKBodyDataSolar

type GetLatestSystemDataOKBodyDataSolar struct {

	// arrays
	// Example: [{"array":1,"current":918.5,"power":881,"voltage":369.8},{"array":2,"current":654.2,"power":563,"voltage":413.1}]
	Arrays []*GetLatestSystemDataOKBodyDataSolarArraysItems0 `json:"arrays"`

	// power
	// Example: 1526
	Power int64 `json:"power,omitempty"`
}

GetLatestSystemDataOKBodyDataSolar get latest system data o k body data solar swagger:model GetLatestSystemDataOKBodyDataSolar

func (*GetLatestSystemDataOKBodyDataSolar) ContextValidate

func (o *GetLatestSystemDataOKBodyDataSolar) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get latest system data o k body data solar based on the context it is used

func (*GetLatestSystemDataOKBodyDataSolar) MarshalBinary

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

MarshalBinary interface implementation

func (*GetLatestSystemDataOKBodyDataSolar) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetLatestSystemDataOKBodyDataSolar) Validate

Validate validates this get latest system data o k body data solar

type GetLatestSystemDataOKBodyDataSolarArraysItems0

type GetLatestSystemDataOKBodyDataSolarArraysItems0 struct {

	// array
	// Example: 1
	Array int64 `json:"array,omitempty"`

	// current
	// Example: 918.5
	Current float64 `json:"current,omitempty"`

	// power
	// Example: 881
	Power int64 `json:"power,omitempty"`

	// voltage
	// Example: 369.8
	Voltage float64 `json:"voltage,omitempty"`
}

GetLatestSystemDataOKBodyDataSolarArraysItems0 get latest system data o k body data solar arrays items0 swagger:model GetLatestSystemDataOKBodyDataSolarArraysItems0

func (*GetLatestSystemDataOKBodyDataSolarArraysItems0) ContextValidate

ContextValidate validates this get latest system data o k body data solar arrays items0 based on context it is used

func (*GetLatestSystemDataOKBodyDataSolarArraysItems0) MarshalBinary

MarshalBinary interface implementation

func (*GetLatestSystemDataOKBodyDataSolarArraysItems0) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetLatestSystemDataOKBodyDataSolarArraysItems0) Validate

Validate validates this get latest system data o k body data solar arrays items0

type GetLatestSystemDataParams

type GetLatestSystemDataParams struct {

	// Authorization.
	Authorization *string

	/* InverterSerialNumber.

	   The serial number of the inverter.
	*/
	InverterSerialNumber string

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

GetLatestSystemDataParams contains all the parameters to send to the API endpoint

for the get latest system data operation.

Typically these are written to a http.Request.

func NewGetLatestSystemDataParams

func NewGetLatestSystemDataParams() *GetLatestSystemDataParams

NewGetLatestSystemDataParams creates a new GetLatestSystemDataParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetLatestSystemDataParamsWithContext

func NewGetLatestSystemDataParamsWithContext(ctx context.Context) *GetLatestSystemDataParams

NewGetLatestSystemDataParamsWithContext creates a new GetLatestSystemDataParams object with the ability to set a context for a request.

func NewGetLatestSystemDataParamsWithHTTPClient

func NewGetLatestSystemDataParamsWithHTTPClient(client *http.Client) *GetLatestSystemDataParams

NewGetLatestSystemDataParamsWithHTTPClient creates a new GetLatestSystemDataParams object with the ability to set a custom HTTPClient for a request.

func NewGetLatestSystemDataParamsWithTimeout

func NewGetLatestSystemDataParamsWithTimeout(timeout time.Duration) *GetLatestSystemDataParams

NewGetLatestSystemDataParamsWithTimeout creates a new GetLatestSystemDataParams object with the ability to set a timeout on a request.

func (*GetLatestSystemDataParams) SetAuthorization

func (o *GetLatestSystemDataParams) SetAuthorization(authorization *string)

SetAuthorization adds the authorization to the get latest system data params

func (*GetLatestSystemDataParams) SetContext

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

SetContext adds the context to the get latest system data params

func (*GetLatestSystemDataParams) SetDefaults

func (o *GetLatestSystemDataParams) SetDefaults()

SetDefaults hydrates default values in the get latest system data params (not the query body).

All values with no default are reset to their zero value.

func (*GetLatestSystemDataParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get latest system data params

func (*GetLatestSystemDataParams) SetInverterSerialNumber

func (o *GetLatestSystemDataParams) SetInverterSerialNumber(inverterSerialNumber string)

SetInverterSerialNumber adds the inverterSerialNumber to the get latest system data params

func (*GetLatestSystemDataParams) SetTimeout

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

SetTimeout adds the timeout to the get latest system data params

func (*GetLatestSystemDataParams) WithAuthorization

func (o *GetLatestSystemDataParams) WithAuthorization(authorization *string) *GetLatestSystemDataParams

WithAuthorization adds the authorization to the get latest system data params

func (*GetLatestSystemDataParams) WithContext

WithContext adds the context to the get latest system data params

func (*GetLatestSystemDataParams) WithDefaults

WithDefaults hydrates default values in the get latest system data params (not the query body).

All values with no default are reset to their zero value.

func (*GetLatestSystemDataParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get latest system data params

func (*GetLatestSystemDataParams) WithInverterSerialNumber

func (o *GetLatestSystemDataParams) WithInverterSerialNumber(inverterSerialNumber string) *GetLatestSystemDataParams

WithInverterSerialNumber adds the inverterSerialNumber to the get latest system data params

func (*GetLatestSystemDataParams) WithTimeout

WithTimeout adds the timeout to the get latest system data params

func (*GetLatestSystemDataParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetLatestSystemDataReader

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

GetLatestSystemDataReader is a Reader for the GetLatestSystemData structure.

func (*GetLatestSystemDataReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RequestInverterDataOK

type RequestInverterDataOK struct {
	Payload *RequestInverterDataOKBody
}

RequestInverterDataOK describes a response with status code 200, with default header values.

failure

func NewRequestInverterDataOK

func NewRequestInverterDataOK() *RequestInverterDataOK

NewRequestInverterDataOK creates a RequestInverterDataOK with default headers values

func (*RequestInverterDataOK) Code

func (o *RequestInverterDataOK) Code() int

Code gets the status code for the request inverter data o k response

func (*RequestInverterDataOK) Error

func (o *RequestInverterDataOK) Error() string

func (*RequestInverterDataOK) GetPayload

func (*RequestInverterDataOK) IsClientError

func (o *RequestInverterDataOK) IsClientError() bool

IsClientError returns true when this request inverter data o k response has a 4xx status code

func (*RequestInverterDataOK) IsCode

func (o *RequestInverterDataOK) IsCode(code int) bool

IsCode returns true when this request inverter data o k response a status code equal to that given

func (*RequestInverterDataOK) IsRedirect

func (o *RequestInverterDataOK) IsRedirect() bool

IsRedirect returns true when this request inverter data o k response has a 3xx status code

func (*RequestInverterDataOK) IsServerError

func (o *RequestInverterDataOK) IsServerError() bool

IsServerError returns true when this request inverter data o k response has a 5xx status code

func (*RequestInverterDataOK) IsSuccess

func (o *RequestInverterDataOK) IsSuccess() bool

IsSuccess returns true when this request inverter data o k response has a 2xx status code

func (*RequestInverterDataOK) String

func (o *RequestInverterDataOK) String() string

type RequestInverterDataOKBody

type RequestInverterDataOKBody struct {

	// success
	// Example: false
	Success bool `json:"success,omitempty"`
}

RequestInverterDataOKBody request inverter data o k body // Example: {"success":false} swagger:model RequestInverterDataOKBody

func (*RequestInverterDataOKBody) ContextValidate

func (o *RequestInverterDataOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this request inverter data o k body based on context it is used

func (*RequestInverterDataOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*RequestInverterDataOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RequestInverterDataOKBody) Validate

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

Validate validates this request inverter data o k body

type RequestInverterDataParams

type RequestInverterDataParams struct {

	// Authorization.
	Authorization *string

	/* InverterSerialNumber.

	   The serial number of the inverter.
	*/
	InverterSerialNumber string

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

RequestInverterDataParams contains all the parameters to send to the API endpoint

for the request inverter data operation.

Typically these are written to a http.Request.

func NewRequestInverterDataParams

func NewRequestInverterDataParams() *RequestInverterDataParams

NewRequestInverterDataParams creates a new RequestInverterDataParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewRequestInverterDataParamsWithContext

func NewRequestInverterDataParamsWithContext(ctx context.Context) *RequestInverterDataParams

NewRequestInverterDataParamsWithContext creates a new RequestInverterDataParams object with the ability to set a context for a request.

func NewRequestInverterDataParamsWithHTTPClient

func NewRequestInverterDataParamsWithHTTPClient(client *http.Client) *RequestInverterDataParams

NewRequestInverterDataParamsWithHTTPClient creates a new RequestInverterDataParams object with the ability to set a custom HTTPClient for a request.

func NewRequestInverterDataParamsWithTimeout

func NewRequestInverterDataParamsWithTimeout(timeout time.Duration) *RequestInverterDataParams

NewRequestInverterDataParamsWithTimeout creates a new RequestInverterDataParams object with the ability to set a timeout on a request.

func (*RequestInverterDataParams) SetAuthorization

func (o *RequestInverterDataParams) SetAuthorization(authorization *string)

SetAuthorization adds the authorization to the request inverter data params

func (*RequestInverterDataParams) SetContext

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

SetContext adds the context to the request inverter data params

func (*RequestInverterDataParams) SetDefaults

func (o *RequestInverterDataParams) SetDefaults()

SetDefaults hydrates default values in the request inverter data params (not the query body).

All values with no default are reset to their zero value.

func (*RequestInverterDataParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the request inverter data params

func (*RequestInverterDataParams) SetInverterSerialNumber

func (o *RequestInverterDataParams) SetInverterSerialNumber(inverterSerialNumber string)

SetInverterSerialNumber adds the inverterSerialNumber to the request inverter data params

func (*RequestInverterDataParams) SetTimeout

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

SetTimeout adds the timeout to the request inverter data params

func (*RequestInverterDataParams) WithAuthorization

func (o *RequestInverterDataParams) WithAuthorization(authorization *string) *RequestInverterDataParams

WithAuthorization adds the authorization to the request inverter data params

func (*RequestInverterDataParams) WithContext

WithContext adds the context to the request inverter data params

func (*RequestInverterDataParams) WithDefaults

WithDefaults hydrates default values in the request inverter data params (not the query body).

All values with no default are reset to their zero value.

func (*RequestInverterDataParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the request inverter data params

func (*RequestInverterDataParams) WithInverterSerialNumber

func (o *RequestInverterDataParams) WithInverterSerialNumber(inverterSerialNumber string) *RequestInverterDataParams

WithInverterSerialNumber adds the inverterSerialNumber to the request inverter data params

func (*RequestInverterDataParams) WithTimeout

WithTimeout adds the timeout to the request inverter data params

func (*RequestInverterDataParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type RequestInverterDataReader

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

RequestInverterDataReader is a Reader for the RequestInverterData structure.

func (*RequestInverterDataReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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