deviceselectionmodel

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BulkRequest

type BulkRequest []BulkRequestElement

type BulkRequestElement

type BulkRequestElement struct {
	Id                string                   `json:"id"`
	FilterInteraction *devicemodel.Interaction `json:"filter_interaction"`
	FilterProtocols   []string                 `json:"filter_protocols"`
	Criteria          FilterCriteriaAndSet     `json:"criteria"`
	IncludeGroups     bool                     `json:"include_groups"`
	IncludeImports    bool                     `json:"include_imports"`
}

type BulkRequestElementV2

type BulkRequestElementV2 struct {
	Id                       string                          `json:"id"`
	Criteria                 []FilterCriteriaWithInteraction `json:"criteria"`
	IncludeGroups            bool                            `json:"include_groups"`
	IncludeImports           bool                            `json:"include_imports"`
	IncludeDevices           bool                            `json:"include_devices"`
	IncludeIdModifiedDevices bool                            `json:"include_id_modified_devices"`
	LocalDevices             []string                        `json:"local_devices"`
}

type BulkRequestV2

type BulkRequestV2 []BulkRequestElementV2

type BulkResult

type BulkResult []BulkResultElement

type BulkResultElement

type BulkResultElement struct {
	Id          string       `json:"id"`
	Selectables []Selectable `json:"selectables"`
}

type Configurable

type Configurable struct {
	Path             string                 `json:"path"`
	CharacteristicId string                 `json:"characteristic_id"`
	AspectNode       devicemodel.AspectNode `json:"aspect_node"`
	FunctionId       string                 `json:"function_id"`
	Value            interface{}            `json:"value,omitempty"`
	Type             string                 `json:"type,omitempty"`
}

type DeviceWithDisplayName

type DeviceWithDisplayName struct {
	devicemodel.Device
	DisplayName string `json:"display_name"`
}

type FilterCriteria

type FilterCriteria struct {
	FunctionId    string `json:"function_id"`
	DeviceClassId string `json:"device_class_id"`
	AspectId      string `json:"aspect_id"`
}

type FilterCriteriaAndSet

type FilterCriteriaAndSet []FilterCriteria

type FilterCriteriaOrSet

type FilterCriteriaOrSet []FilterCriteria

type FilterCriteriaWithInteraction

type FilterCriteriaWithInteraction struct {
	FilterCriteria
	Interaction devicemodel.Interaction `json:"interaction,omitempty"`
}

type PathOption

type PathOption struct {
	Path             string                 `json:"path"`
	CharacteristicId string                 `json:"characteristicId"`
	AspectNode       devicemodel.AspectNode `json:"aspectNode"`
	FunctionId       string                 `json:"functionId"`
	IsVoid           bool                   `json:"isVoid"`
	Value            interface{}            `json:"value,omitempty"`
	Type             string                 `json:"type,omitempty"`
	Configurables    []Configurable         `json:"configurables,omitempty"`
}

type Selectable

type Selectable struct {
	Device             *DeviceWithDisplayName   `json:"device"`
	Services           []devicemodel.Service    `json:"services"`
	DeviceGroup        *devicemodel.DeviceGroup `json:"device_group,omitempty"`
	Import             *importmodel.Import      `json:"import,omitempty"`
	ImportType         *importmodel.ImportType  `json:"importType,omitempty"`
	ServicePathOptions map[string][]PathOption  `json:"servicePathOptions,omitempty"`
}

Jump to

Keyboard shortcuts

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