Documentation
¶
Index ¶
- Constants
- type AccessTokenRequest
- type AccessTokenRequestCallbackAuthentication
- type AccessTokenResponse
- type AccessTokenResponseCallbackAuthentication
- type Authentication
- type CallbackAuth
- type CallbackUrls
- type Command
- type CommandResponse
- type Cookie
- type Device
- type DeviceContext
- type DeviceRequest
- type DeviceState
- type DeviceStateCallback
- type DeviceStateDeviceErrorItems0
- type DeviceStateResponse
- type DeviceStateStatesItems0
- func (m *DeviceStateStatesItems0) MarshalBinary() ([]byte, error)
- func (m DeviceStateStatesItems0) MarshalJSON() ([]byte, error)
- func (m *DeviceStateStatesItems0) UnmarshalBinary(b []byte) error
- func (m *DeviceStateStatesItems0) UnmarshalJSON(data []byte) error
- func (m *DeviceStateStatesItems0) Validate(formats strfmt.Registry) error
- type DiscoveryCallback
- type DiscoveryResponse
- type GlobalError
- type Headers
- type InteractionResult
- type InteractionType
- type Manufacturer
- type RefreshAccessTokenRequest
- type RefreshAccessTokenRequestCallbackAuthentication
- type SmartthingsRequest
Constants ¶
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" )
const ( // AccessTokenRequestCallbackAuthenticationGrantTypeAuthorizationCode captures enum value "authorization_code" AccessTokenRequestCallbackAuthenticationGrantTypeAuthorizationCode string = "authorization_code" )
const ( // AccessTokenResponseCallbackAuthenticationTokenTypeBearer captures enum value "Bearer" AccessTokenResponseCallbackAuthenticationTokenTypeBearer string = "Bearer" )
const ( // AuthenticationTokenTypeBearer captures enum value "Bearer" AuthenticationTokenTypeBearer string = "Bearer" )
const ( // HeadersSchemaStSchema captures enum value "st-schema" HeadersSchemaStSchema string = "st-schema" )
const ( // HeadersVersionNr10 captures enum value "1.0" HeadersVersionNr10 string = "1.0" )
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
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
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
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
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
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
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
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 ¶
MarshalBinary interface implementation
func (*Command) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
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 ¶
MarshalBinary interface implementation
func (*Device) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
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
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
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
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
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
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
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
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
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
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 ¶
MarshalBinary interface implementation
func (*Headers) UnmarshalBinary ¶
UnmarshalBinary interface implementation
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
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" )
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
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
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 ¶
func (m *RefreshAccessTokenRequestCallbackAuthentication) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RefreshAccessTokenRequestCallbackAuthentication) UnmarshalBinary ¶
func (m *RefreshAccessTokenRequestCallbackAuthentication) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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
Source Files
¶
- access_token_request.go
- access_token_response.go
- authentication.go
- callback_auth.go
- callback_urls.go
- command.go
- command_response.go
- cookie.go
- device.go
- device_context.go
- device_request.go
- device_state.go
- device_state_callback.go
- device_state_response.go
- discovery_callback.go
- discovery_response.go
- global_error.go
- headers.go
- interaction_result.go
- interaction_type.go
- manufacturer.go
- refresh_access_token_request.go
- smartthings_request.go