Documentation
¶
Index ¶
- Variables
- func CacheExpires(r *http.Response) time.Time
- type APIClient
- type APIKey
- type APIResponse
- type ArduinoDevicev2
- type ArduinoDevicev2EventProperties
- type ArduinoDevicev2SimpleProperties
- type ArduinoDevicev2Webhook
- type ArduinoDevicev2properties
- type ArduinoDevicev2propertyvalue
- type ArduinoDevicev2propertyvalueValue
- type ArduinoDevicev2propertyvalueValueStatistics
- type ArduinoDevicev2propertyvalues
- type ArduinoDevicev2propertyvaluesLastEvaluatedKey
- type ArduinoProperty
- type ArduinoSeriesBatch
- type ArduinoSeriesRawBatch
- type ArduinoSeriesRawBatchLastvalue
- type ArduinoSeriesRawLastValueResponse
- type ArduinoSeriesRawResponse
- type ArduinoSeriesResponse
- type ArduinoThing
- type ArduinoThinglayout
- type BasicAuth
- type BatchLastValueRequestsMediaV1
- type BatchQueryRawLastValueRequestMediaV1
- type BatchQueryRawRequestMediaV1
- type BatchQueryRawRequestsMediaV1
- type BatchQueryRawResponseSeriesMediaV1
- type BatchQueryRequestMediaV1
- type BatchQueryRequestsMediaV1
- type BatchQueryResponseSeriesMediaV1
- type Configuration
- type CreateDevicesV2Payload
- type CreateThingsV1Payload
- type CreateThingsV2Payload
- type DevicesV2ApiService
- func (a *DevicesV2ApiService) DevicesV2Create(ctx _context.Context, createDevicesV2Payload CreateDevicesV2Payload) (ArduinoDevicev2, *_nethttp.Response, error)
- func (a *DevicesV2ApiService) DevicesV2Delete(ctx _context.Context, id string) (*_nethttp.Response, error)
- func (a *DevicesV2ApiService) DevicesV2GetEvents(ctx _context.Context, id string, localVarOptionals *DevicesV2GetEventsOpts) (ArduinoDevicev2EventProperties, *_nethttp.Response, error)
- func (a *DevicesV2ApiService) DevicesV2GetProperties(ctx _context.Context, id string, localVarOptionals *DevicesV2GetPropertiesOpts) (ArduinoDevicev2properties, *_nethttp.Response, error)
- func (a *DevicesV2ApiService) DevicesV2List(ctx _context.Context, localVarOptionals *DevicesV2ListOpts) ([]ArduinoDevicev2, *_nethttp.Response, error)
- func (a *DevicesV2ApiService) DevicesV2Show(ctx _context.Context, id string) (ArduinoDevicev2, *_nethttp.Response, error)
- func (a *DevicesV2ApiService) DevicesV2Timeseries(ctx _context.Context, id string, pid string, ...) (ArduinoDevicev2propertyvalues, *_nethttp.Response, error)
- func (a *DevicesV2ApiService) DevicesV2Update(ctx _context.Context, id string, devicev2 Devicev2) (ArduinoDevicev2, *_nethttp.Response, error)
- func (a *DevicesV2ApiService) DevicesV2UpdateProperties(ctx _context.Context, id string, propertiesValues PropertiesValues) (*_nethttp.Response, error)
- type DevicesV2GetEventsOpts
- type DevicesV2GetPropertiesOpts
- type DevicesV2ListOpts
- type DevicesV2TimeseriesOpts
- type Devicev2
- type GenericOpenAPIError
- type ModelError
- type PropertiesV1ApiService
- func (a *PropertiesV1ApiService) PropertiesV1Create(ctx _context.Context, id string, property Property) (ArduinoProperty, *_nethttp.Response, error)
- func (a *PropertiesV1ApiService) PropertiesV1Delete(ctx _context.Context, id string, pid string, ...) (*_nethttp.Response, error)
- func (a *PropertiesV1ApiService) PropertiesV1List(ctx _context.Context, id string, localVarOptionals *PropertiesV1ListOpts) ([]ArduinoProperty, *_nethttp.Response, error)
- func (a *PropertiesV1ApiService) PropertiesV1Send(ctx _context.Context, id string, pid string, ...) (*_nethttp.Response, error)
- func (a *PropertiesV1ApiService) PropertiesV1Show(ctx _context.Context, id string, pid string, ...) (ArduinoProperty, *_nethttp.Response, error)
- func (a *PropertiesV1ApiService) PropertiesV1Update(ctx _context.Context, id string, pid string, property Property) (ArduinoProperty, *_nethttp.Response, error)
- type PropertiesV1DeleteOpts
- type PropertiesV1ListOpts
- type PropertiesV1ShowOpts
- type PropertiesV2ApiService
- func (a *PropertiesV2ApiService) PropertiesV2Create(ctx _context.Context, id string, property Property) (ArduinoProperty, *_nethttp.Response, error)
- func (a *PropertiesV2ApiService) PropertiesV2Delete(ctx _context.Context, id string, pid string, ...) (*_nethttp.Response, error)
- func (a *PropertiesV2ApiService) PropertiesV2List(ctx _context.Context, id string, localVarOptionals *PropertiesV2ListOpts) ([]ArduinoProperty, *_nethttp.Response, error)
- func (a *PropertiesV2ApiService) PropertiesV2Publish(ctx _context.Context, id string, pid string, propertyValue PropertyValue) (*_nethttp.Response, error)
- func (a *PropertiesV2ApiService) PropertiesV2Show(ctx _context.Context, id string, pid string, ...) (ArduinoProperty, *_nethttp.Response, error)
- func (a *PropertiesV2ApiService) PropertiesV2Update(ctx _context.Context, id string, pid string, property Property) (ArduinoProperty, *_nethttp.Response, error)
- type PropertiesV2DeleteOpts
- type PropertiesV2ListOpts
- type PropertiesV2ShowOpts
- type PropertiesValue
- type PropertiesValues
- type Property
- type PropertyStringValue
- type PropertyValue
- type SeriesV1ApiService
- type SeriesV2ApiService
- func (a *SeriesV2ApiService) SeriesV2BatchQuery(ctx _context.Context, batchQueryRequestsMediaV1 BatchQueryRequestsMediaV1) (ArduinoSeriesBatch, *_nethttp.Response, error)
- func (a *SeriesV2ApiService) SeriesV2BatchQueryRaw(ctx _context.Context, ...) (ArduinoSeriesRawBatch, *_nethttp.Response, error)
- func (a *SeriesV2ApiService) SeriesV2BatchQueryRawLastValue(ctx _context.Context, ...) (ArduinoSeriesRawBatchLastvalue, *_nethttp.Response, error)
- type Thing
- type ThingSketch
- type ThingsV1ApiService
- func (a *ThingsV1ApiService) ThingsV1Create(ctx _context.Context, createThingsV1Payload CreateThingsV1Payload, ...) (ArduinoThing, *_nethttp.Response, error)
- func (a *ThingsV1ApiService) ThingsV1CreateSketch(ctx _context.Context, id string, thingSketch ThingSketch) (ArduinoThing, *_nethttp.Response, error)
- func (a *ThingsV1ApiService) ThingsV1Delete(ctx _context.Context, id string, localVarOptionals *ThingsV1DeleteOpts) (*_nethttp.Response, error)
- func (a *ThingsV1ApiService) ThingsV1DeleteSketch(ctx _context.Context, id string) (ArduinoThing, *_nethttp.Response, error)
- func (a *ThingsV1ApiService) ThingsV1Layout(ctx _context.Context, id string, localVarOptionals *ThingsV1LayoutOpts) (ArduinoThinglayout, *_nethttp.Response, error)
- func (a *ThingsV1ApiService) ThingsV1List(ctx _context.Context, localVarOptionals *ThingsV1ListOpts) ([]ArduinoThing, *_nethttp.Response, error)
- func (a *ThingsV1ApiService) ThingsV1Show(ctx _context.Context, id string, localVarOptionals *ThingsV1ShowOpts) (ArduinoThing, *_nethttp.Response, error)
- func (a *ThingsV1ApiService) ThingsV1Update(ctx _context.Context, id string, thing Thing, ...) (ArduinoThing, *_nethttp.Response, error)
- func (a *ThingsV1ApiService) ThingsV1UpdateSketch(ctx _context.Context, id string, sketchId string) (ArduinoThing, *_nethttp.Response, error)
- type ThingsV1CreateOpts
- type ThingsV1DeleteOpts
- type ThingsV1LayoutOpts
- type ThingsV1ListOpts
- type ThingsV1ShowOpts
- type ThingsV1UpdateOpts
- type ThingsV2ApiService
- func (a *ThingsV2ApiService) ThingsV2Create(ctx _context.Context, createThingsV2Payload CreateThingsV2Payload, ...) (ArduinoThing, *_nethttp.Response, error)
- func (a *ThingsV2ApiService) ThingsV2CreateSketch(ctx _context.Context, id string, thingSketch ThingSketch) (ArduinoThing, *_nethttp.Response, error)
- func (a *ThingsV2ApiService) ThingsV2Delete(ctx _context.Context, id string, localVarOptionals *ThingsV2DeleteOpts) (*_nethttp.Response, error)
- func (a *ThingsV2ApiService) ThingsV2DeleteSketch(ctx _context.Context, id string) (ArduinoThing, *_nethttp.Response, error)
- func (a *ThingsV2ApiService) ThingsV2List(ctx _context.Context, localVarOptionals *ThingsV2ListOpts) ([]ArduinoThing, *_nethttp.Response, error)
- func (a *ThingsV2ApiService) ThingsV2Show(ctx _context.Context, id string, localVarOptionals *ThingsV2ShowOpts) (ArduinoThing, *_nethttp.Response, error)
- func (a *ThingsV2ApiService) ThingsV2Update(ctx _context.Context, id string, thing Thing, ...) (ArduinoThing, *_nethttp.Response, error)
- func (a *ThingsV2ApiService) ThingsV2UpdateSketch(ctx _context.Context, id string, sketchId string, ...) (ArduinoThing, *_nethttp.Response, error)
- type ThingsV2CreateOpts
- type ThingsV2DeleteOpts
- type ThingsV2ListOpts
- type ThingsV2ShowOpts
- type ThingsV2UpdateOpts
- type ThingsV2UpdateSketchOpts
- type UpdateSketch
Constants ¶
This section is empty.
Variables ¶
var ( // ContextOAuth2 takes an oauth2.TokenSource as authentication for the request. ContextOAuth2 = contextKey("token") // ContextBasicAuth takes BasicAuth as authentication for the request. ContextBasicAuth = contextKey("basic") // ContextAccessToken takes a string oauth2 access token as authentication for the request. ContextAccessToken = contextKey("accesstoken") // ContextAPIKey takes an APIKey as authentication for the request ContextAPIKey = contextKey("apikey") )
Functions ¶
Types ¶
type APIClient ¶
type APIClient struct { DevicesV2Api *DevicesV2ApiService PropertiesV2Api *PropertiesV2ApiService SeriesV2Api *SeriesV2ApiService ThingsV2Api *ThingsV2ApiService // contains filtered or unexported fields }
APIClient manages communication with the Iot API API v2.0 In most cases there should be only one, shared, APIClient.
func NewAPIClient ¶
func NewAPIClient(cfg *Configuration) *APIClient
NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.
func (*APIClient) ChangeBasePath ¶
ChangeBasePath changes base path to allow switching to mocks
func (*APIClient) GetConfig ¶ added in v1.0.1
func (c *APIClient) GetConfig() *Configuration
Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior
type APIKey ¶
APIKey provides API key based authentication to a request passed via context using ContextAPIKey
type APIResponse ¶
type APIResponse struct { *http.Response `json:"-"` Message string `json:"message,omitempty"` // Operation is the name of the OpenAPI operation. Operation string `json:"operation,omitempty"` // RequestURL is the request URL. This value is always available, even if the // embedded *http.Response is nil. RequestURL string `json:"url,omitempty"` // Method is the HTTP method used for the request. This value is always // available, even if the embedded *http.Response is nil. Method string `json:"method,omitempty"` // Payload holds the contents of the response body (which may be nil or empty). // This is provided here as the raw response.Body() reader will have already // been drained. Payload []byte `json:"-"` }
APIResponse stores the API response returned by the server.
func NewAPIResponse ¶
func NewAPIResponse(r *http.Response) *APIResponse
NewAPIResponse returns a new APIResonse object.
func NewAPIResponseWithError ¶
func NewAPIResponseWithError(errorMessage string) *APIResponse
NewAPIResponseWithError returns a new APIResponse object with the provided error message.
type ArduinoDevicev2 ¶
type ArduinoDevicev2 struct { // Creation date of the device CreatedAt time.Time `json:"created_at,omitempty"` // ArduinoDevicev2SimplePropertiesCollection is the media type for an array of ArduinoDevicev2SimpleProperties (default view) Events []ArduinoDevicev2SimpleProperties `json:"events,omitempty"` // The fully qualified board name Fqbn string `json:"fqbn,omitempty"` // The api reference of this device Href string `json:"href"` // The arn of the device Id string `json:"id"` // The metadata of the device Metadata map[string]interface{} `json:"metadata,omitempty"` // The friendly name of the device Name string `json:"name"` // The serial uuid of the device Serial string `json:"serial"` // The type of the device Type string `json:"type"` // The id of the user UserId string `json:"user_id"` // ArduinoDevicev2WebhookCollection is the media type for an array of ArduinoDevicev2Webhook (default view) Webhooks []ArduinoDevicev2Webhook `json:"webhooks,omitempty"` }
ArduinoDevicev2 ArduinoDevicev2 media type (default view)
type ArduinoDevicev2EventProperties ¶ added in v1.1.0
type ArduinoDevicev2EventProperties struct { // ArduinoDevicev2SimplePropertiesCollection is the media type for an array of ArduinoDevicev2SimpleProperties (default view) Events []ArduinoDevicev2SimpleProperties `json:"events"` // The device of the property Id string `json:"id"` }
ArduinoDevicev2EventProperties ArduinoDevicev2EventProperties media type (default view)
type ArduinoDevicev2SimpleProperties ¶ added in v1.1.0
type ArduinoDevicev2SimpleProperties struct { // The name of the property Name string `json:"name"` // Update date of the property UpdatedAt time.Time `json:"updated_at"` // Value of the property Value interface{} `json:"value"` }
ArduinoDevicev2SimpleProperties ArduinoDevicev2SimpleProperties media type (default view)
type ArduinoDevicev2Webhook ¶
type ArduinoDevicev2Webhook struct { // Whether the webhook is active Active bool `json:"active,omitempty"` // The uuid of the webhook Id string `json:"id"` // The uri of the webhook Uri string `json:"uri"` }
ArduinoDevicev2Webhook DeviceWebhookV2 describes a webhook associated to the device (default view)
type ArduinoDevicev2properties ¶
type ArduinoDevicev2properties struct { // How many days the data will be kept DataRetentionDays float64 `json:"data_retention_days"` // The device of the property DeviceId string `json:"deviceId"` // ArduinoPropertyCollection is the media type for an array of ArduinoProperty (default view) Properties []ArduinoProperty `json:"properties"` // The user id of the owner UserId string `json:"user_id"` }
ArduinoDevicev2properties ArduinoDevicev2properties media type (default view)
type ArduinoDevicev2propertyvalue ¶
type ArduinoDevicev2propertyvalue struct { CreatedAt time.Time `json:"created_at,omitempty"` Value ArduinoDevicev2propertyvalueValue `json:"value,omitempty"` }
ArduinoDevicev2propertyvalue ArduinoDevicev2propertyvalue media type (default view)
type ArduinoDevicev2propertyvalueValue ¶
type ArduinoDevicev2propertyvalueValue struct { Payload string `json:"payload,omitempty"` Seqno int64 `json:"seqno,omitempty"` Statistics ArduinoDevicev2propertyvalueValueStatistics `json:"statistics,omitempty"` }
ArduinoDevicev2propertyvalueValue struct for ArduinoDevicev2propertyvalueValue
type ArduinoDevicev2propertyvalueValueStatistics ¶
type ArduinoDevicev2propertyvalueValueStatistics struct { Adr float64 `json:"adr,omitempty"` Channel float64 `json:"channel,omitempty"` Duplicate float64 `json:"duplicate,omitempty"` Freq float64 `json:"freq,omitempty"` ModBW float64 `json:"modBW,omitempty"` Rssi float64 `json:"rssi,omitempty"` Seqno float64 `json:"seqno,omitempty"` Sf float64 `json:"sf,omitempty"` Snr float64 `json:"snr,omitempty"` Time float64 `json:"time,omitempty"` }
ArduinoDevicev2propertyvalueValueStatistics struct for ArduinoDevicev2propertyvalueValueStatistics
type ArduinoDevicev2propertyvalues ¶
type ArduinoDevicev2propertyvalues struct { Id string `json:"id"` LastEvaluatedKey ArduinoDevicev2propertyvaluesLastEvaluatedKey `json:"last_evaluated_key"` Name string `json:"name"` // ArduinoDevicev2propertyvalueCollection is the media type for an array of ArduinoDevicev2propertyvalue (default view) Values []ArduinoDevicev2propertyvalue `json:"values"` }
ArduinoDevicev2propertyvalues ArduinoDevicev2propertyvalues media type (default view)
type ArduinoDevicev2propertyvaluesLastEvaluatedKey ¶
type ArduinoDevicev2propertyvaluesLastEvaluatedKey struct { CreatedAt time.Time `json:"created_at,omitempty"` Id string `json:"id,omitempty"` Name string `json:"name,omitempty"` }
ArduinoDevicev2propertyvaluesLastEvaluatedKey struct for ArduinoDevicev2propertyvaluesLastEvaluatedKey
type ArduinoProperty ¶
type ArduinoProperty struct { // Creation date of the property CreatedAt time.Time `json:"created_at,omitempty"` // Delete date of the property DeletedAt time.Time `json:"deleted_at,omitempty"` // The api reference of this property Href string `json:"href"` // The id of the property Id string `json:"id"` // Last value of this property LastValue interface{} `json:"last_value,omitempty"` // Maximum value of this property MaxValue float64 `json:"max_value,omitempty"` // Minimum value of this property MinValue float64 `json:"min_value,omitempty"` // The friendly name of the property Name string `json:"name"` // The permission of the property Permission string `json:"permission"` // If true, data will persist into a timeseries database Persist bool `json:"persist,omitempty"` // The id of the thing ThingId string `json:"thing_id"` // The type of the property Type string `json:"type"` // The update frequency in seconds, or the amount of the property has to change in order to trigger an update UpdateParameter float64 `json:"update_parameter,omitempty"` // The update strategy for the property value UpdateStrategy string `json:"update_strategy"` // Update date of the property UpdatedAt time.Time `json:"updated_at,omitempty"` // Last update timestamp of this property ValueUpdatedAt time.Time `json:"value_updated_at,omitempty"` // The sketch variable name of the property VariableName string `json:"variable_name,omitempty"` }
ArduinoProperty ArduinoProperty media type (default view)
type ArduinoSeriesBatch ¶
type ArduinoSeriesBatch struct { // Response version RespVersion int64 `json:"resp_version"` // Responses of the request Responses []ArduinoSeriesResponse `json:"responses"` }
ArduinoSeriesBatch ArduinoSeriesBatch media type (default view)
type ArduinoSeriesRawBatch ¶
type ArduinoSeriesRawBatch struct { // Response version RespVersion int64 `json:"resp_version"` // Responses of the request Responses []ArduinoSeriesRawResponse `json:"responses"` }
ArduinoSeriesRawBatch ArduinoSeriesRawBatch media type (default view)
type ArduinoSeriesRawBatchLastvalue ¶
type ArduinoSeriesRawBatchLastvalue struct { // Responses of the request Responses []ArduinoSeriesRawLastValueResponse `json:"responses"` // Status of the response Status string `json:"status"` }
ArduinoSeriesRawBatchLastvalue ArduinoSeriesRawBatchLastvalue media type (default view)
type ArduinoSeriesRawLastValueResponse ¶
type ArduinoSeriesRawLastValueResponse struct { // Total number of values in the array 'values' CountValues int64 `json:"count_values"` // Property id PropertyId string `json:"property_id"` // Thing id ThingId string `json:"thing_id"` // Timestamp in RFC3339 Times []time.Time `json:"times"` // Values can be in Float, String, Bool, Object Values []interface{} `json:"values"` }
ArduinoSeriesRawLastValueResponse ArduinoSeriesRawLastValueResponse media type (default view)
type ArduinoSeriesRawResponse ¶
type ArduinoSeriesRawResponse struct { // Total number of values in the array 'values' CountValues int64 `json:"count_values"` // From date FromDate time.Time `json:"from_date"` // If the response is different than 'ok' Message string `json:"message,omitempty"` // Query of for the data Query string `json:"query"` // Response version RespVersion int64 `json:"resp_version"` Series BatchQueryRawResponseSeriesMediaV1 `json:"series"` // Max of values SeriesLimit int64 `json:"series_limit,omitempty"` // Sorting Sort string `json:"sort"` // Status of the response Status string `json:"status"` // Timestamp in RFC3339 Times []time.Time `json:"times"` // To date ToDate time.Time `json:"to_date"` // Values can be in Float, String, Bool, Object Values []interface{} `json:"values"` }
ArduinoSeriesRawResponse ArduinoSeriesRawResponse media type (default view)
type ArduinoSeriesResponse ¶
type ArduinoSeriesResponse struct { // Total number of values in the array 'values' CountValues int64 `json:"count_values"` // From date FromDate time.Time `json:"from_date"` // Resolution in seconds Interval int64 `json:"interval"` // If the response is different than 'ok' Message string `json:"message,omitempty"` // Query of for the data Query string `json:"query"` // Response version RespVersion int64 `json:"resp_version"` // Max of values SeriesLimit int64 `json:"series_limit,omitempty"` // Status of the response Status string `json:"status"` // Timestamp in RFC3339 Times []time.Time `json:"times"` // To date ToDate time.Time `json:"to_date"` // Values in Float Values []float64 `json:"values"` }
ArduinoSeriesResponse ArduinoSeriesResponse media type (default view)
type ArduinoThing ¶
type ArduinoThing struct { // Creation date of the thing CreatedAt time.Time `json:"created_at,omitempty"` // Delete date of the thing DeletedAt time.Time `json:"deleted_at,omitempty"` // The arn of the device DeviceId string `json:"device_id,omitempty"` // The api reference of this thing Href string `json:"href"` // The id of the thing Id string `json:"id"` // The friendly name of the thing Name string `json:"name"` // ArduinoPropertyCollection is the media type for an array of ArduinoProperty (default view) Properties []ArduinoProperty `json:"properties,omitempty"` // The number of properties of the thing PropertiesCount int64 `json:"properties_count,omitempty"` // The id of the attached sketch SketchId string `json:"sketch_id,omitempty"` // Update date of the thing UpdatedAt time.Time `json:"updated_at,omitempty"` // The user id of the owner UserId string `json:"user_id"` // Webhook uri WebhookActive bool `json:"webhook_active,omitempty"` // Webhook uri WebhookUri string `json:"webhook_uri,omitempty"` }
ArduinoThing ArduinoThing media type (default view)
type ArduinoThinglayout ¶
type ArduinoThinglayout struct { // Creation date of the thing CreatedAt time.Time `json:"created_at,omitempty"` // How many days the data will be kept DataRetentionDays float64 `json:"data_retention_days,omitempty"` // Delete date of the thing DeletedAt time.Time `json:"deleted_at,omitempty"` // The arn of the device DeviceId string `json:"device_id,omitempty"` // The api reference of this thing Href string `json:"href"` // The id of the thing Id string `json:"id"` // The friendly name of the thing Name string `json:"name"` // ArduinoPropertyCollection is the media type for an array of ArduinoProperty (default view) Properties []ArduinoProperty `json:"properties,omitempty"` // The number of properties of the thing PropertiesCount float64 `json:"properties_count,omitempty"` // The id of the attached sketch SketchId string `json:"sketch_id,omitempty"` // Update date of the thing UpdatedAt time.Time `json:"updated_at,omitempty"` // The user id of the owner UserId string `json:"user_id"` // Webhook uri WebhookActive bool `json:"webhook_active,omitempty"` // Webhook uri WebhookUri string `json:"webhook_uri,omitempty"` }
ArduinoThinglayout ArduinoThinglayout media type (default view)
type BasicAuth ¶
type BasicAuth struct { UserName string `json:"userName,omitempty"` Password string `json:"password,omitempty"` }
BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth
type BatchLastValueRequestsMediaV1 ¶
type BatchLastValueRequestsMediaV1 struct { // Requests Requests []BatchQueryRawLastValueRequestMediaV1 `json:"requests"` }
BatchLastValueRequestsMediaV1 struct for BatchLastValueRequestsMediaV1
type BatchQueryRawLastValueRequestMediaV1 ¶
type BatchQueryRawLastValueRequestMediaV1 struct { // Property id PropertyId string `json:"property_id"` // Thing id ThingId string `json:"thing_id"` }
BatchQueryRawLastValueRequestMediaV1 struct for BatchQueryRawLastValueRequestMediaV1
type BatchQueryRawRequestMediaV1 ¶
type BatchQueryRawRequestMediaV1 struct { // From timestamp From time.Time `json:"from,omitempty"` // Query Q string `json:"q"` // Max of values SeriesLimit int64 `json:"series_limit,omitempty"` // Sorting Sort string `json:"sort,omitempty"` // To timestamp To time.Time `json:"to,omitempty"` }
BatchQueryRawRequestMediaV1 struct for BatchQueryRawRequestMediaV1
type BatchQueryRawRequestsMediaV1 ¶
type BatchQueryRawRequestsMediaV1 struct { // Requests Requests []BatchQueryRawRequestMediaV1 `json:"requests"` // Response version RespVersion int64 `json:"resp_version"` }
BatchQueryRawRequestsMediaV1 struct for BatchQueryRawRequestsMediaV1
type BatchQueryRawResponseSeriesMediaV1 ¶
type BatchQueryRawResponseSeriesMediaV1 struct { // Metric name Metric string `json:"metric"` }
BatchQueryRawResponseSeriesMediaV1 struct for BatchQueryRawResponseSeriesMediaV1
type BatchQueryRequestMediaV1 ¶
type BatchQueryRequestMediaV1 struct { // From timestamp From time.Time `json:"from"` // Resolution in seconds Interval int64 `json:"interval,omitempty"` // Query Q string `json:"q"` // Max of values SeriesLimit int64 `json:"series_limit,omitempty"` // To timestamp To time.Time `json:"to"` }
BatchQueryRequestMediaV1 struct for BatchQueryRequestMediaV1
type BatchQueryRequestsMediaV1 ¶
type BatchQueryRequestsMediaV1 struct { // Requests Requests []BatchQueryRequestMediaV1 `json:"requests"` // Response version RespVersion int64 `json:"resp_version"` }
BatchQueryRequestsMediaV1 struct for BatchQueryRequestsMediaV1
type Configuration ¶
type Configuration struct { BasePath string `json:"basePath,omitempty"` Host string `json:"host,omitempty"` Scheme string `json:"scheme,omitempty"` DefaultHeader map[string]string `json:"defaultHeader,omitempty"` UserAgent string `json:"userAgent,omitempty"` Debug bool `json:"debug,omitempty"` HTTPClient *http.Client }
Configuration stores the configuration of the API client
func NewConfiguration ¶
func NewConfiguration() *Configuration
NewConfiguration returns a new Configuration object
func (*Configuration) AddDefaultHeader ¶
func (c *Configuration) AddDefaultHeader(key string, value string)
AddDefaultHeader adds a new HTTP header to the default header in the request
type CreateDevicesV2Payload ¶
type CreateDevicesV2Payload struct { // The fully qualified board name Fqbn string `json:"fqbn,omitempty"` // The UUID of the device Id string `json:"id,omitempty"` // The friendly name of the device Name string `json:"name,omitempty"` // The serial uuid of the device Serial string `json:"serial,omitempty"` // The type of the device Type string `json:"type"` // The user_id associated to the device. If absent it will be inferred from the authentication header UserId string `json:"user_id,omitempty"` }
CreateDevicesV2Payload DeviceV2 describes a device.
type CreateThingsV1Payload ¶
type CreateThingsV1Payload struct { // The arn of the associated device DeviceId string `json:"device_id,omitempty"` // The id of the thing Id string `json:"id,omitempty"` // The friendly name of the thing Name string `json:"name"` // Webhook uri WebhookActive bool `json:"webhook_active,omitempty"` // Webhook uri WebhookUri string `json:"webhook_uri,omitempty"` }
CreateThingsV1Payload ThingPayload describes a thing
type CreateThingsV2Payload ¶
type CreateThingsV2Payload struct { // The arn of the associated device DeviceId string `json:"device_id,omitempty"` // The id of the thing Id string `json:"id,omitempty"` // The friendly name of the thing Name string `json:"name"` // Webhook uri WebhookActive bool `json:"webhook_active,omitempty"` // Webhook uri WebhookUri string `json:"webhook_uri,omitempty"` }
CreateThingsV2Payload ThingPayload describes a thing
type DevicesV2ApiService ¶
type DevicesV2ApiService service
DevicesV2ApiService DevicesV2Api service
func (*DevicesV2ApiService) DevicesV2Create ¶
func (a *DevicesV2ApiService) DevicesV2Create(ctx _context.Context, createDevicesV2Payload CreateDevicesV2Payload) (ArduinoDevicev2, *_nethttp.Response, error)
DevicesV2Create create devices_v2 Creates a new device associated to the user.
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param createDevicesV2Payload DeviceV2 describes a device.
@return ArduinoDevicev2
func (*DevicesV2ApiService) DevicesV2Delete ¶
func (a *DevicesV2ApiService) DevicesV2Delete(ctx _context.Context, id string) (*_nethttp.Response, error)
DevicesV2Delete delete devices_v2 Removes a device associated to the user
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id The id of the device
func (*DevicesV2ApiService) DevicesV2GetEvents ¶ added in v1.1.0
func (a *DevicesV2ApiService) DevicesV2GetEvents(ctx _context.Context, id string, localVarOptionals *DevicesV2GetEventsOpts) (ArduinoDevicev2EventProperties, *_nethttp.Response, error)
DevicesV2GetEvents getEvents devices_v2 GET device events
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id The id of the device
- @param optional nil or *DevicesV2GetEventsOpts - Optional Parameters:
- @param "Limit" (optional.Int32) - The number of events to select
- @param "Start" (optional.String) - The time at which to start selecting events
@return ArduinoDevicev2EventProperties
func (*DevicesV2ApiService) DevicesV2GetProperties ¶
func (a *DevicesV2ApiService) DevicesV2GetProperties(ctx _context.Context, id string, localVarOptionals *DevicesV2GetPropertiesOpts) (ArduinoDevicev2properties, *_nethttp.Response, error)
DevicesV2GetProperties getProperties devices_v2 GET device properties
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id The id of the device
- @param optional nil or *DevicesV2GetPropertiesOpts - Optional Parameters:
- @param "ShowDeleted" (optional.Bool) - If true, shows the soft deleted properties
@return ArduinoDevicev2properties
func (*DevicesV2ApiService) DevicesV2List ¶
func (a *DevicesV2ApiService) DevicesV2List(ctx _context.Context, localVarOptionals *DevicesV2ListOpts) ([]ArduinoDevicev2, *_nethttp.Response, error)
DevicesV2List list devices_v2 Returns the list of devices associated to the user
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param optional nil or *DevicesV2ListOpts - Optional Parameters:
- @param "AcrossUserIds" (optional.Bool) - If true, returns all the devices
@return []ArduinoDevicev2
func (*DevicesV2ApiService) DevicesV2Show ¶
func (a *DevicesV2ApiService) DevicesV2Show(ctx _context.Context, id string) (ArduinoDevicev2, *_nethttp.Response, error)
DevicesV2Show show devices_v2 Returns the device requested by the user
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id The id of the device
@return ArduinoDevicev2
func (*DevicesV2ApiService) DevicesV2Timeseries ¶
func (a *DevicesV2ApiService) DevicesV2Timeseries(ctx _context.Context, id string, pid string, localVarOptionals *DevicesV2TimeseriesOpts) (ArduinoDevicev2propertyvalues, *_nethttp.Response, error)
DevicesV2Timeseries timeseries devices_v2 GET device properties values in a range of time
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id The id of the device
- @param pid The id of the property
- @param optional nil or *DevicesV2TimeseriesOpts - Optional Parameters:
- @param "Limit" (optional.Int32) - The number of properties to select
- @param "Start" (optional.String) - The time at which to start selecting properties
@return ArduinoDevicev2propertyvalues
func (*DevicesV2ApiService) DevicesV2Update ¶
func (a *DevicesV2ApiService) DevicesV2Update(ctx _context.Context, id string, devicev2 Devicev2) (ArduinoDevicev2, *_nethttp.Response, error)
DevicesV2Update update devices_v2 Updates a device associated to the user
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id The id of the device
- @param devicev2 DeviceV2 describes a device.
@return ArduinoDevicev2
func (*DevicesV2ApiService) DevicesV2UpdateProperties ¶
func (a *DevicesV2ApiService) DevicesV2UpdateProperties(ctx _context.Context, id string, propertiesValues PropertiesValues) (*_nethttp.Response, error)
DevicesV2UpdateProperties updateProperties devices_v2 Update device properties last values
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id The id of the device
- @param propertiesValues
type DevicesV2GetEventsOpts ¶ added in v1.1.0
DevicesV2GetEventsOpts Optional parameters for the method 'DevicesV2GetEvents'
type DevicesV2GetPropertiesOpts ¶
DevicesV2GetPropertiesOpts Optional parameters for the method 'DevicesV2GetProperties'
type DevicesV2ListOpts ¶
DevicesV2ListOpts Optional parameters for the method 'DevicesV2List'
type DevicesV2TimeseriesOpts ¶
DevicesV2TimeseriesOpts Optional parameters for the method 'DevicesV2Timeseries'
type Devicev2 ¶
type Devicev2 struct { // The fully qualified board name Fqbn string `json:"fqbn,omitempty"` // The UUID of the device Id string `json:"id,omitempty"` // The friendly name of the device Name string `json:"name,omitempty"` // The serial uuid of the device Serial string `json:"serial,omitempty"` // The type of the device Type string `json:"type,omitempty"` // The user_id associated to the device. If absent it will be inferred from the authentication header UserId string `json:"user_id,omitempty"` }
Devicev2 DeviceV2 describes a device.
type GenericOpenAPIError ¶
type GenericOpenAPIError struct {
// contains filtered or unexported fields
}
GenericOpenAPIError Provides access to the body, error and model on returned errors.
func (GenericOpenAPIError) Body ¶
func (e GenericOpenAPIError) Body() []byte
Body returns the raw bytes of the response
func (GenericOpenAPIError) Error ¶
func (e GenericOpenAPIError) Error() string
Error returns non-empty string if there was an error.
func (GenericOpenAPIError) Model ¶
func (e GenericOpenAPIError) Model() interface{}
Model returns the unpacked model of the error
type ModelError ¶
type ModelError struct { // an application-specific error code, expressed as a string value. Code string `json:"code,omitempty"` // a human-readable explanation specific to this occurrence of the problem. Detail string `json:"detail,omitempty"` // a unique identifier for this particular occurrence of the problem. Id string `json:"id,omitempty"` // a meta object containing non-standard meta-information about the error. Meta map[string]interface{} `json:"meta,omitempty"` // the HTTP status code applicable to this problem Status int64 `json:"status,omitempty"` }
ModelError Error response media type (default view)
type PropertiesV1ApiService ¶
type PropertiesV1ApiService service
PropertiesV1ApiService PropertiesV1Api service
func (*PropertiesV1ApiService) PropertiesV1Create ¶
func (a *PropertiesV1ApiService) PropertiesV1Create(ctx _context.Context, id string, property Property) (ArduinoProperty, *_nethttp.Response, error)
PropertiesV1Create create properties_v1 Creates a new property associated to a thing
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id The id of the thing
- @param property PropertyPayload describes a property of a thing. No field is mandatory
@return ArduinoProperty
func (*PropertiesV1ApiService) PropertiesV1Delete ¶
func (a *PropertiesV1ApiService) PropertiesV1Delete(ctx _context.Context, id string, pid string, localVarOptionals *PropertiesV1DeleteOpts) (*_nethttp.Response, error)
PropertiesV1Delete delete properties_v1 Removes a property associated to a thing
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id The id of the thing
- @param pid The id of the property
- @param optional nil or *PropertiesV1DeleteOpts - Optional Parameters:
- @param "Force" (optional.Bool) - If true, hard delete the property
func (*PropertiesV1ApiService) PropertiesV1List ¶
func (a *PropertiesV1ApiService) PropertiesV1List(ctx _context.Context, id string, localVarOptionals *PropertiesV1ListOpts) ([]ArduinoProperty, *_nethttp.Response, error)
PropertiesV1List list properties_v1 Returns the list of properties associated to the thing
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id The id of the thing
- @param optional nil or *PropertiesV1ListOpts - Optional Parameters:
- @param "ShowDeleted" (optional.Bool) - If true, shows the soft deleted properties
@return []ArduinoProperty
func (*PropertiesV1ApiService) PropertiesV1Send ¶
func (a *PropertiesV1ApiService) PropertiesV1Send(ctx _context.Context, id string, pid string, propertyStringValue PropertyStringValue) (*_nethttp.Response, error)
PropertiesV1Send send properties_v1 Publish a property value to MQTT, as string
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id The id of the thing
- @param pid The id of the property
- @param propertyStringValue PropertyStringValuePayload describes a property value
func (*PropertiesV1ApiService) PropertiesV1Show ¶
func (a *PropertiesV1ApiService) PropertiesV1Show(ctx _context.Context, id string, pid string, localVarOptionals *PropertiesV1ShowOpts) (ArduinoProperty, *_nethttp.Response, error)
PropertiesV1Show show properties_v1 Returns the property requested by the user
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id The id of the thing
- @param pid The id of the property
- @param optional nil or *PropertiesV1ShowOpts - Optional Parameters:
- @param "ShowDeleted" (optional.Bool) - If true, shows the soft deleted properties
@return ArduinoProperty
func (*PropertiesV1ApiService) PropertiesV1Update ¶
func (a *PropertiesV1ApiService) PropertiesV1Update(ctx _context.Context, id string, pid string, property Property) (ArduinoProperty, *_nethttp.Response, error)
PropertiesV1Update update properties_v1 Updates a property associated to a thing
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id The id of the thing
- @param pid The id of the property
- @param property PropertyPayload describes a property of a thing. No field is mandatory
@return ArduinoProperty
type PropertiesV1DeleteOpts ¶
PropertiesV1DeleteOpts Optional parameters for the method 'PropertiesV1Delete'
type PropertiesV1ListOpts ¶
PropertiesV1ListOpts Optional parameters for the method 'PropertiesV1List'
type PropertiesV1ShowOpts ¶
PropertiesV1ShowOpts Optional parameters for the method 'PropertiesV1Show'
type PropertiesV2ApiService ¶
type PropertiesV2ApiService service
PropertiesV2ApiService PropertiesV2Api service
func (*PropertiesV2ApiService) PropertiesV2Create ¶
func (a *PropertiesV2ApiService) PropertiesV2Create(ctx _context.Context, id string, property Property) (ArduinoProperty, *_nethttp.Response, error)
PropertiesV2Create create properties_v2 Creates a new property associated to a thing
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id The id of the thing
- @param property PropertyPayload describes a property of a thing. No field is mandatory
@return ArduinoProperty
func (*PropertiesV2ApiService) PropertiesV2Delete ¶
func (a *PropertiesV2ApiService) PropertiesV2Delete(ctx _context.Context, id string, pid string, localVarOptionals *PropertiesV2DeleteOpts) (*_nethttp.Response, error)
PropertiesV2Delete delete properties_v2 Removes a property associated to a thing
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id The id of the thing
- @param pid The id of the property
- @param optional nil or *PropertiesV2DeleteOpts - Optional Parameters:
- @param "Force" (optional.Bool) - If true, hard delete the property
func (*PropertiesV2ApiService) PropertiesV2List ¶
func (a *PropertiesV2ApiService) PropertiesV2List(ctx _context.Context, id string, localVarOptionals *PropertiesV2ListOpts) ([]ArduinoProperty, *_nethttp.Response, error)
PropertiesV2List list properties_v2 Returns the list of properties associated to the thing
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id The id of the thing
- @param optional nil or *PropertiesV2ListOpts - Optional Parameters:
- @param "ShowDeleted" (optional.Bool) - If true, shows the soft deleted properties
@return []ArduinoProperty
func (*PropertiesV2ApiService) PropertiesV2Publish ¶
func (a *PropertiesV2ApiService) PropertiesV2Publish(ctx _context.Context, id string, pid string, propertyValue PropertyValue) (*_nethttp.Response, error)
PropertiesV2Publish publish properties_v2 Publish a property value to MQTT
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id The id of the thing
- @param pid The id of the property
- @param propertyValue PropertyValuePayload describes a property value
func (*PropertiesV2ApiService) PropertiesV2Show ¶
func (a *PropertiesV2ApiService) PropertiesV2Show(ctx _context.Context, id string, pid string, localVarOptionals *PropertiesV2ShowOpts) (ArduinoProperty, *_nethttp.Response, error)
PropertiesV2Show show properties_v2 Returns the property requested by the user
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id The id of the thing
- @param pid The id of the property
- @param optional nil or *PropertiesV2ShowOpts - Optional Parameters:
- @param "ShowDeleted" (optional.Bool) - If true, shows the soft deleted properties
@return ArduinoProperty
func (*PropertiesV2ApiService) PropertiesV2Update ¶
func (a *PropertiesV2ApiService) PropertiesV2Update(ctx _context.Context, id string, pid string, property Property) (ArduinoProperty, *_nethttp.Response, error)
PropertiesV2Update update properties_v2 Updates a property associated to a thing
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id The id of the thing
- @param pid The id of the property
- @param property PropertyPayload describes a property of a thing. No field is mandatory
@return ArduinoProperty
type PropertiesV2DeleteOpts ¶
PropertiesV2DeleteOpts Optional parameters for the method 'PropertiesV2Delete'
type PropertiesV2ListOpts ¶
PropertiesV2ListOpts Optional parameters for the method 'PropertiesV2List'
type PropertiesV2ShowOpts ¶
PropertiesV2ShowOpts Optional parameters for the method 'PropertiesV2Show'
type PropertiesValue ¶
type PropertiesValue struct { // The name of the property Name string `json:"name"` // The type of the property Type string `json:"type"` // The last value of the property Value interface{} `json:"value"` }
PropertiesValue struct for PropertiesValue
type PropertiesValues ¶
type PropertiesValues struct {
Properties []PropertiesValue `json:"properties"`
}
PropertiesValues struct for PropertiesValues
type Property ¶
type Property struct { // Maximum value of this property MaxValue float64 `json:"max_value,omitempty"` // Minimum value of this property MinValue float64 `json:"min_value,omitempty"` // The friendly name of the property Name string `json:"name"` // The permission of the property Permission string `json:"permission"` // If true, data will persist into a timeseries database Persist bool `json:"persist,omitempty"` // The type of the property Type string `json:"type"` // The update frequency in seconds, or the amount of the property has to change in order to trigger an update UpdateParameter float64 `json:"update_parameter,omitempty"` // The update strategy for the property value UpdateStrategy string `json:"update_strategy"` // The sketch variable name of the property VariableName string `json:"variable_name,omitempty"` }
Property PropertyPayload describes a property of a thing. No field is mandatory
type PropertyStringValue ¶
type PropertyStringValue struct { // The device who send the property DeviceId string `json:"device_id,omitempty"` // The property value, as string Value string `json:"value"` }
PropertyStringValue PropertyStringValuePayload describes a property value
type PropertyValue ¶
type PropertyValue struct { // The device who send the property DeviceId string `json:"device_id,omitempty"` // The property value Value interface{} `json:"value"` }
PropertyValue PropertyValuePayload describes a property value
type SeriesV1ApiService ¶
type SeriesV1ApiService service
SeriesV1ApiService SeriesV1Api service
func (*SeriesV1ApiService) SeriesV1BatchQuery ¶
func (a *SeriesV1ApiService) SeriesV1BatchQuery(ctx _context.Context, batchQueryRequestsMediaV1 BatchQueryRequestsMediaV1) (ArduinoSeriesBatch, *_nethttp.Response, error)
SeriesV1BatchQuery batch_query series_v1 Returns the batch of time-series data
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param batchQueryRequestsMediaV1
@return ArduinoSeriesBatch
func (*SeriesV1ApiService) SeriesV1BatchQueryRaw ¶
func (a *SeriesV1ApiService) SeriesV1BatchQueryRaw(ctx _context.Context, batchQueryRawRequestsMediaV1 BatchQueryRawRequestsMediaV1) (ArduinoSeriesRawBatch, *_nethttp.Response, error)
SeriesV1BatchQueryRaw batch_query_raw series_v1 Returns the batch of time-series data raw
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param batchQueryRawRequestsMediaV1
@return ArduinoSeriesRawBatch
type SeriesV2ApiService ¶
type SeriesV2ApiService service
SeriesV2ApiService SeriesV2Api service
func (*SeriesV2ApiService) SeriesV2BatchQuery ¶
func (a *SeriesV2ApiService) SeriesV2BatchQuery(ctx _context.Context, batchQueryRequestsMediaV1 BatchQueryRequestsMediaV1) (ArduinoSeriesBatch, *_nethttp.Response, error)
SeriesV2BatchQuery batch_query series_v2 Returns the batch of time-series data
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param batchQueryRequestsMediaV1
@return ArduinoSeriesBatch
func (*SeriesV2ApiService) SeriesV2BatchQueryRaw ¶
func (a *SeriesV2ApiService) SeriesV2BatchQueryRaw(ctx _context.Context, batchQueryRawRequestsMediaV1 BatchQueryRawRequestsMediaV1) (ArduinoSeriesRawBatch, *_nethttp.Response, error)
SeriesV2BatchQueryRaw batch_query_raw series_v2 Returns the batch of time-series data raw
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param batchQueryRawRequestsMediaV1
@return ArduinoSeriesRawBatch
func (*SeriesV2ApiService) SeriesV2BatchQueryRawLastValue ¶
func (a *SeriesV2ApiService) SeriesV2BatchQueryRawLastValue(ctx _context.Context, batchLastValueRequestsMediaV1 BatchLastValueRequestsMediaV1) (ArduinoSeriesRawBatchLastvalue, *_nethttp.Response, error)
SeriesV2BatchQueryRawLastValue batch_query_raw_last_value series_v2 Returns the batch of time-series data raw
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param batchLastValueRequestsMediaV1
@return ArduinoSeriesRawBatchLastvalue
type Thing ¶
type Thing struct { // The arn of the associated device DeviceId string `json:"device_id,omitempty"` // The id of the thing Id string `json:"id,omitempty"` // The friendly name of the thing Name string `json:"name,omitempty"` // Webhook uri WebhookActive bool `json:"webhook_active,omitempty"` // Webhook uri WebhookUri string `json:"webhook_uri,omitempty"` }
Thing ThingPayload describes a thing
type ThingSketch ¶
type ThingSketch struct { // The wifi password Pass string `json:"pass,omitempty"` // The autogenerated sketch version SketchVersion string `json:"sketch_version,omitempty"` // The wifi ssid to connect Ssid string `json:"ssid,omitempty"` }
ThingSketch ThingSketchPayload describes a sketch of a thing
type ThingsV1ApiService ¶
type ThingsV1ApiService service
ThingsV1ApiService ThingsV1Api service
func (*ThingsV1ApiService) ThingsV1Create ¶
func (a *ThingsV1ApiService) ThingsV1Create(ctx _context.Context, createThingsV1Payload CreateThingsV1Payload, localVarOptionals *ThingsV1CreateOpts) (ArduinoThing, *_nethttp.Response, error)
ThingsV1Create create things_v1 Creates a new thing associated to the user
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param createThingsV1Payload ThingPayload describes a thing
- @param optional nil or *ThingsV1CreateOpts - Optional Parameters:
- @param "Force" (optional.Bool) - If true, detach device from the other thing, and attach to this thing
@return ArduinoThing
func (*ThingsV1ApiService) ThingsV1CreateSketch ¶
func (a *ThingsV1ApiService) ThingsV1CreateSketch(ctx _context.Context, id string, thingSketch ThingSketch) (ArduinoThing, *_nethttp.Response, error)
ThingsV1CreateSketch createSketch things_v1 Creates a new sketch thing associated to the thing
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id The id of the thing
- @param thingSketch ThingSketchPayload describes a sketch of a thing
@return ArduinoThing
func (*ThingsV1ApiService) ThingsV1Delete ¶
func (a *ThingsV1ApiService) ThingsV1Delete(ctx _context.Context, id string, localVarOptionals *ThingsV1DeleteOpts) (*_nethttp.Response, error)
ThingsV1Delete delete things_v1 Removes a thing associated to the user
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id The id of the thing
- @param optional nil or *ThingsV1DeleteOpts - Optional Parameters:
- @param "Force" (optional.Bool) - If true, hard delete the thing
func (*ThingsV1ApiService) ThingsV1DeleteSketch ¶
func (a *ThingsV1ApiService) ThingsV1DeleteSketch(ctx _context.Context, id string) (ArduinoThing, *_nethttp.Response, error)
ThingsV1DeleteSketch deleteSketch things_v1
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id The id of the thing
@return ArduinoThing
func (*ThingsV1ApiService) ThingsV1Layout ¶
func (a *ThingsV1ApiService) ThingsV1Layout(ctx _context.Context, id string, localVarOptionals *ThingsV1LayoutOpts) (ArduinoThinglayout, *_nethttp.Response, error)
ThingsV1Layout layout things_v1 Returns the thing requested by the user, without last values data
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id The id of the thing
- @param optional nil or *ThingsV1LayoutOpts - Optional Parameters:
- @param "ShowDeleted" (optional.Bool) - If true, shows the soft deleted thing
@return ArduinoThinglayout
func (*ThingsV1ApiService) ThingsV1List ¶
func (a *ThingsV1ApiService) ThingsV1List(ctx _context.Context, localVarOptionals *ThingsV1ListOpts) ([]ArduinoThing, *_nethttp.Response, error)
ThingsV1List list things_v1 Returns the list of things associated to the user
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param optional nil or *ThingsV1ListOpts - Optional Parameters:
- @param "AcrossUserIds" (optional.Bool) - If true, returns all the things
- @param "DeviceId" (optional.String) - The id of the device you want to filter
- @param "ShowDeleted" (optional.Bool) - If true, shows the soft deleted things
@return []ArduinoThing
func (*ThingsV1ApiService) ThingsV1Show ¶
func (a *ThingsV1ApiService) ThingsV1Show(ctx _context.Context, id string, localVarOptionals *ThingsV1ShowOpts) (ArduinoThing, *_nethttp.Response, error)
ThingsV1Show show things_v1 Returns the thing requested by the user
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id The id of the thing
- @param optional nil or *ThingsV1ShowOpts - Optional Parameters:
- @param "ShowDeleted" (optional.Bool) - If true, shows the soft deleted thing
@return ArduinoThing
func (*ThingsV1ApiService) ThingsV1Update ¶
func (a *ThingsV1ApiService) ThingsV1Update(ctx _context.Context, id string, thing Thing, localVarOptionals *ThingsV1UpdateOpts) (ArduinoThing, *_nethttp.Response, error)
ThingsV1Update update things_v1 Updates a thing associated to the user
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id The id of the thing
- @param thing ThingPayload describes a thing
- @param optional nil or *ThingsV1UpdateOpts - Optional Parameters:
- @param "Force" (optional.Bool) - If true, detach device from the other thing, and attach to this thing
@return ArduinoThing
func (*ThingsV1ApiService) ThingsV1UpdateSketch ¶
func (a *ThingsV1ApiService) ThingsV1UpdateSketch(ctx _context.Context, id string, sketchId string) (ArduinoThing, *_nethttp.Response, error)
ThingsV1UpdateSketch updateSketch things_v1 Update an existing thing sketch
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id The id of the thing
- @param sketchId The id of the sketch
@return ArduinoThing
type ThingsV1CreateOpts ¶
ThingsV1CreateOpts Optional parameters for the method 'ThingsV1Create'
type ThingsV1DeleteOpts ¶
ThingsV1DeleteOpts Optional parameters for the method 'ThingsV1Delete'
type ThingsV1LayoutOpts ¶
ThingsV1LayoutOpts Optional parameters for the method 'ThingsV1Layout'
type ThingsV1ListOpts ¶
type ThingsV1ListOpts struct { AcrossUserIds optional.Bool DeviceId optional.String ShowDeleted optional.Bool }
ThingsV1ListOpts Optional parameters for the method 'ThingsV1List'
type ThingsV1ShowOpts ¶
ThingsV1ShowOpts Optional parameters for the method 'ThingsV1Show'
type ThingsV1UpdateOpts ¶
ThingsV1UpdateOpts Optional parameters for the method 'ThingsV1Update'
type ThingsV2ApiService ¶
type ThingsV2ApiService service
ThingsV2ApiService ThingsV2Api service
func (*ThingsV2ApiService) ThingsV2Create ¶
func (a *ThingsV2ApiService) ThingsV2Create(ctx _context.Context, createThingsV2Payload CreateThingsV2Payload, localVarOptionals *ThingsV2CreateOpts) (ArduinoThing, *_nethttp.Response, error)
ThingsV2Create create things_v2 Creates a new thing associated to the user
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param createThingsV2Payload ThingPayload describes a thing
- @param optional nil or *ThingsV2CreateOpts - Optional Parameters:
- @param "Force" (optional.Bool) - If true, detach device from the other thing, and attach to this thing
@return ArduinoThing
func (*ThingsV2ApiService) ThingsV2CreateSketch ¶
func (a *ThingsV2ApiService) ThingsV2CreateSketch(ctx _context.Context, id string, thingSketch ThingSketch) (ArduinoThing, *_nethttp.Response, error)
ThingsV2CreateSketch createSketch things_v2 Creates a new sketch thing associated to the thing
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id The id of the thing
- @param thingSketch ThingSketchPayload describes a sketch of a thing
@return ArduinoThing
func (*ThingsV2ApiService) ThingsV2Delete ¶
func (a *ThingsV2ApiService) ThingsV2Delete(ctx _context.Context, id string, localVarOptionals *ThingsV2DeleteOpts) (*_nethttp.Response, error)
ThingsV2Delete delete things_v2 Removes a thing associated to the user
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id The id of the thing
- @param optional nil or *ThingsV2DeleteOpts - Optional Parameters:
- @param "Force" (optional.Bool) - If true, hard delete the thing
func (*ThingsV2ApiService) ThingsV2DeleteSketch ¶
func (a *ThingsV2ApiService) ThingsV2DeleteSketch(ctx _context.Context, id string) (ArduinoThing, *_nethttp.Response, error)
ThingsV2DeleteSketch deleteSketch things_v2
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id The id of the thing
@return ArduinoThing
func (*ThingsV2ApiService) ThingsV2List ¶
func (a *ThingsV2ApiService) ThingsV2List(ctx _context.Context, localVarOptionals *ThingsV2ListOpts) ([]ArduinoThing, *_nethttp.Response, error)
ThingsV2List list things_v2 Returns the list of things associated to the user
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param optional nil or *ThingsV2ListOpts - Optional Parameters:
- @param "AcrossUserIds" (optional.Bool) - If true, returns all the things
- @param "DeviceId" (optional.String) - The id of the device you want to filter
- @param "Ids" (optional.Interface of []string) - Filter only the desired things
- @param "ShowDeleted" (optional.Bool) - If true, shows the soft deleted things
- @param "ShowProperties" (optional.Bool) - If true, returns things with their properties, and last values
@return []ArduinoThing
func (*ThingsV2ApiService) ThingsV2Show ¶
func (a *ThingsV2ApiService) ThingsV2Show(ctx _context.Context, id string, localVarOptionals *ThingsV2ShowOpts) (ArduinoThing, *_nethttp.Response, error)
ThingsV2Show show things_v2 Returns the thing requested by the user
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id The id of the thing
- @param optional nil or *ThingsV2ShowOpts - Optional Parameters:
- @param "ShowDeleted" (optional.Bool) - If true, shows the soft deleted thing
@return ArduinoThing
func (*ThingsV2ApiService) ThingsV2Update ¶
func (a *ThingsV2ApiService) ThingsV2Update(ctx _context.Context, id string, thing Thing, localVarOptionals *ThingsV2UpdateOpts) (ArduinoThing, *_nethttp.Response, error)
ThingsV2Update update things_v2 Updates a thing associated to the user
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id The id of the thing
- @param thing ThingPayload describes a thing
- @param optional nil or *ThingsV2UpdateOpts - Optional Parameters:
- @param "Force" (optional.Bool) - If true, detach device from the other thing, and attach to this thing
@return ArduinoThing
func (*ThingsV2ApiService) ThingsV2UpdateSketch ¶
func (a *ThingsV2ApiService) ThingsV2UpdateSketch(ctx _context.Context, id string, sketchId string, localVarOptionals *ThingsV2UpdateSketchOpts) (ArduinoThing, *_nethttp.Response, error)
ThingsV2UpdateSketch updateSketch things_v2 Update an existing thing sketch
- @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param id The id of the thing
- @param sketchId The id of the sketch
- @param optional nil or *ThingsV2UpdateSketchOpts - Optional Parameters:
- @param "UpdateSketch" (optional.Interface of UpdateSketch) -
@return ArduinoThing
type ThingsV2CreateOpts ¶
ThingsV2CreateOpts Optional parameters for the method 'ThingsV2Create'
type ThingsV2DeleteOpts ¶
ThingsV2DeleteOpts Optional parameters for the method 'ThingsV2Delete'
type ThingsV2ListOpts ¶
type ThingsV2ListOpts struct { AcrossUserIds optional.Bool DeviceId optional.String Ids optional.Interface ShowDeleted optional.Bool ShowProperties optional.Bool }
ThingsV2ListOpts Optional parameters for the method 'ThingsV2List'
type ThingsV2ShowOpts ¶
ThingsV2ShowOpts Optional parameters for the method 'ThingsV2Show'
type ThingsV2UpdateOpts ¶
ThingsV2UpdateOpts Optional parameters for the method 'ThingsV2Update'
type ThingsV2UpdateSketchOpts ¶ added in v1.1.0
ThingsV2UpdateSketchOpts Optional parameters for the method 'ThingsV2UpdateSketch'
type UpdateSketch ¶ added in v1.1.0
type UpdateSketch struct { // The autogenerated sketch version SketchVersion string `json:"sketch_version,omitempty"` }
UpdateSketch struct for UpdateSketch
Source Files
¶
- api_devices_v2.go
- api_properties_v1.go
- api_properties_v2.go
- api_series_v1.go
- api_series_v2.go
- api_things_v1.go
- api_things_v2.go
- client.go
- configuration.go
- model_arduino_devicev2.go
- model_arduino_devicev2_event_properties.go
- model_arduino_devicev2_simple_properties.go
- model_arduino_devicev2_webhook.go
- model_arduino_devicev2properties.go
- model_arduino_devicev2propertyvalue.go
- model_arduino_devicev2propertyvalue_value.go
- model_arduino_devicev2propertyvalue_value_statistics.go
- model_arduino_devicev2propertyvalues.go
- model_arduino_devicev2propertyvalues_last_evaluated_key.go
- model_arduino_property.go
- model_arduino_series_batch.go
- model_arduino_series_raw_batch.go
- model_arduino_series_raw_batch_lastvalue.go
- model_arduino_series_raw_last_value_response.go
- model_arduino_series_raw_response.go
- model_arduino_series_response.go
- model_arduino_thing.go
- model_arduino_thinglayout.go
- model_batch_last_value_requests_media_v1.go
- model_batch_query_raw_last_value_request_media_v1.go
- model_batch_query_raw_request_media_v1.go
- model_batch_query_raw_requests_media_v1.go
- model_batch_query_raw_response_series_media_v1.go
- model_batch_query_request_media_v1.go
- model_batch_query_requests_media_v1.go
- model_batch_query_response_series_media_v1.go
- model_create_devices_v2_payload.go
- model_create_things_v1_payload.go
- model_create_things_v2_payload.go
- model_devicev2.go
- model_error.go
- model_properties_value.go
- model_properties_values.go
- model_property.go
- model_property_string_value.go
- model_property_value.go
- model_thing.go
- model_thing_sketch.go
- model_update_sketch.go
- response.go