operations

package
v0.0.0-...-b48fae9 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// GetAPIUserapiSystemSmets2LiveDataSystemIDOKBodyPowerItems0TypeELECTRICITY captures enum value "ELECTRICITY"
	GetAPIUserapiSystemSmets2LiveDataSystemIDOKBodyPowerItems0TypeELECTRICITY string = "ELECTRICITY"

	// GetAPIUserapiSystemSmets2LiveDataSystemIDOKBodyPowerItems0TypeGASENERGY captures enum value "GAS_ENERGY"
	GetAPIUserapiSystemSmets2LiveDataSystemIDOKBodyPowerItems0TypeGASENERGY string = "GAS_ENERGY"
)
View Source
const (

	// GetAPIUserapiSystemSmets2PeriodicDataSystemIDOKBodyHistoryItems0TypeELECTRICITY captures enum value "ELECTRICITY"
	GetAPIUserapiSystemSmets2PeriodicDataSystemIDOKBodyHistoryItems0TypeELECTRICITY string = "ELECTRICITY"

	// GetAPIUserapiSystemSmets2PeriodicDataSystemIDOKBodyHistoryItems0TypeGASENERGY captures enum value "GAS_ENERGY"
	GetAPIUserapiSystemSmets2PeriodicDataSystemIDOKBodyHistoryItems0TypeGASENERGY string = "GAS_ENERGY"
)
View Source
const (

	// GetEpochserviceV1SystemSystemIDReadingsOKBodyItems0ReadingsItems0EnergyTypeIMPORT captures enum value "IMPORT"
	GetEpochserviceV1SystemSystemIDReadingsOKBodyItems0ReadingsItems0EnergyTypeIMPORT string = "IMPORT"

	// GetEpochserviceV1SystemSystemIDReadingsOKBodyItems0ReadingsItems0EnergyTypeGASENERGY captures enum value "GAS_ENERGY"
	GetEpochserviceV1SystemSystemIDReadingsOKBodyItems0ReadingsItems0EnergyTypeGASENERGY string = "GAS_ENERGY"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for operations API

func (*Client) GetAPIUserapiSystemSmets2LiveDataSystemID

GetAPIUserapiSystemSmets2LiveDataSystemID retrieves live energy data

Fetches real-time electricity and gas usage.

func (*Client) GetAPIUserapiSystemSmets2PeriodicDataSystemID

GetAPIUserapiSystemSmets2PeriodicDataSystemID retrieves periodic energy data

Fetches historical electricity and gas usage data.

func (*Client) GetAPIUserapiV2UserDetailSystems

func (a *Client) GetAPIUserapiV2UserDetailSystems(params *GetAPIUserapiV2UserDetailSystemsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPIUserapiV2UserDetailSystemsOK, error)

GetAPIUserapiV2UserDetailSystems retrieves user device details

Returns a list of systems associated with the authenticated user.

func (*Client) GetEpochserviceV1SystemSystemIDReadings

GetEpochserviceV1SystemSystemIDReadings retrieves historical energy readings

Fetches historical energy consumption data for a given system within a date range.

func (*Client) PostUsersserviceV2Login

func (a *Client) PostUsersserviceV2Login(params *PostUsersserviceV2LoginParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostUsersserviceV2LoginOK, error)

PostUsersserviceV2Login authenticates user

Obtain an authentication token by providing user credentials.

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 is the option for Client methods

type ClientService

type ClientService interface {
	GetAPIUserapiSystemSmets2LiveDataSystemID(params *GetAPIUserapiSystemSmets2LiveDataSystemIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPIUserapiSystemSmets2LiveDataSystemIDOK, error)

	GetAPIUserapiSystemSmets2PeriodicDataSystemID(params *GetAPIUserapiSystemSmets2PeriodicDataSystemIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPIUserapiSystemSmets2PeriodicDataSystemIDOK, error)

	GetAPIUserapiV2UserDetailSystems(params *GetAPIUserapiV2UserDetailSystemsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPIUserapiV2UserDetailSystemsOK, error)

	GetEpochserviceV1SystemSystemIDReadings(params *GetEpochserviceV1SystemSystemIDReadingsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetEpochserviceV1SystemSystemIDReadingsOK, error)

	PostUsersserviceV2Login(params *PostUsersserviceV2LoginParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostUsersserviceV2LoginOK, 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 operations API client.

type GetAPIUserapiSystemSmets2LiveDataSystemIDNotFound

type GetAPIUserapiSystemSmets2LiveDataSystemIDNotFound struct {
}

GetAPIUserapiSystemSmets2LiveDataSystemIDNotFound describes a response with status code 404, with default header values.

System ID not found

func NewGetAPIUserapiSystemSmets2LiveDataSystemIDNotFound

func NewGetAPIUserapiSystemSmets2LiveDataSystemIDNotFound() *GetAPIUserapiSystemSmets2LiveDataSystemIDNotFound

NewGetAPIUserapiSystemSmets2LiveDataSystemIDNotFound creates a GetAPIUserapiSystemSmets2LiveDataSystemIDNotFound with default headers values

func (*GetAPIUserapiSystemSmets2LiveDataSystemIDNotFound) Code

Code gets the status code for the get Api userapi system smets2 live data system Id not found response

func (*GetAPIUserapiSystemSmets2LiveDataSystemIDNotFound) Error

func (*GetAPIUserapiSystemSmets2LiveDataSystemIDNotFound) IsClientError

IsClientError returns true when this get Api userapi system smets2 live data system Id not found response has a 4xx status code

func (*GetAPIUserapiSystemSmets2LiveDataSystemIDNotFound) IsCode

IsCode returns true when this get Api userapi system smets2 live data system Id not found response a status code equal to that given

func (*GetAPIUserapiSystemSmets2LiveDataSystemIDNotFound) IsRedirect

IsRedirect returns true when this get Api userapi system smets2 live data system Id not found response has a 3xx status code

func (*GetAPIUserapiSystemSmets2LiveDataSystemIDNotFound) IsServerError

IsServerError returns true when this get Api userapi system smets2 live data system Id not found response has a 5xx status code

func (*GetAPIUserapiSystemSmets2LiveDataSystemIDNotFound) IsSuccess

IsSuccess returns true when this get Api userapi system smets2 live data system Id not found response has a 2xx status code

func (*GetAPIUserapiSystemSmets2LiveDataSystemIDNotFound) String

type GetAPIUserapiSystemSmets2LiveDataSystemIDOK

type GetAPIUserapiSystemSmets2LiveDataSystemIDOK struct {
	Payload *GetAPIUserapiSystemSmets2LiveDataSystemIDOKBody
}

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

Live energy data retrieved

func NewGetAPIUserapiSystemSmets2LiveDataSystemIDOK

func NewGetAPIUserapiSystemSmets2LiveDataSystemIDOK() *GetAPIUserapiSystemSmets2LiveDataSystemIDOK

NewGetAPIUserapiSystemSmets2LiveDataSystemIDOK creates a GetAPIUserapiSystemSmets2LiveDataSystemIDOK with default headers values

func (*GetAPIUserapiSystemSmets2LiveDataSystemIDOK) Code

Code gets the status code for the get Api userapi system smets2 live data system Id o k response

func (*GetAPIUserapiSystemSmets2LiveDataSystemIDOK) Error

func (*GetAPIUserapiSystemSmets2LiveDataSystemIDOK) GetPayload

func (*GetAPIUserapiSystemSmets2LiveDataSystemIDOK) IsClientError

IsClientError returns true when this get Api userapi system smets2 live data system Id o k response has a 4xx status code

func (*GetAPIUserapiSystemSmets2LiveDataSystemIDOK) IsCode

IsCode returns true when this get Api userapi system smets2 live data system Id o k response a status code equal to that given

func (*GetAPIUserapiSystemSmets2LiveDataSystemIDOK) IsRedirect

IsRedirect returns true when this get Api userapi system smets2 live data system Id o k response has a 3xx status code

func (*GetAPIUserapiSystemSmets2LiveDataSystemIDOK) IsServerError

IsServerError returns true when this get Api userapi system smets2 live data system Id o k response has a 5xx status code

func (*GetAPIUserapiSystemSmets2LiveDataSystemIDOK) IsSuccess

IsSuccess returns true when this get Api userapi system smets2 live data system Id o k response has a 2xx status code

func (*GetAPIUserapiSystemSmets2LiveDataSystemIDOK) String

type GetAPIUserapiSystemSmets2LiveDataSystemIDOKBody

type GetAPIUserapiSystemSmets2LiveDataSystemIDOKBody struct {

	// power
	Power []*GetAPIUserapiSystemSmets2LiveDataSystemIDOKBodyPowerItems0 `json:"power"`
}

GetAPIUserapiSystemSmets2LiveDataSystemIDOKBody get API userapi system smets2 live data system ID o k body swagger:model GetAPIUserapiSystemSmets2LiveDataSystemIDOKBody

func (*GetAPIUserapiSystemSmets2LiveDataSystemIDOKBody) ContextValidate

ContextValidate validate this get API userapi system smets2 live data system ID o k body based on the context it is used

func (*GetAPIUserapiSystemSmets2LiveDataSystemIDOKBody) MarshalBinary

MarshalBinary interface implementation

func (*GetAPIUserapiSystemSmets2LiveDataSystemIDOKBody) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetAPIUserapiSystemSmets2LiveDataSystemIDOKBody) Validate

Validate validates this get API userapi system smets2 live data system ID o k body

type GetAPIUserapiSystemSmets2LiveDataSystemIDOKBodyPowerItems0

type GetAPIUserapiSystemSmets2LiveDataSystemIDOKBodyPowerItems0 struct {

	// type
	// Enum: [ELECTRICITY GAS_ENERGY]
	Type string `json:"type,omitempty"`

	// watts
	Watts int64 `json:"watts,omitempty"`
}

GetAPIUserapiSystemSmets2LiveDataSystemIDOKBodyPowerItems0 get API userapi system smets2 live data system ID o k body power items0 swagger:model GetAPIUserapiSystemSmets2LiveDataSystemIDOKBodyPowerItems0

func (*GetAPIUserapiSystemSmets2LiveDataSystemIDOKBodyPowerItems0) ContextValidate

ContextValidate validates this get API userapi system smets2 live data system ID o k body power items0 based on context it is used

func (*GetAPIUserapiSystemSmets2LiveDataSystemIDOKBodyPowerItems0) MarshalBinary

MarshalBinary interface implementation

func (*GetAPIUserapiSystemSmets2LiveDataSystemIDOKBodyPowerItems0) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetAPIUserapiSystemSmets2LiveDataSystemIDOKBodyPowerItems0) Validate

Validate validates this get API userapi system smets2 live data system ID o k body power items0

type GetAPIUserapiSystemSmets2LiveDataSystemIDParams

type GetAPIUserapiSystemSmets2LiveDataSystemIDParams struct {

	/* Authorization.

	   Bearer token received from login
	*/
	Authorization string

	/* SystemID.

	   Unique system identifier
	*/
	SystemID string

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

GetAPIUserapiSystemSmets2LiveDataSystemIDParams contains all the parameters to send to the API endpoint

for the get API userapi system smets2 live data system ID operation.

Typically these are written to a http.Request.

func NewGetAPIUserapiSystemSmets2LiveDataSystemIDParams

func NewGetAPIUserapiSystemSmets2LiveDataSystemIDParams() *GetAPIUserapiSystemSmets2LiveDataSystemIDParams

NewGetAPIUserapiSystemSmets2LiveDataSystemIDParams creates a new GetAPIUserapiSystemSmets2LiveDataSystemIDParams 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 NewGetAPIUserapiSystemSmets2LiveDataSystemIDParamsWithContext

func NewGetAPIUserapiSystemSmets2LiveDataSystemIDParamsWithContext(ctx context.Context) *GetAPIUserapiSystemSmets2LiveDataSystemIDParams

NewGetAPIUserapiSystemSmets2LiveDataSystemIDParamsWithContext creates a new GetAPIUserapiSystemSmets2LiveDataSystemIDParams object with the ability to set a context for a request.

func NewGetAPIUserapiSystemSmets2LiveDataSystemIDParamsWithHTTPClient

func NewGetAPIUserapiSystemSmets2LiveDataSystemIDParamsWithHTTPClient(client *http.Client) *GetAPIUserapiSystemSmets2LiveDataSystemIDParams

NewGetAPIUserapiSystemSmets2LiveDataSystemIDParamsWithHTTPClient creates a new GetAPIUserapiSystemSmets2LiveDataSystemIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetAPIUserapiSystemSmets2LiveDataSystemIDParamsWithTimeout

func NewGetAPIUserapiSystemSmets2LiveDataSystemIDParamsWithTimeout(timeout time.Duration) *GetAPIUserapiSystemSmets2LiveDataSystemIDParams

NewGetAPIUserapiSystemSmets2LiveDataSystemIDParamsWithTimeout creates a new GetAPIUserapiSystemSmets2LiveDataSystemIDParams object with the ability to set a timeout on a request.

func (*GetAPIUserapiSystemSmets2LiveDataSystemIDParams) SetAuthorization

func (o *GetAPIUserapiSystemSmets2LiveDataSystemIDParams) SetAuthorization(authorization string)

SetAuthorization adds the authorization to the get API userapi system smets2 live data system ID params

func (*GetAPIUserapiSystemSmets2LiveDataSystemIDParams) SetContext

SetContext adds the context to the get API userapi system smets2 live data system ID params

func (*GetAPIUserapiSystemSmets2LiveDataSystemIDParams) SetDefaults

SetDefaults hydrates default values in the get API userapi system smets2 live data system ID params (not the query body).

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

func (*GetAPIUserapiSystemSmets2LiveDataSystemIDParams) SetHTTPClient

SetHTTPClient adds the HTTPClient to the get API userapi system smets2 live data system ID params

func (*GetAPIUserapiSystemSmets2LiveDataSystemIDParams) SetSystemID

SetSystemID adds the systemId to the get API userapi system smets2 live data system ID params

func (*GetAPIUserapiSystemSmets2LiveDataSystemIDParams) SetTimeout

SetTimeout adds the timeout to the get API userapi system smets2 live data system ID params

func (*GetAPIUserapiSystemSmets2LiveDataSystemIDParams) WithAuthorization

WithAuthorization adds the authorization to the get API userapi system smets2 live data system ID params

func (*GetAPIUserapiSystemSmets2LiveDataSystemIDParams) WithContext

WithContext adds the context to the get API userapi system smets2 live data system ID params

func (*GetAPIUserapiSystemSmets2LiveDataSystemIDParams) WithDefaults

WithDefaults hydrates default values in the get API userapi system smets2 live data system ID params (not the query body).

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

func (*GetAPIUserapiSystemSmets2LiveDataSystemIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get API userapi system smets2 live data system ID params

func (*GetAPIUserapiSystemSmets2LiveDataSystemIDParams) WithSystemID

WithSystemID adds the systemID to the get API userapi system smets2 live data system ID params

func (*GetAPIUserapiSystemSmets2LiveDataSystemIDParams) WithTimeout

WithTimeout adds the timeout to the get API userapi system smets2 live data system ID params

func (*GetAPIUserapiSystemSmets2LiveDataSystemIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetAPIUserapiSystemSmets2LiveDataSystemIDReader

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

GetAPIUserapiSystemSmets2LiveDataSystemIDReader is a Reader for the GetAPIUserapiSystemSmets2LiveDataSystemID structure.

func (*GetAPIUserapiSystemSmets2LiveDataSystemIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetAPIUserapiSystemSmets2LiveDataSystemIDUnauthorized

type GetAPIUserapiSystemSmets2LiveDataSystemIDUnauthorized struct {
}

GetAPIUserapiSystemSmets2LiveDataSystemIDUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetAPIUserapiSystemSmets2LiveDataSystemIDUnauthorized

func NewGetAPIUserapiSystemSmets2LiveDataSystemIDUnauthorized() *GetAPIUserapiSystemSmets2LiveDataSystemIDUnauthorized

NewGetAPIUserapiSystemSmets2LiveDataSystemIDUnauthorized creates a GetAPIUserapiSystemSmets2LiveDataSystemIDUnauthorized with default headers values

func (*GetAPIUserapiSystemSmets2LiveDataSystemIDUnauthorized) Code

Code gets the status code for the get Api userapi system smets2 live data system Id unauthorized response

func (*GetAPIUserapiSystemSmets2LiveDataSystemIDUnauthorized) Error

func (*GetAPIUserapiSystemSmets2LiveDataSystemIDUnauthorized) IsClientError

IsClientError returns true when this get Api userapi system smets2 live data system Id unauthorized response has a 4xx status code

func (*GetAPIUserapiSystemSmets2LiveDataSystemIDUnauthorized) IsCode

IsCode returns true when this get Api userapi system smets2 live data system Id unauthorized response a status code equal to that given

func (*GetAPIUserapiSystemSmets2LiveDataSystemIDUnauthorized) IsRedirect

IsRedirect returns true when this get Api userapi system smets2 live data system Id unauthorized response has a 3xx status code

func (*GetAPIUserapiSystemSmets2LiveDataSystemIDUnauthorized) IsServerError

IsServerError returns true when this get Api userapi system smets2 live data system Id unauthorized response has a 5xx status code

func (*GetAPIUserapiSystemSmets2LiveDataSystemIDUnauthorized) IsSuccess

IsSuccess returns true when this get Api userapi system smets2 live data system Id unauthorized response has a 2xx status code

func (*GetAPIUserapiSystemSmets2LiveDataSystemIDUnauthorized) String

type GetAPIUserapiSystemSmets2PeriodicDataSystemIDNotFound

type GetAPIUserapiSystemSmets2PeriodicDataSystemIDNotFound struct {
}

GetAPIUserapiSystemSmets2PeriodicDataSystemIDNotFound describes a response with status code 404, with default header values.

System ID not found

func NewGetAPIUserapiSystemSmets2PeriodicDataSystemIDNotFound

func NewGetAPIUserapiSystemSmets2PeriodicDataSystemIDNotFound() *GetAPIUserapiSystemSmets2PeriodicDataSystemIDNotFound

NewGetAPIUserapiSystemSmets2PeriodicDataSystemIDNotFound creates a GetAPIUserapiSystemSmets2PeriodicDataSystemIDNotFound with default headers values

func (*GetAPIUserapiSystemSmets2PeriodicDataSystemIDNotFound) Code

Code gets the status code for the get Api userapi system smets2 periodic data system Id not found response

func (*GetAPIUserapiSystemSmets2PeriodicDataSystemIDNotFound) Error

func (*GetAPIUserapiSystemSmets2PeriodicDataSystemIDNotFound) IsClientError

IsClientError returns true when this get Api userapi system smets2 periodic data system Id not found response has a 4xx status code

func (*GetAPIUserapiSystemSmets2PeriodicDataSystemIDNotFound) IsCode

IsCode returns true when this get Api userapi system smets2 periodic data system Id not found response a status code equal to that given

func (*GetAPIUserapiSystemSmets2PeriodicDataSystemIDNotFound) IsRedirect

IsRedirect returns true when this get Api userapi system smets2 periodic data system Id not found response has a 3xx status code

func (*GetAPIUserapiSystemSmets2PeriodicDataSystemIDNotFound) IsServerError

IsServerError returns true when this get Api userapi system smets2 periodic data system Id not found response has a 5xx status code

func (*GetAPIUserapiSystemSmets2PeriodicDataSystemIDNotFound) IsSuccess

IsSuccess returns true when this get Api userapi system smets2 periodic data system Id not found response has a 2xx status code

func (*GetAPIUserapiSystemSmets2PeriodicDataSystemIDNotFound) String

type GetAPIUserapiSystemSmets2PeriodicDataSystemIDOK

type GetAPIUserapiSystemSmets2PeriodicDataSystemIDOK struct {
	Payload *GetAPIUserapiSystemSmets2PeriodicDataSystemIDOKBody
}

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

Periodic energy data retrieved

func NewGetAPIUserapiSystemSmets2PeriodicDataSystemIDOK

func NewGetAPIUserapiSystemSmets2PeriodicDataSystemIDOK() *GetAPIUserapiSystemSmets2PeriodicDataSystemIDOK

NewGetAPIUserapiSystemSmets2PeriodicDataSystemIDOK creates a GetAPIUserapiSystemSmets2PeriodicDataSystemIDOK with default headers values

func (*GetAPIUserapiSystemSmets2PeriodicDataSystemIDOK) Code

Code gets the status code for the get Api userapi system smets2 periodic data system Id o k response

func (*GetAPIUserapiSystemSmets2PeriodicDataSystemIDOK) Error

func (*GetAPIUserapiSystemSmets2PeriodicDataSystemIDOK) GetPayload

func (*GetAPIUserapiSystemSmets2PeriodicDataSystemIDOK) IsClientError

IsClientError returns true when this get Api userapi system smets2 periodic data system Id o k response has a 4xx status code

func (*GetAPIUserapiSystemSmets2PeriodicDataSystemIDOK) IsCode

IsCode returns true when this get Api userapi system smets2 periodic data system Id o k response a status code equal to that given

func (*GetAPIUserapiSystemSmets2PeriodicDataSystemIDOK) IsRedirect

IsRedirect returns true when this get Api userapi system smets2 periodic data system Id o k response has a 3xx status code

func (*GetAPIUserapiSystemSmets2PeriodicDataSystemIDOK) IsServerError

IsServerError returns true when this get Api userapi system smets2 periodic data system Id o k response has a 5xx status code

func (*GetAPIUserapiSystemSmets2PeriodicDataSystemIDOK) IsSuccess

IsSuccess returns true when this get Api userapi system smets2 periodic data system Id o k response has a 2xx status code

func (*GetAPIUserapiSystemSmets2PeriodicDataSystemIDOK) String

type GetAPIUserapiSystemSmets2PeriodicDataSystemIDOKBody

type GetAPIUserapiSystemSmets2PeriodicDataSystemIDOKBody struct {

	// history
	History []*GetAPIUserapiSystemSmets2PeriodicDataSystemIDOKBodyHistoryItems0 `json:"history"`
}

GetAPIUserapiSystemSmets2PeriodicDataSystemIDOKBody get API userapi system smets2 periodic data system ID o k body swagger:model GetAPIUserapiSystemSmets2PeriodicDataSystemIDOKBody

func (*GetAPIUserapiSystemSmets2PeriodicDataSystemIDOKBody) ContextValidate

ContextValidate validate this get API userapi system smets2 periodic data system ID o k body based on the context it is used

func (*GetAPIUserapiSystemSmets2PeriodicDataSystemIDOKBody) MarshalBinary

MarshalBinary interface implementation

func (*GetAPIUserapiSystemSmets2PeriodicDataSystemIDOKBody) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetAPIUserapiSystemSmets2PeriodicDataSystemIDOKBody) Validate

Validate validates this get API userapi system smets2 periodic data system ID o k body

type GetAPIUserapiSystemSmets2PeriodicDataSystemIDOKBodyHistoryItems0

type GetAPIUserapiSystemSmets2PeriodicDataSystemIDOKBodyHistoryItems0 struct {

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

	// timestamp
	// Format: date-time
	Timestamp strfmt.DateTime `json:"timestamp,omitempty"`

	// type
	// Enum: [ELECTRICITY GAS_ENERGY]
	Type string `json:"type,omitempty"`
}

GetAPIUserapiSystemSmets2PeriodicDataSystemIDOKBodyHistoryItems0 get API userapi system smets2 periodic data system ID o k body history items0 swagger:model GetAPIUserapiSystemSmets2PeriodicDataSystemIDOKBodyHistoryItems0

func (*GetAPIUserapiSystemSmets2PeriodicDataSystemIDOKBodyHistoryItems0) ContextValidate

ContextValidate validates this get API userapi system smets2 periodic data system ID o k body history items0 based on context it is used

func (*GetAPIUserapiSystemSmets2PeriodicDataSystemIDOKBodyHistoryItems0) MarshalBinary

MarshalBinary interface implementation

func (*GetAPIUserapiSystemSmets2PeriodicDataSystemIDOKBodyHistoryItems0) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetAPIUserapiSystemSmets2PeriodicDataSystemIDOKBodyHistoryItems0) Validate

Validate validates this get API userapi system smets2 periodic data system ID o k body history items0

type GetAPIUserapiSystemSmets2PeriodicDataSystemIDParams

type GetAPIUserapiSystemSmets2PeriodicDataSystemIDParams struct {

	/* Authorization.

	   Bearer token received from login
	*/
	Authorization string

	/* SystemID.

	   Unique system identifier
	*/
	SystemID string

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

GetAPIUserapiSystemSmets2PeriodicDataSystemIDParams contains all the parameters to send to the API endpoint

for the get API userapi system smets2 periodic data system ID operation.

Typically these are written to a http.Request.

func NewGetAPIUserapiSystemSmets2PeriodicDataSystemIDParams

func NewGetAPIUserapiSystemSmets2PeriodicDataSystemIDParams() *GetAPIUserapiSystemSmets2PeriodicDataSystemIDParams

NewGetAPIUserapiSystemSmets2PeriodicDataSystemIDParams creates a new GetAPIUserapiSystemSmets2PeriodicDataSystemIDParams 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 NewGetAPIUserapiSystemSmets2PeriodicDataSystemIDParamsWithContext

func NewGetAPIUserapiSystemSmets2PeriodicDataSystemIDParamsWithContext(ctx context.Context) *GetAPIUserapiSystemSmets2PeriodicDataSystemIDParams

NewGetAPIUserapiSystemSmets2PeriodicDataSystemIDParamsWithContext creates a new GetAPIUserapiSystemSmets2PeriodicDataSystemIDParams object with the ability to set a context for a request.

func NewGetAPIUserapiSystemSmets2PeriodicDataSystemIDParamsWithHTTPClient

func NewGetAPIUserapiSystemSmets2PeriodicDataSystemIDParamsWithHTTPClient(client *http.Client) *GetAPIUserapiSystemSmets2PeriodicDataSystemIDParams

NewGetAPIUserapiSystemSmets2PeriodicDataSystemIDParamsWithHTTPClient creates a new GetAPIUserapiSystemSmets2PeriodicDataSystemIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetAPIUserapiSystemSmets2PeriodicDataSystemIDParamsWithTimeout

func NewGetAPIUserapiSystemSmets2PeriodicDataSystemIDParamsWithTimeout(timeout time.Duration) *GetAPIUserapiSystemSmets2PeriodicDataSystemIDParams

NewGetAPIUserapiSystemSmets2PeriodicDataSystemIDParamsWithTimeout creates a new GetAPIUserapiSystemSmets2PeriodicDataSystemIDParams object with the ability to set a timeout on a request.

func (*GetAPIUserapiSystemSmets2PeriodicDataSystemIDParams) SetAuthorization

func (o *GetAPIUserapiSystemSmets2PeriodicDataSystemIDParams) SetAuthorization(authorization string)

SetAuthorization adds the authorization to the get API userapi system smets2 periodic data system ID params

func (*GetAPIUserapiSystemSmets2PeriodicDataSystemIDParams) SetContext

SetContext adds the context to the get API userapi system smets2 periodic data system ID params

func (*GetAPIUserapiSystemSmets2PeriodicDataSystemIDParams) SetDefaults

SetDefaults hydrates default values in the get API userapi system smets2 periodic data system ID params (not the query body).

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

func (*GetAPIUserapiSystemSmets2PeriodicDataSystemIDParams) SetHTTPClient

SetHTTPClient adds the HTTPClient to the get API userapi system smets2 periodic data system ID params

func (*GetAPIUserapiSystemSmets2PeriodicDataSystemIDParams) SetSystemID

SetSystemID adds the systemId to the get API userapi system smets2 periodic data system ID params

func (*GetAPIUserapiSystemSmets2PeriodicDataSystemIDParams) SetTimeout

SetTimeout adds the timeout to the get API userapi system smets2 periodic data system ID params

func (*GetAPIUserapiSystemSmets2PeriodicDataSystemIDParams) WithAuthorization

WithAuthorization adds the authorization to the get API userapi system smets2 periodic data system ID params

func (*GetAPIUserapiSystemSmets2PeriodicDataSystemIDParams) WithContext

WithContext adds the context to the get API userapi system smets2 periodic data system ID params

func (*GetAPIUserapiSystemSmets2PeriodicDataSystemIDParams) WithDefaults

WithDefaults hydrates default values in the get API userapi system smets2 periodic data system ID params (not the query body).

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

func (*GetAPIUserapiSystemSmets2PeriodicDataSystemIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get API userapi system smets2 periodic data system ID params

func (*GetAPIUserapiSystemSmets2PeriodicDataSystemIDParams) WithSystemID

WithSystemID adds the systemID to the get API userapi system smets2 periodic data system ID params

func (*GetAPIUserapiSystemSmets2PeriodicDataSystemIDParams) WithTimeout

WithTimeout adds the timeout to the get API userapi system smets2 periodic data system ID params

func (*GetAPIUserapiSystemSmets2PeriodicDataSystemIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetAPIUserapiSystemSmets2PeriodicDataSystemIDReader

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

GetAPIUserapiSystemSmets2PeriodicDataSystemIDReader is a Reader for the GetAPIUserapiSystemSmets2PeriodicDataSystemID structure.

func (*GetAPIUserapiSystemSmets2PeriodicDataSystemIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetAPIUserapiSystemSmets2PeriodicDataSystemIDUnauthorized

type GetAPIUserapiSystemSmets2PeriodicDataSystemIDUnauthorized struct {
}

GetAPIUserapiSystemSmets2PeriodicDataSystemIDUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetAPIUserapiSystemSmets2PeriodicDataSystemIDUnauthorized

func NewGetAPIUserapiSystemSmets2PeriodicDataSystemIDUnauthorized() *GetAPIUserapiSystemSmets2PeriodicDataSystemIDUnauthorized

NewGetAPIUserapiSystemSmets2PeriodicDataSystemIDUnauthorized creates a GetAPIUserapiSystemSmets2PeriodicDataSystemIDUnauthorized with default headers values

func (*GetAPIUserapiSystemSmets2PeriodicDataSystemIDUnauthorized) Code

Code gets the status code for the get Api userapi system smets2 periodic data system Id unauthorized response

func (*GetAPIUserapiSystemSmets2PeriodicDataSystemIDUnauthorized) Error

func (*GetAPIUserapiSystemSmets2PeriodicDataSystemIDUnauthorized) IsClientError

IsClientError returns true when this get Api userapi system smets2 periodic data system Id unauthorized response has a 4xx status code

func (*GetAPIUserapiSystemSmets2PeriodicDataSystemIDUnauthorized) IsCode

IsCode returns true when this get Api userapi system smets2 periodic data system Id unauthorized response a status code equal to that given

func (*GetAPIUserapiSystemSmets2PeriodicDataSystemIDUnauthorized) IsRedirect

IsRedirect returns true when this get Api userapi system smets2 periodic data system Id unauthorized response has a 3xx status code

func (*GetAPIUserapiSystemSmets2PeriodicDataSystemIDUnauthorized) IsServerError

IsServerError returns true when this get Api userapi system smets2 periodic data system Id unauthorized response has a 5xx status code

func (*GetAPIUserapiSystemSmets2PeriodicDataSystemIDUnauthorized) IsSuccess

IsSuccess returns true when this get Api userapi system smets2 periodic data system Id unauthorized response has a 2xx status code

func (*GetAPIUserapiSystemSmets2PeriodicDataSystemIDUnauthorized) String

type GetAPIUserapiV2UserDetailSystemsOK

type GetAPIUserapiV2UserDetailSystemsOK struct {
	Payload *GetAPIUserapiV2UserDetailSystemsOKBody
}

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

Device details retrieved

func NewGetAPIUserapiV2UserDetailSystemsOK

func NewGetAPIUserapiV2UserDetailSystemsOK() *GetAPIUserapiV2UserDetailSystemsOK

NewGetAPIUserapiV2UserDetailSystemsOK creates a GetAPIUserapiV2UserDetailSystemsOK with default headers values

func (*GetAPIUserapiV2UserDetailSystemsOK) Code

Code gets the status code for the get Api userapi v2 user detail systems o k response

func (*GetAPIUserapiV2UserDetailSystemsOK) Error

func (*GetAPIUserapiV2UserDetailSystemsOK) GetPayload

func (*GetAPIUserapiV2UserDetailSystemsOK) IsClientError

func (o *GetAPIUserapiV2UserDetailSystemsOK) IsClientError() bool

IsClientError returns true when this get Api userapi v2 user detail systems o k response has a 4xx status code

func (*GetAPIUserapiV2UserDetailSystemsOK) IsCode

IsCode returns true when this get Api userapi v2 user detail systems o k response a status code equal to that given

func (*GetAPIUserapiV2UserDetailSystemsOK) IsRedirect

func (o *GetAPIUserapiV2UserDetailSystemsOK) IsRedirect() bool

IsRedirect returns true when this get Api userapi v2 user detail systems o k response has a 3xx status code

func (*GetAPIUserapiV2UserDetailSystemsOK) IsServerError

func (o *GetAPIUserapiV2UserDetailSystemsOK) IsServerError() bool

IsServerError returns true when this get Api userapi v2 user detail systems o k response has a 5xx status code

func (*GetAPIUserapiV2UserDetailSystemsOK) IsSuccess

IsSuccess returns true when this get Api userapi v2 user detail systems o k response has a 2xx status code

func (*GetAPIUserapiV2UserDetailSystemsOK) String

type GetAPIUserapiV2UserDetailSystemsOKBody

type GetAPIUserapiV2UserDetailSystemsOKBody struct {

	// system details
	SystemDetails []*GetAPIUserapiV2UserDetailSystemsOKBodySystemDetailsItems0 `json:"systemDetails"`

	// system roles
	SystemRoles []*GetAPIUserapiV2UserDetailSystemsOKBodySystemRolesItems0 `json:"systemRoles"`
}

GetAPIUserapiV2UserDetailSystemsOKBody get API userapi v2 user detail systems o k body swagger:model GetAPIUserapiV2UserDetailSystemsOKBody

func (*GetAPIUserapiV2UserDetailSystemsOKBody) ContextValidate

ContextValidate validate this get API userapi v2 user detail systems o k body based on the context it is used

func (*GetAPIUserapiV2UserDetailSystemsOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetAPIUserapiV2UserDetailSystemsOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetAPIUserapiV2UserDetailSystemsOKBody) Validate

Validate validates this get API userapi v2 user detail systems o k body

type GetAPIUserapiV2UserDetailSystemsOKBodySystemDetailsItems0

type GetAPIUserapiV2UserDetailSystemsOKBodySystemDetailsItems0 struct {

	// devices
	Devices []*GetAPIUserapiV2UserDetailSystemsOKBodySystemDetailsItems0DevicesItems0 `json:"devices"`

	// name
	Name string `json:"name,omitempty"`

	// system Id
	SystemID string `json:"systemId,omitempty"`
}

GetAPIUserapiV2UserDetailSystemsOKBodySystemDetailsItems0 get API userapi v2 user detail systems o k body system details items0 swagger:model GetAPIUserapiV2UserDetailSystemsOKBodySystemDetailsItems0

func (*GetAPIUserapiV2UserDetailSystemsOKBodySystemDetailsItems0) ContextValidate

ContextValidate validate this get API userapi v2 user detail systems o k body system details items0 based on the context it is used

func (*GetAPIUserapiV2UserDetailSystemsOKBodySystemDetailsItems0) MarshalBinary

MarshalBinary interface implementation

func (*GetAPIUserapiV2UserDetailSystemsOKBodySystemDetailsItems0) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetAPIUserapiV2UserDetailSystemsOKBodySystemDetailsItems0) Validate

Validate validates this get API userapi v2 user detail systems o k body system details items0

type GetAPIUserapiV2UserDetailSystemsOKBodySystemDetailsItems0DevicesItems0

type GetAPIUserapiV2UserDetailSystemsOKBodySystemDetailsItems0DevicesItems0 struct {

	// device type
	DeviceType string `json:"deviceType,omitempty"`

	// node Id
	NodeID int64 `json:"nodeId,omitempty"`

	// paired timestamp
	PairedTimestamp int64 `json:"pairedTimestamp,omitempty"`

	// pairing code
	PairingCode string `json:"pairingCode,omitempty"`

	// sensor type
	SensorType int64 `json:"sensorType,omitempty"`

	// upgrade required
	UpgradeRequired bool `json:"upgradeRequired,omitempty"`

	// version number
	VersionNumber *GetAPIUserapiV2UserDetailSystemsOKBodySystemDetailsItems0DevicesItems0VersionNumber `json:"versionNumber,omitempty"`
}

GetAPIUserapiV2UserDetailSystemsOKBodySystemDetailsItems0DevicesItems0 get API userapi v2 user detail systems o k body system details items0 devices items0 swagger:model GetAPIUserapiV2UserDetailSystemsOKBodySystemDetailsItems0DevicesItems0

func (*GetAPIUserapiV2UserDetailSystemsOKBodySystemDetailsItems0DevicesItems0) ContextValidate

ContextValidate validate this get API userapi v2 user detail systems o k body system details items0 devices items0 based on the context it is used

func (*GetAPIUserapiV2UserDetailSystemsOKBodySystemDetailsItems0DevicesItems0) MarshalBinary

MarshalBinary interface implementation

func (*GetAPIUserapiV2UserDetailSystemsOKBodySystemDetailsItems0DevicesItems0) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetAPIUserapiV2UserDetailSystemsOKBodySystemDetailsItems0DevicesItems0) Validate

Validate validates this get API userapi v2 user detail systems o k body system details items0 devices items0

type GetAPIUserapiV2UserDetailSystemsOKBodySystemDetailsItems0DevicesItems0VersionNumber

type GetAPIUserapiV2UserDetailSystemsOKBodySystemDetailsItems0DevicesItems0VersionNumber struct {

	// major
	Major int64 `json:"major,omitempty"`

	// minor
	Minor int64 `json:"minor,omitempty"`
}

GetAPIUserapiV2UserDetailSystemsOKBodySystemDetailsItems0DevicesItems0VersionNumber get API userapi v2 user detail systems o k body system details items0 devices items0 version number swagger:model GetAPIUserapiV2UserDetailSystemsOKBodySystemDetailsItems0DevicesItems0VersionNumber

func (*GetAPIUserapiV2UserDetailSystemsOKBodySystemDetailsItems0DevicesItems0VersionNumber) ContextValidate

ContextValidate validates this get API userapi v2 user detail systems o k body system details items0 devices items0 version number based on context it is used

func (*GetAPIUserapiV2UserDetailSystemsOKBodySystemDetailsItems0DevicesItems0VersionNumber) MarshalBinary

MarshalBinary interface implementation

func (*GetAPIUserapiV2UserDetailSystemsOKBodySystemDetailsItems0DevicesItems0VersionNumber) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetAPIUserapiV2UserDetailSystemsOKBodySystemDetailsItems0DevicesItems0VersionNumber) Validate

Validate validates this get API userapi v2 user detail systems o k body system details items0 devices items0 version number

type GetAPIUserapiV2UserDetailSystemsOKBodySystemRolesItems0

type GetAPIUserapiV2UserDetailSystemsOKBodySystemRolesItems0 struct {

	// name
	Name string `json:"name,omitempty"`

	// roles
	Roles []string `json:"roles"`

	// system Id
	SystemID string `json:"systemId,omitempty"`
}

GetAPIUserapiV2UserDetailSystemsOKBodySystemRolesItems0 get API userapi v2 user detail systems o k body system roles items0 swagger:model GetAPIUserapiV2UserDetailSystemsOKBodySystemRolesItems0

func (*GetAPIUserapiV2UserDetailSystemsOKBodySystemRolesItems0) ContextValidate

ContextValidate validates this get API userapi v2 user detail systems o k body system roles items0 based on context it is used

func (*GetAPIUserapiV2UserDetailSystemsOKBodySystemRolesItems0) MarshalBinary

MarshalBinary interface implementation

func (*GetAPIUserapiV2UserDetailSystemsOKBodySystemRolesItems0) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetAPIUserapiV2UserDetailSystemsOKBodySystemRolesItems0) Validate

Validate validates this get API userapi v2 user detail systems o k body system roles items0

type GetAPIUserapiV2UserDetailSystemsParams

type GetAPIUserapiV2UserDetailSystemsParams struct {

	/* Authorization.

	   Bearer token received from login
	*/
	Authorization string

	// SystemDetails.
	//
	// Default: true
	SystemDetails bool

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

GetAPIUserapiV2UserDetailSystemsParams contains all the parameters to send to the API endpoint

for the get API userapi v2 user detail systems operation.

Typically these are written to a http.Request.

func NewGetAPIUserapiV2UserDetailSystemsParams

func NewGetAPIUserapiV2UserDetailSystemsParams() *GetAPIUserapiV2UserDetailSystemsParams

NewGetAPIUserapiV2UserDetailSystemsParams creates a new GetAPIUserapiV2UserDetailSystemsParams 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 NewGetAPIUserapiV2UserDetailSystemsParamsWithContext

func NewGetAPIUserapiV2UserDetailSystemsParamsWithContext(ctx context.Context) *GetAPIUserapiV2UserDetailSystemsParams

NewGetAPIUserapiV2UserDetailSystemsParamsWithContext creates a new GetAPIUserapiV2UserDetailSystemsParams object with the ability to set a context for a request.

func NewGetAPIUserapiV2UserDetailSystemsParamsWithHTTPClient

func NewGetAPIUserapiV2UserDetailSystemsParamsWithHTTPClient(client *http.Client) *GetAPIUserapiV2UserDetailSystemsParams

NewGetAPIUserapiV2UserDetailSystemsParamsWithHTTPClient creates a new GetAPIUserapiV2UserDetailSystemsParams object with the ability to set a custom HTTPClient for a request.

func NewGetAPIUserapiV2UserDetailSystemsParamsWithTimeout

func NewGetAPIUserapiV2UserDetailSystemsParamsWithTimeout(timeout time.Duration) *GetAPIUserapiV2UserDetailSystemsParams

NewGetAPIUserapiV2UserDetailSystemsParamsWithTimeout creates a new GetAPIUserapiV2UserDetailSystemsParams object with the ability to set a timeout on a request.

func (*GetAPIUserapiV2UserDetailSystemsParams) SetAuthorization

func (o *GetAPIUserapiV2UserDetailSystemsParams) SetAuthorization(authorization string)

SetAuthorization adds the authorization to the get API userapi v2 user detail systems params

func (*GetAPIUserapiV2UserDetailSystemsParams) SetContext

SetContext adds the context to the get API userapi v2 user detail systems params

func (*GetAPIUserapiV2UserDetailSystemsParams) SetDefaults

func (o *GetAPIUserapiV2UserDetailSystemsParams) SetDefaults()

SetDefaults hydrates default values in the get API userapi v2 user detail systems params (not the query body).

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

func (*GetAPIUserapiV2UserDetailSystemsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get API userapi v2 user detail systems params

func (*GetAPIUserapiV2UserDetailSystemsParams) SetSystemDetails

func (o *GetAPIUserapiV2UserDetailSystemsParams) SetSystemDetails(systemDetails bool)

SetSystemDetails adds the systemDetails to the get API userapi v2 user detail systems params

func (*GetAPIUserapiV2UserDetailSystemsParams) SetTimeout

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

SetTimeout adds the timeout to the get API userapi v2 user detail systems params

func (*GetAPIUserapiV2UserDetailSystemsParams) WithAuthorization

WithAuthorization adds the authorization to the get API userapi v2 user detail systems params

func (*GetAPIUserapiV2UserDetailSystemsParams) WithContext

WithContext adds the context to the get API userapi v2 user detail systems params

func (*GetAPIUserapiV2UserDetailSystemsParams) WithDefaults

WithDefaults hydrates default values in the get API userapi v2 user detail systems params (not the query body).

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

func (*GetAPIUserapiV2UserDetailSystemsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get API userapi v2 user detail systems params

func (*GetAPIUserapiV2UserDetailSystemsParams) WithSystemDetails

WithSystemDetails adds the systemDetails to the get API userapi v2 user detail systems params

func (*GetAPIUserapiV2UserDetailSystemsParams) WithTimeout

WithTimeout adds the timeout to the get API userapi v2 user detail systems params

func (*GetAPIUserapiV2UserDetailSystemsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetAPIUserapiV2UserDetailSystemsReader

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

GetAPIUserapiV2UserDetailSystemsReader is a Reader for the GetAPIUserapiV2UserDetailSystems structure.

func (*GetAPIUserapiV2UserDetailSystemsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetAPIUserapiV2UserDetailSystemsUnauthorized

type GetAPIUserapiV2UserDetailSystemsUnauthorized struct {
}

GetAPIUserapiV2UserDetailSystemsUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetAPIUserapiV2UserDetailSystemsUnauthorized

func NewGetAPIUserapiV2UserDetailSystemsUnauthorized() *GetAPIUserapiV2UserDetailSystemsUnauthorized

NewGetAPIUserapiV2UserDetailSystemsUnauthorized creates a GetAPIUserapiV2UserDetailSystemsUnauthorized with default headers values

func (*GetAPIUserapiV2UserDetailSystemsUnauthorized) Code

Code gets the status code for the get Api userapi v2 user detail systems unauthorized response

func (*GetAPIUserapiV2UserDetailSystemsUnauthorized) Error

func (*GetAPIUserapiV2UserDetailSystemsUnauthorized) IsClientError

IsClientError returns true when this get Api userapi v2 user detail systems unauthorized response has a 4xx status code

func (*GetAPIUserapiV2UserDetailSystemsUnauthorized) IsCode

IsCode returns true when this get Api userapi v2 user detail systems unauthorized response a status code equal to that given

func (*GetAPIUserapiV2UserDetailSystemsUnauthorized) IsRedirect

IsRedirect returns true when this get Api userapi v2 user detail systems unauthorized response has a 3xx status code

func (*GetAPIUserapiV2UserDetailSystemsUnauthorized) IsServerError

IsServerError returns true when this get Api userapi v2 user detail systems unauthorized response has a 5xx status code

func (*GetAPIUserapiV2UserDetailSystemsUnauthorized) IsSuccess

IsSuccess returns true when this get Api userapi v2 user detail systems unauthorized response has a 2xx status code

func (*GetAPIUserapiV2UserDetailSystemsUnauthorized) String

type GetEpochserviceV1SystemSystemIDReadingsOK

type GetEpochserviceV1SystemSystemIDReadingsOK struct {
	Payload []*GetEpochserviceV1SystemSystemIDReadingsOKBodyItems0
}

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

Successful retrieval of energy readings.

func NewGetEpochserviceV1SystemSystemIDReadingsOK

func NewGetEpochserviceV1SystemSystemIDReadingsOK() *GetEpochserviceV1SystemSystemIDReadingsOK

NewGetEpochserviceV1SystemSystemIDReadingsOK creates a GetEpochserviceV1SystemSystemIDReadingsOK with default headers values

func (*GetEpochserviceV1SystemSystemIDReadingsOK) Code

Code gets the status code for the get epochservice v1 system system Id readings o k response

func (*GetEpochserviceV1SystemSystemIDReadingsOK) Error

func (*GetEpochserviceV1SystemSystemIDReadingsOK) GetPayload

func (*GetEpochserviceV1SystemSystemIDReadingsOK) IsClientError

IsClientError returns true when this get epochservice v1 system system Id readings o k response has a 4xx status code

func (*GetEpochserviceV1SystemSystemIDReadingsOK) IsCode

IsCode returns true when this get epochservice v1 system system Id readings o k response a status code equal to that given

func (*GetEpochserviceV1SystemSystemIDReadingsOK) IsRedirect

IsRedirect returns true when this get epochservice v1 system system Id readings o k response has a 3xx status code

func (*GetEpochserviceV1SystemSystemIDReadingsOK) IsServerError

IsServerError returns true when this get epochservice v1 system system Id readings o k response has a 5xx status code

func (*GetEpochserviceV1SystemSystemIDReadingsOK) IsSuccess

IsSuccess returns true when this get epochservice v1 system system Id readings o k response has a 2xx status code

func (*GetEpochserviceV1SystemSystemIDReadingsOK) String

type GetEpochserviceV1SystemSystemIDReadingsOKBodyItems0

type GetEpochserviceV1SystemSystemIDReadingsOKBodyItems0 struct {

	// readings
	Readings []*GetEpochserviceV1SystemSystemIDReadingsOKBodyItems0ReadingsItems0 `json:"readings"`

	// start timestamp
	StartTimestamp float64 `json:"startTimestamp,omitempty"`

	// system UUID
	SystemUUID string `json:"systemUUID,omitempty"`
}

GetEpochserviceV1SystemSystemIDReadingsOKBodyItems0 get epochservice v1 system system ID readings o k body items0 swagger:model GetEpochserviceV1SystemSystemIDReadingsOKBodyItems0

func (*GetEpochserviceV1SystemSystemIDReadingsOKBodyItems0) ContextValidate

ContextValidate validate this get epochservice v1 system system ID readings o k body items0 based on the context it is used

func (*GetEpochserviceV1SystemSystemIDReadingsOKBodyItems0) MarshalBinary

MarshalBinary interface implementation

func (*GetEpochserviceV1SystemSystemIDReadingsOKBodyItems0) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetEpochserviceV1SystemSystemIDReadingsOKBodyItems0) Validate

Validate validates this get epochservice v1 system system ID readings o k body items0

type GetEpochserviceV1SystemSystemIDReadingsOKBodyItems0ReadingsItems0

type GetEpochserviceV1SystemSystemIDReadingsOKBodyItems0ReadingsItems0 struct {

	// duration
	Duration int64 `json:"duration,omitempty"`

	// energy type
	// Enum: [IMPORT GAS_ENERGY]
	EnergyType string `json:"energyType,omitempty"`

	// energy watt hours
	EnergyWattHours int64 `json:"energyWattHours,omitempty"`

	// milli pence cost
	MilliPenceCost int64 `json:"milliPenceCost,omitempty"`

	// tier type
	TierType string `json:"tierType,omitempty"`
}

GetEpochserviceV1SystemSystemIDReadingsOKBodyItems0ReadingsItems0 get epochservice v1 system system ID readings o k body items0 readings items0 swagger:model GetEpochserviceV1SystemSystemIDReadingsOKBodyItems0ReadingsItems0

func (*GetEpochserviceV1SystemSystemIDReadingsOKBodyItems0ReadingsItems0) ContextValidate

ContextValidate validates this get epochservice v1 system system ID readings o k body items0 readings items0 based on context it is used

func (*GetEpochserviceV1SystemSystemIDReadingsOKBodyItems0ReadingsItems0) MarshalBinary

MarshalBinary interface implementation

func (*GetEpochserviceV1SystemSystemIDReadingsOKBodyItems0ReadingsItems0) UnmarshalBinary

UnmarshalBinary interface implementation

func (*GetEpochserviceV1SystemSystemIDReadingsOKBodyItems0ReadingsItems0) Validate

Validate validates this get epochservice v1 system system ID readings o k body items0 readings items0

type GetEpochserviceV1SystemSystemIDReadingsParams

type GetEpochserviceV1SystemSystemIDReadingsParams struct {

	/* EndDate.

	   End date in 'YYYY-MM-DD' format (e.g., '2025-02-01').

	   Format: date
	*/
	EndDate strfmt.Date

	/* StartDate.

	   Start date in 'YYYY-MM-DD' format (e.g., '2025-01-01').

	   Format: date
	*/
	StartDate strfmt.Date

	/* SystemID.

	   Unique identifier for the system.
	*/
	SystemID string

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

GetEpochserviceV1SystemSystemIDReadingsParams contains all the parameters to send to the API endpoint

for the get epochservice v1 system system ID readings operation.

Typically these are written to a http.Request.

func NewGetEpochserviceV1SystemSystemIDReadingsParams

func NewGetEpochserviceV1SystemSystemIDReadingsParams() *GetEpochserviceV1SystemSystemIDReadingsParams

NewGetEpochserviceV1SystemSystemIDReadingsParams creates a new GetEpochserviceV1SystemSystemIDReadingsParams 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 NewGetEpochserviceV1SystemSystemIDReadingsParamsWithContext

func NewGetEpochserviceV1SystemSystemIDReadingsParamsWithContext(ctx context.Context) *GetEpochserviceV1SystemSystemIDReadingsParams

NewGetEpochserviceV1SystemSystemIDReadingsParamsWithContext creates a new GetEpochserviceV1SystemSystemIDReadingsParams object with the ability to set a context for a request.

func NewGetEpochserviceV1SystemSystemIDReadingsParamsWithHTTPClient

func NewGetEpochserviceV1SystemSystemIDReadingsParamsWithHTTPClient(client *http.Client) *GetEpochserviceV1SystemSystemIDReadingsParams

NewGetEpochserviceV1SystemSystemIDReadingsParamsWithHTTPClient creates a new GetEpochserviceV1SystemSystemIDReadingsParams object with the ability to set a custom HTTPClient for a request.

func NewGetEpochserviceV1SystemSystemIDReadingsParamsWithTimeout

func NewGetEpochserviceV1SystemSystemIDReadingsParamsWithTimeout(timeout time.Duration) *GetEpochserviceV1SystemSystemIDReadingsParams

NewGetEpochserviceV1SystemSystemIDReadingsParamsWithTimeout creates a new GetEpochserviceV1SystemSystemIDReadingsParams object with the ability to set a timeout on a request.

func (*GetEpochserviceV1SystemSystemIDReadingsParams) SetContext

SetContext adds the context to the get epochservice v1 system system ID readings params

func (*GetEpochserviceV1SystemSystemIDReadingsParams) SetDefaults

SetDefaults hydrates default values in the get epochservice v1 system system ID readings params (not the query body).

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

func (*GetEpochserviceV1SystemSystemIDReadingsParams) SetEndDate

SetEndDate adds the endDate to the get epochservice v1 system system ID readings params

func (*GetEpochserviceV1SystemSystemIDReadingsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get epochservice v1 system system ID readings params

func (*GetEpochserviceV1SystemSystemIDReadingsParams) SetStartDate

func (o *GetEpochserviceV1SystemSystemIDReadingsParams) SetStartDate(startDate strfmt.Date)

SetStartDate adds the startDate to the get epochservice v1 system system ID readings params

func (*GetEpochserviceV1SystemSystemIDReadingsParams) SetSystemID

func (o *GetEpochserviceV1SystemSystemIDReadingsParams) SetSystemID(systemID string)

SetSystemID adds the systemId to the get epochservice v1 system system ID readings params

func (*GetEpochserviceV1SystemSystemIDReadingsParams) SetTimeout

SetTimeout adds the timeout to the get epochservice v1 system system ID readings params

func (*GetEpochserviceV1SystemSystemIDReadingsParams) WithContext

WithContext adds the context to the get epochservice v1 system system ID readings params

func (*GetEpochserviceV1SystemSystemIDReadingsParams) WithDefaults

WithDefaults hydrates default values in the get epochservice v1 system system ID readings params (not the query body).

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

func (*GetEpochserviceV1SystemSystemIDReadingsParams) WithEndDate

WithEndDate adds the endDate to the get epochservice v1 system system ID readings params

func (*GetEpochserviceV1SystemSystemIDReadingsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get epochservice v1 system system ID readings params

func (*GetEpochserviceV1SystemSystemIDReadingsParams) WithStartDate

WithStartDate adds the startDate to the get epochservice v1 system system ID readings params

func (*GetEpochserviceV1SystemSystemIDReadingsParams) WithSystemID

WithSystemID adds the systemID to the get epochservice v1 system system ID readings params

func (*GetEpochserviceV1SystemSystemIDReadingsParams) WithTimeout

WithTimeout adds the timeout to the get epochservice v1 system system ID readings params

func (*GetEpochserviceV1SystemSystemIDReadingsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetEpochserviceV1SystemSystemIDReadingsReader

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

GetEpochserviceV1SystemSystemIDReadingsReader is a Reader for the GetEpochserviceV1SystemSystemIDReadings structure.

func (*GetEpochserviceV1SystemSystemIDReadingsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostUsersserviceV2LoginBody

type PostUsersserviceV2LoginBody struct {

	// identity
	Identity string `json:"identity,omitempty"`

	// password
	Password string `json:"password,omitempty"`
}

PostUsersserviceV2LoginBody post usersservice v2 login body swagger:model PostUsersserviceV2LoginBody

func (*PostUsersserviceV2LoginBody) ContextValidate

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

ContextValidate validates this post usersservice v2 login body based on context it is used

func (*PostUsersserviceV2LoginBody) MarshalBinary

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

MarshalBinary interface implementation

func (*PostUsersserviceV2LoginBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PostUsersserviceV2LoginBody) Validate

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

Validate validates this post usersservice v2 login body

type PostUsersserviceV2LoginOK

type PostUsersserviceV2LoginOK struct {
	Payload *PostUsersserviceV2LoginOKBody
}

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

Authentication successful

func NewPostUsersserviceV2LoginOK

func NewPostUsersserviceV2LoginOK() *PostUsersserviceV2LoginOK

NewPostUsersserviceV2LoginOK creates a PostUsersserviceV2LoginOK with default headers values

func (*PostUsersserviceV2LoginOK) Code

func (o *PostUsersserviceV2LoginOK) Code() int

Code gets the status code for the post usersservice v2 login o k response

func (*PostUsersserviceV2LoginOK) Error

func (o *PostUsersserviceV2LoginOK) Error() string

func (*PostUsersserviceV2LoginOK) GetPayload

func (*PostUsersserviceV2LoginOK) IsClientError

func (o *PostUsersserviceV2LoginOK) IsClientError() bool

IsClientError returns true when this post usersservice v2 login o k response has a 4xx status code

func (*PostUsersserviceV2LoginOK) IsCode

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

IsCode returns true when this post usersservice v2 login o k response a status code equal to that given

func (*PostUsersserviceV2LoginOK) IsRedirect

func (o *PostUsersserviceV2LoginOK) IsRedirect() bool

IsRedirect returns true when this post usersservice v2 login o k response has a 3xx status code

func (*PostUsersserviceV2LoginOK) IsServerError

func (o *PostUsersserviceV2LoginOK) IsServerError() bool

IsServerError returns true when this post usersservice v2 login o k response has a 5xx status code

func (*PostUsersserviceV2LoginOK) IsSuccess

func (o *PostUsersserviceV2LoginOK) IsSuccess() bool

IsSuccess returns true when this post usersservice v2 login o k response has a 2xx status code

func (*PostUsersserviceV2LoginOK) String

func (o *PostUsersserviceV2LoginOK) String() string

type PostUsersserviceV2LoginOKBody

type PostUsersserviceV2LoginOKBody struct {

	// access token
	AccessToken string `json:"accessToken,omitempty"`
}

PostUsersserviceV2LoginOKBody post usersservice v2 login o k body swagger:model PostUsersserviceV2LoginOKBody

func (*PostUsersserviceV2LoginOKBody) ContextValidate

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

ContextValidate validates this post usersservice v2 login o k body based on context it is used

func (*PostUsersserviceV2LoginOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*PostUsersserviceV2LoginOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PostUsersserviceV2LoginOKBody) Validate

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

Validate validates this post usersservice v2 login o k body

type PostUsersserviceV2LoginParams

type PostUsersserviceV2LoginParams struct {

	// Body.
	Body PostUsersserviceV2LoginBody

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

PostUsersserviceV2LoginParams contains all the parameters to send to the API endpoint

for the post usersservice v2 login operation.

Typically these are written to a http.Request.

func NewPostUsersserviceV2LoginParams

func NewPostUsersserviceV2LoginParams() *PostUsersserviceV2LoginParams

NewPostUsersserviceV2LoginParams creates a new PostUsersserviceV2LoginParams 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 NewPostUsersserviceV2LoginParamsWithContext

func NewPostUsersserviceV2LoginParamsWithContext(ctx context.Context) *PostUsersserviceV2LoginParams

NewPostUsersserviceV2LoginParamsWithContext creates a new PostUsersserviceV2LoginParams object with the ability to set a context for a request.

func NewPostUsersserviceV2LoginParamsWithHTTPClient

func NewPostUsersserviceV2LoginParamsWithHTTPClient(client *http.Client) *PostUsersserviceV2LoginParams

NewPostUsersserviceV2LoginParamsWithHTTPClient creates a new PostUsersserviceV2LoginParams object with the ability to set a custom HTTPClient for a request.

func NewPostUsersserviceV2LoginParamsWithTimeout

func NewPostUsersserviceV2LoginParamsWithTimeout(timeout time.Duration) *PostUsersserviceV2LoginParams

NewPostUsersserviceV2LoginParamsWithTimeout creates a new PostUsersserviceV2LoginParams object with the ability to set a timeout on a request.

func (*PostUsersserviceV2LoginParams) SetBody

SetBody adds the body to the post usersservice v2 login params

func (*PostUsersserviceV2LoginParams) SetContext

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

SetContext adds the context to the post usersservice v2 login params

func (*PostUsersserviceV2LoginParams) SetDefaults

func (o *PostUsersserviceV2LoginParams) SetDefaults()

SetDefaults hydrates default values in the post usersservice v2 login params (not the query body).

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

func (*PostUsersserviceV2LoginParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post usersservice v2 login params

func (*PostUsersserviceV2LoginParams) SetTimeout

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

SetTimeout adds the timeout to the post usersservice v2 login params

func (*PostUsersserviceV2LoginParams) WithBody

WithBody adds the body to the post usersservice v2 login params

func (*PostUsersserviceV2LoginParams) WithContext

WithContext adds the context to the post usersservice v2 login params

func (*PostUsersserviceV2LoginParams) WithDefaults

WithDefaults hydrates default values in the post usersservice v2 login params (not the query body).

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

func (*PostUsersserviceV2LoginParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the post usersservice v2 login params

func (*PostUsersserviceV2LoginParams) WithTimeout

WithTimeout adds the timeout to the post usersservice v2 login params

func (*PostUsersserviceV2LoginParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostUsersserviceV2LoginReader

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

PostUsersserviceV2LoginReader is a Reader for the PostUsersserviceV2Login structure.

func (*PostUsersserviceV2LoginReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostUsersserviceV2LoginUnauthorized

type PostUsersserviceV2LoginUnauthorized struct {
}

PostUsersserviceV2LoginUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewPostUsersserviceV2LoginUnauthorized

func NewPostUsersserviceV2LoginUnauthorized() *PostUsersserviceV2LoginUnauthorized

NewPostUsersserviceV2LoginUnauthorized creates a PostUsersserviceV2LoginUnauthorized with default headers values

func (*PostUsersserviceV2LoginUnauthorized) Code

Code gets the status code for the post usersservice v2 login unauthorized response

func (*PostUsersserviceV2LoginUnauthorized) Error

func (*PostUsersserviceV2LoginUnauthorized) IsClientError

func (o *PostUsersserviceV2LoginUnauthorized) IsClientError() bool

IsClientError returns true when this post usersservice v2 login unauthorized response has a 4xx status code

func (*PostUsersserviceV2LoginUnauthorized) IsCode

IsCode returns true when this post usersservice v2 login unauthorized response a status code equal to that given

func (*PostUsersserviceV2LoginUnauthorized) IsRedirect

func (o *PostUsersserviceV2LoginUnauthorized) IsRedirect() bool

IsRedirect returns true when this post usersservice v2 login unauthorized response has a 3xx status code

func (*PostUsersserviceV2LoginUnauthorized) IsServerError

func (o *PostUsersserviceV2LoginUnauthorized) IsServerError() bool

IsServerError returns true when this post usersservice v2 login unauthorized response has a 5xx status code

func (*PostUsersserviceV2LoginUnauthorized) IsSuccess

IsSuccess returns true when this post usersservice v2 login unauthorized response has a 2xx status code

func (*PostUsersserviceV2LoginUnauthorized) String

Jump to

Keyboard shortcuts

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