models

package
v0.0.3-0...-16756a2 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// GlobalErrorErrorEnumTOKENEXPIRED captures enum value "TOKEN-EXPIRED"
	GlobalErrorErrorEnumTOKENEXPIRED string = "TOKEN-EXPIRED"

	// GlobalErrorErrorEnumINTEGRATIONDELETED captures enum value "INTEGRATION-DELETED"
	GlobalErrorErrorEnumINTEGRATIONDELETED string = "INTEGRATION-DELETED"

	// GlobalErrorErrorEnumBADREQUEST captures enum value "BAD-REQUEST"
	GlobalErrorErrorEnumBADREQUEST string = "BAD-REQUEST"

	// GlobalErrorErrorEnumINVALIDTOKEN captures enum value "INVALID-TOKEN"
	GlobalErrorErrorEnumINVALIDTOKEN string = "INVALID-TOKEN"

	// GlobalErrorErrorEnumINVALIDINTERACTIONTYPE captures enum value "INVALID-INTERACTION-TYPE"
	GlobalErrorErrorEnumINVALIDINTERACTIONTYPE string = "INVALID-INTERACTION-TYPE"

	// GlobalErrorErrorEnumUNSUPPORTEDGRANTTYPE captures enum value "UNSUPPORTED-GRANT-TYPE"
	GlobalErrorErrorEnumUNSUPPORTEDGRANTTYPE string = "UNSUPPORTED-GRANT-TYPE"

	// GlobalErrorErrorEnumINVALIDCODE captures enum value "INVALID-CODE"
	GlobalErrorErrorEnumINVALIDCODE string = "INVALID-CODE"

	// GlobalErrorErrorEnumINVALIDCLIENTSECRET captures enum value "INVALID-CLIENT-SECRET"
	GlobalErrorErrorEnumINVALIDCLIENTSECRET string = "INVALID-CLIENT-SECRET"

	// GlobalErrorErrorEnumINVALIDCLIENT captures enum value "INVALID-CLIENT"
	GlobalErrorErrorEnumINVALIDCLIENT string = "INVALID-CLIENT"
)
View Source
const (

	// AccessTokenRequestCallbackAuthenticationGrantTypeAuthorizationCode captures enum value "authorization_code"
	AccessTokenRequestCallbackAuthenticationGrantTypeAuthorizationCode string = "authorization_code"
)
View Source
const (

	// AccessTokenResponseCallbackAuthenticationTokenTypeBearer captures enum value "Bearer"
	AccessTokenResponseCallbackAuthenticationTokenTypeBearer string = "Bearer"
)
View Source
const (

	// AuthenticationTokenTypeBearer captures enum value "Bearer"
	AuthenticationTokenTypeBearer string = "Bearer"
)
View Source
const (

	// HeadersSchemaStSchema captures enum value "st-schema"
	HeadersSchemaStSchema string = "st-schema"
)
View Source
const (

	// HeadersVersionNr10 captures enum value "1.0"
	HeadersVersionNr10 string = "1.0"
)
View Source
const (

	// RefreshAccessTokenRequestCallbackAuthenticationGrantTypeRefreshToken captures enum value "refresh_token"
	RefreshAccessTokenRequestCallbackAuthenticationGrantTypeRefreshToken string = "refresh_token"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessTokenRequest

type AccessTokenRequest struct {

	// callback authentication
	// Required: true
	CallbackAuthentication *AccessTokenRequestCallbackAuthentication `json:"callbackAuthentication"`

	// headers
	// Required: true
	Headers *Headers `json:"headers"`
}

AccessTokenRequest access token request

swagger:model AccessTokenRequest

func (*AccessTokenRequest) MarshalBinary

func (m *AccessTokenRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AccessTokenRequest) UnmarshalBinary

func (m *AccessTokenRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AccessTokenRequest) Validate

func (m *AccessTokenRequest) Validate(formats strfmt.Registry) error

Validate validates this access token request

type AccessTokenRequestCallbackAuthentication

type AccessTokenRequestCallbackAuthentication struct {

	// client Id
	// Required: true
	// Max Length: 100
	ClientID *string `json:"clientId"`

	// client secret
	// Required: true
	// Max Length: 100
	ClientSecret *string `json:"clientSecret"`

	// code
	// Required: true
	// Max Length: 100
	Code *string `json:"code"`

	// grant type
	// Required: true
	// Enum: [authorization_code]
	GrantType *string `json:"grantType"`
}

AccessTokenRequestCallbackAuthentication access token request callback authentication

swagger:model AccessTokenRequestCallbackAuthentication

func (*AccessTokenRequestCallbackAuthentication) MarshalBinary

func (m *AccessTokenRequestCallbackAuthentication) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AccessTokenRequestCallbackAuthentication) UnmarshalBinary

func (m *AccessTokenRequestCallbackAuthentication) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AccessTokenRequestCallbackAuthentication) Validate

Validate validates this access token request callback authentication

type AccessTokenResponse

type AccessTokenResponse struct {

	// callback authentication
	// Required: true
	CallbackAuthentication *AccessTokenResponseCallbackAuthentication `json:"callbackAuthentication"`

	// headers
	// Required: true
	Headers *Headers `json:"headers"`
}

AccessTokenResponse access token response

swagger:model AccessTokenResponse

func (*AccessTokenResponse) MarshalBinary

func (m *AccessTokenResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AccessTokenResponse) UnmarshalBinary

func (m *AccessTokenResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AccessTokenResponse) Validate

func (m *AccessTokenResponse) Validate(formats strfmt.Registry) error

Validate validates this access token response

type AccessTokenResponseCallbackAuthentication

type AccessTokenResponseCallbackAuthentication struct {

	// access token
	// Required: true
	// Max Length: 4096
	AccessToken *string `json:"accessToken"`

	// expires in
	// Required: true
	// Maximum: 3.1536e+08
	ExpiresIn *int64 `json:"expiresIn"`

	// refresh token
	// Required: true
	// Max Length: 4096
	RefreshToken *string `json:"refreshToken"`

	// token type
	// Required: true
	// Enum: [Bearer]
	TokenType *string `json:"tokenType"`
}

AccessTokenResponseCallbackAuthentication access token response callback authentication

swagger:model AccessTokenResponseCallbackAuthentication

func (*AccessTokenResponseCallbackAuthentication) MarshalBinary

func (m *AccessTokenResponseCallbackAuthentication) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AccessTokenResponseCallbackAuthentication) UnmarshalBinary

func (m *AccessTokenResponseCallbackAuthentication) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AccessTokenResponseCallbackAuthentication) Validate

Validate validates this access token response callback authentication

type Authentication

type Authentication struct {

	// token
	// Required: true
	// Max Length: 4096
	Token *string `json:"token"`

	// token type
	// Required: true
	// Enum: [Bearer]
	TokenType *string `json:"tokenType"`
}

Authentication authentication

swagger:model Authentication

func (*Authentication) MarshalBinary

func (m *Authentication) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Authentication) UnmarshalBinary

func (m *Authentication) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Authentication) Validate

func (m *Authentication) Validate(formats strfmt.Registry) error

Validate validates this authentication

type CallbackAuth

type CallbackAuth struct {

	// client Id
	// Max Length: 100
	ClientID string `json:"clientId,omitempty"`

	// code
	// Max Length: 256
	Code string `json:"code,omitempty"`

	// grant type
	// Max Length: 30
	GrantType string `json:"grantType,omitempty"`

	// scope
	// Max Length: 256
	Scope string `json:"scope,omitempty"`
}

CallbackAuth callback auth

swagger:model CallbackAuth

func (*CallbackAuth) MarshalBinary

func (m *CallbackAuth) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CallbackAuth) UnmarshalBinary

func (m *CallbackAuth) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CallbackAuth) Validate

func (m *CallbackAuth) Validate(formats strfmt.Registry) error

Validate validates this callback auth

type CallbackUrls

type CallbackUrls struct {

	// oauth token
	// Required: true
	// Max Length: 256
	OauthToken *string `json:"oauthToken"`

	// state callback
	// Required: true
	// Max Length: 256
	StateCallback *string `json:"stateCallback"`
}

CallbackUrls callback urls

swagger:model CallbackUrls

func (*CallbackUrls) MarshalBinary

func (m *CallbackUrls) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CallbackUrls) UnmarshalBinary

func (m *CallbackUrls) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CallbackUrls) Validate

func (m *CallbackUrls) Validate(formats strfmt.Registry) error

Validate validates this callback urls

type Command

type Command struct {

	// arguments
	// Required: true
	Arguments []interface{} `json:"arguments"`

	// capability
	// Required: true
	// Max Length: 30
	// Pattern: ^st\.
	Capability *string `json:"capability"`

	// command
	// Required: true
	// Max Length: 30
	Command *string `json:"command"`

	// component
	// Required: true
	// Max Length: 30
	Component *string `json:"component"`
}

Command command

swagger:model Command

func (*Command) MarshalBinary

func (m *Command) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Command) UnmarshalBinary

func (m *Command) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Command) Validate

func (m *Command) Validate(formats strfmt.Registry) error

Validate validates this command

type CommandResponse

type CommandResponse struct {

	// device state
	DeviceState []*DeviceState `json:"deviceState"`

	// global error
	GlobalError *GlobalError `json:"globalError,omitempty"`

	// headers
	// Required: true
	Headers *Headers `json:"headers"`
}

CommandResponse command response

swagger:model CommandResponse

func (*CommandResponse) MarshalBinary

func (m *CommandResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CommandResponse) UnmarshalBinary

func (m *CommandResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CommandResponse) Validate

func (m *CommandResponse) Validate(formats strfmt.Registry) error

Validate validates this command response

type Cookie map[string]string

Cookie cookie

swagger:model Cookie

func (Cookie) Validate

func (m Cookie) Validate(formats strfmt.Registry) error

Validate validates this cookie

type Device

type Device struct {

	// device context
	DeviceContext *DeviceContext `json:"deviceContext,omitempty"`

	// device cookie
	DeviceCookie Cookie `json:"deviceCookie,omitempty"`

	// device handler type
	// Max Length: 30
	DeviceHandlerType string `json:"deviceHandlerType,omitempty"`

	// device unique Id
	// Max Length: 30
	DeviceUniqueID string `json:"deviceUniqueId,omitempty"`

	// external device Id
	// Max Length: 256
	ExternalDeviceID string `json:"externalDeviceId,omitempty"`

	// friendly name
	// Max Length: 100
	FriendlyName string `json:"friendlyName,omitempty"`

	// manufacturer info
	ManufacturerInfo *Manufacturer `json:"manufacturerInfo,omitempty"`
}

Device device

swagger:model Device

func (*Device) MarshalBinary

func (m *Device) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Device) UnmarshalBinary

func (m *Device) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Device) Validate

func (m *Device) Validate(formats strfmt.Registry) error

Validate validates this device

type DeviceContext

type DeviceContext struct {

	// categories
	Categories []string `json:"categories"`

	// groups
	// Required: true
	Groups []string `json:"groups"`

	// room name
	// Required: true
	// Max Length: 100
	RoomName *string `json:"roomName"`
}

DeviceContext device context

swagger:model DeviceContext

func (*DeviceContext) MarshalBinary

func (m *DeviceContext) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DeviceContext) UnmarshalBinary

func (m *DeviceContext) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DeviceContext) Validate

func (m *DeviceContext) Validate(formats strfmt.Registry) error

Validate validates this device context

type DeviceRequest

type DeviceRequest struct {

	// commands
	Commands []*Command `json:"commands"`

	// device cookie
	DeviceCookie Cookie `json:"deviceCookie,omitempty"`

	// external device Id
	// Required: true
	// Max Length: 256
	ExternalDeviceID *string `json:"externalDeviceId"`
}

DeviceRequest device request

swagger:model DeviceRequest

func (*DeviceRequest) MarshalBinary

func (m *DeviceRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DeviceRequest) UnmarshalBinary

func (m *DeviceRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DeviceRequest) Validate

func (m *DeviceRequest) Validate(formats strfmt.Registry) error

Validate validates this device request

type DeviceState

type DeviceState struct {

	// device cookie
	DeviceCookie Cookie `json:"deviceCookie,omitempty"`

	// device error
	DeviceError []*DeviceStateDeviceErrorItems0 `json:"deviceError,omitempty"`

	// external device Id
	// Max Length: 256
	ExternalDeviceID string `json:"externalDeviceId,omitempty"`

	// states
	States []*DeviceStateStatesItems0 `json:"states"`
}

DeviceState device state

swagger:model DeviceState

func (*DeviceState) MarshalBinary

func (m *DeviceState) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DeviceState) UnmarshalBinary

func (m *DeviceState) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DeviceState) Validate

func (m *DeviceState) Validate(formats strfmt.Registry) error

Validate validates this device state

type DeviceStateCallback

type DeviceStateCallback struct {

	// authentication
	// Required: true
	Authentication *Authentication `json:"authentication"`

	// device state
	// Required: true
	DeviceState []*DeviceState `json:"deviceState"`

	// global error
	GlobalError *GlobalError `json:"globalError,omitempty"`

	// headers
	// Required: true
	Headers *Headers `json:"headers"`
}

DeviceStateCallback device state callback

swagger:model DeviceStateCallback

func (*DeviceStateCallback) MarshalBinary

func (m *DeviceStateCallback) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DeviceStateCallback) UnmarshalBinary

func (m *DeviceStateCallback) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DeviceStateCallback) Validate

func (m *DeviceStateCallback) Validate(formats strfmt.Registry) error

Validate validates this device state callback

type DeviceStateDeviceErrorItems0

type DeviceStateDeviceErrorItems0 struct {

	// detail
	// Max Length: 256
	Detail string `json:"detail,omitempty"`

	// error enum
	// Required: true
	// Max Length: 50
	ErrorEnum *string `json:"errorEnum"`
}

DeviceStateDeviceErrorItems0 device state device error items0

swagger:model DeviceStateDeviceErrorItems0

func (*DeviceStateDeviceErrorItems0) MarshalBinary

func (m *DeviceStateDeviceErrorItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DeviceStateDeviceErrorItems0) UnmarshalBinary

func (m *DeviceStateDeviceErrorItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DeviceStateDeviceErrorItems0) Validate

func (m *DeviceStateDeviceErrorItems0) Validate(formats strfmt.Registry) error

Validate validates this device state device error items0

type DeviceStateResponse

type DeviceStateResponse struct {

	// device state
	// Required: true
	DeviceState []*DeviceState `json:"deviceState"`

	// global error
	GlobalError *GlobalError `json:"globalError,omitempty"`

	// headers
	// Required: true
	Headers *Headers `json:"headers"`
}

DeviceStateResponse device state response

swagger:model DeviceStateResponse

func (*DeviceStateResponse) MarshalBinary

func (m *DeviceStateResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DeviceStateResponse) UnmarshalBinary

func (m *DeviceStateResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DeviceStateResponse) Validate

func (m *DeviceStateResponse) Validate(formats strfmt.Registry) error

Validate validates this device state response

type DeviceStateStatesItems0

type DeviceStateStatesItems0 struct {

	// attribute
	// Max Length: 30
	Attribute string `json:"attribute,omitempty"`

	// capability
	// Max Length: 30
	// Pattern: ^st\.
	Capability string `json:"capability,omitempty"`

	// component
	// Max Length: 30
	Component string `json:"component,omitempty"`

	// timestamp
	// Maximum: 2.147483647e+12
	// Minimum: -2.147483648e+12
	Timestamp *int64 `json:"timestamp,omitempty"`

	// value
	Value interface{} `json:"value,omitempty"`

	// device state states items0 additional properties
	DeviceStateStatesItems0AdditionalProperties map[string]interface{} `json:"-"`
}

DeviceStateStatesItems0 device state states items0

swagger:model DeviceStateStatesItems0

func (*DeviceStateStatesItems0) MarshalBinary

func (m *DeviceStateStatesItems0) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (DeviceStateStatesItems0) MarshalJSON

func (m DeviceStateStatesItems0) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with additional properties into a JSON object

func (*DeviceStateStatesItems0) UnmarshalBinary

func (m *DeviceStateStatesItems0) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DeviceStateStatesItems0) UnmarshalJSON

func (m *DeviceStateStatesItems0) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals this object with additional properties from JSON

func (*DeviceStateStatesItems0) Validate

func (m *DeviceStateStatesItems0) Validate(formats strfmt.Registry) error

Validate validates this device state states items0

type DiscoveryCallback

type DiscoveryCallback struct {

	// authentication
	// Required: true
	Authentication *Authentication `json:"authentication"`

	// devices
	// Required: true
	Devices []*Device `json:"devices"`

	// headers
	// Required: true
	Headers *Headers `json:"headers"`
}

DiscoveryCallback discovery callback

swagger:model DiscoveryCallback

func (*DiscoveryCallback) MarshalBinary

func (m *DiscoveryCallback) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DiscoveryCallback) UnmarshalBinary

func (m *DiscoveryCallback) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DiscoveryCallback) Validate

func (m *DiscoveryCallback) Validate(formats strfmt.Registry) error

Validate validates this discovery callback

type DiscoveryResponse

type DiscoveryResponse struct {

	// devices
	// Required: true
	Devices []*Device `json:"devices"`

	// global error
	GlobalError *GlobalError `json:"globalError,omitempty"`

	// headers
	// Required: true
	Headers *Headers `json:"headers"`
}

DiscoveryResponse discovery response

swagger:model DiscoveryResponse

func (*DiscoveryResponse) MarshalBinary

func (m *DiscoveryResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*DiscoveryResponse) UnmarshalBinary

func (m *DiscoveryResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*DiscoveryResponse) Validate

func (m *DiscoveryResponse) Validate(formats strfmt.Registry) error

Validate validates this discovery response

type GlobalError

type GlobalError struct {

	// detail
	// Max Length: 100
	Detail string `json:"detail,omitempty"`

	// error enum
	// Required: true
	// Enum: [TOKEN-EXPIRED INTEGRATION-DELETED BAD-REQUEST INVALID-TOKEN INVALID-INTERACTION-TYPE UNSUPPORTED-GRANT-TYPE INVALID-CODE INVALID-CLIENT-SECRET INVALID-CLIENT]
	ErrorEnum *string `json:"errorEnum"`
}

GlobalError global error

swagger:model GlobalError

func (*GlobalError) MarshalBinary

func (m *GlobalError) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GlobalError) UnmarshalBinary

func (m *GlobalError) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GlobalError) Validate

func (m *GlobalError) Validate(formats strfmt.Registry) error

Validate validates this global error

type Headers

type Headers struct {

	// interaction type
	// Required: true
	InteractionType InteractionType `json:"interactionType"`

	// request Id
	// Required: true
	// Max Length: 128
	// Pattern: ^[a-zA-Z0-9-+.]+$
	RequestID *string `json:"requestId"`

	// schema
	// Required: true
	// Enum: [st-schema]
	Schema *string `json:"schema"`

	// version
	// Required: true
	// Enum: [1.0]
	Version *string `json:"version"`
}

Headers headers

swagger:model Headers

func (*Headers) MarshalBinary

func (m *Headers) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Headers) UnmarshalBinary

func (m *Headers) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Headers) Validate

func (m *Headers) Validate(formats strfmt.Registry) error

Validate validates this headers

type InteractionResult

type InteractionResult struct {

	// authentication
	Authentication *Authentication `json:"authentication,omitempty"`

	// device state
	DeviceState []*DeviceState `json:"deviceState,omitempty"`

	// global error
	GlobalError *GlobalError `json:"globalError,omitempty"`

	// headers
	// Required: true
	Headers *Headers `json:"headers"`

	// originating interaction type
	OriginatingInteractionType InteractionType `json:"originatingInteractionType,omitempty"`
}

InteractionResult interaction result

swagger:model InteractionResult

func (*InteractionResult) MarshalBinary

func (m *InteractionResult) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*InteractionResult) UnmarshalBinary

func (m *InteractionResult) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*InteractionResult) Validate

func (m *InteractionResult) Validate(formats strfmt.Registry) error

Validate validates this interaction result

type InteractionType

type InteractionType string

InteractionType interaction type

swagger:model InteractionType

const (

	// InteractionTypeDiscoveryRequest captures enum value "discoveryRequest"
	InteractionTypeDiscoveryRequest InteractionType = "discoveryRequest"

	// InteractionTypeDiscoveryResponse captures enum value "discoveryResponse"
	InteractionTypeDiscoveryResponse InteractionType = "discoveryResponse"

	// InteractionTypeStateRefreshRequest captures enum value "stateRefreshRequest"
	InteractionTypeStateRefreshRequest InteractionType = "stateRefreshRequest"

	// InteractionTypeStateRefreshResponse captures enum value "stateRefreshResponse"
	InteractionTypeStateRefreshResponse InteractionType = "stateRefreshResponse"

	// InteractionTypeCommandRequest captures enum value "commandRequest"
	InteractionTypeCommandRequest InteractionType = "commandRequest"

	// InteractionTypeCommandResponse captures enum value "commandResponse"
	InteractionTypeCommandResponse InteractionType = "commandResponse"

	// InteractionTypeGrantCallbackAccess captures enum value "grantCallbackAccess"
	InteractionTypeGrantCallbackAccess InteractionType = "grantCallbackAccess"

	// InteractionTypeAccessTokenRequest captures enum value "accessTokenRequest"
	InteractionTypeAccessTokenRequest InteractionType = "accessTokenRequest"

	// InteractionTypeAccessTokenResponse captures enum value "accessTokenResponse"
	InteractionTypeAccessTokenResponse InteractionType = "accessTokenResponse"

	// InteractionTypeRefreshAccessTokens captures enum value "refreshAccessTokens"
	InteractionTypeRefreshAccessTokens InteractionType = "refreshAccessTokens"

	// InteractionTypeStateCallback captures enum value "stateCallback"
	InteractionTypeStateCallback InteractionType = "stateCallback"

	// InteractionTypeDiscoveryCallback captures enum value "discoveryCallback"
	InteractionTypeDiscoveryCallback InteractionType = "discoveryCallback"

	// InteractionTypeInteractionResult captures enum value "interactionResult"
	InteractionTypeInteractionResult InteractionType = "interactionResult"

	// InteractionTypeIntegrationDeleted captures enum value "integrationDeleted"
	InteractionTypeIntegrationDeleted InteractionType = "integrationDeleted"
)

func (InteractionType) Validate

func (m InteractionType) Validate(formats strfmt.Registry) error

Validate validates this interaction type

type Manufacturer

type Manufacturer struct {

	// hw version
	// Max Length: 100
	HwVersion string `json:"hwVersion,omitempty"`

	// manufacturer name
	// Required: true
	// Max Length: 100
	ManufacturerName *string `json:"manufacturerName"`

	// model name
	// Required: true
	// Max Length: 100
	ModelName *string `json:"modelName"`

	// sw version
	// Max Length: 100
	SwVersion string `json:"swVersion,omitempty"`
}

Manufacturer manufacturer

swagger:model Manufacturer

func (*Manufacturer) MarshalBinary

func (m *Manufacturer) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Manufacturer) UnmarshalBinary

func (m *Manufacturer) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Manufacturer) Validate

func (m *Manufacturer) Validate(formats strfmt.Registry) error

Validate validates this manufacturer

type RefreshAccessTokenRequest

type RefreshAccessTokenRequest struct {

	// callback authentication
	// Required: true
	CallbackAuthentication *RefreshAccessTokenRequestCallbackAuthentication `json:"callbackAuthentication"`

	// headers
	// Required: true
	Headers *Headers `json:"headers"`
}

RefreshAccessTokenRequest refresh access token request

swagger:model RefreshAccessTokenRequest

func (*RefreshAccessTokenRequest) MarshalBinary

func (m *RefreshAccessTokenRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RefreshAccessTokenRequest) UnmarshalBinary

func (m *RefreshAccessTokenRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RefreshAccessTokenRequest) Validate

func (m *RefreshAccessTokenRequest) Validate(formats strfmt.Registry) error

Validate validates this refresh access token request

type RefreshAccessTokenRequestCallbackAuthentication

type RefreshAccessTokenRequestCallbackAuthentication struct {

	// client Id
	// Required: true
	// Max Length: 100
	ClientID *string `json:"clientId"`

	// client secret
	// Required: true
	// Max Length: 100
	ClientSecret *string `json:"clientSecret"`

	// grant type
	// Required: true
	// Enum: [refresh_token]
	GrantType *string `json:"grantType"`

	// refresh token
	// Required: true
	// Max Length: 4096
	RefreshToken *string `json:"refreshToken"`
}

RefreshAccessTokenRequestCallbackAuthentication refresh access token request callback authentication

swagger:model RefreshAccessTokenRequestCallbackAuthentication

func (*RefreshAccessTokenRequestCallbackAuthentication) MarshalBinary

MarshalBinary interface implementation

func (*RefreshAccessTokenRequestCallbackAuthentication) UnmarshalBinary

UnmarshalBinary interface implementation

func (*RefreshAccessTokenRequestCallbackAuthentication) Validate

Validate validates this refresh access token request callback authentication

type SmartthingsRequest

type SmartthingsRequest struct {

	// authentication
	// Required: true
	Authentication *Authentication `json:"authentication"`

	// callback authentication
	CallbackAuthentication *CallbackAuth `json:"callbackAuthentication,omitempty"`

	// callback urls
	CallbackUrls *CallbackUrls `json:"callbackUrls,omitempty"`

	// device state
	DeviceState []*DeviceState `json:"deviceState"`

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

	// global error
	GlobalError *GlobalError `json:"globalError,omitempty"`

	// headers
	// Required: true
	Headers *Headers `json:"headers"`

	// originating interaction type
	OriginatingInteractionType InteractionType `json:"originatingInteractionType,omitempty"`
}

SmartthingsRequest smartthings request

swagger:model SmartthingsRequest

func (*SmartthingsRequest) MarshalBinary

func (m *SmartthingsRequest) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SmartthingsRequest) UnmarshalBinary

func (m *SmartthingsRequest) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SmartthingsRequest) Validate

func (m *SmartthingsRequest) Validate(formats strfmt.Registry) error

Validate validates this smartthings request

Jump to

Keyboard shortcuts

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