Documentation
¶
Overview ¶
Package openhue provides a simple API on top of the Philips Hue CLIP API. Most of the code is automatically generated thanks to https://github.com/openhue/openhue-api, the main project of the OpenHue organization.
The main concept of this library is the Home abstraction that acts as an entry point to the rest of the resources exposed by the Philips Hue bridge.
Let's start creating your Home and listing all the rooms:
func main() { h, _ := openhue.NewHome("192.168.0.1", "replace with your actual API key") rooms, _ := home.GetRooms() for _, room := range rooms { fmt.Println(*room.Metadata.Name) } }
Here we create a new Home instance from a given Bridge IP and API key. Then we are able to list all rooms of type RoomGet that are contained in your Home. Please note that we explicitly ignored all the errors to simply this snippet.
Package openhue provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.3.0 DO NOT EDIT.
Index ¶
- Constants
- func CheckErr(msg error)
- func LoadConfNoError() (string, string)
- func NewAuthenticateRequest(server string, body AuthenticateJSONRequestBody) (*http.Request, error)
- func NewAuthenticateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateRoomRequest(server string, body CreateRoomJSONRequestBody) (*http.Request, error)
- func NewCreateRoomRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateSceneRequest(server string, body CreateSceneJSONRequestBody) (*http.Request, error)
- func NewCreateSceneRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateSmartSceneRequest(server string, body CreateSmartSceneJSONRequestBody) (*http.Request, error)
- func NewCreateSmartSceneRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateZoneRequest(server string, body CreateZoneJSONRequestBody) (*http.Request, error)
- func NewCreateZoneRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteDeviceRequest(server string, deviceId string) (*http.Request, error)
- func NewDeleteRoomRequest(server string, roomId string) (*http.Request, error)
- func NewDeleteSceneRequest(server string, sceneId string) (*http.Request, error)
- func NewDeleteSmartSceneRequest(server string, sceneId string) (*http.Request, error)
- func NewDeleteZoneRequest(server string, zoneId string) (*http.Request, error)
- func NewGetBridgeHomeRequest(server string, bridgeHomeId string) (*http.Request, error)
- func NewGetBridgeHomesRequest(server string) (*http.Request, error)
- func NewGetBridgeRequest(server string, bridgeId string) (*http.Request, error)
- func NewGetBridgesRequest(server string) (*http.Request, error)
- func NewGetDevicePowerRequest(server string, deviceId string) (*http.Request, error)
- func NewGetDevicePowersRequest(server string) (*http.Request, error)
- func NewGetDeviceRequest(server string, deviceId string) (*http.Request, error)
- func NewGetDevicesRequest(server string) (*http.Request, error)
- func NewGetGroupedLightRequest(server string, groupedLightId string) (*http.Request, error)
- func NewGetGroupedLightsRequest(server string) (*http.Request, error)
- func NewGetLightLevelRequest(server string, lightId string) (*http.Request, error)
- func NewGetLightLevelsRequest(server string) (*http.Request, error)
- func NewGetLightRequest(server string, lightId string) (*http.Request, error)
- func NewGetLightsRequest(server string) (*http.Request, error)
- func NewGetMotionSensorRequest(server string, motionId string) (*http.Request, error)
- func NewGetMotionSensorsRequest(server string) (*http.Request, error)
- func NewGetResourcesRequest(server string) (*http.Request, error)
- func NewGetRoomRequest(server string, roomId string) (*http.Request, error)
- func NewGetRoomsRequest(server string) (*http.Request, error)
- func NewGetSceneRequest(server string, sceneId string) (*http.Request, error)
- func NewGetScenesRequest(server string) (*http.Request, error)
- func NewGetSmartSceneRequest(server string, sceneId string) (*http.Request, error)
- func NewGetSmartScenesRequest(server string) (*http.Request, error)
- func NewGetTemperatureRequest(server string, temperatureId string) (*http.Request, error)
- func NewGetTemperaturesRequest(server string) (*http.Request, error)
- func NewGetZoneRequest(server string, zoneId string) (*http.Request, error)
- func NewGetZonesRequest(server string) (*http.Request, error)
- func NewTestHome() (*Home, *ClientWithResponsesMock)
- func NewUpdateBridgeRequest(server string, bridgeId string, body UpdateBridgeJSONRequestBody) (*http.Request, error)
- func NewUpdateBridgeRequestWithBody(server string, bridgeId string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateDeviceRequest(server string, deviceId string, body UpdateDeviceJSONRequestBody) (*http.Request, error)
- func NewUpdateDeviceRequestWithBody(server string, deviceId string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateGroupedLightRequest(server string, groupedLightId string, body UpdateGroupedLightJSONRequestBody) (*http.Request, error)
- func NewUpdateGroupedLightRequestWithBody(server string, groupedLightId string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateLightLevelRequest(server string, lightId string, body UpdateLightLevelJSONRequestBody) (*http.Request, error)
- func NewUpdateLightLevelRequestWithBody(server string, lightId string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateLightRequest(server string, lightId string, body UpdateLightJSONRequestBody) (*http.Request, error)
- func NewUpdateLightRequestWithBody(server string, lightId string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateMotionSensorRequest(server string, motionId string, body UpdateMotionSensorJSONRequestBody) (*http.Request, error)
- func NewUpdateMotionSensorRequestWithBody(server string, motionId string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateRoomRequest(server string, roomId string, body UpdateRoomJSONRequestBody) (*http.Request, error)
- func NewUpdateRoomRequestWithBody(server string, roomId string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateSceneRequest(server string, sceneId string, body UpdateSceneJSONRequestBody) (*http.Request, error)
- func NewUpdateSceneRequestWithBody(server string, sceneId string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateSmartSceneRequest(server string, sceneId string, body UpdateSmartSceneJSONRequestBody) (*http.Request, error)
- func NewUpdateSmartSceneRequestWithBody(server string, sceneId string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateTemperatureRequest(server string, temperatureId string, body UpdateTemperatureJSONRequestBody) (*http.Request, error)
- func NewUpdateTemperatureRequestWithBody(server string, temperatureId string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateZoneRequest(server string, zoneId string, body UpdateZoneJSONRequestBody) (*http.Request, error)
- func NewUpdateZoneRequestWithBody(server string, zoneId string, contentType string, body io.Reader) (*http.Request, error)
- func WithDeviceType(deviceType string) authOpt
- func WithDisabledUrlDiscovery() discOpt
- func WithGenerateClientKey(generateClientKey bool) authOpt
- func WithTimeout(timeout time.Duration) discOpt
- type ActionGet
- type ActionPost
- type Alert
- type ApiError
- type ApiResponse
- type AuthenticateJSONBody
- type AuthenticateJSONRequestBody
- type AuthenticateResponse
- type Authenticator
- type BridgeDiscovery
- type BridgeDiscoveryError
- type BridgeGet
- type BridgeGetType
- type BridgeHomeGet
- type BridgeHomeGetType
- type BridgeInfo
- type BridgePut
- type BridgePutType
- type Brightness
- type Client
- func (c *Client) Authenticate(ctx context.Context, body AuthenticateJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AuthenticateWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateRoom(ctx context.Context, body CreateRoomJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateRoomWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateScene(ctx context.Context, body CreateSceneJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateSceneWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateSmartScene(ctx context.Context, body CreateSmartSceneJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateSmartSceneWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateZone(ctx context.Context, body CreateZoneJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateZoneWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteDevice(ctx context.Context, deviceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteRoom(ctx context.Context, roomId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteScene(ctx context.Context, sceneId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteSmartScene(ctx context.Context, sceneId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteZone(ctx context.Context, zoneId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetBridge(ctx context.Context, bridgeId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetBridgeHome(ctx context.Context, bridgeHomeId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetBridgeHomes(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetBridges(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetDevice(ctx context.Context, deviceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetDevicePower(ctx context.Context, deviceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetDevicePowers(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetDevices(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetGroupedLight(ctx context.Context, groupedLightId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetGroupedLights(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetLight(ctx context.Context, lightId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetLightLevel(ctx context.Context, lightId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetLightLevels(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetLights(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetMotionSensor(ctx context.Context, motionId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetMotionSensors(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetResources(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetRoom(ctx context.Context, roomId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetRooms(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetScene(ctx context.Context, sceneId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetScenes(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetSmartScene(ctx context.Context, sceneId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetSmartScenes(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetTemperature(ctx context.Context, temperatureId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetTemperatures(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetZone(ctx context.Context, zoneId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetZones(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) UpdateBridge(ctx context.Context, bridgeId string, body UpdateBridgeJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateBridgeWithBody(ctx context.Context, bridgeId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateDevice(ctx context.Context, deviceId string, body UpdateDeviceJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateDeviceWithBody(ctx context.Context, deviceId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateGroupedLight(ctx context.Context, groupedLightId string, ...) (*http.Response, error)
- func (c *Client) UpdateGroupedLightWithBody(ctx context.Context, groupedLightId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateLight(ctx context.Context, lightId string, body UpdateLightJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateLightLevel(ctx context.Context, lightId string, body UpdateLightLevelJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateLightLevelWithBody(ctx context.Context, lightId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateLightWithBody(ctx context.Context, lightId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateMotionSensor(ctx context.Context, motionId string, body UpdateMotionSensorJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateMotionSensorWithBody(ctx context.Context, motionId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateRoom(ctx context.Context, roomId string, body UpdateRoomJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateRoomWithBody(ctx context.Context, roomId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateScene(ctx context.Context, sceneId string, body UpdateSceneJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateSceneWithBody(ctx context.Context, sceneId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateSmartScene(ctx context.Context, sceneId string, body UpdateSmartSceneJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateSmartSceneWithBody(ctx context.Context, sceneId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateTemperature(ctx context.Context, temperatureId string, ...) (*http.Response, error)
- func (c *Client) UpdateTemperatureWithBody(ctx context.Context, temperatureId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateZone(ctx context.Context, zoneId string, body UpdateZoneJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateZoneWithBody(ctx context.Context, zoneId string, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) AuthenticateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*AuthenticateResponse, error)
- func (c *ClientWithResponses) AuthenticateWithResponse(ctx context.Context, body AuthenticateJSONRequestBody, ...) (*AuthenticateResponse, error)
- func (c *ClientWithResponses) CreateRoomWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateRoomResponse, error)
- func (c *ClientWithResponses) CreateRoomWithResponse(ctx context.Context, body CreateRoomJSONRequestBody, ...) (*CreateRoomResponse, error)
- func (c *ClientWithResponses) CreateSceneWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateSceneResponse, error)
- func (c *ClientWithResponses) CreateSceneWithResponse(ctx context.Context, body CreateSceneJSONRequestBody, ...) (*CreateSceneResponse, error)
- func (c *ClientWithResponses) CreateSmartSceneWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateSmartSceneResponse, error)
- func (c *ClientWithResponses) CreateSmartSceneWithResponse(ctx context.Context, body CreateSmartSceneJSONRequestBody, ...) (*CreateSmartSceneResponse, error)
- func (c *ClientWithResponses) CreateZoneWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateZoneResponse, error)
- func (c *ClientWithResponses) CreateZoneWithResponse(ctx context.Context, body CreateZoneJSONRequestBody, ...) (*CreateZoneResponse, error)
- func (c *ClientWithResponses) DeleteDeviceWithResponse(ctx context.Context, deviceId string, reqEditors ...RequestEditorFn) (*DeleteDeviceResponse, error)
- func (c *ClientWithResponses) DeleteRoomWithResponse(ctx context.Context, roomId string, reqEditors ...RequestEditorFn) (*DeleteRoomResponse, error)
- func (c *ClientWithResponses) DeleteSceneWithResponse(ctx context.Context, sceneId string, reqEditors ...RequestEditorFn) (*DeleteSceneResponse, error)
- func (c *ClientWithResponses) DeleteSmartSceneWithResponse(ctx context.Context, sceneId string, reqEditors ...RequestEditorFn) (*DeleteSmartSceneResponse, error)
- func (c *ClientWithResponses) DeleteZoneWithResponse(ctx context.Context, zoneId string, reqEditors ...RequestEditorFn) (*DeleteZoneResponse, error)
- func (c *ClientWithResponses) GetBridgeHomeWithResponse(ctx context.Context, bridgeHomeId string, reqEditors ...RequestEditorFn) (*GetBridgeHomeResponse, error)
- func (c *ClientWithResponses) GetBridgeHomesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetBridgeHomesResponse, error)
- func (c *ClientWithResponses) GetBridgeWithResponse(ctx context.Context, bridgeId string, reqEditors ...RequestEditorFn) (*GetBridgeResponse, error)
- func (c *ClientWithResponses) GetBridgesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetBridgesResponse, error)
- func (c *ClientWithResponses) GetDevicePowerWithResponse(ctx context.Context, deviceId string, reqEditors ...RequestEditorFn) (*GetDevicePowerResponse, error)
- func (c *ClientWithResponses) GetDevicePowersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDevicePowersResponse, error)
- func (c *ClientWithResponses) GetDeviceWithResponse(ctx context.Context, deviceId string, reqEditors ...RequestEditorFn) (*GetDeviceResponse, error)
- func (c *ClientWithResponses) GetDevicesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDevicesResponse, error)
- func (c *ClientWithResponses) GetGroupedLightWithResponse(ctx context.Context, groupedLightId string, reqEditors ...RequestEditorFn) (*GetGroupedLightResponse, error)
- func (c *ClientWithResponses) GetGroupedLightsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetGroupedLightsResponse, error)
- func (c *ClientWithResponses) GetLightLevelWithResponse(ctx context.Context, lightId string, reqEditors ...RequestEditorFn) (*GetLightLevelResponse, error)
- func (c *ClientWithResponses) GetLightLevelsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetLightLevelsResponse, error)
- func (c *ClientWithResponses) GetLightWithResponse(ctx context.Context, lightId string, reqEditors ...RequestEditorFn) (*GetLightResponse, error)
- func (c *ClientWithResponses) GetLightsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetLightsResponse, error)
- func (c *ClientWithResponses) GetMotionSensorWithResponse(ctx context.Context, motionId string, reqEditors ...RequestEditorFn) (*GetMotionSensorResponse, error)
- func (c *ClientWithResponses) GetMotionSensorsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetMotionSensorsResponse, error)
- func (c *ClientWithResponses) GetResourcesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetResourcesResponse, error)
- func (c *ClientWithResponses) GetRoomWithResponse(ctx context.Context, roomId string, reqEditors ...RequestEditorFn) (*GetRoomResponse, error)
- func (c *ClientWithResponses) GetRoomsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetRoomsResponse, error)
- func (c *ClientWithResponses) GetSceneWithResponse(ctx context.Context, sceneId string, reqEditors ...RequestEditorFn) (*GetSceneResponse, error)
- func (c *ClientWithResponses) GetScenesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetScenesResponse, error)
- func (c *ClientWithResponses) GetSmartSceneWithResponse(ctx context.Context, sceneId string, reqEditors ...RequestEditorFn) (*GetSmartSceneResponse, error)
- func (c *ClientWithResponses) GetSmartScenesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSmartScenesResponse, error)
- func (c *ClientWithResponses) GetTemperatureWithResponse(ctx context.Context, temperatureId string, reqEditors ...RequestEditorFn) (*GetTemperatureResponse, error)
- func (c *ClientWithResponses) GetTemperaturesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetTemperaturesResponse, error)
- func (c *ClientWithResponses) GetZoneWithResponse(ctx context.Context, zoneId string, reqEditors ...RequestEditorFn) (*GetZoneResponse, error)
- func (c *ClientWithResponses) GetZonesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetZonesResponse, error)
- func (c *ClientWithResponses) UpdateBridgeWithBodyWithResponse(ctx context.Context, bridgeId string, contentType string, body io.Reader, ...) (*UpdateBridgeResponse, error)
- func (c *ClientWithResponses) UpdateBridgeWithResponse(ctx context.Context, bridgeId string, body UpdateBridgeJSONRequestBody, ...) (*UpdateBridgeResponse, error)
- func (c *ClientWithResponses) UpdateDeviceWithBodyWithResponse(ctx context.Context, deviceId string, contentType string, body io.Reader, ...) (*UpdateDeviceResponse, error)
- func (c *ClientWithResponses) UpdateDeviceWithResponse(ctx context.Context, deviceId string, body UpdateDeviceJSONRequestBody, ...) (*UpdateDeviceResponse, error)
- func (c *ClientWithResponses) UpdateGroupedLightWithBodyWithResponse(ctx context.Context, groupedLightId string, contentType string, body io.Reader, ...) (*UpdateGroupedLightResponse, error)
- func (c *ClientWithResponses) UpdateGroupedLightWithResponse(ctx context.Context, groupedLightId string, ...) (*UpdateGroupedLightResponse, error)
- func (c *ClientWithResponses) UpdateLightLevelWithBodyWithResponse(ctx context.Context, lightId string, contentType string, body io.Reader, ...) (*UpdateLightLevelResponse, error)
- func (c *ClientWithResponses) UpdateLightLevelWithResponse(ctx context.Context, lightId string, body UpdateLightLevelJSONRequestBody, ...) (*UpdateLightLevelResponse, error)
- func (c *ClientWithResponses) UpdateLightWithBodyWithResponse(ctx context.Context, lightId string, contentType string, body io.Reader, ...) (*UpdateLightResponse, error)
- func (c *ClientWithResponses) UpdateLightWithResponse(ctx context.Context, lightId string, body UpdateLightJSONRequestBody, ...) (*UpdateLightResponse, error)
- func (c *ClientWithResponses) UpdateMotionSensorWithBodyWithResponse(ctx context.Context, motionId string, contentType string, body io.Reader, ...) (*UpdateMotionSensorResponse, error)
- func (c *ClientWithResponses) UpdateMotionSensorWithResponse(ctx context.Context, motionId string, body UpdateMotionSensorJSONRequestBody, ...) (*UpdateMotionSensorResponse, error)
- func (c *ClientWithResponses) UpdateRoomWithBodyWithResponse(ctx context.Context, roomId string, contentType string, body io.Reader, ...) (*UpdateRoomResponse, error)
- func (c *ClientWithResponses) UpdateRoomWithResponse(ctx context.Context, roomId string, body UpdateRoomJSONRequestBody, ...) (*UpdateRoomResponse, error)
- func (c *ClientWithResponses) UpdateSceneWithBodyWithResponse(ctx context.Context, sceneId string, contentType string, body io.Reader, ...) (*UpdateSceneResponse, error)
- func (c *ClientWithResponses) UpdateSceneWithResponse(ctx context.Context, sceneId string, body UpdateSceneJSONRequestBody, ...) (*UpdateSceneResponse, error)
- func (c *ClientWithResponses) UpdateSmartSceneWithBodyWithResponse(ctx context.Context, sceneId string, contentType string, body io.Reader, ...) (*UpdateSmartSceneResponse, error)
- func (c *ClientWithResponses) UpdateSmartSceneWithResponse(ctx context.Context, sceneId string, body UpdateSmartSceneJSONRequestBody, ...) (*UpdateSmartSceneResponse, error)
- func (c *ClientWithResponses) UpdateTemperatureWithBodyWithResponse(ctx context.Context, temperatureId string, contentType string, body io.Reader, ...) (*UpdateTemperatureResponse, error)
- func (c *ClientWithResponses) UpdateTemperatureWithResponse(ctx context.Context, temperatureId string, ...) (*UpdateTemperatureResponse, error)
- func (c *ClientWithResponses) UpdateZoneWithBodyWithResponse(ctx context.Context, zoneId string, contentType string, body io.Reader, ...) (*UpdateZoneResponse, error)
- func (c *ClientWithResponses) UpdateZoneWithResponse(ctx context.Context, zoneId string, body UpdateZoneJSONRequestBody, ...) (*UpdateZoneResponse, error)
- type ClientWithResponsesInterface
- type ClientWithResponsesMock
- func (c *ClientWithResponsesMock) AuthenticateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*AuthenticateResponse, error)
- func (c *ClientWithResponsesMock) AuthenticateWithResponse(ctx context.Context, body AuthenticateJSONRequestBody, ...) (*AuthenticateResponse, error)
- func (c *ClientWithResponsesMock) CreateRoomWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateRoomResponse, error)
- func (c *ClientWithResponsesMock) CreateRoomWithResponse(ctx context.Context, body CreateRoomJSONRequestBody, ...) (*CreateRoomResponse, error)
- func (c *ClientWithResponsesMock) CreateSceneWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateSceneResponse, error)
- func (c *ClientWithResponsesMock) CreateSceneWithResponse(ctx context.Context, body CreateSceneJSONRequestBody, ...) (*CreateSceneResponse, error)
- func (c *ClientWithResponsesMock) CreateSmartSceneWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateSmartSceneResponse, error)
- func (c *ClientWithResponsesMock) CreateSmartSceneWithResponse(ctx context.Context, body CreateSmartSceneJSONRequestBody, ...) (*CreateSmartSceneResponse, error)
- func (c *ClientWithResponsesMock) CreateZoneWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateZoneResponse, error)
- func (c *ClientWithResponsesMock) CreateZoneWithResponse(ctx context.Context, body CreateZoneJSONRequestBody, ...) (*CreateZoneResponse, error)
- func (c *ClientWithResponsesMock) DeleteDeviceWithResponse(ctx context.Context, deviceId string, reqEditors ...RequestEditorFn) (*DeleteDeviceResponse, error)
- func (c *ClientWithResponsesMock) DeleteRoomWithResponse(ctx context.Context, roomId string, reqEditors ...RequestEditorFn) (*DeleteRoomResponse, error)
- func (c *ClientWithResponsesMock) DeleteSceneWithResponse(ctx context.Context, sceneId string, reqEditors ...RequestEditorFn) (*DeleteSceneResponse, error)
- func (c *ClientWithResponsesMock) DeleteSmartSceneWithResponse(ctx context.Context, sceneId string, reqEditors ...RequestEditorFn) (*DeleteSmartSceneResponse, error)
- func (c *ClientWithResponsesMock) DeleteZoneWithResponse(ctx context.Context, zoneId string, reqEditors ...RequestEditorFn) (*DeleteZoneResponse, error)
- func (c *ClientWithResponsesMock) GetBridgeHomeWithResponse(ctx context.Context, bridgeHomeId string, reqEditors ...RequestEditorFn) (*GetBridgeHomeResponse, error)
- func (c *ClientWithResponsesMock) GetBridgeHomesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetBridgeHomesResponse, error)
- func (c *ClientWithResponsesMock) GetBridgeWithResponse(ctx context.Context, bridgeId string, reqEditors ...RequestEditorFn) (*GetBridgeResponse, error)
- func (c *ClientWithResponsesMock) GetBridgesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetBridgesResponse, error)
- func (c *ClientWithResponsesMock) GetDevicePowerWithResponse(ctx context.Context, deviceId string, reqEditors ...RequestEditorFn) (*GetDevicePowerResponse, error)
- func (c *ClientWithResponsesMock) GetDevicePowersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDevicePowersResponse, error)
- func (c *ClientWithResponsesMock) GetDeviceWithResponse(ctx context.Context, deviceId string, reqEditors ...RequestEditorFn) (*GetDeviceResponse, error)
- func (c *ClientWithResponsesMock) GetDevicesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDevicesResponse, error)
- func (c *ClientWithResponsesMock) GetGroupedLightWithResponse(ctx context.Context, groupedLightId string, reqEditors ...RequestEditorFn) (*GetGroupedLightResponse, error)
- func (c *ClientWithResponsesMock) GetGroupedLightsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetGroupedLightsResponse, error)
- func (c *ClientWithResponsesMock) GetLightLevelWithResponse(ctx context.Context, lightId string, reqEditors ...RequestEditorFn) (*GetLightLevelResponse, error)
- func (c *ClientWithResponsesMock) GetLightLevelsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetLightLevelsResponse, error)
- func (c *ClientWithResponsesMock) GetLightWithResponse(ctx context.Context, lightId string, reqEditors ...RequestEditorFn) (*GetLightResponse, error)
- func (c *ClientWithResponsesMock) GetLightsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetLightsResponse, error)
- func (c *ClientWithResponsesMock) GetMotionSensorWithResponse(ctx context.Context, motionId string, reqEditors ...RequestEditorFn) (*GetMotionSensorResponse, error)
- func (c *ClientWithResponsesMock) GetMotionSensorsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetMotionSensorsResponse, error)
- func (c *ClientWithResponsesMock) GetResourcesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetResourcesResponse, error)
- func (c *ClientWithResponsesMock) GetRoomWithResponse(ctx context.Context, roomId string, reqEditors ...RequestEditorFn) (*GetRoomResponse, error)
- func (c *ClientWithResponsesMock) GetRoomsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetRoomsResponse, error)
- func (c *ClientWithResponsesMock) GetSceneWithResponse(ctx context.Context, sceneId string, reqEditors ...RequestEditorFn) (*GetSceneResponse, error)
- func (c *ClientWithResponsesMock) GetScenesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetScenesResponse, error)
- func (c *ClientWithResponsesMock) GetSmartSceneWithResponse(ctx context.Context, sceneId string, reqEditors ...RequestEditorFn) (*GetSmartSceneResponse, error)
- func (c *ClientWithResponsesMock) GetSmartScenesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSmartScenesResponse, error)
- func (c *ClientWithResponsesMock) GetTemperatureWithResponse(ctx context.Context, temperatureId string, reqEditors ...RequestEditorFn) (*GetTemperatureResponse, error)
- func (c *ClientWithResponsesMock) GetTemperaturesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetTemperaturesResponse, error)
- func (c *ClientWithResponsesMock) GetZoneWithResponse(ctx context.Context, zoneId string, reqEditors ...RequestEditorFn) (*GetZoneResponse, error)
- func (c *ClientWithResponsesMock) GetZonesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetZonesResponse, error)
- func (c *ClientWithResponsesMock) UpdateBridgeWithBodyWithResponse(ctx context.Context, bridgeId string, contentType string, body io.Reader, ...) (*UpdateBridgeResponse, error)
- func (c *ClientWithResponsesMock) UpdateBridgeWithResponse(ctx context.Context, bridgeId string, body UpdateBridgeJSONRequestBody, ...) (*UpdateBridgeResponse, error)
- func (c *ClientWithResponsesMock) UpdateDeviceWithBodyWithResponse(ctx context.Context, deviceId string, contentType string, body io.Reader, ...) (*UpdateDeviceResponse, error)
- func (c *ClientWithResponsesMock) UpdateDeviceWithResponse(ctx context.Context, deviceId string, body UpdateDeviceJSONRequestBody, ...) (*UpdateDeviceResponse, error)
- func (c *ClientWithResponsesMock) UpdateGroupedLightWithBodyWithResponse(ctx context.Context, groupedLightId string, contentType string, body io.Reader, ...) (*UpdateGroupedLightResponse, error)
- func (c *ClientWithResponsesMock) UpdateGroupedLightWithResponse(ctx context.Context, groupedLightId string, ...) (*UpdateGroupedLightResponse, error)
- func (c *ClientWithResponsesMock) UpdateLightLevelWithBodyWithResponse(ctx context.Context, lightId string, contentType string, body io.Reader, ...) (*UpdateLightLevelResponse, error)
- func (c *ClientWithResponsesMock) UpdateLightLevelWithResponse(ctx context.Context, lightId string, body UpdateLightLevelJSONRequestBody, ...) (*UpdateLightLevelResponse, error)
- func (c *ClientWithResponsesMock) UpdateLightWithBodyWithResponse(ctx context.Context, lightId string, contentType string, body io.Reader, ...) (*UpdateLightResponse, error)
- func (c *ClientWithResponsesMock) UpdateLightWithResponse(ctx context.Context, lightId string, body UpdateLightJSONRequestBody, ...) (*UpdateLightResponse, error)
- func (c *ClientWithResponsesMock) UpdateMotionSensorWithBodyWithResponse(ctx context.Context, motionId string, contentType string, body io.Reader, ...) (*UpdateMotionSensorResponse, error)
- func (c *ClientWithResponsesMock) UpdateMotionSensorWithResponse(ctx context.Context, motionId string, body UpdateMotionSensorJSONRequestBody, ...) (*UpdateMotionSensorResponse, error)
- func (c *ClientWithResponsesMock) UpdateRoomWithBodyWithResponse(ctx context.Context, roomId string, contentType string, body io.Reader, ...) (*UpdateRoomResponse, error)
- func (c *ClientWithResponsesMock) UpdateRoomWithResponse(ctx context.Context, roomId string, body UpdateRoomJSONRequestBody, ...) (*UpdateRoomResponse, error)
- func (c *ClientWithResponsesMock) UpdateSceneWithBodyWithResponse(ctx context.Context, sceneId string, contentType string, body io.Reader, ...) (*UpdateSceneResponse, error)
- func (c *ClientWithResponsesMock) UpdateSceneWithResponse(ctx context.Context, sceneId string, body UpdateSceneJSONRequestBody, ...) (*UpdateSceneResponse, error)
- func (c *ClientWithResponsesMock) UpdateSmartSceneWithBodyWithResponse(ctx context.Context, sceneId string, contentType string, body io.Reader, ...) (*UpdateSmartSceneResponse, error)
- func (c *ClientWithResponsesMock) UpdateSmartSceneWithResponse(ctx context.Context, sceneId string, body UpdateSmartSceneJSONRequestBody, ...) (*UpdateSmartSceneResponse, error)
- func (c *ClientWithResponsesMock) UpdateTemperatureWithBodyWithResponse(ctx context.Context, temperatureId string, contentType string, body io.Reader, ...) (*UpdateTemperatureResponse, error)
- func (c *ClientWithResponsesMock) UpdateTemperatureWithResponse(ctx context.Context, temperatureId string, ...) (*UpdateTemperatureResponse, error)
- func (c *ClientWithResponsesMock) UpdateZoneWithBodyWithResponse(ctx context.Context, zoneId string, contentType string, body io.Reader, ...) (*UpdateZoneResponse, error)
- func (c *ClientWithResponsesMock) UpdateZoneWithResponse(ctx context.Context, zoneId string, body UpdateZoneJSONRequestBody, ...) (*UpdateZoneResponse, error)
- type Color
- type ColorPaletteGet
- type ColorTemperature
- type ColorTemperatureDelta
- type ColorTemperatureDeltaAction
- type ColorTemperaturePalettePost
- type Conf
- type Conflict
- type CreateRoomJSONRequestBody
- type CreateRoomResponse
- type CreateSceneJSONRequestBody
- type CreateSceneResponse
- type CreateSmartSceneJSONRequestBody
- type CreateSmartSceneResponse
- type CreateZoneJSONRequestBody
- type CreateZoneResponse
- type DayTimeslotsGet
- type DeleteDeviceResponse
- type DeleteRoomResponse
- type DeleteSceneResponse
- type DeleteSmartSceneResponse
- type DeleteZoneResponse
- type DeviceGet
- type DeviceGetType
- type DeviceGetUsertestStatus
- type DevicePowerGet
- type DevicePowerGetPowerStateBatteryState
- type DevicePut
- type DevicePutIdentifyAction
- type DevicePutType
- type Dimming
- type DimmingDelta
- type DimmingDeltaAction
- type Dynamics
- type Effects
- type Error
- type ErrorResponse
- type Forbidden
- type GamutPosition
- type GetBridgeHomeResponse
- type GetBridgeHomesResponse
- type GetBridgeResponse
- type GetBridgesResponse
- type GetDevicePowerResponse
- type GetDevicePowersResponse
- type GetDeviceResponse
- type GetDevicesResponse
- type GetGroupedLightResponse
- type GetGroupedLightsResponse
- type GetLightLevelResponse
- type GetLightLevelsResponse
- type GetLightResponse
- type GetLightsResponse
- type GetMotionSensorResponse
- type GetMotionSensorsResponse
- type GetResourcesResponse
- type GetRoomResponse
- type GetRoomsResponse
- type GetSceneResponse
- type GetScenesResponse
- type GetSmartSceneResponse
- type GetSmartScenesResponse
- type GetTemperatureResponse
- type GetTemperaturesResponse
- type GetZoneResponse
- type GetZonesResponse
- type Gradient
- type GroupedLightGet
- type GroupedLightPut
- type GroupedLightPutType
- type Home
- func (h *Home) GetBridgeHome() (*BridgeHomeGet, error)
- func (h *Home) GetDeviceById(deviceId string) (*DeviceGet, error)
- func (h *Home) GetDevices() (map[string]DeviceGet, error)
- func (h *Home) GetGroupedLightById(groupedLightId string) (*GroupedLightGet, error)
- func (h *Home) GetGroupedLights() (map[string]GroupedLightGet, error)
- func (h *Home) GetLights() (map[string]LightGet, error)
- func (h *Home) GetResources() (map[string]ResourceGet, error)
- func (h *Home) GetRoomById(roomId string) (*RoomGet, error)
- func (h *Home) GetRooms() (map[string]RoomGet, error)
- func (h *Home) GetScenes() (map[string]SceneGet, error)
- func (h *Home) GetSmartScenes() (map[string]SmartSceneGet, error)
- func (h *Home) GetZoneById(zoneId string) (*RoomGet, error)
- func (h *Home) UpdateGroupedLight(lightId string, body GroupedLightPut) error
- func (h *Home) UpdateLight(lightId string, body LightPut) error
- func (h *Home) UpdateScene(sceneId string, body ScenePut) error
- func (h *Home) UpdateSmartScene(sceneId string, body SmartScenePut) error
- type HttpRequestDoer
- type InsufficientStorage
- type InternalServerError
- type LightArchetype
- type LightDynamics
- type LightGet
- type LightGetColorGamutType
- type LightGetMode
- type LightGetPowerupDimmingColorMode
- type LightGetPowerupDimmingMode
- type LightGetPowerupOnMode
- type LightGetPowerupPreset
- type LightLevelGet
- type LightLevelPut
- type LightPut
- type LightPutMode
- type MethodNotAllowed
- type Mirek
- type MotionGet
- type MotionGetSensitivityStatus
- type MotionPut
- type NotAcceptable
- type NotFound
- type On
- type Powerup
- type PowerupDimmingColorMode
- type PowerupDimmingMode
- type PowerupOnMode
- type PowerupPreset
- type ProductArchetype
- type ProductData
- type RequestEditorFn
- type Resource
- type ResourceGet
- type ResourceGetType
- type ResourceIdentifier
- type ResourceIdentifierRtype
- type ResourceOwned
- type Response
- type RoomArchetype
- type RoomGet
- type RoomPut
- type SceneGet
- type SceneGetStatusActive
- type SceneGetType
- type SceneMetadata
- type ScenePalette
- type ScenePost
- type ScenePostType
- type ScenePut
- type ScenePutType
- type SceneRecall
- type SceneRecallAction
- type ServiceUnavailable
- type Signaling
- type SignalingSignal
- type SmartSceneGet
- type SmartSceneGetState
- type SmartSceneGetType
- type SmartSceneMetadata
- type SmartSceneMetadataWithImage
- type SmartSceneOptionalRecall
- type SmartSceneOptionalRecallAction
- type SmartScenePost
- type SmartScenePostType
- type SmartScenePut
- type SmartScenePutType
- type SmartSceneRecall
- type SmartSceneRecallAction
- type SmartSceneTimeslotGet
- type SmartSceneTimeslotGetStartTimeKind
- type SupportedDynamicStatus
- type SupportedEffects
- type SupportedGradientMode
- type SupportedSignals
- type SupportedTimedEffects
- type TemperatureGet
- type TemperaturePut
- type TemperaturePutType
- type Toggleable
- type TooManyRequests
- type Unauthorized
- type UpdateBridgeJSONRequestBody
- type UpdateBridgeResponse
- type UpdateDeviceJSONRequestBody
- type UpdateDeviceResponse
- type UpdateGroupedLightJSONRequestBody
- type UpdateGroupedLightResponse
- type UpdateLightJSONRequestBody
- type UpdateLightLevelJSONRequestBody
- type UpdateLightLevelResponse
- type UpdateLightResponse
- type UpdateMotionSensorJSONRequestBody
- type UpdateMotionSensorResponse
- type UpdateRoomJSONRequestBody
- type UpdateRoomResponse
- type UpdateSceneJSONRequestBody
- type UpdateSceneResponse
- type UpdateSmartSceneJSONRequestBody
- type UpdateSmartSceneResponse
- type UpdateTemperatureJSONRequestBody
- type UpdateTemperatureResponse
- type UpdateZoneJSONRequestBody
- type UpdateZoneResponse
- type Weekday
Constants ¶
const (
HueApplicationKeyScopes = "HueApplicationKey.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func CheckErr ¶
func CheckErr(msg error)
CheckErr prints the msg with the prefix 'Error:' and exits with error code 1. If the msg is a nil, it does nothing.
func LoadConfNoError ¶
LoadConfNoError is similar to LoadConf() except that it will fatal if there are any errors.
func NewAuthenticateRequest ¶
func NewAuthenticateRequest(server string, body AuthenticateJSONRequestBody) (*http.Request, error)
NewAuthenticateRequest calls the generic Authenticate builder with application/json body
func NewAuthenticateRequestWithBody ¶
func NewAuthenticateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewAuthenticateRequestWithBody generates requests for Authenticate with any type of body
func NewCreateRoomRequest ¶
func NewCreateRoomRequest(server string, body CreateRoomJSONRequestBody) (*http.Request, error)
NewCreateRoomRequest calls the generic CreateRoom builder with application/json body
func NewCreateRoomRequestWithBody ¶
func NewCreateRoomRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateRoomRequestWithBody generates requests for CreateRoom with any type of body
func NewCreateSceneRequest ¶
func NewCreateSceneRequest(server string, body CreateSceneJSONRequestBody) (*http.Request, error)
NewCreateSceneRequest calls the generic CreateScene builder with application/json body
func NewCreateSceneRequestWithBody ¶
func NewCreateSceneRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateSceneRequestWithBody generates requests for CreateScene with any type of body
func NewCreateSmartSceneRequest ¶
func NewCreateSmartSceneRequest(server string, body CreateSmartSceneJSONRequestBody) (*http.Request, error)
NewCreateSmartSceneRequest calls the generic CreateSmartScene builder with application/json body
func NewCreateSmartSceneRequestWithBody ¶
func NewCreateSmartSceneRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateSmartSceneRequestWithBody generates requests for CreateSmartScene with any type of body
func NewCreateZoneRequest ¶
func NewCreateZoneRequest(server string, body CreateZoneJSONRequestBody) (*http.Request, error)
NewCreateZoneRequest calls the generic CreateZone builder with application/json body
func NewCreateZoneRequestWithBody ¶
func NewCreateZoneRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateZoneRequestWithBody generates requests for CreateZone with any type of body
func NewDeleteDeviceRequest ¶
NewDeleteDeviceRequest generates requests for DeleteDevice
func NewDeleteRoomRequest ¶
NewDeleteRoomRequest generates requests for DeleteRoom
func NewDeleteSceneRequest ¶
NewDeleteSceneRequest generates requests for DeleteScene
func NewDeleteSmartSceneRequest ¶
NewDeleteSmartSceneRequest generates requests for DeleteSmartScene
func NewDeleteZoneRequest ¶
NewDeleteZoneRequest generates requests for DeleteZone
func NewGetBridgeHomeRequest ¶
NewGetBridgeHomeRequest generates requests for GetBridgeHome
func NewGetBridgeHomesRequest ¶
NewGetBridgeHomesRequest generates requests for GetBridgeHomes
func NewGetBridgeRequest ¶
NewGetBridgeRequest generates requests for GetBridge
func NewGetBridgesRequest ¶
NewGetBridgesRequest generates requests for GetBridges
func NewGetDevicePowerRequest ¶
NewGetDevicePowerRequest generates requests for GetDevicePower
func NewGetDevicePowersRequest ¶
NewGetDevicePowersRequest generates requests for GetDevicePowers
func NewGetDeviceRequest ¶
NewGetDeviceRequest generates requests for GetDevice
func NewGetDevicesRequest ¶
NewGetDevicesRequest generates requests for GetDevices
func NewGetGroupedLightRequest ¶
NewGetGroupedLightRequest generates requests for GetGroupedLight
func NewGetGroupedLightsRequest ¶
NewGetGroupedLightsRequest generates requests for GetGroupedLights
func NewGetLightLevelRequest ¶
NewGetLightLevelRequest generates requests for GetLightLevel
func NewGetLightLevelsRequest ¶
NewGetLightLevelsRequest generates requests for GetLightLevels
func NewGetLightRequest ¶
NewGetLightRequest generates requests for GetLight
func NewGetLightsRequest ¶
NewGetLightsRequest generates requests for GetLights
func NewGetMotionSensorRequest ¶
NewGetMotionSensorRequest generates requests for GetMotionSensor
func NewGetMotionSensorsRequest ¶
NewGetMotionSensorsRequest generates requests for GetMotionSensors
func NewGetResourcesRequest ¶
NewGetResourcesRequest generates requests for GetResources
func NewGetRoomRequest ¶
NewGetRoomRequest generates requests for GetRoom
func NewGetRoomsRequest ¶
NewGetRoomsRequest generates requests for GetRooms
func NewGetSceneRequest ¶
NewGetSceneRequest generates requests for GetScene
func NewGetScenesRequest ¶
NewGetScenesRequest generates requests for GetScenes
func NewGetSmartSceneRequest ¶
NewGetSmartSceneRequest generates requests for GetSmartScene
func NewGetSmartScenesRequest ¶
NewGetSmartScenesRequest generates requests for GetSmartScenes
func NewGetTemperatureRequest ¶
NewGetTemperatureRequest generates requests for GetTemperature
func NewGetTemperaturesRequest ¶
NewGetTemperaturesRequest generates requests for GetTemperatures
func NewGetZoneRequest ¶
NewGetZoneRequest generates requests for GetZone
func NewGetZonesRequest ¶
NewGetZonesRequest generates requests for GetZones
func NewTestHome ¶
func NewTestHome() (*Home, *ClientWithResponsesMock)
func NewUpdateBridgeRequest ¶
func NewUpdateBridgeRequest(server string, bridgeId string, body UpdateBridgeJSONRequestBody) (*http.Request, error)
NewUpdateBridgeRequest calls the generic UpdateBridge builder with application/json body
func NewUpdateBridgeRequestWithBody ¶
func NewUpdateBridgeRequestWithBody(server string, bridgeId string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateBridgeRequestWithBody generates requests for UpdateBridge with any type of body
func NewUpdateDeviceRequest ¶
func NewUpdateDeviceRequest(server string, deviceId string, body UpdateDeviceJSONRequestBody) (*http.Request, error)
NewUpdateDeviceRequest calls the generic UpdateDevice builder with application/json body
func NewUpdateDeviceRequestWithBody ¶
func NewUpdateDeviceRequestWithBody(server string, deviceId string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateDeviceRequestWithBody generates requests for UpdateDevice with any type of body
func NewUpdateGroupedLightRequest ¶
func NewUpdateGroupedLightRequest(server string, groupedLightId string, body UpdateGroupedLightJSONRequestBody) (*http.Request, error)
NewUpdateGroupedLightRequest calls the generic UpdateGroupedLight builder with application/json body
func NewUpdateGroupedLightRequestWithBody ¶
func NewUpdateGroupedLightRequestWithBody(server string, groupedLightId string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateGroupedLightRequestWithBody generates requests for UpdateGroupedLight with any type of body
func NewUpdateLightLevelRequest ¶
func NewUpdateLightLevelRequest(server string, lightId string, body UpdateLightLevelJSONRequestBody) (*http.Request, error)
NewUpdateLightLevelRequest calls the generic UpdateLightLevel builder with application/json body
func NewUpdateLightLevelRequestWithBody ¶
func NewUpdateLightLevelRequestWithBody(server string, lightId string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateLightLevelRequestWithBody generates requests for UpdateLightLevel with any type of body
func NewUpdateLightRequest ¶
func NewUpdateLightRequest(server string, lightId string, body UpdateLightJSONRequestBody) (*http.Request, error)
NewUpdateLightRequest calls the generic UpdateLight builder with application/json body
func NewUpdateLightRequestWithBody ¶
func NewUpdateLightRequestWithBody(server string, lightId string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateLightRequestWithBody generates requests for UpdateLight with any type of body
func NewUpdateMotionSensorRequest ¶
func NewUpdateMotionSensorRequest(server string, motionId string, body UpdateMotionSensorJSONRequestBody) (*http.Request, error)
NewUpdateMotionSensorRequest calls the generic UpdateMotionSensor builder with application/json body
func NewUpdateMotionSensorRequestWithBody ¶
func NewUpdateMotionSensorRequestWithBody(server string, motionId string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateMotionSensorRequestWithBody generates requests for UpdateMotionSensor with any type of body
func NewUpdateRoomRequest ¶
func NewUpdateRoomRequest(server string, roomId string, body UpdateRoomJSONRequestBody) (*http.Request, error)
NewUpdateRoomRequest calls the generic UpdateRoom builder with application/json body
func NewUpdateRoomRequestWithBody ¶
func NewUpdateRoomRequestWithBody(server string, roomId string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateRoomRequestWithBody generates requests for UpdateRoom with any type of body
func NewUpdateSceneRequest ¶
func NewUpdateSceneRequest(server string, sceneId string, body UpdateSceneJSONRequestBody) (*http.Request, error)
NewUpdateSceneRequest calls the generic UpdateScene builder with application/json body
func NewUpdateSceneRequestWithBody ¶
func NewUpdateSceneRequestWithBody(server string, sceneId string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateSceneRequestWithBody generates requests for UpdateScene with any type of body
func NewUpdateSmartSceneRequest ¶
func NewUpdateSmartSceneRequest(server string, sceneId string, body UpdateSmartSceneJSONRequestBody) (*http.Request, error)
NewUpdateSmartSceneRequest calls the generic UpdateSmartScene builder with application/json body
func NewUpdateSmartSceneRequestWithBody ¶
func NewUpdateSmartSceneRequestWithBody(server string, sceneId string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateSmartSceneRequestWithBody generates requests for UpdateSmartScene with any type of body
func NewUpdateTemperatureRequest ¶
func NewUpdateTemperatureRequest(server string, temperatureId string, body UpdateTemperatureJSONRequestBody) (*http.Request, error)
NewUpdateTemperatureRequest calls the generic UpdateTemperature builder with application/json body
func NewUpdateTemperatureRequestWithBody ¶
func NewUpdateTemperatureRequestWithBody(server string, temperatureId string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateTemperatureRequestWithBody generates requests for UpdateTemperature with any type of body
func NewUpdateZoneRequest ¶
func NewUpdateZoneRequest(server string, zoneId string, body UpdateZoneJSONRequestBody) (*http.Request, error)
NewUpdateZoneRequest calls the generic UpdateZone builder with application/json body
func NewUpdateZoneRequestWithBody ¶
func NewUpdateZoneRequestWithBody(server string, zoneId string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateZoneRequestWithBody generates requests for UpdateZone with any type of body
func WithDeviceType ¶
func WithDeviceType(deviceType string) authOpt
func WithDisabledUrlDiscovery ¶
func WithDisabledUrlDiscovery() discOpt
WithDisabledUrlDiscovery allows disabling the URL discovery process in case the mDNS one failed.
func WithGenerateClientKey ¶
func WithGenerateClientKey(generateClientKey bool) authOpt
func WithTimeout ¶
WithTimeout specifies that timeout value for the Bridge Discovery. Default is 5 seconds.
Types ¶
type ActionGet ¶
type ActionGet struct { // Action The action to be executed on recall Action *struct { Color *Color `json:"color,omitempty"` ColorTemperature *ColorTemperature `json:"color_temperature,omitempty"` Dimming *Dimming `json:"dimming,omitempty"` // Effects Basic feature containing effect properties. Effects *struct { Effect *SupportedEffects `json:"effect,omitempty"` } `json:"effects,omitempty"` // Gradient Basic feature containing gradient properties. Gradient *Gradient `json:"gradient,omitempty"` On *On `json:"on,omitempty"` } `json:"action,omitempty"` // Id Unique identifier representing a specific resource instance Id *string `json:"id,omitempty"` // IdV1 Clip v1 resource identifier IdV1 *string `json:"id_v1,omitempty"` Owner *ResourceIdentifier `json:"owner,omitempty"` Target *ResourceIdentifier `json:"target,omitempty"` // Type Type of the supported resources Type *string `json:"type,omitempty"` }
ActionGet defines model for ActionGet.
type ActionPost ¶
type ActionPost struct { // Action The action to be executed on recall Action struct { Color *Color `json:"color,omitempty"` ColorTemperature *struct { // Mirek color temperature in mirek or null when the light color is not in the ct spectrum Mirek *Mirek `json:"mirek,omitempty"` } `json:"color_temperature,omitempty"` Dimming *Dimming `json:"dimming,omitempty"` Dynamics *Dynamics `json:"dynamics,omitempty"` // Effects Basic feature containing effect properties. Effects *struct { Effect *SupportedEffects `json:"effect,omitempty"` } `json:"effects,omitempty"` // Gradient Basic feature containing gradient properties. Gradient *Gradient `json:"gradient,omitempty"` On *On `json:"on,omitempty"` } `json:"action"` Target ResourceIdentifier `json:"target"` }
ActionPost defines model for ActionPost.
type Alert ¶
type Alert struct {
Action *string `json:"action,omitempty"`
}
Alert Joined alert control
type ApiResponse ¶
type ApiResponse struct { Data *[]map[string]interface{} `json:"data,omitempty"` Errors *[]Error `json:"errors,omitempty"` }
ApiResponse defines model for ApiResponse.
type AuthenticateJSONBody ¶
type AuthenticateJSONBody struct { Devicetype *string `json:"devicetype,omitempty"` Generateclientkey *bool `json:"generateclientkey,omitempty"` }
AuthenticateJSONBody defines parameters for Authenticate.
type AuthenticateJSONRequestBody ¶
type AuthenticateJSONRequestBody AuthenticateJSONBody
AuthenticateJSONRequestBody defines body for Authenticate for application/json ContentType.
type AuthenticateResponse ¶
type AuthenticateResponse struct { Body []byte HTTPResponse *http.Response JSON200 *Response JSON401 *Unauthorized }
func ParseAuthenticateResponse ¶
func ParseAuthenticateResponse(rsp *http.Response) (*AuthenticateResponse, error)
ParseAuthenticateResponse parses an HTTP response from a AuthenticateWithResponse call
func (AuthenticateResponse) Status ¶
func (r AuthenticateResponse) Status() string
Status returns HTTPResponse.Status
func (AuthenticateResponse) StatusCode ¶
func (r AuthenticateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Authenticator ¶
type Authenticator interface { // Authenticate performs a single authentication request to retrieve an API key. // It will return ("", true, err != nil) if the link button has not been pressed. Authenticate() (key string, press bool, err error) }
Authenticator defines a service that allows retrieving the Hue API Key
func NewAuthenticator ¶
func NewAuthenticator(bridgeIP string, opts ...authOpt) (Authenticator, error)
type BridgeDiscovery ¶
type BridgeDiscovery struct {
// contains filtered or unexported fields
}
func NewBridgeDiscovery ¶
func NewBridgeDiscovery(opts ...discOpt) *BridgeDiscovery
func (*BridgeDiscovery) Discover ¶
func (d *BridgeDiscovery) Discover() (*BridgeInfo, error)
type BridgeDiscoveryError ¶
type BridgeDiscoveryError string
const ( TimeoutError BridgeDiscoveryError = "discovery via mDNS timeout" NotFoundError BridgeDiscoveryError = "no bridge found" TooManyAttempts BridgeDiscoveryError = "too many attempts to discover the bridge via URL" )
func (BridgeDiscoveryError) Error ¶
func (e BridgeDiscoveryError) Error() string
type BridgeGet ¶
type BridgeGet struct { // BridgeId Unique identifier of the bridge as printed on the device. Lower case (shouldn't it be upper case?) BridgeId *string `json:"bridge_id,omitempty"` // Id Unique identifier representing a specific resource instance Id *string `json:"id,omitempty"` // IdV1 Clip v1 resource identifier IdV1 *string `json:"id_v1,omitempty"` Owner *ResourceIdentifier `json:"owner,omitempty"` TimeZone *struct { // TimeZone Time zone where the user's home is located (as Olson ID). TimeZone *string `json:"time_zone,omitempty"` } `json:"time_zone,omitempty"` Type *BridgeGetType `json:"type,omitempty"` }
BridgeGet defines model for BridgeGet.
type BridgeGetType ¶
type BridgeGetType string
BridgeGetType defines model for BridgeGet.Type.
const (
BridgeGetTypeBridge BridgeGetType = "bridge"
)
Defines values for BridgeGetType.
type BridgeHomeGet ¶
type BridgeHomeGet struct { // Children Child devices/services to group by the derived group. Children *[]ResourceIdentifier `json:"children,omitempty"` // Id Unique identifier representing a specific resource instance Id *string `json:"id,omitempty"` // IdV1 Clip v1 resource identifier IdV1 *string `json:"id_v1,omitempty"` // Services References all services aggregating control and state of children in the group. // This includes all services grouped in the group hierarchy given by child relation. // This includes all services of a device grouped in the group hierarchy given by child relation. // Aggregation is per service type, ie every service type which can be grouped has a corresponding definition // of grouped type Supported types: – grouped_light Services *[]ResourceIdentifier `json:"services,omitempty"` Type *BridgeHomeGetType `json:"type,omitempty"` }
BridgeHomeGet defines model for BridgeHomeGet.
type BridgeHomeGetType ¶
type BridgeHomeGetType string
BridgeHomeGetType defines model for BridgeHomeGet.Type.
const (
BridgeHomeGetTypeBridgeHome BridgeHomeGetType = "bridge_home"
)
Defines values for BridgeHomeGetType.
type BridgeInfo ¶
func (*BridgeInfo) String ¶
func (b *BridgeInfo) String() string
type BridgePut ¶
type BridgePut struct {
Type *BridgePutType `json:"type,omitempty"`
}
BridgePut defines model for BridgePut.
type BridgePutType ¶
type BridgePutType string
BridgePutType defines model for BridgePut.Type.
const (
BridgePutTypeBridge BridgePutType = "bridge"
)
Defines values for BridgePutType.
type Brightness ¶
type Brightness = float32
Brightness Brightness percentage. value cannot be 0, writing 0 changes it to lowest possible brightness
type Client ¶
type Client struct { // The endpoint of the server conforming to this interface, with scheme, // https://api.deepmap.com for example. This can contain a path relative // to the server, such as https://api.deepmap.com/dev-test, and all the // paths in the swagger spec will be appended to the server. Server string // Doer for performing requests, typically a *http.Client with any // customized settings, such as certificate chains. Client HttpRequestDoer // A list of callbacks for modifying requests which are generated before sending over // the network. RequestEditors []RequestEditorFn }
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) Authenticate ¶
func (c *Client) Authenticate(ctx context.Context, body AuthenticateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AuthenticateWithBody ¶
func (*Client) CreateRoom ¶
func (c *Client) CreateRoom(ctx context.Context, body CreateRoomJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateRoomWithBody ¶
func (*Client) CreateScene ¶
func (c *Client) CreateScene(ctx context.Context, body CreateSceneJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateSceneWithBody ¶
func (*Client) CreateSmartScene ¶
func (c *Client) CreateSmartScene(ctx context.Context, body CreateSmartSceneJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateSmartSceneWithBody ¶
func (*Client) CreateZone ¶
func (c *Client) CreateZone(ctx context.Context, body CreateZoneJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateZoneWithBody ¶
func (*Client) DeleteDevice ¶
func (*Client) DeleteRoom ¶
func (*Client) DeleteScene ¶
func (*Client) DeleteSmartScene ¶
func (*Client) DeleteZone ¶
func (*Client) GetBridgeHome ¶
func (*Client) GetBridgeHomes ¶
func (*Client) GetBridges ¶
func (*Client) GetDevicePower ¶
func (*Client) GetDevicePowers ¶
func (*Client) GetDevices ¶
func (*Client) GetGroupedLight ¶
func (*Client) GetGroupedLights ¶
func (*Client) GetLightLevel ¶
func (*Client) GetLightLevels ¶
func (*Client) GetMotionSensor ¶
func (*Client) GetMotionSensors ¶
func (*Client) GetResources ¶
func (*Client) GetSmartScene ¶
func (*Client) GetSmartScenes ¶
func (*Client) GetTemperature ¶
func (*Client) GetTemperatures ¶
func (*Client) UpdateBridge ¶
func (c *Client) UpdateBridge(ctx context.Context, bridgeId string, body UpdateBridgeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateBridgeWithBody ¶
func (*Client) UpdateDevice ¶
func (c *Client) UpdateDevice(ctx context.Context, deviceId string, body UpdateDeviceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateDeviceWithBody ¶
func (*Client) UpdateGroupedLight ¶
func (c *Client) UpdateGroupedLight(ctx context.Context, groupedLightId string, body UpdateGroupedLightJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateGroupedLightWithBody ¶
func (*Client) UpdateLight ¶
func (c *Client) UpdateLight(ctx context.Context, lightId string, body UpdateLightJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateLightLevel ¶
func (c *Client) UpdateLightLevel(ctx context.Context, lightId string, body UpdateLightLevelJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateLightLevelWithBody ¶
func (*Client) UpdateLightWithBody ¶
func (*Client) UpdateMotionSensor ¶
func (c *Client) UpdateMotionSensor(ctx context.Context, motionId string, body UpdateMotionSensorJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateMotionSensorWithBody ¶
func (*Client) UpdateRoom ¶
func (c *Client) UpdateRoom(ctx context.Context, roomId string, body UpdateRoomJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateRoomWithBody ¶
func (*Client) UpdateScene ¶
func (c *Client) UpdateScene(ctx context.Context, sceneId string, body UpdateSceneJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateSceneWithBody ¶
func (*Client) UpdateSmartScene ¶
func (c *Client) UpdateSmartScene(ctx context.Context, sceneId string, body UpdateSmartSceneJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateSmartSceneWithBody ¶
func (*Client) UpdateTemperature ¶
func (c *Client) UpdateTemperature(ctx context.Context, temperatureId string, body UpdateTemperatureJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateTemperatureWithBody ¶
func (*Client) UpdateZone ¶
func (c *Client) UpdateZone(ctx context.Context, zoneId string, body UpdateZoneJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface { // AuthenticateWithBody request with any body AuthenticateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) Authenticate(ctx context.Context, body AuthenticateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetResources request GetResources(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // GetBridges request GetBridges(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // GetBridge request GetBridge(ctx context.Context, bridgeId string, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateBridgeWithBody request with any body UpdateBridgeWithBody(ctx context.Context, bridgeId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) UpdateBridge(ctx context.Context, bridgeId string, body UpdateBridgeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetBridgeHomes request GetBridgeHomes(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // GetBridgeHome request GetBridgeHome(ctx context.Context, bridgeHomeId string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetDevices request GetDevices(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteDevice request DeleteDevice(ctx context.Context, deviceId string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetDevice request GetDevice(ctx context.Context, deviceId string, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateDeviceWithBody request with any body UpdateDeviceWithBody(ctx context.Context, deviceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) UpdateDevice(ctx context.Context, deviceId string, body UpdateDeviceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetDevicePowers request GetDevicePowers(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // GetDevicePower request GetDevicePower(ctx context.Context, deviceId string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetGroupedLights request GetGroupedLights(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // GetGroupedLight request GetGroupedLight(ctx context.Context, groupedLightId string, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateGroupedLightWithBody request with any body UpdateGroupedLightWithBody(ctx context.Context, groupedLightId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) UpdateGroupedLight(ctx context.Context, groupedLightId string, body UpdateGroupedLightJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetLights request GetLights(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // GetLight request GetLight(ctx context.Context, lightId string, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateLightWithBody request with any body UpdateLightWithBody(ctx context.Context, lightId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) UpdateLight(ctx context.Context, lightId string, body UpdateLightJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetLightLevels request GetLightLevels(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // GetLightLevel request GetLightLevel(ctx context.Context, lightId string, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateLightLevelWithBody request with any body UpdateLightLevelWithBody(ctx context.Context, lightId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) UpdateLightLevel(ctx context.Context, lightId string, body UpdateLightLevelJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetMotionSensors request GetMotionSensors(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // GetMotionSensor request GetMotionSensor(ctx context.Context, motionId string, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateMotionSensorWithBody request with any body UpdateMotionSensorWithBody(ctx context.Context, motionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) UpdateMotionSensor(ctx context.Context, motionId string, body UpdateMotionSensorJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetRooms request GetRooms(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateRoomWithBody request with any body CreateRoomWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CreateRoom(ctx context.Context, body CreateRoomJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteRoom request DeleteRoom(ctx context.Context, roomId string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetRoom request GetRoom(ctx context.Context, roomId string, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateRoomWithBody request with any body UpdateRoomWithBody(ctx context.Context, roomId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) UpdateRoom(ctx context.Context, roomId string, body UpdateRoomJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetScenes request GetScenes(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateSceneWithBody request with any body CreateSceneWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CreateScene(ctx context.Context, body CreateSceneJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteScene request DeleteScene(ctx context.Context, sceneId string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetScene request GetScene(ctx context.Context, sceneId string, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateSceneWithBody request with any body UpdateSceneWithBody(ctx context.Context, sceneId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) UpdateScene(ctx context.Context, sceneId string, body UpdateSceneJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetSmartScenes request GetSmartScenes(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateSmartSceneWithBody request with any body CreateSmartSceneWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CreateSmartScene(ctx context.Context, body CreateSmartSceneJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteSmartScene request DeleteSmartScene(ctx context.Context, sceneId string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetSmartScene request GetSmartScene(ctx context.Context, sceneId string, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateSmartSceneWithBody request with any body UpdateSmartSceneWithBody(ctx context.Context, sceneId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) UpdateSmartScene(ctx context.Context, sceneId string, body UpdateSmartSceneJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetTemperatures request GetTemperatures(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // GetTemperature request GetTemperature(ctx context.Context, temperatureId string, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateTemperatureWithBody request with any body UpdateTemperatureWithBody(ctx context.Context, temperatureId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) UpdateTemperature(ctx context.Context, temperatureId string, body UpdateTemperatureJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetZones request GetZones(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateZoneWithBody request with any body CreateZoneWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CreateZone(ctx context.Context, body CreateZoneJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteZone request DeleteZone(ctx context.Context, zoneId string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetZone request GetZone(ctx context.Context, zoneId string, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateZoneWithBody request with any body UpdateZoneWithBody(ctx context.Context, zoneId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) UpdateZone(ctx context.Context, zoneId string, body UpdateZoneJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) }
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) AuthenticateWithBodyWithResponse ¶
func (c *ClientWithResponses) AuthenticateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthenticateResponse, error)
AuthenticateWithBodyWithResponse request with arbitrary body returning *AuthenticateResponse
func (*ClientWithResponses) AuthenticateWithResponse ¶
func (c *ClientWithResponses) AuthenticateWithResponse(ctx context.Context, body AuthenticateJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthenticateResponse, error)
func (*ClientWithResponses) CreateRoomWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateRoomWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateRoomResponse, error)
CreateRoomWithBodyWithResponse request with arbitrary body returning *CreateRoomResponse
func (*ClientWithResponses) CreateRoomWithResponse ¶
func (c *ClientWithResponses) CreateRoomWithResponse(ctx context.Context, body CreateRoomJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateRoomResponse, error)
func (*ClientWithResponses) CreateSceneWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateSceneWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSceneResponse, error)
CreateSceneWithBodyWithResponse request with arbitrary body returning *CreateSceneResponse
func (*ClientWithResponses) CreateSceneWithResponse ¶
func (c *ClientWithResponses) CreateSceneWithResponse(ctx context.Context, body CreateSceneJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSceneResponse, error)
func (*ClientWithResponses) CreateSmartSceneWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateSmartSceneWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSmartSceneResponse, error)
CreateSmartSceneWithBodyWithResponse request with arbitrary body returning *CreateSmartSceneResponse
func (*ClientWithResponses) CreateSmartSceneWithResponse ¶
func (c *ClientWithResponses) CreateSmartSceneWithResponse(ctx context.Context, body CreateSmartSceneJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSmartSceneResponse, error)
func (*ClientWithResponses) CreateZoneWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateZoneWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateZoneResponse, error)
CreateZoneWithBodyWithResponse request with arbitrary body returning *CreateZoneResponse
func (*ClientWithResponses) CreateZoneWithResponse ¶
func (c *ClientWithResponses) CreateZoneWithResponse(ctx context.Context, body CreateZoneJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateZoneResponse, error)
func (*ClientWithResponses) DeleteDeviceWithResponse ¶
func (c *ClientWithResponses) DeleteDeviceWithResponse(ctx context.Context, deviceId string, reqEditors ...RequestEditorFn) (*DeleteDeviceResponse, error)
DeleteDeviceWithResponse request returning *DeleteDeviceResponse
func (*ClientWithResponses) DeleteRoomWithResponse ¶
func (c *ClientWithResponses) DeleteRoomWithResponse(ctx context.Context, roomId string, reqEditors ...RequestEditorFn) (*DeleteRoomResponse, error)
DeleteRoomWithResponse request returning *DeleteRoomResponse
func (*ClientWithResponses) DeleteSceneWithResponse ¶
func (c *ClientWithResponses) DeleteSceneWithResponse(ctx context.Context, sceneId string, reqEditors ...RequestEditorFn) (*DeleteSceneResponse, error)
DeleteSceneWithResponse request returning *DeleteSceneResponse
func (*ClientWithResponses) DeleteSmartSceneWithResponse ¶
func (c *ClientWithResponses) DeleteSmartSceneWithResponse(ctx context.Context, sceneId string, reqEditors ...RequestEditorFn) (*DeleteSmartSceneResponse, error)
DeleteSmartSceneWithResponse request returning *DeleteSmartSceneResponse
func (*ClientWithResponses) DeleteZoneWithResponse ¶
func (c *ClientWithResponses) DeleteZoneWithResponse(ctx context.Context, zoneId string, reqEditors ...RequestEditorFn) (*DeleteZoneResponse, error)
DeleteZoneWithResponse request returning *DeleteZoneResponse
func (*ClientWithResponses) GetBridgeHomeWithResponse ¶
func (c *ClientWithResponses) GetBridgeHomeWithResponse(ctx context.Context, bridgeHomeId string, reqEditors ...RequestEditorFn) (*GetBridgeHomeResponse, error)
GetBridgeHomeWithResponse request returning *GetBridgeHomeResponse
func (*ClientWithResponses) GetBridgeHomesWithResponse ¶
func (c *ClientWithResponses) GetBridgeHomesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetBridgeHomesResponse, error)
GetBridgeHomesWithResponse request returning *GetBridgeHomesResponse
func (*ClientWithResponses) GetBridgeWithResponse ¶
func (c *ClientWithResponses) GetBridgeWithResponse(ctx context.Context, bridgeId string, reqEditors ...RequestEditorFn) (*GetBridgeResponse, error)
GetBridgeWithResponse request returning *GetBridgeResponse
func (*ClientWithResponses) GetBridgesWithResponse ¶
func (c *ClientWithResponses) GetBridgesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetBridgesResponse, error)
GetBridgesWithResponse request returning *GetBridgesResponse
func (*ClientWithResponses) GetDevicePowerWithResponse ¶
func (c *ClientWithResponses) GetDevicePowerWithResponse(ctx context.Context, deviceId string, reqEditors ...RequestEditorFn) (*GetDevicePowerResponse, error)
GetDevicePowerWithResponse request returning *GetDevicePowerResponse
func (*ClientWithResponses) GetDevicePowersWithResponse ¶
func (c *ClientWithResponses) GetDevicePowersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDevicePowersResponse, error)
GetDevicePowersWithResponse request returning *GetDevicePowersResponse
func (*ClientWithResponses) GetDeviceWithResponse ¶
func (c *ClientWithResponses) GetDeviceWithResponse(ctx context.Context, deviceId string, reqEditors ...RequestEditorFn) (*GetDeviceResponse, error)
GetDeviceWithResponse request returning *GetDeviceResponse
func (*ClientWithResponses) GetDevicesWithResponse ¶
func (c *ClientWithResponses) GetDevicesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDevicesResponse, error)
GetDevicesWithResponse request returning *GetDevicesResponse
func (*ClientWithResponses) GetGroupedLightWithResponse ¶
func (c *ClientWithResponses) GetGroupedLightWithResponse(ctx context.Context, groupedLightId string, reqEditors ...RequestEditorFn) (*GetGroupedLightResponse, error)
GetGroupedLightWithResponse request returning *GetGroupedLightResponse
func (*ClientWithResponses) GetGroupedLightsWithResponse ¶
func (c *ClientWithResponses) GetGroupedLightsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetGroupedLightsResponse, error)
GetGroupedLightsWithResponse request returning *GetGroupedLightsResponse
func (*ClientWithResponses) GetLightLevelWithResponse ¶
func (c *ClientWithResponses) GetLightLevelWithResponse(ctx context.Context, lightId string, reqEditors ...RequestEditorFn) (*GetLightLevelResponse, error)
GetLightLevelWithResponse request returning *GetLightLevelResponse
func (*ClientWithResponses) GetLightLevelsWithResponse ¶
func (c *ClientWithResponses) GetLightLevelsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetLightLevelsResponse, error)
GetLightLevelsWithResponse request returning *GetLightLevelsResponse
func (*ClientWithResponses) GetLightWithResponse ¶
func (c *ClientWithResponses) GetLightWithResponse(ctx context.Context, lightId string, reqEditors ...RequestEditorFn) (*GetLightResponse, error)
GetLightWithResponse request returning *GetLightResponse
func (*ClientWithResponses) GetLightsWithResponse ¶
func (c *ClientWithResponses) GetLightsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetLightsResponse, error)
GetLightsWithResponse request returning *GetLightsResponse
func (*ClientWithResponses) GetMotionSensorWithResponse ¶
func (c *ClientWithResponses) GetMotionSensorWithResponse(ctx context.Context, motionId string, reqEditors ...RequestEditorFn) (*GetMotionSensorResponse, error)
GetMotionSensorWithResponse request returning *GetMotionSensorResponse
func (*ClientWithResponses) GetMotionSensorsWithResponse ¶
func (c *ClientWithResponses) GetMotionSensorsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetMotionSensorsResponse, error)
GetMotionSensorsWithResponse request returning *GetMotionSensorsResponse
func (*ClientWithResponses) GetResourcesWithResponse ¶
func (c *ClientWithResponses) GetResourcesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetResourcesResponse, error)
GetResourcesWithResponse request returning *GetResourcesResponse
func (*ClientWithResponses) GetRoomWithResponse ¶
func (c *ClientWithResponses) GetRoomWithResponse(ctx context.Context, roomId string, reqEditors ...RequestEditorFn) (*GetRoomResponse, error)
GetRoomWithResponse request returning *GetRoomResponse
func (*ClientWithResponses) GetRoomsWithResponse ¶
func (c *ClientWithResponses) GetRoomsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetRoomsResponse, error)
GetRoomsWithResponse request returning *GetRoomsResponse
func (*ClientWithResponses) GetSceneWithResponse ¶
func (c *ClientWithResponses) GetSceneWithResponse(ctx context.Context, sceneId string, reqEditors ...RequestEditorFn) (*GetSceneResponse, error)
GetSceneWithResponse request returning *GetSceneResponse
func (*ClientWithResponses) GetScenesWithResponse ¶
func (c *ClientWithResponses) GetScenesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetScenesResponse, error)
GetScenesWithResponse request returning *GetScenesResponse
func (*ClientWithResponses) GetSmartSceneWithResponse ¶
func (c *ClientWithResponses) GetSmartSceneWithResponse(ctx context.Context, sceneId string, reqEditors ...RequestEditorFn) (*GetSmartSceneResponse, error)
GetSmartSceneWithResponse request returning *GetSmartSceneResponse
func (*ClientWithResponses) GetSmartScenesWithResponse ¶
func (c *ClientWithResponses) GetSmartScenesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSmartScenesResponse, error)
GetSmartScenesWithResponse request returning *GetSmartScenesResponse
func (*ClientWithResponses) GetTemperatureWithResponse ¶
func (c *ClientWithResponses) GetTemperatureWithResponse(ctx context.Context, temperatureId string, reqEditors ...RequestEditorFn) (*GetTemperatureResponse, error)
GetTemperatureWithResponse request returning *GetTemperatureResponse
func (*ClientWithResponses) GetTemperaturesWithResponse ¶
func (c *ClientWithResponses) GetTemperaturesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetTemperaturesResponse, error)
GetTemperaturesWithResponse request returning *GetTemperaturesResponse
func (*ClientWithResponses) GetZoneWithResponse ¶
func (c *ClientWithResponses) GetZoneWithResponse(ctx context.Context, zoneId string, reqEditors ...RequestEditorFn) (*GetZoneResponse, error)
GetZoneWithResponse request returning *GetZoneResponse
func (*ClientWithResponses) GetZonesWithResponse ¶
func (c *ClientWithResponses) GetZonesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetZonesResponse, error)
GetZonesWithResponse request returning *GetZonesResponse
func (*ClientWithResponses) UpdateBridgeWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateBridgeWithBodyWithResponse(ctx context.Context, bridgeId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateBridgeResponse, error)
UpdateBridgeWithBodyWithResponse request with arbitrary body returning *UpdateBridgeResponse
func (*ClientWithResponses) UpdateBridgeWithResponse ¶
func (c *ClientWithResponses) UpdateBridgeWithResponse(ctx context.Context, bridgeId string, body UpdateBridgeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateBridgeResponse, error)
func (*ClientWithResponses) UpdateDeviceWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateDeviceWithBodyWithResponse(ctx context.Context, deviceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDeviceResponse, error)
UpdateDeviceWithBodyWithResponse request with arbitrary body returning *UpdateDeviceResponse
func (*ClientWithResponses) UpdateDeviceWithResponse ¶
func (c *ClientWithResponses) UpdateDeviceWithResponse(ctx context.Context, deviceId string, body UpdateDeviceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDeviceResponse, error)
func (*ClientWithResponses) UpdateGroupedLightWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateGroupedLightWithBodyWithResponse(ctx context.Context, groupedLightId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateGroupedLightResponse, error)
UpdateGroupedLightWithBodyWithResponse request with arbitrary body returning *UpdateGroupedLightResponse
func (*ClientWithResponses) UpdateGroupedLightWithResponse ¶
func (c *ClientWithResponses) UpdateGroupedLightWithResponse(ctx context.Context, groupedLightId string, body UpdateGroupedLightJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateGroupedLightResponse, error)
func (*ClientWithResponses) UpdateLightLevelWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateLightLevelWithBodyWithResponse(ctx context.Context, lightId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateLightLevelResponse, error)
UpdateLightLevelWithBodyWithResponse request with arbitrary body returning *UpdateLightLevelResponse
func (*ClientWithResponses) UpdateLightLevelWithResponse ¶
func (c *ClientWithResponses) UpdateLightLevelWithResponse(ctx context.Context, lightId string, body UpdateLightLevelJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateLightLevelResponse, error)
func (*ClientWithResponses) UpdateLightWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateLightWithBodyWithResponse(ctx context.Context, lightId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateLightResponse, error)
UpdateLightWithBodyWithResponse request with arbitrary body returning *UpdateLightResponse
func (*ClientWithResponses) UpdateLightWithResponse ¶
func (c *ClientWithResponses) UpdateLightWithResponse(ctx context.Context, lightId string, body UpdateLightJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateLightResponse, error)
func (*ClientWithResponses) UpdateMotionSensorWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateMotionSensorWithBodyWithResponse(ctx context.Context, motionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMotionSensorResponse, error)
UpdateMotionSensorWithBodyWithResponse request with arbitrary body returning *UpdateMotionSensorResponse
func (*ClientWithResponses) UpdateMotionSensorWithResponse ¶
func (c *ClientWithResponses) UpdateMotionSensorWithResponse(ctx context.Context, motionId string, body UpdateMotionSensorJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMotionSensorResponse, error)
func (*ClientWithResponses) UpdateRoomWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateRoomWithBodyWithResponse(ctx context.Context, roomId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateRoomResponse, error)
UpdateRoomWithBodyWithResponse request with arbitrary body returning *UpdateRoomResponse
func (*ClientWithResponses) UpdateRoomWithResponse ¶
func (c *ClientWithResponses) UpdateRoomWithResponse(ctx context.Context, roomId string, body UpdateRoomJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateRoomResponse, error)
func (*ClientWithResponses) UpdateSceneWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateSceneWithBodyWithResponse(ctx context.Context, sceneId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSceneResponse, error)
UpdateSceneWithBodyWithResponse request with arbitrary body returning *UpdateSceneResponse
func (*ClientWithResponses) UpdateSceneWithResponse ¶
func (c *ClientWithResponses) UpdateSceneWithResponse(ctx context.Context, sceneId string, body UpdateSceneJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSceneResponse, error)
func (*ClientWithResponses) UpdateSmartSceneWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateSmartSceneWithBodyWithResponse(ctx context.Context, sceneId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSmartSceneResponse, error)
UpdateSmartSceneWithBodyWithResponse request with arbitrary body returning *UpdateSmartSceneResponse
func (*ClientWithResponses) UpdateSmartSceneWithResponse ¶
func (c *ClientWithResponses) UpdateSmartSceneWithResponse(ctx context.Context, sceneId string, body UpdateSmartSceneJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSmartSceneResponse, error)
func (*ClientWithResponses) UpdateTemperatureWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateTemperatureWithBodyWithResponse(ctx context.Context, temperatureId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTemperatureResponse, error)
UpdateTemperatureWithBodyWithResponse request with arbitrary body returning *UpdateTemperatureResponse
func (*ClientWithResponses) UpdateTemperatureWithResponse ¶
func (c *ClientWithResponses) UpdateTemperatureWithResponse(ctx context.Context, temperatureId string, body UpdateTemperatureJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTemperatureResponse, error)
func (*ClientWithResponses) UpdateZoneWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateZoneWithBodyWithResponse(ctx context.Context, zoneId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateZoneResponse, error)
UpdateZoneWithBodyWithResponse request with arbitrary body returning *UpdateZoneResponse
func (*ClientWithResponses) UpdateZoneWithResponse ¶
func (c *ClientWithResponses) UpdateZoneWithResponse(ctx context.Context, zoneId string, body UpdateZoneJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateZoneResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface { // AuthenticateWithBodyWithResponse request with any body AuthenticateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthenticateResponse, error) AuthenticateWithResponse(ctx context.Context, body AuthenticateJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthenticateResponse, error) // GetResourcesWithResponse request GetResourcesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetResourcesResponse, error) // GetBridgesWithResponse request GetBridgesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetBridgesResponse, error) // GetBridgeWithResponse request GetBridgeWithResponse(ctx context.Context, bridgeId string, reqEditors ...RequestEditorFn) (*GetBridgeResponse, error) // UpdateBridgeWithBodyWithResponse request with any body UpdateBridgeWithBodyWithResponse(ctx context.Context, bridgeId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateBridgeResponse, error) UpdateBridgeWithResponse(ctx context.Context, bridgeId string, body UpdateBridgeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateBridgeResponse, error) // GetBridgeHomesWithResponse request GetBridgeHomesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetBridgeHomesResponse, error) // GetBridgeHomeWithResponse request GetBridgeHomeWithResponse(ctx context.Context, bridgeHomeId string, reqEditors ...RequestEditorFn) (*GetBridgeHomeResponse, error) // GetDevicesWithResponse request GetDevicesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDevicesResponse, error) // DeleteDeviceWithResponse request DeleteDeviceWithResponse(ctx context.Context, deviceId string, reqEditors ...RequestEditorFn) (*DeleteDeviceResponse, error) // GetDeviceWithResponse request GetDeviceWithResponse(ctx context.Context, deviceId string, reqEditors ...RequestEditorFn) (*GetDeviceResponse, error) // UpdateDeviceWithBodyWithResponse request with any body UpdateDeviceWithBodyWithResponse(ctx context.Context, deviceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDeviceResponse, error) UpdateDeviceWithResponse(ctx context.Context, deviceId string, body UpdateDeviceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDeviceResponse, error) // GetDevicePowersWithResponse request GetDevicePowersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDevicePowersResponse, error) // GetDevicePowerWithResponse request GetDevicePowerWithResponse(ctx context.Context, deviceId string, reqEditors ...RequestEditorFn) (*GetDevicePowerResponse, error) // GetGroupedLightsWithResponse request GetGroupedLightsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetGroupedLightsResponse, error) // GetGroupedLightWithResponse request GetGroupedLightWithResponse(ctx context.Context, groupedLightId string, reqEditors ...RequestEditorFn) (*GetGroupedLightResponse, error) // UpdateGroupedLightWithBodyWithResponse request with any body UpdateGroupedLightWithBodyWithResponse(ctx context.Context, groupedLightId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateGroupedLightResponse, error) UpdateGroupedLightWithResponse(ctx context.Context, groupedLightId string, body UpdateGroupedLightJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateGroupedLightResponse, error) // GetLightsWithResponse request GetLightsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetLightsResponse, error) // GetLightWithResponse request GetLightWithResponse(ctx context.Context, lightId string, reqEditors ...RequestEditorFn) (*GetLightResponse, error) // UpdateLightWithBodyWithResponse request with any body UpdateLightWithBodyWithResponse(ctx context.Context, lightId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateLightResponse, error) UpdateLightWithResponse(ctx context.Context, lightId string, body UpdateLightJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateLightResponse, error) // GetLightLevelsWithResponse request GetLightLevelsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetLightLevelsResponse, error) // GetLightLevelWithResponse request GetLightLevelWithResponse(ctx context.Context, lightId string, reqEditors ...RequestEditorFn) (*GetLightLevelResponse, error) // UpdateLightLevelWithBodyWithResponse request with any body UpdateLightLevelWithBodyWithResponse(ctx context.Context, lightId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateLightLevelResponse, error) UpdateLightLevelWithResponse(ctx context.Context, lightId string, body UpdateLightLevelJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateLightLevelResponse, error) // GetMotionSensorsWithResponse request GetMotionSensorsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetMotionSensorsResponse, error) // GetMotionSensorWithResponse request GetMotionSensorWithResponse(ctx context.Context, motionId string, reqEditors ...RequestEditorFn) (*GetMotionSensorResponse, error) // UpdateMotionSensorWithBodyWithResponse request with any body UpdateMotionSensorWithBodyWithResponse(ctx context.Context, motionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMotionSensorResponse, error) UpdateMotionSensorWithResponse(ctx context.Context, motionId string, body UpdateMotionSensorJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMotionSensorResponse, error) // GetRoomsWithResponse request GetRoomsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetRoomsResponse, error) // CreateRoomWithBodyWithResponse request with any body CreateRoomWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateRoomResponse, error) CreateRoomWithResponse(ctx context.Context, body CreateRoomJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateRoomResponse, error) // DeleteRoomWithResponse request DeleteRoomWithResponse(ctx context.Context, roomId string, reqEditors ...RequestEditorFn) (*DeleteRoomResponse, error) // GetRoomWithResponse request GetRoomWithResponse(ctx context.Context, roomId string, reqEditors ...RequestEditorFn) (*GetRoomResponse, error) // UpdateRoomWithBodyWithResponse request with any body UpdateRoomWithBodyWithResponse(ctx context.Context, roomId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateRoomResponse, error) UpdateRoomWithResponse(ctx context.Context, roomId string, body UpdateRoomJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateRoomResponse, error) // GetScenesWithResponse request GetScenesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetScenesResponse, error) // CreateSceneWithBodyWithResponse request with any body CreateSceneWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSceneResponse, error) CreateSceneWithResponse(ctx context.Context, body CreateSceneJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSceneResponse, error) // DeleteSceneWithResponse request DeleteSceneWithResponse(ctx context.Context, sceneId string, reqEditors ...RequestEditorFn) (*DeleteSceneResponse, error) // GetSceneWithResponse request GetSceneWithResponse(ctx context.Context, sceneId string, reqEditors ...RequestEditorFn) (*GetSceneResponse, error) // UpdateSceneWithBodyWithResponse request with any body UpdateSceneWithBodyWithResponse(ctx context.Context, sceneId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSceneResponse, error) UpdateSceneWithResponse(ctx context.Context, sceneId string, body UpdateSceneJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSceneResponse, error) // GetSmartScenesWithResponse request GetSmartScenesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSmartScenesResponse, error) // CreateSmartSceneWithBodyWithResponse request with any body CreateSmartSceneWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSmartSceneResponse, error) CreateSmartSceneWithResponse(ctx context.Context, body CreateSmartSceneJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSmartSceneResponse, error) // DeleteSmartSceneWithResponse request DeleteSmartSceneWithResponse(ctx context.Context, sceneId string, reqEditors ...RequestEditorFn) (*DeleteSmartSceneResponse, error) // GetSmartSceneWithResponse request GetSmartSceneWithResponse(ctx context.Context, sceneId string, reqEditors ...RequestEditorFn) (*GetSmartSceneResponse, error) // UpdateSmartSceneWithBodyWithResponse request with any body UpdateSmartSceneWithBodyWithResponse(ctx context.Context, sceneId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSmartSceneResponse, error) UpdateSmartSceneWithResponse(ctx context.Context, sceneId string, body UpdateSmartSceneJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSmartSceneResponse, error) // GetTemperaturesWithResponse request GetTemperaturesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetTemperaturesResponse, error) // GetTemperatureWithResponse request GetTemperatureWithResponse(ctx context.Context, temperatureId string, reqEditors ...RequestEditorFn) (*GetTemperatureResponse, error) // UpdateTemperatureWithBodyWithResponse request with any body UpdateTemperatureWithBodyWithResponse(ctx context.Context, temperatureId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTemperatureResponse, error) UpdateTemperatureWithResponse(ctx context.Context, temperatureId string, body UpdateTemperatureJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTemperatureResponse, error) // GetZonesWithResponse request GetZonesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetZonesResponse, error) // CreateZoneWithBodyWithResponse request with any body CreateZoneWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateZoneResponse, error) CreateZoneWithResponse(ctx context.Context, body CreateZoneJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateZoneResponse, error) // DeleteZoneWithResponse request DeleteZoneWithResponse(ctx context.Context, zoneId string, reqEditors ...RequestEditorFn) (*DeleteZoneResponse, error) // GetZoneWithResponse request GetZoneWithResponse(ctx context.Context, zoneId string, reqEditors ...RequestEditorFn) (*GetZoneResponse, error) // UpdateZoneWithBodyWithResponse request with any body UpdateZoneWithBodyWithResponse(ctx context.Context, zoneId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateZoneResponse, error) UpdateZoneWithResponse(ctx context.Context, zoneId string, body UpdateZoneJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateZoneResponse, error) }
ClientWithResponsesInterface is the interface specification for the client with responses above.
type ClientWithResponsesMock ¶
func (*ClientWithResponsesMock) AuthenticateWithBodyWithResponse ¶
func (c *ClientWithResponsesMock) AuthenticateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthenticateResponse, error)
func (*ClientWithResponsesMock) AuthenticateWithResponse ¶
func (c *ClientWithResponsesMock) AuthenticateWithResponse(ctx context.Context, body AuthenticateJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthenticateResponse, error)
func (*ClientWithResponsesMock) CreateRoomWithBodyWithResponse ¶
func (c *ClientWithResponsesMock) CreateRoomWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateRoomResponse, error)
func (*ClientWithResponsesMock) CreateRoomWithResponse ¶
func (c *ClientWithResponsesMock) CreateRoomWithResponse(ctx context.Context, body CreateRoomJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateRoomResponse, error)
func (*ClientWithResponsesMock) CreateSceneWithBodyWithResponse ¶
func (c *ClientWithResponsesMock) CreateSceneWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSceneResponse, error)
func (*ClientWithResponsesMock) CreateSceneWithResponse ¶
func (c *ClientWithResponsesMock) CreateSceneWithResponse(ctx context.Context, body CreateSceneJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSceneResponse, error)
func (*ClientWithResponsesMock) CreateSmartSceneWithBodyWithResponse ¶
func (c *ClientWithResponsesMock) CreateSmartSceneWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSmartSceneResponse, error)
func (*ClientWithResponsesMock) CreateSmartSceneWithResponse ¶
func (c *ClientWithResponsesMock) CreateSmartSceneWithResponse(ctx context.Context, body CreateSmartSceneJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSmartSceneResponse, error)
func (*ClientWithResponsesMock) CreateZoneWithBodyWithResponse ¶
func (c *ClientWithResponsesMock) CreateZoneWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateZoneResponse, error)
func (*ClientWithResponsesMock) CreateZoneWithResponse ¶
func (c *ClientWithResponsesMock) CreateZoneWithResponse(ctx context.Context, body CreateZoneJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateZoneResponse, error)
func (*ClientWithResponsesMock) DeleteDeviceWithResponse ¶
func (c *ClientWithResponsesMock) DeleteDeviceWithResponse(ctx context.Context, deviceId string, reqEditors ...RequestEditorFn) (*DeleteDeviceResponse, error)
func (*ClientWithResponsesMock) DeleteRoomWithResponse ¶
func (c *ClientWithResponsesMock) DeleteRoomWithResponse(ctx context.Context, roomId string, reqEditors ...RequestEditorFn) (*DeleteRoomResponse, error)
func (*ClientWithResponsesMock) DeleteSceneWithResponse ¶
func (c *ClientWithResponsesMock) DeleteSceneWithResponse(ctx context.Context, sceneId string, reqEditors ...RequestEditorFn) (*DeleteSceneResponse, error)
func (*ClientWithResponsesMock) DeleteSmartSceneWithResponse ¶
func (c *ClientWithResponsesMock) DeleteSmartSceneWithResponse(ctx context.Context, sceneId string, reqEditors ...RequestEditorFn) (*DeleteSmartSceneResponse, error)
func (*ClientWithResponsesMock) DeleteZoneWithResponse ¶
func (c *ClientWithResponsesMock) DeleteZoneWithResponse(ctx context.Context, zoneId string, reqEditors ...RequestEditorFn) (*DeleteZoneResponse, error)
func (*ClientWithResponsesMock) GetBridgeHomeWithResponse ¶
func (c *ClientWithResponsesMock) GetBridgeHomeWithResponse(ctx context.Context, bridgeHomeId string, reqEditors ...RequestEditorFn) (*GetBridgeHomeResponse, error)
func (*ClientWithResponsesMock) GetBridgeHomesWithResponse ¶
func (c *ClientWithResponsesMock) GetBridgeHomesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetBridgeHomesResponse, error)
func (*ClientWithResponsesMock) GetBridgeWithResponse ¶
func (c *ClientWithResponsesMock) GetBridgeWithResponse(ctx context.Context, bridgeId string, reqEditors ...RequestEditorFn) (*GetBridgeResponse, error)
func (*ClientWithResponsesMock) GetBridgesWithResponse ¶
func (c *ClientWithResponsesMock) GetBridgesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetBridgesResponse, error)
func (*ClientWithResponsesMock) GetDevicePowerWithResponse ¶
func (c *ClientWithResponsesMock) GetDevicePowerWithResponse(ctx context.Context, deviceId string, reqEditors ...RequestEditorFn) (*GetDevicePowerResponse, error)
func (*ClientWithResponsesMock) GetDevicePowersWithResponse ¶
func (c *ClientWithResponsesMock) GetDevicePowersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDevicePowersResponse, error)
func (*ClientWithResponsesMock) GetDeviceWithResponse ¶
func (c *ClientWithResponsesMock) GetDeviceWithResponse(ctx context.Context, deviceId string, reqEditors ...RequestEditorFn) (*GetDeviceResponse, error)
func (*ClientWithResponsesMock) GetDevicesWithResponse ¶
func (c *ClientWithResponsesMock) GetDevicesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetDevicesResponse, error)
func (*ClientWithResponsesMock) GetGroupedLightWithResponse ¶
func (c *ClientWithResponsesMock) GetGroupedLightWithResponse(ctx context.Context, groupedLightId string, reqEditors ...RequestEditorFn) (*GetGroupedLightResponse, error)
func (*ClientWithResponsesMock) GetGroupedLightsWithResponse ¶
func (c *ClientWithResponsesMock) GetGroupedLightsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetGroupedLightsResponse, error)
func (*ClientWithResponsesMock) GetLightLevelWithResponse ¶
func (c *ClientWithResponsesMock) GetLightLevelWithResponse(ctx context.Context, lightId string, reqEditors ...RequestEditorFn) (*GetLightLevelResponse, error)
func (*ClientWithResponsesMock) GetLightLevelsWithResponse ¶
func (c *ClientWithResponsesMock) GetLightLevelsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetLightLevelsResponse, error)
func (*ClientWithResponsesMock) GetLightWithResponse ¶
func (c *ClientWithResponsesMock) GetLightWithResponse(ctx context.Context, lightId string, reqEditors ...RequestEditorFn) (*GetLightResponse, error)
func (*ClientWithResponsesMock) GetLightsWithResponse ¶
func (c *ClientWithResponsesMock) GetLightsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetLightsResponse, error)
func (*ClientWithResponsesMock) GetMotionSensorWithResponse ¶
func (c *ClientWithResponsesMock) GetMotionSensorWithResponse(ctx context.Context, motionId string, reqEditors ...RequestEditorFn) (*GetMotionSensorResponse, error)
func (*ClientWithResponsesMock) GetMotionSensorsWithResponse ¶
func (c *ClientWithResponsesMock) GetMotionSensorsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetMotionSensorsResponse, error)
func (*ClientWithResponsesMock) GetResourcesWithResponse ¶
func (c *ClientWithResponsesMock) GetResourcesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetResourcesResponse, error)
func (*ClientWithResponsesMock) GetRoomWithResponse ¶
func (c *ClientWithResponsesMock) GetRoomWithResponse(ctx context.Context, roomId string, reqEditors ...RequestEditorFn) (*GetRoomResponse, error)
func (*ClientWithResponsesMock) GetRoomsWithResponse ¶
func (c *ClientWithResponsesMock) GetRoomsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetRoomsResponse, error)
func (*ClientWithResponsesMock) GetSceneWithResponse ¶
func (c *ClientWithResponsesMock) GetSceneWithResponse(ctx context.Context, sceneId string, reqEditors ...RequestEditorFn) (*GetSceneResponse, error)
func (*ClientWithResponsesMock) GetScenesWithResponse ¶
func (c *ClientWithResponsesMock) GetScenesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetScenesResponse, error)
func (*ClientWithResponsesMock) GetSmartSceneWithResponse ¶
func (c *ClientWithResponsesMock) GetSmartSceneWithResponse(ctx context.Context, sceneId string, reqEditors ...RequestEditorFn) (*GetSmartSceneResponse, error)
func (*ClientWithResponsesMock) GetSmartScenesWithResponse ¶
func (c *ClientWithResponsesMock) GetSmartScenesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSmartScenesResponse, error)
func (*ClientWithResponsesMock) GetTemperatureWithResponse ¶
func (c *ClientWithResponsesMock) GetTemperatureWithResponse(ctx context.Context, temperatureId string, reqEditors ...RequestEditorFn) (*GetTemperatureResponse, error)
func (*ClientWithResponsesMock) GetTemperaturesWithResponse ¶
func (c *ClientWithResponsesMock) GetTemperaturesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetTemperaturesResponse, error)
func (*ClientWithResponsesMock) GetZoneWithResponse ¶
func (c *ClientWithResponsesMock) GetZoneWithResponse(ctx context.Context, zoneId string, reqEditors ...RequestEditorFn) (*GetZoneResponse, error)
func (*ClientWithResponsesMock) GetZonesWithResponse ¶
func (c *ClientWithResponsesMock) GetZonesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetZonesResponse, error)
func (*ClientWithResponsesMock) UpdateBridgeWithBodyWithResponse ¶
func (c *ClientWithResponsesMock) UpdateBridgeWithBodyWithResponse(ctx context.Context, bridgeId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateBridgeResponse, error)
func (*ClientWithResponsesMock) UpdateBridgeWithResponse ¶
func (c *ClientWithResponsesMock) UpdateBridgeWithResponse(ctx context.Context, bridgeId string, body UpdateBridgeJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateBridgeResponse, error)
func (*ClientWithResponsesMock) UpdateDeviceWithBodyWithResponse ¶
func (c *ClientWithResponsesMock) UpdateDeviceWithBodyWithResponse(ctx context.Context, deviceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDeviceResponse, error)
func (*ClientWithResponsesMock) UpdateDeviceWithResponse ¶
func (c *ClientWithResponsesMock) UpdateDeviceWithResponse(ctx context.Context, deviceId string, body UpdateDeviceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDeviceResponse, error)
func (*ClientWithResponsesMock) UpdateGroupedLightWithBodyWithResponse ¶
func (c *ClientWithResponsesMock) UpdateGroupedLightWithBodyWithResponse(ctx context.Context, groupedLightId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateGroupedLightResponse, error)
func (*ClientWithResponsesMock) UpdateGroupedLightWithResponse ¶
func (c *ClientWithResponsesMock) UpdateGroupedLightWithResponse(ctx context.Context, groupedLightId string, body UpdateGroupedLightJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateGroupedLightResponse, error)
func (*ClientWithResponsesMock) UpdateLightLevelWithBodyWithResponse ¶
func (c *ClientWithResponsesMock) UpdateLightLevelWithBodyWithResponse(ctx context.Context, lightId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateLightLevelResponse, error)
func (*ClientWithResponsesMock) UpdateLightLevelWithResponse ¶
func (c *ClientWithResponsesMock) UpdateLightLevelWithResponse(ctx context.Context, lightId string, body UpdateLightLevelJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateLightLevelResponse, error)
func (*ClientWithResponsesMock) UpdateLightWithBodyWithResponse ¶
func (c *ClientWithResponsesMock) UpdateLightWithBodyWithResponse(ctx context.Context, lightId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateLightResponse, error)
func (*ClientWithResponsesMock) UpdateLightWithResponse ¶
func (c *ClientWithResponsesMock) UpdateLightWithResponse(ctx context.Context, lightId string, body UpdateLightJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateLightResponse, error)
func (*ClientWithResponsesMock) UpdateMotionSensorWithBodyWithResponse ¶
func (c *ClientWithResponsesMock) UpdateMotionSensorWithBodyWithResponse(ctx context.Context, motionId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMotionSensorResponse, error)
func (*ClientWithResponsesMock) UpdateMotionSensorWithResponse ¶
func (c *ClientWithResponsesMock) UpdateMotionSensorWithResponse(ctx context.Context, motionId string, body UpdateMotionSensorJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMotionSensorResponse, error)
func (*ClientWithResponsesMock) UpdateRoomWithBodyWithResponse ¶
func (c *ClientWithResponsesMock) UpdateRoomWithBodyWithResponse(ctx context.Context, roomId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateRoomResponse, error)
func (*ClientWithResponsesMock) UpdateRoomWithResponse ¶
func (c *ClientWithResponsesMock) UpdateRoomWithResponse(ctx context.Context, roomId string, body UpdateRoomJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateRoomResponse, error)
func (*ClientWithResponsesMock) UpdateSceneWithBodyWithResponse ¶
func (c *ClientWithResponsesMock) UpdateSceneWithBodyWithResponse(ctx context.Context, sceneId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSceneResponse, error)
func (*ClientWithResponsesMock) UpdateSceneWithResponse ¶
func (c *ClientWithResponsesMock) UpdateSceneWithResponse(ctx context.Context, sceneId string, body UpdateSceneJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSceneResponse, error)
func (*ClientWithResponsesMock) UpdateSmartSceneWithBodyWithResponse ¶
func (c *ClientWithResponsesMock) UpdateSmartSceneWithBodyWithResponse(ctx context.Context, sceneId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSmartSceneResponse, error)
func (*ClientWithResponsesMock) UpdateSmartSceneWithResponse ¶
func (c *ClientWithResponsesMock) UpdateSmartSceneWithResponse(ctx context.Context, sceneId string, body UpdateSmartSceneJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSmartSceneResponse, error)
func (*ClientWithResponsesMock) UpdateTemperatureWithBodyWithResponse ¶
func (c *ClientWithResponsesMock) UpdateTemperatureWithBodyWithResponse(ctx context.Context, temperatureId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTemperatureResponse, error)
func (*ClientWithResponsesMock) UpdateTemperatureWithResponse ¶
func (c *ClientWithResponsesMock) UpdateTemperatureWithResponse(ctx context.Context, temperatureId string, body UpdateTemperatureJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTemperatureResponse, error)
func (*ClientWithResponsesMock) UpdateZoneWithBodyWithResponse ¶
func (c *ClientWithResponsesMock) UpdateZoneWithBodyWithResponse(ctx context.Context, zoneId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateZoneResponse, error)
func (*ClientWithResponsesMock) UpdateZoneWithResponse ¶
func (c *ClientWithResponsesMock) UpdateZoneWithResponse(ctx context.Context, zoneId string, body UpdateZoneJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateZoneResponse, error)
type Color ¶
type Color struct { // Xy CIE XY gamut position Xy *GamutPosition `json:"xy,omitempty"` }
Color defines model for Color.
type ColorPaletteGet ¶
type ColorPaletteGet struct { Color *Color `json:"color,omitempty"` Dimming *Dimming `json:"dimming,omitempty"` }
ColorPaletteGet defines model for ColorPaletteGet.
type ColorTemperature ¶
type ColorTemperature struct { // Mirek color temperature in mirek or null when the light color is not in the ct spectrum Mirek *Mirek `json:"mirek,omitempty"` }
ColorTemperature defines model for ColorTemperature.
type ColorTemperatureDelta ¶
type ColorTemperatureDelta struct { Action *ColorTemperatureDeltaAction `json:"action,omitempty"` // MirekDelta Mirek delta to current mirek. Clip at mirek_minimum and mirek_maximum of mirek_schema. MirekDelta *int `json:"mirek_delta,omitempty"` }
ColorTemperatureDelta defines model for ColorTemperatureDelta.
type ColorTemperatureDeltaAction ¶
type ColorTemperatureDeltaAction string
ColorTemperatureDeltaAction defines model for ColorTemperatureDelta.Action.
const ( ColorTemperatureDeltaActionDown ColorTemperatureDeltaAction = "down" ColorTemperatureDeltaActionStop ColorTemperatureDeltaAction = "stop" ColorTemperatureDeltaActionUp ColorTemperatureDeltaAction = "up" )
Defines values for ColorTemperatureDeltaAction.
type ColorTemperaturePalettePost ¶
type ColorTemperaturePalettePost struct { ColorTemperature *struct { // Mirek color temperature in mirek or null when the light color is not in the ct spectrum Mirek *Mirek `json:"mirek,omitempty"` } `json:"color_temperature,omitempty"` Dimming *Dimming `json:"dimming,omitempty"` }
ColorTemperaturePalettePost defines model for ColorTemperaturePalettePost.
type CreateRoomJSONRequestBody ¶
type CreateRoomJSONRequestBody = RoomPut
CreateRoomJSONRequestBody defines body for CreateRoom for application/json ContentType.
type CreateRoomResponse ¶
type CreateRoomResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *[]ResourceIdentifier `json:"data,omitempty"` Errors *[]Error `json:"errors,omitempty"` } JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound JSON405 *MethodNotAllowed JSON406 *NotAcceptable JSON409 *Conflict JSON429 *TooManyRequests JSON500 *InternalServerError JSON503 *ServiceUnavailable JSON507 *InsufficientStorage }
func ParseCreateRoomResponse ¶
func ParseCreateRoomResponse(rsp *http.Response) (*CreateRoomResponse, error)
ParseCreateRoomResponse parses an HTTP response from a CreateRoomWithResponse call
func (CreateRoomResponse) Status ¶
func (r CreateRoomResponse) Status() string
Status returns HTTPResponse.Status
func (CreateRoomResponse) StatusCode ¶
func (r CreateRoomResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateSceneJSONRequestBody ¶
type CreateSceneJSONRequestBody = ScenePost
CreateSceneJSONRequestBody defines body for CreateScene for application/json ContentType.
type CreateSceneResponse ¶
type CreateSceneResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *[]ResourceIdentifier `json:"data,omitempty"` Errors *[]Error `json:"errors,omitempty"` } JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound JSON405 *MethodNotAllowed JSON406 *NotAcceptable JSON409 *Conflict JSON429 *TooManyRequests JSON500 *InternalServerError JSON503 *ServiceUnavailable JSON507 *InsufficientStorage }
func ParseCreateSceneResponse ¶
func ParseCreateSceneResponse(rsp *http.Response) (*CreateSceneResponse, error)
ParseCreateSceneResponse parses an HTTP response from a CreateSceneWithResponse call
func (CreateSceneResponse) Status ¶
func (r CreateSceneResponse) Status() string
Status returns HTTPResponse.Status
func (CreateSceneResponse) StatusCode ¶
func (r CreateSceneResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateSmartSceneJSONRequestBody ¶
type CreateSmartSceneJSONRequestBody = SmartScenePost
CreateSmartSceneJSONRequestBody defines body for CreateSmartScene for application/json ContentType.
type CreateSmartSceneResponse ¶
type CreateSmartSceneResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *[]ResourceIdentifier `json:"data,omitempty"` Errors *[]Error `json:"errors,omitempty"` } JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound JSON405 *MethodNotAllowed JSON406 *NotAcceptable JSON409 *Conflict JSON429 *TooManyRequests JSON500 *InternalServerError JSON503 *ServiceUnavailable JSON507 *InsufficientStorage }
func ParseCreateSmartSceneResponse ¶
func ParseCreateSmartSceneResponse(rsp *http.Response) (*CreateSmartSceneResponse, error)
ParseCreateSmartSceneResponse parses an HTTP response from a CreateSmartSceneWithResponse call
func (CreateSmartSceneResponse) Status ¶
func (r CreateSmartSceneResponse) Status() string
Status returns HTTPResponse.Status
func (CreateSmartSceneResponse) StatusCode ¶
func (r CreateSmartSceneResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateZoneJSONRequestBody ¶
type CreateZoneJSONRequestBody = RoomPut
CreateZoneJSONRequestBody defines body for CreateZone for application/json ContentType.
type CreateZoneResponse ¶
type CreateZoneResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *[]ResourceIdentifier `json:"data,omitempty"` Errors *[]Error `json:"errors,omitempty"` } JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound JSON405 *MethodNotAllowed JSON406 *NotAcceptable JSON409 *Conflict JSON429 *TooManyRequests JSON500 *InternalServerError JSON503 *ServiceUnavailable JSON507 *InsufficientStorage }
func ParseCreateZoneResponse ¶
func ParseCreateZoneResponse(rsp *http.Response) (*CreateZoneResponse, error)
ParseCreateZoneResponse parses an HTTP response from a CreateZoneWithResponse call
func (CreateZoneResponse) Status ¶
func (r CreateZoneResponse) Status() string
Status returns HTTPResponse.Status
func (CreateZoneResponse) StatusCode ¶
func (r CreateZoneResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DayTimeslotsGet ¶
type DayTimeslotsGet struct { Recurrence []Weekday `json:"recurrence"` Timeslots []SmartSceneTimeslotGet `json:"timeslots"` }
DayTimeslotsGet defines model for DayTimeslotsGet.
type DeleteDeviceResponse ¶
type DeleteDeviceResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *[]ResourceIdentifier `json:"data,omitempty"` Errors *[]Error `json:"errors,omitempty"` } JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound JSON405 *MethodNotAllowed JSON406 *NotAcceptable JSON409 *Conflict JSON429 *TooManyRequests JSON500 *InternalServerError JSON503 *ServiceUnavailable JSON507 *InsufficientStorage }
func ParseDeleteDeviceResponse ¶
func ParseDeleteDeviceResponse(rsp *http.Response) (*DeleteDeviceResponse, error)
ParseDeleteDeviceResponse parses an HTTP response from a DeleteDeviceWithResponse call
func (DeleteDeviceResponse) Status ¶
func (r DeleteDeviceResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteDeviceResponse) StatusCode ¶
func (r DeleteDeviceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteRoomResponse ¶
type DeleteRoomResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *[]ResourceIdentifier `json:"data,omitempty"` Errors *[]Error `json:"errors,omitempty"` } JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound JSON405 *MethodNotAllowed JSON406 *NotAcceptable JSON409 *Conflict JSON429 *TooManyRequests JSON500 *InternalServerError JSON503 *ServiceUnavailable JSON507 *InsufficientStorage }
func ParseDeleteRoomResponse ¶
func ParseDeleteRoomResponse(rsp *http.Response) (*DeleteRoomResponse, error)
ParseDeleteRoomResponse parses an HTTP response from a DeleteRoomWithResponse call
func (DeleteRoomResponse) Status ¶
func (r DeleteRoomResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteRoomResponse) StatusCode ¶
func (r DeleteRoomResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteSceneResponse ¶
type DeleteSceneResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *[]ResourceIdentifier `json:"data,omitempty"` Errors *[]Error `json:"errors,omitempty"` } JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound JSON405 *MethodNotAllowed JSON406 *NotAcceptable JSON409 *Conflict JSON429 *TooManyRequests JSON500 *InternalServerError JSON503 *ServiceUnavailable JSON507 *InsufficientStorage }
func ParseDeleteSceneResponse ¶
func ParseDeleteSceneResponse(rsp *http.Response) (*DeleteSceneResponse, error)
ParseDeleteSceneResponse parses an HTTP response from a DeleteSceneWithResponse call
func (DeleteSceneResponse) Status ¶
func (r DeleteSceneResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteSceneResponse) StatusCode ¶
func (r DeleteSceneResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteSmartSceneResponse ¶
type DeleteSmartSceneResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *[]ResourceIdentifier `json:"data,omitempty"` Errors *[]Error `json:"errors,omitempty"` } JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound JSON405 *MethodNotAllowed JSON406 *NotAcceptable JSON409 *Conflict JSON429 *TooManyRequests JSON500 *InternalServerError JSON503 *ServiceUnavailable JSON507 *InsufficientStorage }
func ParseDeleteSmartSceneResponse ¶
func ParseDeleteSmartSceneResponse(rsp *http.Response) (*DeleteSmartSceneResponse, error)
ParseDeleteSmartSceneResponse parses an HTTP response from a DeleteSmartSceneWithResponse call
func (DeleteSmartSceneResponse) Status ¶
func (r DeleteSmartSceneResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteSmartSceneResponse) StatusCode ¶
func (r DeleteSmartSceneResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteZoneResponse ¶
type DeleteZoneResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *[]ResourceIdentifier `json:"data,omitempty"` Errors *[]Error `json:"errors,omitempty"` } JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound JSON405 *MethodNotAllowed JSON406 *NotAcceptable JSON409 *Conflict JSON429 *TooManyRequests JSON500 *InternalServerError JSON503 *ServiceUnavailable JSON507 *InsufficientStorage }
func ParseDeleteZoneResponse ¶
func ParseDeleteZoneResponse(rsp *http.Response) (*DeleteZoneResponse, error)
ParseDeleteZoneResponse parses an HTTP response from a DeleteZoneWithResponse call
func (DeleteZoneResponse) Status ¶
func (r DeleteZoneResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteZoneResponse) StatusCode ¶
func (r DeleteZoneResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeviceGet ¶
type DeviceGet struct { // Id Unique identifier representing a specific resource instance Id *string `json:"id,omitempty"` // IdV1 Clip v1 resource identifier IdV1 *string `json:"id_v1,omitempty"` Metadata *struct { // Archetype The default archetype given by manufacturer. Can be changed by user. Archetype *ProductArchetype `json:"archetype,omitempty"` // Name Human readable name of a resource Name *string `json:"name,omitempty"` } `json:"metadata,omitempty"` Owner *ResourceIdentifier `json:"owner,omitempty"` ProductData *ProductData `json:"product_data,omitempty"` // Services References all services providing control and state of the device. Services *[]ResourceIdentifier `json:"services,omitempty"` Type *DeviceGetType `json:"type,omitempty"` Usertest *struct { Status *DeviceGetUsertestStatus `json:"status,omitempty"` // Usertest Activates or extends user usertest mode of device for 120 seconds. // `false` deactivates usertest mode. // In usertest mode, devices report changes in state faster and indicate state changes on device LED (if applicable) Usertest *bool `json:"usertest,omitempty"` } `json:"usertest,omitempty"` }
DeviceGet defines model for DeviceGet.
type DeviceGetType ¶
type DeviceGetType string
DeviceGetType defines model for DeviceGet.Type.
const (
DeviceGetTypeDevice DeviceGetType = "device"
)
Defines values for DeviceGetType.
type DeviceGetUsertestStatus ¶
type DeviceGetUsertestStatus string
DeviceGetUsertestStatus defines model for DeviceGet.Usertest.Status.
const ( DeviceGetUsertestStatusChanging DeviceGetUsertestStatus = "changing" DeviceGetUsertestStatusSet DeviceGetUsertestStatus = "set" )
Defines values for DeviceGetUsertestStatus.
type DevicePowerGet ¶
type DevicePowerGet struct { // Id Unique identifier representing a specific resource instance Id *string `json:"id,omitempty"` // IdV1 Clip v1 resource identifier IdV1 *string `json:"id_v1,omitempty"` Owner *ResourceIdentifier `json:"owner,omitempty"` PowerState *struct { // BatteryLevel The current battery state in percent, only for battery powered devices. BatteryLevel *int `json:"battery_level,omitempty"` // BatteryState Status of the power source of a device, only for battery powered devices. // // - `normal` – battery level is sufficient // - `low` – battery level low, some features (e.g. software update) might stop working, please change battery soon // - `critical` – battery level critical, device can fail any moment BatteryState *DevicePowerGetPowerStateBatteryState `json:"battery_state,omitempty"` } `json:"power_state,omitempty"` // Type Type of the supported resources Type *string `json:"type,omitempty"` }
DevicePowerGet defines model for DevicePowerGet.
type DevicePowerGetPowerStateBatteryState ¶
type DevicePowerGetPowerStateBatteryState string
DevicePowerGetPowerStateBatteryState Status of the power source of a device, only for battery powered devices.
- `normal` – battery level is sufficient - `low` – battery level low, some features (e.g. software update) might stop working, please change battery soon - `critical` – battery level critical, device can fail any moment
const ( DevicePowerGetPowerStateBatteryStateCritical DevicePowerGetPowerStateBatteryState = "critical" DevicePowerGetPowerStateBatteryStateLow DevicePowerGetPowerStateBatteryState = "low" DevicePowerGetPowerStateBatteryStateNormal DevicePowerGetPowerStateBatteryState = "normal" )
Defines values for DevicePowerGetPowerStateBatteryState.
type DevicePut ¶
type DevicePut struct { Identify *struct { // Action Triggers a visual identification sequence, current implemented as (which can change in the future): // Bridge performs Zigbee LED identification cycles for 5 seconds Lights perform one breathe cycle Sensors // perform LED identification cycles for 15 seconds Action *DevicePutIdentifyAction `json:"action,omitempty"` } `json:"identify,omitempty"` Metadata *struct { // Archetype The default archetype given by manufacturer. Can be changed by user. Archetype *ProductArchetype `json:"archetype,omitempty"` // Name Human readable name of a resource Name *string `json:"name,omitempty"` } `json:"metadata,omitempty"` Type *DevicePutType `json:"type,omitempty"` Usertest *struct { // Usertest Activates or extends user usertest mode of device for 120 seconds. // `false` deactivates usertest mode. In usertest mode, devices report changes in state faster and indicate // state changes on device LED (if applicable) Usertest *bool `json:"usertest,omitempty"` } `json:"usertest,omitempty"` }
DevicePut defines model for DevicePut.
type DevicePutIdentifyAction ¶
type DevicePutIdentifyAction string
DevicePutIdentifyAction Triggers a visual identification sequence, current implemented as (which can change in the future): Bridge performs Zigbee LED identification cycles for 5 seconds Lights perform one breathe cycle Sensors perform LED identification cycles for 15 seconds
const (
Identify DevicePutIdentifyAction = "identify"
)
Defines values for DevicePutIdentifyAction.
type DevicePutType ¶
type DevicePutType string
DevicePutType defines model for DevicePut.Type.
const (
DevicePutTypeDevice DevicePutType = "device"
)
Defines values for DevicePutType.
type Dimming ¶
type Dimming struct { // Brightness Brightness percentage. value cannot be 0, writing 0 changes it to lowest possible brightness Brightness *Brightness `json:"brightness,omitempty"` }
Dimming defines model for Dimming.
type DimmingDelta ¶
type DimmingDelta struct { Action *DimmingDeltaAction `json:"action,omitempty"` // BrightnessDelta Brightness percentage of full-scale increase delta to current dimlevel. Clip at Max-level or Min-level. BrightnessDelta *float32 `json:"brightness_delta,omitempty"` }
DimmingDelta defines model for DimmingDelta.
type DimmingDeltaAction ¶
type DimmingDeltaAction string
DimmingDeltaAction defines model for DimmingDelta.Action.
const ( DimmingDeltaActionDown DimmingDeltaAction = "down" DimmingDeltaActionStop DimmingDeltaAction = "stop" DimmingDeltaActionUp DimmingDeltaAction = "up" )
Defines values for DimmingDeltaAction.
type Dynamics ¶
type Dynamics struct { // Duration Duration of a light transition or timed effects in ms. Duration *int `json:"duration,omitempty"` }
Dynamics defines model for Dynamics.
type Effects ¶
type Effects struct {
Effect *SupportedEffects `json:"effect,omitempty"`
}
Effects Basic feature containing effect properties.
type Error ¶
type Error struct { // Description a human-readable explanation specific to this occurrence of the problem. Description *string `json:"description,omitempty"` }
Error defines model for Error.
type ErrorResponse ¶
type ErrorResponse struct {
Errors *[]Error `json:"errors,omitempty"`
}
ErrorResponse defines model for ErrorResponse.
type GamutPosition ¶
type GamutPosition struct { // X X position in color gamut X *float32 `json:"x,omitempty"` // Y y position in color gamut Y *float32 `json:"y,omitempty"` }
GamutPosition CIE XY gamut position
type GetBridgeHomeResponse ¶
type GetBridgeHomeResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *[]BridgeHomeGet `json:"data,omitempty"` Errors *[]Error `json:"errors,omitempty"` } JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound JSON405 *MethodNotAllowed JSON406 *NotAcceptable JSON409 *Conflict JSON429 *TooManyRequests JSON500 *InternalServerError JSON503 *ServiceUnavailable JSON507 *InsufficientStorage }
func ParseGetBridgeHomeResponse ¶
func ParseGetBridgeHomeResponse(rsp *http.Response) (*GetBridgeHomeResponse, error)
ParseGetBridgeHomeResponse parses an HTTP response from a GetBridgeHomeWithResponse call
func (GetBridgeHomeResponse) Status ¶
func (r GetBridgeHomeResponse) Status() string
Status returns HTTPResponse.Status
func (GetBridgeHomeResponse) StatusCode ¶
func (r GetBridgeHomeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetBridgeHomesResponse ¶
type GetBridgeHomesResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *[]BridgeHomeGet `json:"data,omitempty"` Errors *[]Error `json:"errors,omitempty"` } JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound JSON405 *MethodNotAllowed JSON406 *NotAcceptable JSON409 *Conflict JSON429 *TooManyRequests JSON500 *InternalServerError JSON503 *ServiceUnavailable JSON507 *InsufficientStorage }
func ParseGetBridgeHomesResponse ¶
func ParseGetBridgeHomesResponse(rsp *http.Response) (*GetBridgeHomesResponse, error)
ParseGetBridgeHomesResponse parses an HTTP response from a GetBridgeHomesWithResponse call
func (GetBridgeHomesResponse) Status ¶
func (r GetBridgeHomesResponse) Status() string
Status returns HTTPResponse.Status
func (GetBridgeHomesResponse) StatusCode ¶
func (r GetBridgeHomesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetBridgeResponse ¶
type GetBridgeResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *[]BridgeGet `json:"data,omitempty"` Errors *[]Error `json:"errors,omitempty"` } JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound JSON405 *MethodNotAllowed JSON406 *NotAcceptable JSON409 *Conflict JSON429 *TooManyRequests JSON500 *InternalServerError JSON503 *ServiceUnavailable JSON507 *InsufficientStorage }
func ParseGetBridgeResponse ¶
func ParseGetBridgeResponse(rsp *http.Response) (*GetBridgeResponse, error)
ParseGetBridgeResponse parses an HTTP response from a GetBridgeWithResponse call
func (GetBridgeResponse) Status ¶
func (r GetBridgeResponse) Status() string
Status returns HTTPResponse.Status
func (GetBridgeResponse) StatusCode ¶
func (r GetBridgeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetBridgesResponse ¶
type GetBridgesResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *[]BridgeGet `json:"data,omitempty"` Errors *[]Error `json:"errors,omitempty"` } JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound JSON405 *MethodNotAllowed JSON406 *NotAcceptable JSON409 *Conflict JSON429 *TooManyRequests JSON500 *InternalServerError JSON503 *ServiceUnavailable JSON507 *InsufficientStorage }
func ParseGetBridgesResponse ¶
func ParseGetBridgesResponse(rsp *http.Response) (*GetBridgesResponse, error)
ParseGetBridgesResponse parses an HTTP response from a GetBridgesWithResponse call
func (GetBridgesResponse) Status ¶
func (r GetBridgesResponse) Status() string
Status returns HTTPResponse.Status
func (GetBridgesResponse) StatusCode ¶
func (r GetBridgesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetDevicePowerResponse ¶
type GetDevicePowerResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *[]DevicePowerGet `json:"data,omitempty"` Errors *[]Error `json:"errors,omitempty"` } JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound JSON405 *MethodNotAllowed JSON406 *NotAcceptable JSON409 *Conflict JSON429 *TooManyRequests JSON500 *InternalServerError JSON503 *ServiceUnavailable JSON507 *InsufficientStorage }
func ParseGetDevicePowerResponse ¶
func ParseGetDevicePowerResponse(rsp *http.Response) (*GetDevicePowerResponse, error)
ParseGetDevicePowerResponse parses an HTTP response from a GetDevicePowerWithResponse call
func (GetDevicePowerResponse) Status ¶
func (r GetDevicePowerResponse) Status() string
Status returns HTTPResponse.Status
func (GetDevicePowerResponse) StatusCode ¶
func (r GetDevicePowerResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetDevicePowersResponse ¶
type GetDevicePowersResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *[]DevicePowerGet `json:"data,omitempty"` Errors *[]Error `json:"errors,omitempty"` } JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound JSON405 *MethodNotAllowed JSON406 *NotAcceptable JSON409 *Conflict JSON429 *TooManyRequests JSON500 *InternalServerError JSON503 *ServiceUnavailable JSON507 *InsufficientStorage }
func ParseGetDevicePowersResponse ¶
func ParseGetDevicePowersResponse(rsp *http.Response) (*GetDevicePowersResponse, error)
ParseGetDevicePowersResponse parses an HTTP response from a GetDevicePowersWithResponse call
func (GetDevicePowersResponse) Status ¶
func (r GetDevicePowersResponse) Status() string
Status returns HTTPResponse.Status
func (GetDevicePowersResponse) StatusCode ¶
func (r GetDevicePowersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetDeviceResponse ¶
type GetDeviceResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *[]DeviceGet `json:"data,omitempty"` Errors *[]Error `json:"errors,omitempty"` } JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound JSON405 *MethodNotAllowed JSON406 *NotAcceptable JSON409 *Conflict JSON429 *TooManyRequests JSON500 *InternalServerError JSON503 *ServiceUnavailable JSON507 *InsufficientStorage }
func ParseGetDeviceResponse ¶
func ParseGetDeviceResponse(rsp *http.Response) (*GetDeviceResponse, error)
ParseGetDeviceResponse parses an HTTP response from a GetDeviceWithResponse call
func (GetDeviceResponse) Status ¶
func (r GetDeviceResponse) Status() string
Status returns HTTPResponse.Status
func (GetDeviceResponse) StatusCode ¶
func (r GetDeviceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetDevicesResponse ¶
type GetDevicesResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *[]DeviceGet `json:"data,omitempty"` Errors *[]Error `json:"errors,omitempty"` } JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound JSON405 *MethodNotAllowed JSON406 *NotAcceptable JSON409 *Conflict JSON429 *TooManyRequests JSON500 *InternalServerError JSON503 *ServiceUnavailable JSON507 *InsufficientStorage }
func ParseGetDevicesResponse ¶
func ParseGetDevicesResponse(rsp *http.Response) (*GetDevicesResponse, error)
ParseGetDevicesResponse parses an HTTP response from a GetDevicesWithResponse call
func (GetDevicesResponse) Status ¶
func (r GetDevicesResponse) Status() string
Status returns HTTPResponse.Status
func (GetDevicesResponse) StatusCode ¶
func (r GetDevicesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetGroupedLightResponse ¶
type GetGroupedLightResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *[]GroupedLightGet `json:"data,omitempty"` Errors *[]Error `json:"errors,omitempty"` } JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound JSON405 *MethodNotAllowed JSON406 *NotAcceptable JSON409 *Conflict JSON429 *TooManyRequests JSON500 *InternalServerError JSON503 *ServiceUnavailable JSON507 *InsufficientStorage }
func ParseGetGroupedLightResponse ¶
func ParseGetGroupedLightResponse(rsp *http.Response) (*GetGroupedLightResponse, error)
ParseGetGroupedLightResponse parses an HTTP response from a GetGroupedLightWithResponse call
func (GetGroupedLightResponse) Status ¶
func (r GetGroupedLightResponse) Status() string
Status returns HTTPResponse.Status
func (GetGroupedLightResponse) StatusCode ¶
func (r GetGroupedLightResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetGroupedLightsResponse ¶
type GetGroupedLightsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *[]GroupedLightGet `json:"data,omitempty"` Errors *[]Error `json:"errors,omitempty"` } JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound JSON405 *MethodNotAllowed JSON406 *NotAcceptable JSON409 *Conflict JSON429 *TooManyRequests JSON500 *InternalServerError JSON503 *ServiceUnavailable JSON507 *InsufficientStorage }
func ParseGetGroupedLightsResponse ¶
func ParseGetGroupedLightsResponse(rsp *http.Response) (*GetGroupedLightsResponse, error)
ParseGetGroupedLightsResponse parses an HTTP response from a GetGroupedLightsWithResponse call
func (GetGroupedLightsResponse) Status ¶
func (r GetGroupedLightsResponse) Status() string
Status returns HTTPResponse.Status
func (GetGroupedLightsResponse) StatusCode ¶
func (r GetGroupedLightsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetLightLevelResponse ¶
type GetLightLevelResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *[]LightLevelGet `json:"data,omitempty"` Errors *[]Error `json:"errors,omitempty"` } JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound JSON405 *MethodNotAllowed JSON406 *NotAcceptable JSON409 *Conflict JSON429 *TooManyRequests JSON500 *InternalServerError JSON503 *ServiceUnavailable JSON507 *InsufficientStorage }
func ParseGetLightLevelResponse ¶
func ParseGetLightLevelResponse(rsp *http.Response) (*GetLightLevelResponse, error)
ParseGetLightLevelResponse parses an HTTP response from a GetLightLevelWithResponse call
func (GetLightLevelResponse) Status ¶
func (r GetLightLevelResponse) Status() string
Status returns HTTPResponse.Status
func (GetLightLevelResponse) StatusCode ¶
func (r GetLightLevelResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetLightLevelsResponse ¶
type GetLightLevelsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *[]LightLevelGet `json:"data,omitempty"` Errors *[]Error `json:"errors,omitempty"` } JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound JSON405 *MethodNotAllowed JSON406 *NotAcceptable JSON409 *Conflict JSON429 *TooManyRequests JSON500 *InternalServerError JSON503 *ServiceUnavailable JSON507 *InsufficientStorage }
func ParseGetLightLevelsResponse ¶
func ParseGetLightLevelsResponse(rsp *http.Response) (*GetLightLevelsResponse, error)
ParseGetLightLevelsResponse parses an HTTP response from a GetLightLevelsWithResponse call
func (GetLightLevelsResponse) Status ¶
func (r GetLightLevelsResponse) Status() string
Status returns HTTPResponse.Status
func (GetLightLevelsResponse) StatusCode ¶
func (r GetLightLevelsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetLightResponse ¶
type GetLightResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *[]LightGet `json:"data,omitempty"` Errors *[]Error `json:"errors,omitempty"` } JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound JSON405 *MethodNotAllowed JSON406 *NotAcceptable JSON409 *Conflict JSON429 *TooManyRequests JSON500 *InternalServerError JSON503 *ServiceUnavailable JSON507 *InsufficientStorage }
func ParseGetLightResponse ¶
func ParseGetLightResponse(rsp *http.Response) (*GetLightResponse, error)
ParseGetLightResponse parses an HTTP response from a GetLightWithResponse call
func (GetLightResponse) Status ¶
func (r GetLightResponse) Status() string
Status returns HTTPResponse.Status
func (GetLightResponse) StatusCode ¶
func (r GetLightResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetLightsResponse ¶
type GetLightsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *[]LightGet `json:"data,omitempty"` Errors *[]Error `json:"errors,omitempty"` } JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound JSON405 *MethodNotAllowed JSON406 *NotAcceptable JSON409 *Conflict JSON429 *TooManyRequests JSON500 *InternalServerError JSON503 *ServiceUnavailable JSON507 *InsufficientStorage }
func ParseGetLightsResponse ¶
func ParseGetLightsResponse(rsp *http.Response) (*GetLightsResponse, error)
ParseGetLightsResponse parses an HTTP response from a GetLightsWithResponse call
func (GetLightsResponse) Status ¶
func (r GetLightsResponse) Status() string
Status returns HTTPResponse.Status
func (GetLightsResponse) StatusCode ¶
func (r GetLightsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetMotionSensorResponse ¶
type GetMotionSensorResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *[]MotionGet `json:"data,omitempty"` Errors *[]Error `json:"errors,omitempty"` } JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound JSON405 *MethodNotAllowed JSON406 *NotAcceptable JSON409 *Conflict JSON429 *TooManyRequests JSON500 *InternalServerError JSON503 *ServiceUnavailable JSON507 *InsufficientStorage }
func ParseGetMotionSensorResponse ¶
func ParseGetMotionSensorResponse(rsp *http.Response) (*GetMotionSensorResponse, error)
ParseGetMotionSensorResponse parses an HTTP response from a GetMotionSensorWithResponse call
func (GetMotionSensorResponse) Status ¶
func (r GetMotionSensorResponse) Status() string
Status returns HTTPResponse.Status
func (GetMotionSensorResponse) StatusCode ¶
func (r GetMotionSensorResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetMotionSensorsResponse ¶
type GetMotionSensorsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *[]MotionGet `json:"data,omitempty"` Errors *[]Error `json:"errors,omitempty"` } JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound JSON405 *MethodNotAllowed JSON406 *NotAcceptable JSON409 *Conflict JSON429 *TooManyRequests JSON500 *InternalServerError JSON503 *ServiceUnavailable JSON507 *InsufficientStorage }
func ParseGetMotionSensorsResponse ¶
func ParseGetMotionSensorsResponse(rsp *http.Response) (*GetMotionSensorsResponse, error)
ParseGetMotionSensorsResponse parses an HTTP response from a GetMotionSensorsWithResponse call
func (GetMotionSensorsResponse) Status ¶
func (r GetMotionSensorsResponse) Status() string
Status returns HTTPResponse.Status
func (GetMotionSensorsResponse) StatusCode ¶
func (r GetMotionSensorsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetResourcesResponse ¶
type GetResourcesResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *[]ResourceGet `json:"data,omitempty"` Errors *[]Error `json:"errors,omitempty"` } JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound JSON405 *MethodNotAllowed JSON406 *NotAcceptable JSON409 *Conflict JSON429 *TooManyRequests JSON500 *InternalServerError JSON503 *ServiceUnavailable JSON507 *InsufficientStorage }
func ParseGetResourcesResponse ¶
func ParseGetResourcesResponse(rsp *http.Response) (*GetResourcesResponse, error)
ParseGetResourcesResponse parses an HTTP response from a GetResourcesWithResponse call
func (GetResourcesResponse) Status ¶
func (r GetResourcesResponse) Status() string
Status returns HTTPResponse.Status
func (GetResourcesResponse) StatusCode ¶
func (r GetResourcesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetRoomResponse ¶
type GetRoomResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *[]RoomGet `json:"data,omitempty"` Errors *[]Error `json:"errors,omitempty"` } JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound JSON405 *MethodNotAllowed JSON406 *NotAcceptable JSON409 *Conflict JSON429 *TooManyRequests JSON500 *InternalServerError JSON503 *ServiceUnavailable JSON507 *InsufficientStorage }
func ParseGetRoomResponse ¶
func ParseGetRoomResponse(rsp *http.Response) (*GetRoomResponse, error)
ParseGetRoomResponse parses an HTTP response from a GetRoomWithResponse call
func (GetRoomResponse) Status ¶
func (r GetRoomResponse) Status() string
Status returns HTTPResponse.Status
func (GetRoomResponse) StatusCode ¶
func (r GetRoomResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetRoomsResponse ¶
type GetRoomsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *[]RoomGet `json:"data,omitempty"` Errors *[]Error `json:"errors,omitempty"` } JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound JSON405 *MethodNotAllowed JSON406 *NotAcceptable JSON409 *Conflict JSON429 *TooManyRequests JSON500 *InternalServerError JSON503 *ServiceUnavailable JSON507 *InsufficientStorage }
func ParseGetRoomsResponse ¶
func ParseGetRoomsResponse(rsp *http.Response) (*GetRoomsResponse, error)
ParseGetRoomsResponse parses an HTTP response from a GetRoomsWithResponse call
func (GetRoomsResponse) Status ¶
func (r GetRoomsResponse) Status() string
Status returns HTTPResponse.Status
func (GetRoomsResponse) StatusCode ¶
func (r GetRoomsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSceneResponse ¶
type GetSceneResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *[]SceneGet `json:"data,omitempty"` Errors *[]Error `json:"errors,omitempty"` } JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound JSON405 *MethodNotAllowed JSON406 *NotAcceptable JSON409 *Conflict JSON429 *TooManyRequests JSON500 *InternalServerError JSON503 *ServiceUnavailable JSON507 *InsufficientStorage }
func ParseGetSceneResponse ¶
func ParseGetSceneResponse(rsp *http.Response) (*GetSceneResponse, error)
ParseGetSceneResponse parses an HTTP response from a GetSceneWithResponse call
func (GetSceneResponse) Status ¶
func (r GetSceneResponse) Status() string
Status returns HTTPResponse.Status
func (GetSceneResponse) StatusCode ¶
func (r GetSceneResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetScenesResponse ¶
type GetScenesResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *[]SceneGet `json:"data,omitempty"` Errors *[]Error `json:"errors,omitempty"` } JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound JSON405 *MethodNotAllowed JSON406 *NotAcceptable JSON409 *Conflict JSON429 *TooManyRequests JSON500 *InternalServerError JSON503 *ServiceUnavailable JSON507 *InsufficientStorage }
func ParseGetScenesResponse ¶
func ParseGetScenesResponse(rsp *http.Response) (*GetScenesResponse, error)
ParseGetScenesResponse parses an HTTP response from a GetScenesWithResponse call
func (GetScenesResponse) Status ¶
func (r GetScenesResponse) Status() string
Status returns HTTPResponse.Status
func (GetScenesResponse) StatusCode ¶
func (r GetScenesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSmartSceneResponse ¶
type GetSmartSceneResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *[]SmartSceneGet `json:"data,omitempty"` Errors *[]Error `json:"errors,omitempty"` } JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound JSON405 *MethodNotAllowed JSON406 *NotAcceptable JSON409 *Conflict JSON429 *TooManyRequests JSON500 *InternalServerError JSON503 *ServiceUnavailable JSON507 *InsufficientStorage }
func ParseGetSmartSceneResponse ¶
func ParseGetSmartSceneResponse(rsp *http.Response) (*GetSmartSceneResponse, error)
ParseGetSmartSceneResponse parses an HTTP response from a GetSmartSceneWithResponse call
func (GetSmartSceneResponse) Status ¶
func (r GetSmartSceneResponse) Status() string
Status returns HTTPResponse.Status
func (GetSmartSceneResponse) StatusCode ¶
func (r GetSmartSceneResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSmartScenesResponse ¶
type GetSmartScenesResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *[]SmartSceneGet `json:"data,omitempty"` Errors *[]Error `json:"errors,omitempty"` } JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound JSON405 *MethodNotAllowed JSON406 *NotAcceptable JSON409 *Conflict JSON429 *TooManyRequests JSON500 *InternalServerError JSON503 *ServiceUnavailable JSON507 *InsufficientStorage }
func ParseGetSmartScenesResponse ¶
func ParseGetSmartScenesResponse(rsp *http.Response) (*GetSmartScenesResponse, error)
ParseGetSmartScenesResponse parses an HTTP response from a GetSmartScenesWithResponse call
func (GetSmartScenesResponse) Status ¶
func (r GetSmartScenesResponse) Status() string
Status returns HTTPResponse.Status
func (GetSmartScenesResponse) StatusCode ¶
func (r GetSmartScenesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetTemperatureResponse ¶
type GetTemperatureResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *[]TemperatureGet `json:"data,omitempty"` Errors *[]Error `json:"errors,omitempty"` } JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound JSON405 *MethodNotAllowed JSON406 *NotAcceptable JSON409 *Conflict JSON429 *TooManyRequests JSON500 *InternalServerError JSON503 *ServiceUnavailable JSON507 *InsufficientStorage }
func ParseGetTemperatureResponse ¶
func ParseGetTemperatureResponse(rsp *http.Response) (*GetTemperatureResponse, error)
ParseGetTemperatureResponse parses an HTTP response from a GetTemperatureWithResponse call
func (GetTemperatureResponse) Status ¶
func (r GetTemperatureResponse) Status() string
Status returns HTTPResponse.Status
func (GetTemperatureResponse) StatusCode ¶
func (r GetTemperatureResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetTemperaturesResponse ¶
type GetTemperaturesResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *[]TemperatureGet `json:"data,omitempty"` Errors *[]Error `json:"errors,omitempty"` } JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound JSON405 *MethodNotAllowed JSON406 *NotAcceptable JSON409 *Conflict JSON429 *TooManyRequests JSON500 *InternalServerError JSON503 *ServiceUnavailable JSON507 *InsufficientStorage }
func ParseGetTemperaturesResponse ¶
func ParseGetTemperaturesResponse(rsp *http.Response) (*GetTemperaturesResponse, error)
ParseGetTemperaturesResponse parses an HTTP response from a GetTemperaturesWithResponse call
func (GetTemperaturesResponse) Status ¶
func (r GetTemperaturesResponse) Status() string
Status returns HTTPResponse.Status
func (GetTemperaturesResponse) StatusCode ¶
func (r GetTemperaturesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetZoneResponse ¶
type GetZoneResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *[]RoomGet `json:"data,omitempty"` Errors *[]Error `json:"errors,omitempty"` } JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound JSON405 *MethodNotAllowed JSON406 *NotAcceptable JSON409 *Conflict JSON429 *TooManyRequests JSON500 *InternalServerError JSON503 *ServiceUnavailable JSON507 *InsufficientStorage }
func ParseGetZoneResponse ¶
func ParseGetZoneResponse(rsp *http.Response) (*GetZoneResponse, error)
ParseGetZoneResponse parses an HTTP response from a GetZoneWithResponse call
func (GetZoneResponse) Status ¶
func (r GetZoneResponse) Status() string
Status returns HTTPResponse.Status
func (GetZoneResponse) StatusCode ¶
func (r GetZoneResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetZonesResponse ¶
type GetZonesResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *[]RoomGet `json:"data,omitempty"` Errors *[]Error `json:"errors,omitempty"` } JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound JSON405 *MethodNotAllowed JSON406 *NotAcceptable JSON409 *Conflict JSON429 *TooManyRequests JSON500 *InternalServerError JSON503 *ServiceUnavailable JSON507 *InsufficientStorage }
func ParseGetZonesResponse ¶
func ParseGetZonesResponse(rsp *http.Response) (*GetZonesResponse, error)
ParseGetZonesResponse parses an HTTP response from a GetZonesWithResponse call
func (GetZonesResponse) Status ¶
func (r GetZonesResponse) Status() string
Status returns HTTPResponse.Status
func (GetZonesResponse) StatusCode ¶
func (r GetZonesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Gradient ¶
type Gradient struct { // Mode Mode in which the points are currently being deployed. If not provided during PUT/POST it will be defaulted to interpolated_palette Mode *SupportedGradientMode `json:"mode,omitempty"` // Points Collection of gradients points. For control of the gradient points through a PUT a minimum of 2 points need to be provided. Points *[]Color `json:"points,omitempty"` }
Gradient Basic feature containing gradient properties.
type GroupedLightGet ¶
type GroupedLightGet struct { // Alert Joined alert control Alert *struct { ActionValues *[]string `json:"action_values,omitempty"` } `json:"alert,omitempty"` Dimming *Dimming `json:"dimming,omitempty"` // Id Unique identifier representing a specific resource instance Id *string `json:"id,omitempty"` // IdV1 Clip v1 resource identifier IdV1 *string `json:"id_v1,omitempty"` On *On `json:"on,omitempty"` Owner *ResourceIdentifier `json:"owner,omitempty"` // Signaling Feature containing basic signaling properties. Signaling *struct { // SignalValues Signals that the light supports. SignalValues *[]SupportedSignals `json:"signal_values,omitempty"` } `json:"signaling,omitempty"` // Type Type of the supported resources Type *string `json:"type,omitempty"` }
GroupedLightGet defines model for GroupedLightGet.
func (*GroupedLightGet) IsOn ¶
func (l *GroupedLightGet) IsOn() bool
func (*GroupedLightGet) Toggle ¶
func (l *GroupedLightGet) Toggle() *On
type GroupedLightPut ¶
type GroupedLightPut struct { // Alert Joined alert control Alert *Alert `json:"alert,omitempty"` Color *Color `json:"color,omitempty"` ColorTemperature *ColorTemperature `json:"color_temperature,omitempty"` ColorTemperatureDelta *ColorTemperatureDelta `json:"color_temperature_delta,omitempty"` Dimming *Dimming `json:"dimming,omitempty"` DimmingDelta *DimmingDelta `json:"dimming_delta,omitempty"` Dynamics *Dynamics `json:"dynamics,omitempty"` On *On `json:"on,omitempty"` // Signaling Feature containing basic signaling properties. Signaling *Signaling `json:"signaling,omitempty"` // Type Type of the supported resources (always `grouped_light` here) Type *GroupedLightPutType `json:"type,omitempty"` }
GroupedLightPut defines model for GroupedLightPut.
type GroupedLightPutType ¶
type GroupedLightPutType string
GroupedLightPutType Type of the supported resources (always `grouped_light` here)
const (
GroupedLightPutTypeGroupedLight GroupedLightPutType = "grouped_light"
)
Defines values for GroupedLightPutType.
type Home ¶
type Home struct {
// contains filtered or unexported fields
}
func NewHome ¶
NewHome creates a new Home context that is able to manage your different Philips Hue devices.
func (*Home) GetBridgeHome ¶
func (h *Home) GetBridgeHome() (*BridgeHomeGet, error)
func (*Home) GetGroupedLightById ¶
func (h *Home) GetGroupedLightById(groupedLightId string) (*GroupedLightGet, error)
func (*Home) GetGroupedLights ¶
func (h *Home) GetGroupedLights() (map[string]GroupedLightGet, error)
func (*Home) GetResources ¶
func (h *Home) GetResources() (map[string]ResourceGet, error)
func (*Home) GetRoomById ¶ added in v0.3.3
func (*Home) GetSmartScenes ¶
func (h *Home) GetSmartScenes() (map[string]SmartSceneGet, error)
func (*Home) GetZoneById ¶ added in v0.3.3
func (*Home) UpdateGroupedLight ¶
func (h *Home) UpdateGroupedLight(lightId string, body GroupedLightPut) error
func (*Home) UpdateSmartScene ¶
func (h *Home) UpdateSmartScene(sceneId string, body SmartScenePut) error
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type InsufficientStorage ¶
type InsufficientStorage = ErrorResponse
InsufficientStorage defines model for InsufficientStorage.
type InternalServerError ¶
type InternalServerError = ErrorResponse
InternalServerError defines model for InternalServerError.
type LightArchetype ¶
type LightArchetype string
LightArchetype Light archetype
const ( LightArchetypeBollard LightArchetype = "bollard" LightArchetypeCandleBulb LightArchetype = "candle_bulb" LightArchetypeCeilingHorizontal LightArchetype = "ceiling_horizontal" LightArchetypeCeilingRound LightArchetype = "ceiling_round" LightArchetypeCeilingSquare LightArchetype = "ceiling_square" LightArchetypeCeilingTube LightArchetype = "ceiling_tube" LightArchetypeChristmasTree LightArchetype = "christmas_tree" LightArchetypeClassicBulb LightArchetype = "classic_bulb" LightArchetypeDoubleSpot LightArchetype = "double_spot" LightArchetypeEdisonBulb LightArchetype = "edison_bulb" LightArchetypeEllipseBulb LightArchetype = "ellipse_bulb" LightArchetypeFlexibleLamp LightArchetype = "flexible_lamp" LightArchetypeFloodBulb LightArchetype = "flood_bulb" LightArchetypeFloorLantern LightArchetype = "floor_lantern" LightArchetypeFloorShade LightArchetype = "floor_shade" LightArchetypeGroundSpot LightArchetype = "ground_spot" LightArchetypeHueBloom LightArchetype = "hue_bloom" LightArchetypeHueCentris LightArchetype = "hue_centris" LightArchetypeHueGo LightArchetype = "hue_go" LightArchetypeHueIris LightArchetype = "hue_iris" LightArchetypeHueLightstrip LightArchetype = "hue_lightstrip" LightArchetypeHueLightstripPc LightArchetype = "hue_lightstrip_pc" LightArchetypeHueLightstripTv LightArchetype = "hue_lightstrip_tv" LightArchetypeHuePlay LightArchetype = "hue_play" LightArchetypeHueSigne LightArchetype = "hue_signe" LightArchetypeHueTube LightArchetype = "hue_tube" LightArchetypeLargeGlobeBulb LightArchetype = "large_globe_bulb" LightArchetypeLusterBulb LightArchetype = "luster_bulb" LightArchetypePendantLong LightArchetype = "pendant_long" LightArchetypePendantRound LightArchetype = "pendant_round" LightArchetypePendantSpot LightArchetype = "pendant_spot" LightArchetypePlug LightArchetype = "plug" LightArchetypeRecessedCeiling LightArchetype = "recessed_ceiling" LightArchetypeRecessedFloor LightArchetype = "recessed_floor" LightArchetypeSingleSpot LightArchetype = "single_spot" LightArchetypeSmallGlobeBulb LightArchetype = "small_globe_bulb" LightArchetypeSpotBulb LightArchetype = "spot_bulb" LightArchetypeStringLight LightArchetype = "string_light" LightArchetypeSultanBulb LightArchetype = "sultan_bulb" LightArchetypeTableShade LightArchetype = "table_shade" LightArchetypeTableWash LightArchetype = "table_wash" LightArchetypeTriangleBulb LightArchetype = "triangle_bulb" LightArchetypeUnknownArchetype LightArchetype = "unknown_archetype" LightArchetypeVintageBulb LightArchetype = "vintage_bulb" LightArchetypeVintageCandleBulb LightArchetype = "vintage_candle_bulb" LightArchetypeWallLantern LightArchetype = "wall_lantern" LightArchetypeWallShade LightArchetype = "wall_shade" LightArchetypeWallSpot LightArchetype = "wall_spot" LightArchetypeWallWasher LightArchetype = "wall_washer" )
Defines values for LightArchetype.
type LightDynamics ¶
type LightDynamics struct { // Duration Duration of a light transition or timed effects in ms. Duration *int `json:"duration,omitempty"` // Speed Speed of dynamic palette or effect. // The speed is valid for the dynamic palette if the status is `dynamic_palette` or for the corresponding effect listed in status. // In case of status `none`, the speed is not valid. Speed *float32 `json:"speed,omitempty"` }
LightDynamics defines model for LightDynamics.
type LightGet ¶
type LightGet struct { // Alert TODO Alert *map[string]interface{} `json:"alert,omitempty"` Color *struct { // Gamut Color gamut of color bulb. Some bulbs do not properly return the Gamut information. In this case this is not present. Gamut *struct { // Blue CIE XY gamut position Blue *GamutPosition `json:"blue,omitempty"` // Green CIE XY gamut position Green *GamutPosition `json:"green,omitempty"` // Red CIE XY gamut position Red *GamutPosition `json:"red,omitempty"` } `json:"gamut,omitempty"` // GamutType The gammut types supported by hue – A Gamut of early Philips color-only products – B Limited gamut of first Hue color products – C Richer color gamut of Hue white and color ambiance products – other Color gamut of non-hue products with non-hue gamuts resp w/o gamut GamutType *LightGetColorGamutType `json:"gamut_type,omitempty"` // Xy CIE XY gamut position Xy *GamutPosition `json:"xy,omitempty"` } `json:"color,omitempty"` ColorTemperature *struct { // Mirek color temperature in mirek or null when the light color is not in the ct spectrum Mirek *int `json:"mirek,omitempty"` MirekSchema *struct { // MirekMaximum maximum color temperature this light supports MirekMaximum *int `json:"mirek_maximum,omitempty"` // MirekMinimum minimum color temperature this light supports MirekMinimum *int `json:"mirek_minimum,omitempty"` } `json:"mirek_schema,omitempty"` // MirekValid Indication whether the value presented in mirek is valid MirekValid *bool `json:"mirek_valid,omitempty"` } `json:"color_temperature,omitempty"` Dimming *struct { // Brightness Brightness percentage. value cannot be 0, writing 0 changes it to lowest possible brightness Brightness *Brightness `json:"brightness,omitempty"` // MinDimLevel Percentage of the maximum lumen the device outputs on minimum brightness MinDimLevel *float32 `json:"min_dim_level,omitempty"` } `json:"dimming,omitempty"` Dynamics *struct { // Speed speed of dynamic palette or effect. The speed is valid for the dynamic palette if the status is dynamic_palette or for the corresponding effect listed in status. In case of status none, the speed is not valid Speed *float32 `json:"speed,omitempty"` // SpeedValid Indicates whether the value presented in speed is valid SpeedValid *bool `json:"speed_valid,omitempty"` // Status Current status of the lamp with dynamics. Status *SupportedDynamicStatus `json:"status,omitempty"` // StatusValues Statuses in which a lamp could be when playing dynamics. StatusValues *[]SupportedDynamicStatus `json:"status_values,omitempty"` } `json:"dynamics,omitempty"` // Effects Basic feature containing effect properties. Effects *struct { Effect *SupportedEffects `json:"effect,omitempty"` // EffectValues Possible status values in which a light could be when playing an effect. EffectValues *[]SupportedEffects `json:"effect_values,omitempty"` Status *SupportedEffects `json:"status,omitempty"` // StatusValues Possible status values in which a light could be when playing an effect. StatusValues *[]SupportedEffects `json:"status_values,omitempty"` } `json:"effects,omitempty"` Gradient *struct { // Mode Mode in which the points are currently being deployed. If not provided during PUT/POST it will be defaulted to interpolated_palette Mode *SupportedGradientMode `json:"mode,omitempty"` // ModeValues Modes a gradient device can deploy the gradient palette of colors ModeValues *[]SupportedGradientMode `json:"mode_values,omitempty"` // PixelCount Number of pixels in the device PixelCount *int `json:"pixel_count,omitempty"` // Points Collection of gradients points. For control of the gradient points through a PUT a minimum of 2 points need to be provided. Points *[]Color `json:"points,omitempty"` // PointsCapable Number of color points that gradient lamp is capable of showing with gradience. PointsCapable *int `json:"points_capable,omitempty"` } `json:"gradient,omitempty"` // Id Unique identifier representing a specific resource instance Id *string `json:"id,omitempty"` // IdV1 Clip v1 resource identifier IdV1 *string `json:"id_v1,omitempty"` // Metadata Deprecated, use metadata on device level Metadata *struct { // Archetype Light archetype Archetype *LightArchetype `json:"archetype,omitempty"` // FixedMired A fixed mired value of the white lamp FixedMired *int `json:"fixed_mired,omitempty"` // Name Human readable name of a resource Name *string `json:"name,omitempty"` } `json:"metadata,omitempty"` Mode *LightGetMode `json:"mode,omitempty"` On *On `json:"on,omitempty"` Owner *ResourceIdentifier `json:"owner,omitempty"` // Powerup Feature containing properties to configure powerup behaviour of a lightsource. Powerup *struct { // Configured Indicates if the shown values have been configured in the lightsource. Configured *bool `json:"configured,omitempty"` Dimming *struct { Color *struct { ColorTemperature *struct { Color *Color `json:"color,omitempty"` // Mirek color temperature in mirek or null when the light color is not in the ct spectrum Mirek *Mirek `json:"mirek,omitempty"` } `json:"color_temperature,omitempty"` // Mode State to activate after powerup. Availability of “color_temperature” and “color” modes depend on the capabilities of the lamp. Colortemperature will set the colortemperature to the specified value after power up. When setting color_temperature, the color_temperature property must be included Color will set the color tot he specified value after power up. When setting color mode, the color property must be included Previous will set color to the state it was in before powering off. Mode *LightGetPowerupDimmingColorMode `json:"mode,omitempty"` } `json:"color,omitempty"` Dimming *Dimming `json:"dimming,omitempty"` // Mode Dimming will set the brightness to the specified value after power up. // When setting mode “dimming”, the dimming property must be included. // Previous will set brightness to the state it was in before powering off. Mode *LightGetPowerupDimmingMode `json:"mode,omitempty"` } `json:"dimming,omitempty"` On *struct { // Mode State to activate after powerup. // On will use the value specified in the “on” property. // When setting mode “on”, the on property must be included. // Toggle will alternate between on and off on each subsequent power toggle. // Previous will return to the state it was in before powering off. Mode *LightGetPowerupOnMode `json:"mode,omitempty"` On *On `json:"on,omitempty"` } `json:"on,omitempty"` // Preset When setting the custom preset the additional properties can be set. For all other presets, no other properties can be included. Preset *LightGetPowerupPreset `json:"preset,omitempty"` } `json:"powerup,omitempty"` // Signaling Feature containing signaling properties. Signaling *struct { // Colors Colors that were provided for the active effect. Colors *[]Color `json:"colors,omitempty"` // EstimatedEnd Timestamp indicating when the active signal is expected to end. Value is not set if there is no_signal EstimatedEnd *int `json:"estimated_end,omitempty"` SignalValues *[]SupportedSignals `json:"signal_values,omitempty"` } `json:"signaling,omitempty"` // TimedEffects Basic feature containing timed effect properties. TimedEffects *struct { // Duration Duration is mandatory when timed effect is set except for no_effect. Resolution decreases for a larger duration. e.g Effects with duration smaller than a minute will be rounded to a resolution of 1s, while effects with duration larger than an hour will be arounded up to a resolution of 300s. Duration has a max of 21600000 ms. Duration *int `json:"duration,omitempty"` // Effect Current status values the light is in regarding timed effects Effect *SupportedTimedEffects `json:"effect,omitempty"` // EffectValues Possible timed effect values you can set in a light EffectValues *[]SupportedTimedEffects `json:"effect_values,omitempty"` // Status Current status values the light is in regarding timed effects Status *SupportedTimedEffects `json:"status,omitempty"` // StatusValues Possible status values in which a light could be when playing a timed effect. StatusValues *[]SupportedTimedEffects `json:"status_values,omitempty"` } `json:"timed_effects,omitempty"` // Type Type of the supported resources Type *string `json:"type,omitempty"` }
LightGet defines model for LightGet.
type LightGetColorGamutType ¶
type LightGetColorGamutType string
LightGetColorGamutType The gammut types supported by hue – A Gamut of early Philips color-only products – B Limited gamut of first Hue color products – C Richer color gamut of Hue white and color ambiance products – other Color gamut of non-hue products with non-hue gamuts resp w/o gamut
const ( LightGetColorGamutTypeA LightGetColorGamutType = "A" LightGetColorGamutTypeB LightGetColorGamutType = "B" LightGetColorGamutTypeC LightGetColorGamutType = "C" LightGetColorGamutTypeOther LightGetColorGamutType = "other" )
Defines values for LightGetColorGamutType.
type LightGetMode ¶
type LightGetMode string
LightGetMode defines model for LightGet.Mode.
const ( LightGetModeNormal LightGetMode = "normal" LightGetModeStreaming LightGetMode = "streaming" )
Defines values for LightGetMode.
type LightGetPowerupDimmingColorMode ¶
type LightGetPowerupDimmingColorMode string
LightGetPowerupDimmingColorMode State to activate after powerup. Availability of “color_temperature” and “color” modes depend on the capabilities of the lamp. Colortemperature will set the colortemperature to the specified value after power up. When setting color_temperature, the color_temperature property must be included Color will set the color tot he specified value after power up. When setting color mode, the color property must be included Previous will set color to the state it was in before powering off.
const ( LightGetPowerupDimmingColorModeColor LightGetPowerupDimmingColorMode = "color" LightGetPowerupDimmingColorModeColorTemperature LightGetPowerupDimmingColorMode = "color_temperature" LightGetPowerupDimmingColorModePrevious LightGetPowerupDimmingColorMode = "previous" )
Defines values for LightGetPowerupDimmingColorMode.
type LightGetPowerupDimmingMode ¶
type LightGetPowerupDimmingMode string
LightGetPowerupDimmingMode Dimming will set the brightness to the specified value after power up. When setting mode “dimming”, the dimming property must be included. Previous will set brightness to the state it was in before powering off.
const ( LightGetPowerupDimmingModeDimming LightGetPowerupDimmingMode = "dimming" LightGetPowerupDimmingModePrevious LightGetPowerupDimmingMode = "previous" )
Defines values for LightGetPowerupDimmingMode.
type LightGetPowerupOnMode ¶
type LightGetPowerupOnMode string
LightGetPowerupOnMode State to activate after powerup. On will use the value specified in the “on” property. When setting mode “on”, the on property must be included. Toggle will alternate between on and off on each subsequent power toggle. Previous will return to the state it was in before powering off.
const ( LightGetPowerupOnModeOn LightGetPowerupOnMode = "on" LightGetPowerupOnModePrevious LightGetPowerupOnMode = "previous" LightGetPowerupOnModeToggle LightGetPowerupOnMode = "toggle" )
Defines values for LightGetPowerupOnMode.
type LightGetPowerupPreset ¶
type LightGetPowerupPreset string
LightGetPowerupPreset When setting the custom preset the additional properties can be set. For all other presets, no other properties can be included.
const ( LightGetPowerupPresetCustom LightGetPowerupPreset = "custom" LightGetPowerupPresetLastOnState LightGetPowerupPreset = "last_on_state" LightGetPowerupPresetPowerfail LightGetPowerupPreset = "powerfail" LightGetPowerupPresetSafety LightGetPowerupPreset = "safety" )
Defines values for LightGetPowerupPreset.
type LightLevelGet ¶
type LightLevelGet struct { // Enabled true when sensor is activated, false when deactivated Enabled *bool `json:"enabled,omitempty"` // Id Unique identifier representing a specific resource instance Id *string `json:"id,omitempty"` // IdV1 Clip v1 resource identifier IdV1 *string `json:"id_v1,omitempty"` Light *struct { // LightLevel Deprecated. Moved to light_level_report/light_level LightLevel *int `json:"light_level,omitempty"` LightLevelReport *struct { // Changed last time the value of this property is changed. Changed *time.Time `json:"changed,omitempty"` // LightLevel Light level in 10000*log10(lux) +1 measured by sensor. // Logarithmic scale used because the human eye adjusts to light levels and small changes at low // lux levels are more noticeable than at high lux levels. // This allows use of linear scale configuration sliders. LightLevel *int `json:"light_level,omitempty"` } `json:"light_level_report,omitempty"` // LightLevelValid Deprecated. Indication whether the value presented in light_level is valid LightLevelValid *bool `json:"light_level_valid,omitempty"` } `json:"light,omitempty"` Owner *ResourceIdentifier `json:"owner,omitempty"` // Type Type of the supported resources Type *string `json:"type,omitempty"` }
LightLevelGet defines model for LightLevelGet.
type LightLevelPut ¶
type LightLevelPut struct { // Enabled true when sensor is activated, false when deactivated Enabled *bool `json:"enabled,omitempty"` // Type Type of the supported resources (always `light_level` here) Type *string `json:"type,omitempty"` }
LightLevelPut defines model for LightLevelPut.
type LightPut ¶
type LightPut struct { // Alert Joined alert control Alert *Alert `json:"alert,omitempty"` Color *Color `json:"color,omitempty"` ColorTemperature *ColorTemperature `json:"color_temperature,omitempty"` ColorTemperatureDelta *ColorTemperatureDelta `json:"color_temperature_delta,omitempty"` Dimming *Dimming `json:"dimming,omitempty"` DimmingDelta *DimmingDelta `json:"dimming_delta,omitempty"` Dynamics *LightDynamics `json:"dynamics,omitempty"` // Effects Basic feature containing effect properties. Effects *Effects `json:"effects,omitempty"` // Gradient Basic feature containing gradient properties. Gradient *Gradient `json:"gradient,omitempty"` Mode *LightPutMode `json:"mode,omitempty"` On *On `json:"on,omitempty"` // Powerup Feature containing properties to configure powerup behaviour of a lightsource. Powerup *Powerup `json:"powerup,omitempty"` // Signaling Feature containing basic signaling properties. Signaling *Signaling `json:"signaling,omitempty"` // TimedEffects Basic feature containing timed effect properties. TimedEffects *struct { // Duration Duration is mandatory when timed effect is set except for no_effect. Resolution decreases for a larger duration. e.g Effects with duration smaller than a minute will be rounded to a resolution of 1s, while effects with duration larger than an hour will be arounded up to a resolution of 300s. Duration has a max of 21600000 ms. Duration *int `json:"duration,omitempty"` // Effect Current status values the light is in regarding timed effects Effect *SupportedTimedEffects `json:"effect,omitempty"` } `json:"timed_effects,omitempty"` // Type Type of the supported resources (always `light` here) Type *string `json:"type,omitempty"` }
LightPut defines model for LightPut.
type LightPutMode ¶
type LightPutMode string
LightPutMode defines model for LightPut.Mode.
const ( Normal LightPutMode = "normal" Streaming LightPutMode = "streaming" )
Defines values for LightPutMode.
type MethodNotAllowed ¶
type MethodNotAllowed = ErrorResponse
MethodNotAllowed defines model for MethodNotAllowed.
type Mirek ¶
type Mirek = int
Mirek color temperature in mirek or null when the light color is not in the ct spectrum
type MotionGet ¶
type MotionGet struct { // Enabled ture when the sensor is activated, false when deactivated Enabled *bool `json:"enabled,omitempty"` // Id Unique identifier representing a specific resource instance Id *string `json:"id,omitempty"` // IdV1 Clip v1 resource identifier IdV1 *string `json:"id_v1,omitempty"` Motion *struct { // Motion Deprecated. Moved to motion_report/motion. Motion *bool `json:"motion,omitempty"` MotionReport *struct { // Changed last time the value of this property is changed Changed *string `json:"changed,omitempty"` // Motion true if motion is detected Motion *bool `json:"motion,omitempty"` } `json:"motion_report,omitempty"` // MotionValid Deprecated. Motion is valid when motion_report property is present, invalid when absent. MotionValid *bool `json:"motion_valid,omitempty"` } `json:"motion,omitempty"` Owner *ResourceIdentifier `json:"owner,omitempty"` Sensitivity *struct { // Sensitivity Sensitivity of the sensor. Value in the range 0 to sensitivity_max Sensitivity *int `json:"sensitivity,omitempty"` // SensitivityMax Maximum value of the sensitivity configuration attribute. SensitivityMax *int `json:"sensitivity_max,omitempty"` Status *MotionGetSensitivityStatus `json:"status,omitempty"` } `json:"sensitivity,omitempty"` // Type Type of the supported resources Type *string `json:"type,omitempty"` }
MotionGet defines model for MotionGet.
type MotionGetSensitivityStatus ¶
type MotionGetSensitivityStatus string
MotionGetSensitivityStatus defines model for MotionGet.Sensitivity.Status.
const ( MotionGetSensitivityStatusChanging MotionGetSensitivityStatus = "changing" MotionGetSensitivityStatusSet MotionGetSensitivityStatus = "set" )
Defines values for MotionGetSensitivityStatus.
type MotionPut ¶
type MotionPut struct { // Enabled true when the sensor is activated, false when deactivated Enabled *bool `json:"enabled,omitempty"` Sensitivity *struct { // Sensitivity Sensitivity of the sensor. Value in the range 0 to sensitivity_max. Sensitivity *int `json:"sensitivity,omitempty"` } `json:"sensitivity,omitempty"` // Type Type of the supported resources (always `motion` here) Type *string `json:"type,omitempty"` }
MotionPut defines model for MotionPut.
type NotAcceptable ¶
type NotAcceptable = ErrorResponse
NotAcceptable defines model for NotAcceptable.
type On ¶
type On struct { // On On/Off state of the light on=true, off=false On *bool `json:"on,omitempty"` }
On defines model for On.
type Powerup ¶
type Powerup struct { // Configured Indicates if the shown values have been configured in the lightsource. Configured *bool `json:"configured,omitempty"` Dimming *struct { Color *struct { ColorTemperature *struct { Color *Color `json:"color,omitempty"` // Mirek color temperature in mirek or null when the light color is not in the ct spectrum Mirek *Mirek `json:"mirek,omitempty"` } `json:"color_temperature,omitempty"` // Mode State to activate after powerup. Availability of “color_temperature” and “color” modes depend on the capabilities of the lamp. Colortemperature will set the colortemperature to the specified value after power up. When setting color_temperature, the color_temperature property must be included Color will set the color tot he specified value after power up. When setting color mode, the color property must be included Previous will set color to the state it was in before powering off. Mode *PowerupDimmingColorMode `json:"mode,omitempty"` } `json:"color,omitempty"` // Dimming Brightness percentage. value cannot be 0, writing 0 changes it to lowest possible brightness Dimming *Brightness `json:"dimming,omitempty"` // Mode Dimming will set the brightness to the specified value after power up. // When setting mode “dimming”, the dimming property must be included. // Previous will set brightness to the state it was in before powering off. Mode *PowerupDimmingMode `json:"mode,omitempty"` } `json:"dimming,omitempty"` On *struct { // Mode State to activate after powerup. // On will use the value specified in the “on” property. // When setting mode “on”, the on property must be included. // Toggle will alternate between on and off on each subsequent power toggle. // Previous will return to the state it was in before powering off. Mode *PowerupOnMode `json:"mode,omitempty"` On *On `json:"on,omitempty"` } `json:"on,omitempty"` // Preset When setting the custom preset the additional properties can be set. For all other presets, no other properties can be included. Preset *PowerupPreset `json:"preset,omitempty"` }
Powerup Feature containing properties to configure powerup behaviour of a lightsource.
type PowerupDimmingColorMode ¶
type PowerupDimmingColorMode string
PowerupDimmingColorMode State to activate after powerup. Availability of “color_temperature” and “color” modes depend on the capabilities of the lamp. Colortemperature will set the colortemperature to the specified value after power up. When setting color_temperature, the color_temperature property must be included Color will set the color tot he specified value after power up. When setting color mode, the color property must be included Previous will set color to the state it was in before powering off.
const ( PowerupDimmingColorModeColor PowerupDimmingColorMode = "color" PowerupDimmingColorModeColorTemperature PowerupDimmingColorMode = "color_temperature" PowerupDimmingColorModePrevious PowerupDimmingColorMode = "previous" )
Defines values for PowerupDimmingColorMode.
type PowerupDimmingMode ¶
type PowerupDimmingMode string
PowerupDimmingMode Dimming will set the brightness to the specified value after power up. When setting mode “dimming”, the dimming property must be included. Previous will set brightness to the state it was in before powering off.
const ( PowerupDimmingModeDimming PowerupDimmingMode = "dimming" PowerupDimmingModePrevious PowerupDimmingMode = "previous" )
Defines values for PowerupDimmingMode.
type PowerupOnMode ¶
type PowerupOnMode string
PowerupOnMode State to activate after powerup. On will use the value specified in the “on” property. When setting mode “on”, the on property must be included. Toggle will alternate between on and off on each subsequent power toggle. Previous will return to the state it was in before powering off.
const ( PowerupOnModeOn PowerupOnMode = "on" PowerupOnModePrevious PowerupOnMode = "previous" PowerupOnModeToggle PowerupOnMode = "toggle" )
Defines values for PowerupOnMode.
type PowerupPreset ¶
type PowerupPreset string
PowerupPreset When setting the custom preset the additional properties can be set. For all other presets, no other properties can be included.
const ( PowerupPresetCustom PowerupPreset = "custom" PowerupPresetLastOnState PowerupPreset = "last_on_state" PowerupPresetPowerfail PowerupPreset = "powerfail" PowerupPresetSafety PowerupPreset = "safety" )
Defines values for PowerupPreset.
type ProductArchetype ¶
type ProductArchetype string
ProductArchetype The default archetype given by manufacturer. Can be changed by user.
const ( ProductArchetypeBollard ProductArchetype = "bollard" ProductArchetypeBridgeV2 ProductArchetype = "bridge_v2" ProductArchetypeCandleBulb ProductArchetype = "candle_bulb" ProductArchetypeCeilingHorizontal ProductArchetype = "ceiling_horizontal" ProductArchetypeCeilingRound ProductArchetype = "ceiling_round" ProductArchetypeCeilingSquare ProductArchetype = "ceiling_square" ProductArchetypeCeilingTube ProductArchetype = "ceiling_tube" ProductArchetypeChristmasTree ProductArchetype = "christmas_tree" ProductArchetypeClassicBulb ProductArchetype = "classic_bulb" ProductArchetypeDoubleSpot ProductArchetype = "double_spot" ProductArchetypeEdisonBulb ProductArchetype = "edison_bulb" ProductArchetypeEllipseBulb ProductArchetype = "ellipse_bulb" ProductArchetypeFlexibleLamp ProductArchetype = "flexible_lamp" ProductArchetypeFloodBulb ProductArchetype = "flood_bulb" ProductArchetypeFloorLantern ProductArchetype = "floor_lantern" ProductArchetypeFloorShade ProductArchetype = "floor_shade" ProductArchetypeGroundSpot ProductArchetype = "ground_spot" ProductArchetypeHueBloom ProductArchetype = "hue_bloom" ProductArchetypeHueCentris ProductArchetype = "hue_centris" ProductArchetypeHueGo ProductArchetype = "hue_go" ProductArchetypeHueIris ProductArchetype = "hue_iris" ProductArchetypeHueLightstrip ProductArchetype = "hue_lightstrip" ProductArchetypeHueLightstripPc ProductArchetype = "hue_lightstrip_pc" ProductArchetypeHueLightstripTv ProductArchetype = "hue_lightstrip_tv" ProductArchetypeHuePlay ProductArchetype = "hue_play" ProductArchetypeHueSigne ProductArchetype = "hue_signe" ProductArchetypeHueTube ProductArchetype = "hue_tube" ProductArchetypeLargeGlobeBulb ProductArchetype = "large_globe_bulb" ProductArchetypeLusterBulb ProductArchetype = "luster_bulb" ProductArchetypePendantLong ProductArchetype = "pendant_long" ProductArchetypePendantRound ProductArchetype = "pendant_round" ProductArchetypePendantSpot ProductArchetype = "pendant_spot" ProductArchetypePlug ProductArchetype = "plug" ProductArchetypeRecessedCeiling ProductArchetype = "recessed_ceiling" ProductArchetypeRecessedFloor ProductArchetype = "recessed_floor" ProductArchetypeSingleSpot ProductArchetype = "single_spot" ProductArchetypeSmallGlobeBulb ProductArchetype = "small_globe_bulb" ProductArchetypeSpotBulb ProductArchetype = "spot_bulb" ProductArchetypeStringLight ProductArchetype = "string_light" ProductArchetypeSultanBulb ProductArchetype = "sultan_bulb" ProductArchetypeTableShade ProductArchetype = "table_shade" ProductArchetypeTableWash ProductArchetype = "table_wash" ProductArchetypeTriangleBulb ProductArchetype = "triangle_bulb" ProductArchetypeUnknownArchetype ProductArchetype = "unknown_archetype" ProductArchetypeVintageBulb ProductArchetype = "vintage_bulb" ProductArchetypeVintageCandleBulb ProductArchetype = "vintage_candle_bulb" ProductArchetypeWallLantern ProductArchetype = "wall_lantern" ProductArchetypeWallShade ProductArchetype = "wall_shade" ProductArchetypeWallSpot ProductArchetype = "wall_spot" ProductArchetypeWallWasher ProductArchetype = "wall_washer" )
Defines values for ProductArchetype.
type ProductData ¶
type ProductData struct { // Certified This device is Hue certified Certified *bool `json:"certified,omitempty"` // HardwarePlatformType Hardware type; identified by Manufacturer code and ImageType HardwarePlatformType *string `json:"hardware_platform_type,omitempty"` // ManufacturerName Name of device manufacturer ManufacturerName *string `json:"manufacturer_name,omitempty"` // ModelId Unique identification of device model ModelId *string `json:"model_id,omitempty"` // ProductArchetype The default archetype given by manufacturer. Can be changed by user. ProductArchetype *ProductArchetype `json:"product_archetype,omitempty"` // ProductName Name of the product ProductName *string `json:"product_name,omitempty"` // SoftwareVersion Software version of the product SoftwareVersion *string `json:"software_version,omitempty"` }
ProductData defines model for ProductData.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type Resource ¶
type Resource struct { // Id Unique identifier representing a specific resource instance Id *string `json:"id,omitempty"` // IdV1 Clip v1 resource identifier IdV1 *string `json:"id_v1,omitempty"` // Type Type of the supported resources Type *string `json:"type,omitempty"` }
Resource Common resource properties
type ResourceGet ¶
type ResourceGet struct { // Id Unique identifier representing a specific resource instance Id *string `json:"id,omitempty"` // IdV1 Clip v1 resource identifier IdV1 *string `json:"id_v1,omitempty"` Owner *ResourceIdentifier `json:"owner,omitempty"` // Type Type of the supported resources Type *ResourceGetType `json:"type,omitempty"` }
ResourceGet defines model for ResourceGet.
type ResourceGetType ¶
type ResourceGetType string
ResourceGetType Type of the supported resources
const ( ResourceGetTypeAuthV1 ResourceGetType = "auth_v1" ResourceGetTypeBehaviorInstance ResourceGetType = "behavior_instance" ResourceGetTypeBehaviorScript ResourceGetType = "behavior_script" ResourceGetTypeBridge ResourceGetType = "bridge" ResourceGetTypeBridgeHome ResourceGetType = "bridge_home" ResourceGetTypeButton ResourceGetType = "button" ResourceGetTypeCameraMotion ResourceGetType = "camera_motion" ResourceGetTypeContact ResourceGetType = "contact" ResourceGetTypeDevice ResourceGetType = "device" ResourceGetTypeDevicePower ResourceGetType = "device_power" ResourceGetTypeEntertainment ResourceGetType = "entertainment" ResourceGetTypeEntertainmentConfiguration ResourceGetType = "entertainment_configuration" ResourceGetTypeGeofence ResourceGetType = "geofence" ResourceGetTypeGeofenceClient ResourceGetType = "geofence_client" ResourceGetTypeGeolocation ResourceGetType = "geolocation" ResourceGetTypeGroupedLight ResourceGetType = "grouped_light" ResourceGetTypeHomekit ResourceGetType = "homekit" ResourceGetTypeLight ResourceGetType = "light" ResourceGetTypeLightLevel ResourceGetType = "light_level" ResourceGetTypeMatter ResourceGetType = "matter" ResourceGetTypeMatterFabric ResourceGetType = "matter_fabric" ResourceGetTypeMotion ResourceGetType = "motion" ResourceGetTypePublicImage ResourceGetType = "public_image" ResourceGetTypeRelativeRotary ResourceGetType = "relative_rotary" ResourceGetTypeRoom ResourceGetType = "room" ResourceGetTypeScene ResourceGetType = "scene" ResourceGetTypeSmartScene ResourceGetType = "smart_scene" ResourceGetTypeTamper ResourceGetType = "tamper" ResourceGetTypeTemperature ResourceGetType = "temperature" ResourceGetTypeZgpConnectivity ResourceGetType = "zgp_connectivity" ResourceGetTypeZigbeeBridgeConnectivity ResourceGetType = "zigbee_bridge_connectivity" ResourceGetTypeZigbeeConnectivity ResourceGetType = "zigbee_connectivity" ResourceGetTypeZigbeeDeviceDiscovery ResourceGetType = "zigbee_device_discovery" ResourceGetTypeZone ResourceGetType = "zone" )
Defines values for ResourceGetType.
type ResourceIdentifier ¶
type ResourceIdentifier struct { // Rid The unique id of the referenced resource Rid *string `json:"rid,omitempty"` // Rtype The type of the referenced resource Rtype *ResourceIdentifierRtype `json:"rtype,omitempty"` }
ResourceIdentifier defines model for ResourceIdentifier.
type ResourceIdentifierRtype ¶
type ResourceIdentifierRtype string
ResourceIdentifierRtype The type of the referenced resource
const ( ResourceIdentifierRtypeAuthV1 ResourceIdentifierRtype = "auth_v1" ResourceIdentifierRtypeBehaviorInstance ResourceIdentifierRtype = "behavior_instance" ResourceIdentifierRtypeBehaviorScript ResourceIdentifierRtype = "behavior_script" ResourceIdentifierRtypeBridge ResourceIdentifierRtype = "bridge" ResourceIdentifierRtypeBridgeHome ResourceIdentifierRtype = "bridge_home" ResourceIdentifierRtypeButton ResourceIdentifierRtype = "button" ResourceIdentifierRtypeCameraMotion ResourceIdentifierRtype = "camera_motion" ResourceIdentifierRtypeContact ResourceIdentifierRtype = "contact" ResourceIdentifierRtypeDevice ResourceIdentifierRtype = "device" ResourceIdentifierRtypeDevicePower ResourceIdentifierRtype = "device_power" ResourceIdentifierRtypeEntertainment ResourceIdentifierRtype = "entertainment" ResourceIdentifierRtypeEntertainmentConfiguration ResourceIdentifierRtype = "entertainment_configuration" ResourceIdentifierRtypeGeofence ResourceIdentifierRtype = "geofence" ResourceIdentifierRtypeGeofenceClient ResourceIdentifierRtype = "geofence_client" ResourceIdentifierRtypeGeolocation ResourceIdentifierRtype = "geolocation" ResourceIdentifierRtypeGroupedLight ResourceIdentifierRtype = "grouped_light" ResourceIdentifierRtypeHomekit ResourceIdentifierRtype = "homekit" ResourceIdentifierRtypeLight ResourceIdentifierRtype = "light" ResourceIdentifierRtypeLightLevel ResourceIdentifierRtype = "light_level" ResourceIdentifierRtypeMatter ResourceIdentifierRtype = "matter" ResourceIdentifierRtypeMatterFabric ResourceIdentifierRtype = "matter_fabric" ResourceIdentifierRtypeMotion ResourceIdentifierRtype = "motion" ResourceIdentifierRtypePublicImage ResourceIdentifierRtype = "public_image" ResourceIdentifierRtypeRelativeRotary ResourceIdentifierRtype = "relative_rotary" ResourceIdentifierRtypeRoom ResourceIdentifierRtype = "room" ResourceIdentifierRtypeScene ResourceIdentifierRtype = "scene" ResourceIdentifierRtypeSmartScene ResourceIdentifierRtype = "smart_scene" ResourceIdentifierRtypeTamper ResourceIdentifierRtype = "tamper" ResourceIdentifierRtypeTemperature ResourceIdentifierRtype = "temperature" ResourceIdentifierRtypeZgpConnectivity ResourceIdentifierRtype = "zgp_connectivity" ResourceIdentifierRtypeZigbeeBridgeConnectivity ResourceIdentifierRtype = "zigbee_bridge_connectivity" ResourceIdentifierRtypeZigbeeConnectivity ResourceIdentifierRtype = "zigbee_connectivity" ResourceIdentifierRtypeZigbeeDeviceDiscovery ResourceIdentifierRtype = "zigbee_device_discovery" ResourceIdentifierRtypeZone ResourceIdentifierRtype = "zone" )
Defines values for ResourceIdentifierRtype.
type ResourceOwned ¶
type ResourceOwned struct { // Id Unique identifier representing a specific resource instance Id *string `json:"id,omitempty"` // IdV1 Clip v1 resource identifier IdV1 *string `json:"id_v1,omitempty"` Owner *ResourceIdentifier `json:"owner,omitempty"` // Type Type of the supported resources Type *string `json:"type,omitempty"` }
ResourceOwned defines model for ResourceOwned.
type Response ¶
type Response = []struct { Error *struct { Address *string `json:"address,omitempty"` Description *string `json:"description,omitempty"` Type *int `json:"type,omitempty"` } `json:"error,omitempty"` Success *struct { Clientkey *string `json:"clientkey,omitempty"` Username *string `json:"username,omitempty"` } `json:"success,omitempty"` }
Response defines model for response.
type RoomArchetype ¶
type RoomArchetype string
RoomArchetype Possible archetypes of a room
const ( RoomArchetypeAttic RoomArchetype = "attic" RoomArchetypeBalcony RoomArchetype = "balcony" RoomArchetypeBarbecue RoomArchetype = "barbecue" RoomArchetypeBathroom RoomArchetype = "bathroom" RoomArchetypeBedroom RoomArchetype = "bedroom" RoomArchetypeCarport RoomArchetype = "carport" RoomArchetypeCloset RoomArchetype = "closet" RoomArchetypeComputer RoomArchetype = "computer" RoomArchetypeDining RoomArchetype = "dining" RoomArchetypeDownstairs RoomArchetype = "downstairs" RoomArchetypeDriveway RoomArchetype = "driveway" RoomArchetypeFrontDoor RoomArchetype = "front_door" RoomArchetypeGarage RoomArchetype = "garage" RoomArchetypeGarden RoomArchetype = "garden" RoomArchetypeGuestRoom RoomArchetype = "guest_room" RoomArchetypeGym RoomArchetype = "gym" RoomArchetypeHallway RoomArchetype = "hallway" RoomArchetypeHome RoomArchetype = "home" RoomArchetypeKidsBedroom RoomArchetype = "kids_bedroom" RoomArchetypeKitchen RoomArchetype = "kitchen" RoomArchetypeLaundryRoom RoomArchetype = "laundry_room" RoomArchetypeLivingRoom RoomArchetype = "living_room" RoomArchetypeLounge RoomArchetype = "lounge" RoomArchetypeManCave RoomArchetype = "man_cave" RoomArchetypeMusic RoomArchetype = "music" RoomArchetypeNursery RoomArchetype = "nursery" RoomArchetypeOffice RoomArchetype = "office" RoomArchetypeOther RoomArchetype = "other" RoomArchetypePool RoomArchetype = "pool" RoomArchetypePorch RoomArchetype = "porch" RoomArchetypeReading RoomArchetype = "reading" RoomArchetypeRecreation RoomArchetype = "recreation" RoomArchetypeStaircase RoomArchetype = "staircase" RoomArchetypeStorage RoomArchetype = "storage" RoomArchetypeStudio RoomArchetype = "studio" RoomArchetypeTerrace RoomArchetype = "terrace" RoomArchetypeToilet RoomArchetype = "toilet" RoomArchetypeTopFloor RoomArchetype = "top_floor" RoomArchetypeTv RoomArchetype = "tv" RoomArchetypeUpstairs RoomArchetype = "upstairs" )
Defines values for RoomArchetype.
type RoomGet ¶
type RoomGet struct { // Children Child devices/services to group by the derived group Children *[]ResourceIdentifier `json:"children,omitempty"` // Id Unique identifier representing a specific resource instance Id *string `json:"id,omitempty"` // IdV1 Clip v1 resource identifier IdV1 *string `json:"id_v1,omitempty"` // Metadata configuration object for a room Metadata *struct { // Archetype Possible archetypes of a room Archetype *RoomArchetype `json:"archetype,omitempty"` // Name Human readable name of a resource Name *string `json:"name,omitempty"` } `json:"metadata,omitempty"` // Services References all services aggregating control and state of children in the group. // This includes all services grouped in the group hierarchy given by child relation. // This includes all services of a device grouped in the group hierarchy given by child relation. // Aggregation is per service type, ie every service type which can be grouped has a corresponding definition of // grouped type. // Supported types: – grouped_light Services *[]ResourceIdentifier `json:"services,omitempty"` // Type Type of the supported resources Type *string `json:"type,omitempty"` }
RoomGet defines model for RoomGet.
func (*RoomGet) GetServices ¶
func (r *RoomGet) GetServices() map[string]ResourceIdentifierRtype
type RoomPut ¶
type RoomPut struct { // Children Child devices/services to group by the derived group Children *[]ResourceIdentifier `json:"children,omitempty"` // Metadata configuration object for a room Metadata *struct { // Archetype Possible archetypes of a room Archetype *RoomArchetype `json:"archetype,omitempty"` // Name Human readable name of a resource Name *string `json:"name,omitempty"` } `json:"metadata,omitempty"` // Type Type of the supported resources (always `room` here) Type *string `json:"type,omitempty"` }
RoomPut defines model for RoomPut.
type SceneGet ¶
type SceneGet struct { // Actions List of actions to be executed synchronously on recall Actions *[]ActionGet `json:"actions,omitempty"` // AutoDynamic Indicates whether to automatically start the scene dynamically on active recall AutoDynamic *bool `json:"auto_dynamic,omitempty"` Group *ResourceIdentifier `json:"group,omitempty"` // Id Unique identifier representing a specific resource instance Id *string `json:"id,omitempty"` // IdV1 Clip v1 resource identifier IdV1 *string `json:"id_v1,omitempty"` Metadata *SceneMetadata `json:"metadata,omitempty"` Owner *ResourceIdentifier `json:"owner,omitempty"` // Palette Group of colors that describe the palette of colors to be used when playing dynamics Palette *ScenePalette `json:"palette,omitempty"` // Speed Speed of dynamic palette for this scene Speed *float32 `json:"speed,omitempty"` Status *struct { Active *SceneGetStatusActive `json:"active,omitempty"` } `json:"status,omitempty"` Type *SceneGetType `json:"type,omitempty"` }
SceneGet defines model for SceneGet.
type SceneGetStatusActive ¶
type SceneGetStatusActive string
SceneGetStatusActive defines model for SceneGet.Status.Active.
const ( SceneGetStatusActiveDynamicPalette SceneGetStatusActive = "dynamic_palette" SceneGetStatusActiveInactive SceneGetStatusActive = "inactive" SceneGetStatusActiveStatic SceneGetStatusActive = "static" )
Defines values for SceneGetStatusActive.
type SceneGetType ¶
type SceneGetType string
SceneGetType defines model for SceneGet.Type.
const (
SceneGetTypeScene SceneGetType = "scene"
)
Defines values for SceneGetType.
type SceneMetadata ¶
type SceneMetadata struct { // Appdata Application specific data. Free format string. Appdata *string `json:"appdata,omitempty"` Image *ResourceIdentifier `json:"image,omitempty"` // Name Human readable name of a resource Name *string `json:"name,omitempty"` }
SceneMetadata defines model for SceneMetadata.
type ScenePalette ¶
type ScenePalette struct { Color *[]ColorPaletteGet `json:"color,omitempty"` ColorTemperature *[]ColorTemperaturePalettePost `json:"color_temperature,omitempty"` Dimming *[]Dimming `json:"dimming,omitempty"` Effects *[]struct { Effect *SupportedEffects `json:"effect,omitempty"` } `json:"effects,omitempty"` }
ScenePalette Group of colors that describe the palette of colors to be used when playing dynamics
type ScenePost ¶
type ScenePost struct { // Actions List of actions to be executed synchronously on recall Actions []ActionPost `json:"actions"` // AutoDynamic Indicates whether to automatically start the scene dynamically on active recall AutoDynamic *bool `json:"auto_dynamic,omitempty"` Group ResourceIdentifier `json:"group"` Metadata SceneMetadata `json:"metadata"` // Palette Group of colors that describe the palette of colors to be used when playing dynamics Palette *ScenePalette `json:"palette,omitempty"` // Speed Speed of dynamic palette for this scene Speed *float32 `json:"speed,omitempty"` Type *ScenePostType `json:"type,omitempty"` }
ScenePost defines model for ScenePost.
type ScenePostType ¶
type ScenePostType string
ScenePostType defines model for ScenePost.Type.
const (
ScenePostTypeScene ScenePostType = "scene"
)
Defines values for ScenePostType.
type ScenePut ¶
type ScenePut struct { // Actions List of actions to be executed synchronously on recall Actions *[]ActionPost `json:"actions,omitempty"` // AutoDynamic Indicates whether to automatically start the scene dynamically on active recall AutoDynamic *bool `json:"auto_dynamic,omitempty"` Metadata *SceneMetadata `json:"metadata,omitempty"` // Palette Group of colors that describe the palette of colors to be used when playing dynamics Palette *ScenePalette `json:"palette,omitempty"` Recall *SceneRecall `json:"recall,omitempty"` // Speed Speed of dynamic palette for this scene Speed *float32 `json:"speed,omitempty"` Type *ScenePutType `json:"type,omitempty"` }
ScenePut defines model for ScenePut.
type ScenePutType ¶
type ScenePutType string
ScenePutType defines model for ScenePut.Type.
const (
Scene ScenePutType = "scene"
)
Defines values for ScenePutType.
type SceneRecall ¶
type SceneRecall struct { // Action When writing active, the actions in the scene are executed on the target. dynamic_palette starts dynamic scene with colors in the Palette object. Action *SceneRecallAction `json:"action,omitempty"` Dimming *Dimming `json:"dimming,omitempty"` // Duration Transition to the scene within the timeframe given by duration Duration *int `json:"duration,omitempty"` }
SceneRecall defines model for SceneRecall.
type SceneRecallAction ¶
type SceneRecallAction string
SceneRecallAction When writing active, the actions in the scene are executed on the target. dynamic_palette starts dynamic scene with colors in the Palette object.
const ( SceneRecallActionActive SceneRecallAction = "active" SceneRecallActionDynamicPalette SceneRecallAction = "dynamic_palette" SceneRecallActionStatic SceneRecallAction = "static" )
Defines values for SceneRecallAction.
type ServiceUnavailable ¶
type ServiceUnavailable = ErrorResponse
ServiceUnavailable defines model for ServiceUnavailable.
type Signaling ¶
type Signaling struct { // Color List of colors to apply to the signal (not supported by all signals) Color *[]Color `json:"color,omitempty"` // Duration Duration has a max of 65534000 ms and a stepsize of 1 second. // Values inbetween steps will be rounded. // Duration is ignored for `no_signal`. Duration *int `json:"duration,omitempty"` // Signal - `no_signal`: No signal is active. Write “no_signal” to stop active signal. // - `on_off`: Toggles between max brightness and Off in fixed color. // - `on_off_color`: Toggles between off and max brightness with color provided. // - `alternating`: Alternates between 2 provided colors. Signal *SignalingSignal `json:"signal,omitempty"` }
Signaling Feature containing basic signaling properties.
type SignalingSignal ¶
type SignalingSignal string
SignalingSignal - `no_signal`: No signal is active. Write “no_signal” to stop active signal. - `on_off`: Toggles between max brightness and Off in fixed color. - `on_off_color`: Toggles between off and max brightness with color provided. - `alternating`: Alternates between 2 provided colors.
const ( SignalingSignalAlternating SignalingSignal = "alternating" SignalingSignalNoSignal SignalingSignal = "no_signal" SignalingSignalOnOff SignalingSignal = "on_off" SignalingSignalOnOffColor SignalingSignal = "on_off_color" )
Defines values for SignalingSignal.
type SmartSceneGet ¶
type SmartSceneGet struct { // ActiveTimeslot the active time slot in execution ActiveTimeslot *struct { TimeslotId int `json:"timeslot_id"` Weekday Weekday `json:"weekday"` } `json:"active_timeslot,omitempty"` Group ResourceIdentifier `json:"group"` // Id Unique identifier representing a specific resource instance Id *string `json:"id,omitempty"` // IdV1 Clip v1 resource identifier IdV1 *string `json:"id_v1,omitempty"` Metadata SmartSceneMetadataWithImage `json:"metadata"` // State the current state of the smart scene. The default state is inactive if no recall is provided State SmartSceneGetState `json:"state"` // TransitionDuration duration of the transition from on one timeslot's scene to the other (defaults to 60000ms) TransitionDuration int `json:"transition_duration"` Type *SmartSceneGetType `json:"type,omitempty"` // WeekTimeslots information on what is the light state for every timeslot of the day WeekTimeslots []DayTimeslotsGet `json:"week_timeslots"` }
SmartSceneGet defines model for SmartSceneGet.
type SmartSceneGetState ¶
type SmartSceneGetState string
SmartSceneGetState the current state of the smart scene. The default state is inactive if no recall is provided
const ( Active SmartSceneGetState = "active" Inactive SmartSceneGetState = "inactive" )
Defines values for SmartSceneGetState.
type SmartSceneGetType ¶
type SmartSceneGetType string
SmartSceneGetType defines model for SmartSceneGet.Type.
const (
SmartSceneGetTypeSmartScene SmartSceneGetType = "smart_scene"
)
Defines values for SmartSceneGetType.
type SmartSceneMetadata ¶
type SmartSceneMetadata struct { // Appdata Application specific data. Free format string. Appdata *string `json:"appdata,omitempty"` // Name Human readable name of a resource Name *string `json:"name,omitempty"` }
SmartSceneMetadata defines model for SmartSceneMetadata.
type SmartSceneMetadataWithImage ¶
type SmartSceneMetadataWithImage struct { // Appdata Application specific data. Free format string. Appdata *string `json:"appdata,omitempty"` Image *ResourceIdentifier `json:"image,omitempty"` // Name Human readable name of a resource Name *string `json:"name,omitempty"` }
SmartSceneMetadataWithImage defines model for SmartSceneMetadataWithImage.
type SmartSceneOptionalRecall ¶
type SmartSceneOptionalRecall struct { // Action Activate will start the smart (24h) scene; deactivate will stop it Action *SmartSceneOptionalRecallAction `json:"action,omitempty"` }
SmartSceneOptionalRecall defines model for SmartSceneOptionalRecall.
type SmartSceneOptionalRecallAction ¶
type SmartSceneOptionalRecallAction string
SmartSceneOptionalRecallAction Activate will start the smart (24h) scene; deactivate will stop it
const ( SmartSceneOptionalRecallActionActivate SmartSceneOptionalRecallAction = "activate" SmartSceneOptionalRecallActionDeactivate SmartSceneOptionalRecallAction = "deactivate" )
Defines values for SmartSceneOptionalRecallAction.
type SmartScenePost ¶
type SmartScenePost struct { Group ResourceIdentifier `json:"group"` Metadata SmartSceneMetadataWithImage `json:"metadata"` Recall *SmartSceneRecall `json:"recall,omitempty"` // TransitionDuration duration of the transition from on one timeslot's scene to the other (defaults to 60000ms) TransitionDuration *int `json:"transition_duration,omitempty"` Type *SmartScenePostType `json:"type,omitempty"` // WeekTimeslots information on what is the light state for every timeslot of the day WeekTimeslots []DayTimeslotsGet `json:"week_timeslots"` }
SmartScenePost defines model for SmartScenePost.
type SmartScenePostType ¶
type SmartScenePostType string
SmartScenePostType defines model for SmartScenePost.Type.
const (
SmartScenePostTypeSmartScene SmartScenePostType = "smart_scene"
)
Defines values for SmartScenePostType.
type SmartScenePut ¶
type SmartScenePut struct { Metadata *SmartSceneMetadata `json:"metadata,omitempty"` Recall *SmartSceneOptionalRecall `json:"recall,omitempty"` // TransitionDuration duration of the transition from on one timeslot's scene to the other (defaults to 60000ms) TransitionDuration *int `json:"transition_duration,omitempty"` Type *SmartScenePutType `json:"type,omitempty"` // WeekTimeslots information on what is the light state for every timeslot of the day WeekTimeslots *[]DayTimeslotsGet `json:"week_timeslots,omitempty"` }
SmartScenePut defines model for SmartScenePut.
type SmartScenePutType ¶
type SmartScenePutType string
SmartScenePutType defines model for SmartScenePut.Type.
const (
SmartScene SmartScenePutType = "smart_scene"
)
Defines values for SmartScenePutType.
type SmartSceneRecall ¶
type SmartSceneRecall struct { // Action Activate will start the smart (24h) scene; deactivate will stop it Action SmartSceneRecallAction `json:"action"` }
SmartSceneRecall defines model for SmartSceneRecall.
type SmartSceneRecallAction ¶
type SmartSceneRecallAction string
SmartSceneRecallAction Activate will start the smart (24h) scene; deactivate will stop it
const ( SmartSceneRecallActionActivate SmartSceneRecallAction = "activate" SmartSceneRecallActionDeactivate SmartSceneRecallAction = "deactivate" )
Defines values for SmartSceneRecallAction.
type SmartSceneTimeslotGet ¶
type SmartSceneTimeslotGet struct { StartTime struct { Kind SmartSceneTimeslotGetStartTimeKind `json:"kind"` // Time this property is only used when property “kind” is “time” Time *struct { Hour *int `json:"hour,omitempty"` Minute *int `json:"minute,omitempty"` Second *int `json:"second,omitempty"` } `json:"time,omitempty"` } `json:"start_time"` Target ResourceIdentifier `json:"target"` }
SmartSceneTimeslotGet defines model for SmartSceneTimeslotGet.
type SmartSceneTimeslotGetStartTimeKind ¶
type SmartSceneTimeslotGetStartTimeKind string
SmartSceneTimeslotGetStartTimeKind defines model for SmartSceneTimeslotGet.StartTime.Kind.
const ( Sunset SmartSceneTimeslotGetStartTimeKind = "sunset" Time SmartSceneTimeslotGetStartTimeKind = "time" )
Defines values for SmartSceneTimeslotGetStartTimeKind.
type SupportedDynamicStatus ¶
type SupportedDynamicStatus string
SupportedDynamicStatus Current status of the lamp with dynamics.
const ( DynamicPalette SupportedDynamicStatus = "dynamic_palette" None SupportedDynamicStatus = "none" )
Defines values for SupportedDynamicStatus.
type SupportedEffects ¶
type SupportedEffects string
SupportedEffects defines model for SupportedEffects.
const ( SupportedEffectsCandle SupportedEffects = "candle" SupportedEffectsFire SupportedEffects = "fire" SupportedEffectsGlisten SupportedEffects = "glisten" SupportedEffectsNoEffect SupportedEffects = "no_effect" SupportedEffectsOpal SupportedEffects = "opal" SupportedEffectsPrism SupportedEffects = "prism" SupportedEffectsSparkle SupportedEffects = "sparkle" )
Defines values for SupportedEffects.
type SupportedGradientMode ¶
type SupportedGradientMode string
SupportedGradientMode Mode in which the points are currently being deployed. If not provided during PUT/POST it will be defaulted to interpolated_palette
const ( InterpolatedPalette SupportedGradientMode = "interpolated_palette" InterpolatedPaletteMirrored SupportedGradientMode = "interpolated_palette_mirrored" RandomPixelated SupportedGradientMode = "random_pixelated" )
Defines values for SupportedGradientMode.
type SupportedSignals ¶
type SupportedSignals string
SupportedSignals Indicates which signal is currently active.
const ( SupportedSignalsAlternating SupportedSignals = "alternating" SupportedSignalsNoSignal SupportedSignals = "no_signal" SupportedSignalsOnOff SupportedSignals = "on_off" SupportedSignalsOnOffColor SupportedSignals = "on_off_color" )
Defines values for SupportedSignals.
type SupportedTimedEffects ¶
type SupportedTimedEffects string
SupportedTimedEffects Current status values the light is in regarding timed effects
const ( SupportedTimedEffectsNoEffect SupportedTimedEffects = "no_effect" SupportedTimedEffectsSunrise SupportedTimedEffects = "sunrise" )
Defines values for SupportedTimedEffects.
type TemperatureGet ¶
type TemperatureGet struct { // Enabled `true` when sensor is activated, `false` when deactivated Enabled *bool `json:"enabled,omitempty"` // Id Unique identifier representing a specific resource instance Id *string `json:"id,omitempty"` // IdV1 Clip v1 resource identifier IdV1 *string `json:"id_v1,omitempty"` Owner *ResourceIdentifier `json:"owner,omitempty"` Temperature *struct { // Temperature Deprecated. Moved to Temperature_report/temperature Temperature *float32 `json:"temperature,omitempty"` TemperatureReport *struct { // Changed last time the value of this property is changed. Changed *time.Time `json:"changed,omitempty"` // Temperature Temperature in 1.00 degrees Celsius Temperature *float32 `json:"temperature,omitempty"` } `json:"temperature_report,omitempty"` // TemperatureValid Deprecated. Indication whether the value presented in temperature is valid TemperatureValid *bool `json:"temperature_valid,omitempty"` } `json:"temperature,omitempty"` // Type Type of the supported resources Type *string `json:"type,omitempty"` }
TemperatureGet defines model for TemperatureGet.
type TemperaturePut ¶
type TemperaturePut struct { // Enabled true when sensor is activated, false when deactivated Enabled *bool `json:"enabled,omitempty"` // Type Type of the supported resources (always `temperature` here) Type *TemperaturePutType `json:"type,omitempty"` }
TemperaturePut defines model for TemperaturePut.
type TemperaturePutType ¶
type TemperaturePutType string
TemperaturePutType Type of the supported resources (always `temperature` here)
const (
Temperature TemperaturePutType = "temperature"
)
Defines values for TemperaturePutType.
type Toggleable ¶
Toggleable defines resources that have an On field and can therefore be switched to on or off, mainly lights.
type TooManyRequests ¶
type TooManyRequests = ErrorResponse
TooManyRequests defines model for TooManyRequests.
type UpdateBridgeJSONRequestBody ¶
type UpdateBridgeJSONRequestBody = BridgePut
UpdateBridgeJSONRequestBody defines body for UpdateBridge for application/json ContentType.
type UpdateBridgeResponse ¶
type UpdateBridgeResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *[]ResourceIdentifier `json:"data,omitempty"` Errors *[]Error `json:"errors,omitempty"` } JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound JSON405 *MethodNotAllowed JSON406 *NotAcceptable JSON409 *Conflict JSON429 *TooManyRequests JSON500 *InternalServerError JSON503 *ServiceUnavailable JSON507 *InsufficientStorage }
func ParseUpdateBridgeResponse ¶
func ParseUpdateBridgeResponse(rsp *http.Response) (*UpdateBridgeResponse, error)
ParseUpdateBridgeResponse parses an HTTP response from a UpdateBridgeWithResponse call
func (UpdateBridgeResponse) Status ¶
func (r UpdateBridgeResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateBridgeResponse) StatusCode ¶
func (r UpdateBridgeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateDeviceJSONRequestBody ¶
type UpdateDeviceJSONRequestBody = DevicePut
UpdateDeviceJSONRequestBody defines body for UpdateDevice for application/json ContentType.
type UpdateDeviceResponse ¶
type UpdateDeviceResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *[]ResourceIdentifier `json:"data,omitempty"` Errors *[]Error `json:"errors,omitempty"` } JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound JSON405 *MethodNotAllowed JSON406 *NotAcceptable JSON409 *Conflict JSON429 *TooManyRequests JSON500 *InternalServerError JSON503 *ServiceUnavailable JSON507 *InsufficientStorage }
func ParseUpdateDeviceResponse ¶
func ParseUpdateDeviceResponse(rsp *http.Response) (*UpdateDeviceResponse, error)
ParseUpdateDeviceResponse parses an HTTP response from a UpdateDeviceWithResponse call
func (UpdateDeviceResponse) Status ¶
func (r UpdateDeviceResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateDeviceResponse) StatusCode ¶
func (r UpdateDeviceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateGroupedLightJSONRequestBody ¶
type UpdateGroupedLightJSONRequestBody = GroupedLightPut
UpdateGroupedLightJSONRequestBody defines body for UpdateGroupedLight for application/json ContentType.
type UpdateGroupedLightResponse ¶
type UpdateGroupedLightResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *[]ResourceIdentifier `json:"data,omitempty"` Errors *[]Error `json:"errors,omitempty"` } JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound JSON405 *MethodNotAllowed JSON406 *NotAcceptable JSON409 *Conflict JSON429 *TooManyRequests JSON500 *InternalServerError JSON503 *ServiceUnavailable JSON507 *InsufficientStorage }
func ParseUpdateGroupedLightResponse ¶
func ParseUpdateGroupedLightResponse(rsp *http.Response) (*UpdateGroupedLightResponse, error)
ParseUpdateGroupedLightResponse parses an HTTP response from a UpdateGroupedLightWithResponse call
func (UpdateGroupedLightResponse) Status ¶
func (r UpdateGroupedLightResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateGroupedLightResponse) StatusCode ¶
func (r UpdateGroupedLightResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateLightJSONRequestBody ¶
type UpdateLightJSONRequestBody = LightPut
UpdateLightJSONRequestBody defines body for UpdateLight for application/json ContentType.
type UpdateLightLevelJSONRequestBody ¶
type UpdateLightLevelJSONRequestBody = LightLevelPut
UpdateLightLevelJSONRequestBody defines body for UpdateLightLevel for application/json ContentType.
type UpdateLightLevelResponse ¶
type UpdateLightLevelResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *[]ResourceIdentifier `json:"data,omitempty"` Errors *[]Error `json:"errors,omitempty"` } JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound JSON405 *MethodNotAllowed JSON406 *NotAcceptable JSON409 *Conflict JSON429 *TooManyRequests JSON500 *InternalServerError JSON503 *ServiceUnavailable JSON507 *InsufficientStorage }
func ParseUpdateLightLevelResponse ¶
func ParseUpdateLightLevelResponse(rsp *http.Response) (*UpdateLightLevelResponse, error)
ParseUpdateLightLevelResponse parses an HTTP response from a UpdateLightLevelWithResponse call
func (UpdateLightLevelResponse) Status ¶
func (r UpdateLightLevelResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateLightLevelResponse) StatusCode ¶
func (r UpdateLightLevelResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateLightResponse ¶
type UpdateLightResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *[]ResourceIdentifier `json:"data,omitempty"` Errors *[]Error `json:"errors,omitempty"` } JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound JSON405 *MethodNotAllowed JSON406 *NotAcceptable JSON409 *Conflict JSON429 *TooManyRequests JSON500 *InternalServerError JSON503 *ServiceUnavailable JSON507 *InsufficientStorage }
func ParseUpdateLightResponse ¶
func ParseUpdateLightResponse(rsp *http.Response) (*UpdateLightResponse, error)
ParseUpdateLightResponse parses an HTTP response from a UpdateLightWithResponse call
func (UpdateLightResponse) Status ¶
func (r UpdateLightResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateLightResponse) StatusCode ¶
func (r UpdateLightResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateMotionSensorJSONRequestBody ¶
type UpdateMotionSensorJSONRequestBody = MotionPut
UpdateMotionSensorJSONRequestBody defines body for UpdateMotionSensor for application/json ContentType.
type UpdateMotionSensorResponse ¶
type UpdateMotionSensorResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *[]ResourceIdentifier `json:"data,omitempty"` Errors *[]Error `json:"errors,omitempty"` } JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound JSON405 *MethodNotAllowed JSON406 *NotAcceptable JSON409 *Conflict JSON429 *TooManyRequests JSON500 *InternalServerError JSON503 *ServiceUnavailable JSON507 *InsufficientStorage }
func ParseUpdateMotionSensorResponse ¶
func ParseUpdateMotionSensorResponse(rsp *http.Response) (*UpdateMotionSensorResponse, error)
ParseUpdateMotionSensorResponse parses an HTTP response from a UpdateMotionSensorWithResponse call
func (UpdateMotionSensorResponse) Status ¶
func (r UpdateMotionSensorResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateMotionSensorResponse) StatusCode ¶
func (r UpdateMotionSensorResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateRoomJSONRequestBody ¶
type UpdateRoomJSONRequestBody = RoomPut
UpdateRoomJSONRequestBody defines body for UpdateRoom for application/json ContentType.
type UpdateRoomResponse ¶
type UpdateRoomResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *[]ResourceIdentifier `json:"data,omitempty"` Errors *[]Error `json:"errors,omitempty"` } JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound JSON405 *MethodNotAllowed JSON406 *NotAcceptable JSON409 *Conflict JSON429 *TooManyRequests JSON500 *InternalServerError JSON503 *ServiceUnavailable JSON507 *InsufficientStorage }
func ParseUpdateRoomResponse ¶
func ParseUpdateRoomResponse(rsp *http.Response) (*UpdateRoomResponse, error)
ParseUpdateRoomResponse parses an HTTP response from a UpdateRoomWithResponse call
func (UpdateRoomResponse) Status ¶
func (r UpdateRoomResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateRoomResponse) StatusCode ¶
func (r UpdateRoomResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateSceneJSONRequestBody ¶
type UpdateSceneJSONRequestBody = ScenePut
UpdateSceneJSONRequestBody defines body for UpdateScene for application/json ContentType.
type UpdateSceneResponse ¶
type UpdateSceneResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *[]ResourceIdentifier `json:"data,omitempty"` Errors *[]Error `json:"errors,omitempty"` } JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound JSON405 *MethodNotAllowed JSON406 *NotAcceptable JSON409 *Conflict JSON429 *TooManyRequests JSON500 *InternalServerError JSON503 *ServiceUnavailable JSON507 *InsufficientStorage }
func ParseUpdateSceneResponse ¶
func ParseUpdateSceneResponse(rsp *http.Response) (*UpdateSceneResponse, error)
ParseUpdateSceneResponse parses an HTTP response from a UpdateSceneWithResponse call
func (UpdateSceneResponse) Status ¶
func (r UpdateSceneResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateSceneResponse) StatusCode ¶
func (r UpdateSceneResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateSmartSceneJSONRequestBody ¶
type UpdateSmartSceneJSONRequestBody = SmartScenePut
UpdateSmartSceneJSONRequestBody defines body for UpdateSmartScene for application/json ContentType.
type UpdateSmartSceneResponse ¶
type UpdateSmartSceneResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *[]ResourceIdentifier `json:"data,omitempty"` Errors *[]Error `json:"errors,omitempty"` } JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound JSON405 *MethodNotAllowed JSON406 *NotAcceptable JSON409 *Conflict JSON429 *TooManyRequests JSON500 *InternalServerError JSON503 *ServiceUnavailable JSON507 *InsufficientStorage }
func ParseUpdateSmartSceneResponse ¶
func ParseUpdateSmartSceneResponse(rsp *http.Response) (*UpdateSmartSceneResponse, error)
ParseUpdateSmartSceneResponse parses an HTTP response from a UpdateSmartSceneWithResponse call
func (UpdateSmartSceneResponse) Status ¶
func (r UpdateSmartSceneResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateSmartSceneResponse) StatusCode ¶
func (r UpdateSmartSceneResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateTemperatureJSONRequestBody ¶
type UpdateTemperatureJSONRequestBody = TemperaturePut
UpdateTemperatureJSONRequestBody defines body for UpdateTemperature for application/json ContentType.
type UpdateTemperatureResponse ¶
type UpdateTemperatureResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *[]ResourceIdentifier `json:"data,omitempty"` Errors *[]Error `json:"errors,omitempty"` } JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound JSON405 *MethodNotAllowed JSON406 *NotAcceptable JSON409 *Conflict JSON429 *TooManyRequests JSON500 *InternalServerError JSON503 *ServiceUnavailable JSON507 *InsufficientStorage }
func ParseUpdateTemperatureResponse ¶
func ParseUpdateTemperatureResponse(rsp *http.Response) (*UpdateTemperatureResponse, error)
ParseUpdateTemperatureResponse parses an HTTP response from a UpdateTemperatureWithResponse call
func (UpdateTemperatureResponse) Status ¶
func (r UpdateTemperatureResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateTemperatureResponse) StatusCode ¶
func (r UpdateTemperatureResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateZoneJSONRequestBody ¶
type UpdateZoneJSONRequestBody = RoomPut
UpdateZoneJSONRequestBody defines body for UpdateZone for application/json ContentType.
type UpdateZoneResponse ¶
type UpdateZoneResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Data *[]ResourceIdentifier `json:"data,omitempty"` Errors *[]Error `json:"errors,omitempty"` } JSON401 *Unauthorized JSON403 *Forbidden JSON404 *NotFound JSON405 *MethodNotAllowed JSON406 *NotAcceptable JSON409 *Conflict JSON429 *TooManyRequests JSON500 *InternalServerError JSON503 *ServiceUnavailable JSON507 *InsufficientStorage }
func ParseUpdateZoneResponse ¶
func ParseUpdateZoneResponse(rsp *http.Response) (*UpdateZoneResponse, error)
ParseUpdateZoneResponse parses an HTTP response from a UpdateZoneWithResponse call
func (UpdateZoneResponse) Status ¶
func (r UpdateZoneResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateZoneResponse) StatusCode ¶
func (r UpdateZoneResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode