From 770d485e91367576d43382d5d77f23fce49d820b Mon Sep 17 00:00:00 2001 From: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 4 Oct 2023 03:28:10 +0000 Subject: [PATCH] Release v0.1.6 --- client.go | 42 ++-- device.go | 2 +- device_device_type.go | 185 ----------------- device_type.go | 185 +++++++++++++++++ devices/unmanaged_list_request.go | 18 +- devices_list_request.go | 18 +- devices_list_request_device_type.go | 185 ----------------- devices_list_request_device_types_item.go | 185 ----------------- devices_list_request_manufacturer.go | 191 ------------------ locks_list_request.go | 18 +- locks_list_request_device_type.go | 185 ----------------- locks_list_request_device_types_item.go | 185 ----------------- locks_list_request_manufacturer.go | 191 ------------------ manufacturer.go | 191 ++++++++++++++++++ noisesensors/client.go | 14 +- supported_capabililty.go | 65 ++++++ thermostats_list_request.go | 18 +- thermostats_list_request_device_type.go | 185 ----------------- thermostats_list_request_device_types_item.go | 185 ----------------- thermostats_list_request_manufacturer.go | 191 ------------------ unmanaged_device.go | 20 +- ...aged_device_capabilities_supported_item.go | 65 ------ unmanaged_device_device_type.go | 185 ----------------- unmanaged_list_request_device_type.go | 185 ----------------- unmanaged_list_request_device_types_item.go | 185 ----------------- unmanaged_list_request_manufacturer.go | 191 ------------------ 26 files changed, 516 insertions(+), 2754 deletions(-) delete mode 100644 device_device_type.go create mode 100644 device_type.go delete mode 100644 devices_list_request_device_type.go delete mode 100644 devices_list_request_device_types_item.go delete mode 100644 devices_list_request_manufacturer.go delete mode 100644 locks_list_request_device_type.go delete mode 100644 locks_list_request_device_types_item.go delete mode 100644 locks_list_request_manufacturer.go create mode 100644 manufacturer.go create mode 100644 supported_capabililty.go delete mode 100644 thermostats_list_request_device_type.go delete mode 100644 thermostats_list_request_device_types_item.go delete mode 100644 thermostats_list_request_manufacturer.go delete mode 100644 unmanaged_device_capabilities_supported_item.go delete mode 100644 unmanaged_device_device_type.go delete mode 100644 unmanaged_list_request_device_type.go delete mode 100644 unmanaged_list_request_device_types_item.go delete mode 100644 unmanaged_list_request_manufacturer.go diff --git a/client.go b/client.go index 4fabda1..698e54d 100644 --- a/client.go +++ b/client.go @@ -11,17 +11,17 @@ import ( type Client interface { AccessCodes() AccessCodesClient ActionAttempts() ActionAttemptsClient + ClientSessions() ClientSessionsClient ConnectedAccounts() ConnectedAccountsClient + ConnectWebviews() ConnectWebviewsClient Devices() DevicesClient - ClientSessions() ClientSessionsClient Events() EventsClient Health() HealthClient - ConnectWebviews() ConnectWebviewsClient Locks() LocksClient + NoiseSensors() noisesensors.Client Thermostats() ThermostatsClient Webhooks() WebhooksClient Workspaces() WorkspacesClient - NoiseSensors() noisesensors.Client } func NewClient(opts ...core.ClientOption) Client { @@ -35,17 +35,17 @@ func NewClient(opts ...core.ClientOption) Client { header: options.ToHeader(), accessCodesClient: NewAccessCodesClient(opts...), actionAttemptsClient: NewActionAttemptsClient(opts...), + clientSessionsClient: NewClientSessionsClient(opts...), connectedAccountsClient: NewConnectedAccountsClient(opts...), + connectWebviewsClient: NewConnectWebviewsClient(opts...), devicesClient: NewDevicesClient(opts...), - clientSessionsClient: NewClientSessionsClient(opts...), eventsClient: NewEventsClient(opts...), healthClient: NewHealthClient(opts...), - connectWebviewsClient: NewConnectWebviewsClient(opts...), locksClient: NewLocksClient(opts...), + noiseSensorsClient: noisesensors.NewClient(opts...), thermostatsClient: NewThermostatsClient(opts...), webhooksClient: NewWebhooksClient(opts...), workspacesClient: NewWorkspacesClient(opts...), - noiseSensorsClient: noisesensors.NewClient(opts...), } } @@ -55,17 +55,17 @@ type client struct { header http.Header accessCodesClient AccessCodesClient actionAttemptsClient ActionAttemptsClient + clientSessionsClient ClientSessionsClient connectedAccountsClient ConnectedAccountsClient + connectWebviewsClient ConnectWebviewsClient devicesClient DevicesClient - clientSessionsClient ClientSessionsClient eventsClient EventsClient healthClient HealthClient - connectWebviewsClient ConnectWebviewsClient locksClient LocksClient + noiseSensorsClient noisesensors.Client thermostatsClient ThermostatsClient webhooksClient WebhooksClient workspacesClient WorkspacesClient - noiseSensorsClient noisesensors.Client } func (c *client) AccessCodes() AccessCodesClient { @@ -76,16 +76,20 @@ func (c *client) ActionAttempts() ActionAttemptsClient { return c.actionAttemptsClient } +func (c *client) ClientSessions() ClientSessionsClient { + return c.clientSessionsClient +} + func (c *client) ConnectedAccounts() ConnectedAccountsClient { return c.connectedAccountsClient } -func (c *client) Devices() DevicesClient { - return c.devicesClient +func (c *client) ConnectWebviews() ConnectWebviewsClient { + return c.connectWebviewsClient } -func (c *client) ClientSessions() ClientSessionsClient { - return c.clientSessionsClient +func (c *client) Devices() DevicesClient { + return c.devicesClient } func (c *client) Events() EventsClient { @@ -96,14 +100,14 @@ func (c *client) Health() HealthClient { return c.healthClient } -func (c *client) ConnectWebviews() ConnectWebviewsClient { - return c.connectWebviewsClient -} - func (c *client) Locks() LocksClient { return c.locksClient } +func (c *client) NoiseSensors() noisesensors.Client { + return c.noiseSensorsClient +} + func (c *client) Thermostats() ThermostatsClient { return c.thermostatsClient } @@ -115,7 +119,3 @@ func (c *client) Webhooks() WebhooksClient { func (c *client) Workspaces() WorkspacesClient { return c.workspacesClient } - -func (c *client) NoiseSensors() noisesensors.Client { - return c.noiseSensorsClient -} diff --git a/device.go b/device.go index b459a18..03bb40b 100644 --- a/device.go +++ b/device.go @@ -8,7 +8,7 @@ import ( type Device struct { DeviceId string `json:"device_id"` - DeviceType DeviceDeviceType `json:"device_type,omitempty"` + DeviceType DeviceType `json:"device_type,omitempty"` CapabilitiesSupported []DeviceCapabilitiesSupportedItem `json:"capabilities_supported,omitempty"` Properties *DeviceProperties `json:"properties,omitempty"` Location *any `json:"location,omitempty"` diff --git a/device_device_type.go b/device_device_type.go deleted file mode 100644 index 0f94f25..0000000 --- a/device_device_type.go +++ /dev/null @@ -1,185 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -package api - -import ( - json "encoding/json" - fmt "fmt" - strconv "strconv" -) - -type DeviceDeviceType uint8 - -const ( - DeviceDeviceTypeAkuvoxLock DeviceDeviceType = iota + 1 - DeviceDeviceTypeAugustLock - DeviceDeviceTypeBrivoAccessPoint - DeviceDeviceTypeButterflymxPanel - DeviceDeviceTypeDoorkingLock - DeviceDeviceTypeGenieDoor - DeviceDeviceTypeIglooLock - DeviceDeviceTypeLinearLock - DeviceDeviceTypeLocklyLock - DeviceDeviceTypeKwiksetLock - DeviceDeviceTypeNukiLock - DeviceDeviceTypeSaltoLock - DeviceDeviceTypeSchlageLock - DeviceDeviceTypeSeamRelay - DeviceDeviceTypeSmartthingsLock - DeviceDeviceTypeYaleLock - DeviceDeviceTypeTwoNIntercom - DeviceDeviceTypeControlbywebDevice - DeviceDeviceTypeTtlockLock - DeviceDeviceTypeIgloohomeLock - DeviceDeviceTypeHubitatLock - DeviceDeviceTypeNoiseawareActivityZone - DeviceDeviceTypeMinutSensor - DeviceDeviceTypeEcobeeThermostat - DeviceDeviceTypeNestThermostat -) - -func (d DeviceDeviceType) String() string { - switch d { - default: - return strconv.Itoa(int(d)) - case DeviceDeviceTypeAkuvoxLock: - return "akuvox_lock" - case DeviceDeviceTypeAugustLock: - return "august_lock" - case DeviceDeviceTypeBrivoAccessPoint: - return "brivo_access_point" - case DeviceDeviceTypeButterflymxPanel: - return "butterflymx_panel" - case DeviceDeviceTypeDoorkingLock: - return "doorking_lock" - case DeviceDeviceTypeGenieDoor: - return "genie_door" - case DeviceDeviceTypeIglooLock: - return "igloo_lock" - case DeviceDeviceTypeLinearLock: - return "linear_lock" - case DeviceDeviceTypeLocklyLock: - return "lockly_lock" - case DeviceDeviceTypeKwiksetLock: - return "kwikset_lock" - case DeviceDeviceTypeNukiLock: - return "nuki_lock" - case DeviceDeviceTypeSaltoLock: - return "salto_lock" - case DeviceDeviceTypeSchlageLock: - return "schlage_lock" - case DeviceDeviceTypeSeamRelay: - return "seam_relay" - case DeviceDeviceTypeSmartthingsLock: - return "smartthings_lock" - case DeviceDeviceTypeYaleLock: - return "yale_lock" - case DeviceDeviceTypeTwoNIntercom: - return "two_n_intercom" - case DeviceDeviceTypeControlbywebDevice: - return "controlbyweb_device" - case DeviceDeviceTypeTtlockLock: - return "ttlock_lock" - case DeviceDeviceTypeIgloohomeLock: - return "igloohome_lock" - case DeviceDeviceTypeHubitatLock: - return "hubitat_lock" - case DeviceDeviceTypeNoiseawareActivityZone: - return "noiseaware_activity_zone" - case DeviceDeviceTypeMinutSensor: - return "minut_sensor" - case DeviceDeviceTypeEcobeeThermostat: - return "ecobee_thermostat" - case DeviceDeviceTypeNestThermostat: - return "nest_thermostat" - } -} - -func (d DeviceDeviceType) MarshalJSON() ([]byte, error) { - return []byte(fmt.Sprintf("%q", d.String())), nil -} - -func (d *DeviceDeviceType) UnmarshalJSON(data []byte) error { - var raw string - if err := json.Unmarshal(data, &raw); err != nil { - return err - } - switch raw { - case "akuvox_lock": - value := DeviceDeviceTypeAkuvoxLock - *d = value - case "august_lock": - value := DeviceDeviceTypeAugustLock - *d = value - case "brivo_access_point": - value := DeviceDeviceTypeBrivoAccessPoint - *d = value - case "butterflymx_panel": - value := DeviceDeviceTypeButterflymxPanel - *d = value - case "doorking_lock": - value := DeviceDeviceTypeDoorkingLock - *d = value - case "genie_door": - value := DeviceDeviceTypeGenieDoor - *d = value - case "igloo_lock": - value := DeviceDeviceTypeIglooLock - *d = value - case "linear_lock": - value := DeviceDeviceTypeLinearLock - *d = value - case "lockly_lock": - value := DeviceDeviceTypeLocklyLock - *d = value - case "kwikset_lock": - value := DeviceDeviceTypeKwiksetLock - *d = value - case "nuki_lock": - value := DeviceDeviceTypeNukiLock - *d = value - case "salto_lock": - value := DeviceDeviceTypeSaltoLock - *d = value - case "schlage_lock": - value := DeviceDeviceTypeSchlageLock - *d = value - case "seam_relay": - value := DeviceDeviceTypeSeamRelay - *d = value - case "smartthings_lock": - value := DeviceDeviceTypeSmartthingsLock - *d = value - case "yale_lock": - value := DeviceDeviceTypeYaleLock - *d = value - case "two_n_intercom": - value := DeviceDeviceTypeTwoNIntercom - *d = value - case "controlbyweb_device": - value := DeviceDeviceTypeControlbywebDevice - *d = value - case "ttlock_lock": - value := DeviceDeviceTypeTtlockLock - *d = value - case "igloohome_lock": - value := DeviceDeviceTypeIgloohomeLock - *d = value - case "hubitat_lock": - value := DeviceDeviceTypeHubitatLock - *d = value - case "noiseaware_activity_zone": - value := DeviceDeviceTypeNoiseawareActivityZone - *d = value - case "minut_sensor": - value := DeviceDeviceTypeMinutSensor - *d = value - case "ecobee_thermostat": - value := DeviceDeviceTypeEcobeeThermostat - *d = value - case "nest_thermostat": - value := DeviceDeviceTypeNestThermostat - *d = value - } - return nil -} diff --git a/device_type.go b/device_type.go new file mode 100644 index 0000000..87eac2f --- /dev/null +++ b/device_type.go @@ -0,0 +1,185 @@ +// This file was auto-generated by Fern from our API Definition. + +package api + +import ( + json "encoding/json" + fmt "fmt" + strconv "strconv" +) + +type DeviceType uint8 + +const ( + DeviceTypeAkuvoxLock DeviceType = iota + 1 + DeviceTypeAugustLock + DeviceTypeBrivoAccessPoint + DeviceTypeButterflymxPanel + DeviceTypeDoorkingLock + DeviceTypeGenieDoor + DeviceTypeIglooLock + DeviceTypeLinearLock + DeviceTypeLocklyLock + DeviceTypeKwiksetLock + DeviceTypeNukiLock + DeviceTypeSaltoLock + DeviceTypeSchlageLock + DeviceTypeSeamRelay + DeviceTypeSmartthingsLock + DeviceTypeYaleLock + DeviceTypeTwoNIntercom + DeviceTypeControlbywebDevice + DeviceTypeTtlockLock + DeviceTypeIgloohomeLock + DeviceTypeHubitatLock + DeviceTypeNoiseawareActivityZone + DeviceTypeMinutSensor + DeviceTypeEcobeeThermostat + DeviceTypeNestThermostat +) + +func (d DeviceType) String() string { + switch d { + default: + return strconv.Itoa(int(d)) + case DeviceTypeAkuvoxLock: + return "akuvox_lock" + case DeviceTypeAugustLock: + return "august_lock" + case DeviceTypeBrivoAccessPoint: + return "brivo_access_point" + case DeviceTypeButterflymxPanel: + return "butterflymx_panel" + case DeviceTypeDoorkingLock: + return "doorking_lock" + case DeviceTypeGenieDoor: + return "genie_door" + case DeviceTypeIglooLock: + return "igloo_lock" + case DeviceTypeLinearLock: + return "linear_lock" + case DeviceTypeLocklyLock: + return "lockly_lock" + case DeviceTypeKwiksetLock: + return "kwikset_lock" + case DeviceTypeNukiLock: + return "nuki_lock" + case DeviceTypeSaltoLock: + return "salto_lock" + case DeviceTypeSchlageLock: + return "schlage_lock" + case DeviceTypeSeamRelay: + return "seam_relay" + case DeviceTypeSmartthingsLock: + return "smartthings_lock" + case DeviceTypeYaleLock: + return "yale_lock" + case DeviceTypeTwoNIntercom: + return "two_n_intercom" + case DeviceTypeControlbywebDevice: + return "controlbyweb_device" + case DeviceTypeTtlockLock: + return "ttlock_lock" + case DeviceTypeIgloohomeLock: + return "igloohome_lock" + case DeviceTypeHubitatLock: + return "hubitat_lock" + case DeviceTypeNoiseawareActivityZone: + return "noiseaware_activity_zone" + case DeviceTypeMinutSensor: + return "minut_sensor" + case DeviceTypeEcobeeThermostat: + return "ecobee_thermostat" + case DeviceTypeNestThermostat: + return "nest_thermostat" + } +} + +func (d DeviceType) MarshalJSON() ([]byte, error) { + return []byte(fmt.Sprintf("%q", d.String())), nil +} + +func (d *DeviceType) UnmarshalJSON(data []byte) error { + var raw string + if err := json.Unmarshal(data, &raw); err != nil { + return err + } + switch raw { + case "akuvox_lock": + value := DeviceTypeAkuvoxLock + *d = value + case "august_lock": + value := DeviceTypeAugustLock + *d = value + case "brivo_access_point": + value := DeviceTypeBrivoAccessPoint + *d = value + case "butterflymx_panel": + value := DeviceTypeButterflymxPanel + *d = value + case "doorking_lock": + value := DeviceTypeDoorkingLock + *d = value + case "genie_door": + value := DeviceTypeGenieDoor + *d = value + case "igloo_lock": + value := DeviceTypeIglooLock + *d = value + case "linear_lock": + value := DeviceTypeLinearLock + *d = value + case "lockly_lock": + value := DeviceTypeLocklyLock + *d = value + case "kwikset_lock": + value := DeviceTypeKwiksetLock + *d = value + case "nuki_lock": + value := DeviceTypeNukiLock + *d = value + case "salto_lock": + value := DeviceTypeSaltoLock + *d = value + case "schlage_lock": + value := DeviceTypeSchlageLock + *d = value + case "seam_relay": + value := DeviceTypeSeamRelay + *d = value + case "smartthings_lock": + value := DeviceTypeSmartthingsLock + *d = value + case "yale_lock": + value := DeviceTypeYaleLock + *d = value + case "two_n_intercom": + value := DeviceTypeTwoNIntercom + *d = value + case "controlbyweb_device": + value := DeviceTypeControlbywebDevice + *d = value + case "ttlock_lock": + value := DeviceTypeTtlockLock + *d = value + case "igloohome_lock": + value := DeviceTypeIgloohomeLock + *d = value + case "hubitat_lock": + value := DeviceTypeHubitatLock + *d = value + case "noiseaware_activity_zone": + value := DeviceTypeNoiseawareActivityZone + *d = value + case "minut_sensor": + value := DeviceTypeMinutSensor + *d = value + case "ecobee_thermostat": + value := DeviceTypeEcobeeThermostat + *d = value + case "nest_thermostat": + value := DeviceTypeNestThermostat + *d = value + } + return nil +} diff --git a/devices/unmanaged_list_request.go b/devices/unmanaged_list_request.go index 49131a0..1a32d10 100644 --- a/devices/unmanaged_list_request.go +++ b/devices/unmanaged_list_request.go @@ -9,13 +9,13 @@ import ( // UnmanagedListRequest is an in-lined request used by the List endpoint. type UnmanagedListRequest struct { - ConnectedAccountId *string `json:"connected_account_id,omitempty"` - ConnectedAccountIds *[]string `json:"connected_account_ids,omitempty"` - ConnectWebviewId *string `json:"connect_webview_id,omitempty"` - DeviceType *seamapigo.UnmanagedListRequestDeviceType `json:"device_type,omitempty"` - DeviceTypes *[]seamapigo.UnmanagedListRequestDeviceTypesItem `json:"device_types,omitempty"` - Manufacturer *seamapigo.UnmanagedListRequestManufacturer `json:"manufacturer,omitempty"` - DeviceIds *[]string `json:"device_ids,omitempty"` - Limit *float64 `json:"limit,omitempty"` - CreatedBefore *time.Time `json:"created_before,omitempty"` + ConnectedAccountId *string `json:"connected_account_id,omitempty"` + ConnectedAccountIds *[]string `json:"connected_account_ids,omitempty"` + ConnectWebviewId *string `json:"connect_webview_id,omitempty"` + DeviceType *seamapigo.DeviceType `json:"device_type,omitempty"` + DeviceTypes *[]seamapigo.DeviceType `json:"device_types,omitempty"` + Manufacturer *seamapigo.Manufacturer `json:"manufacturer,omitempty"` + DeviceIds *[]string `json:"device_ids,omitempty"` + Limit *float64 `json:"limit,omitempty"` + CreatedBefore *time.Time `json:"created_before,omitempty"` } diff --git a/devices_list_request.go b/devices_list_request.go index 604c007..2f65a97 100644 --- a/devices_list_request.go +++ b/devices_list_request.go @@ -8,13 +8,13 @@ import ( // DevicesListRequest is an in-lined request used by the List endpoint. type DevicesListRequest struct { - ConnectedAccountId *string `json:"connected_account_id,omitempty"` - ConnectedAccountIds *[]string `json:"connected_account_ids,omitempty"` - ConnectWebviewId *string `json:"connect_webview_id,omitempty"` - DeviceType *DevicesListRequestDeviceType `json:"device_type,omitempty"` - DeviceTypes *[]DevicesListRequestDeviceTypesItem `json:"device_types,omitempty"` - Manufacturer *DevicesListRequestManufacturer `json:"manufacturer,omitempty"` - DeviceIds *[]string `json:"device_ids,omitempty"` - Limit *float64 `json:"limit,omitempty"` - CreatedBefore *time.Time `json:"created_before,omitempty"` + ConnectedAccountId *string `json:"connected_account_id,omitempty"` + ConnectedAccountIds *[]string `json:"connected_account_ids,omitempty"` + ConnectWebviewId *string `json:"connect_webview_id,omitempty"` + DeviceType *DeviceType `json:"device_type,omitempty"` + DeviceTypes *[]DeviceType `json:"device_types,omitempty"` + Manufacturer *Manufacturer `json:"manufacturer,omitempty"` + DeviceIds *[]string `json:"device_ids,omitempty"` + Limit *float64 `json:"limit,omitempty"` + CreatedBefore *time.Time `json:"created_before,omitempty"` } diff --git a/devices_list_request_device_type.go b/devices_list_request_device_type.go deleted file mode 100644 index f8961f1..0000000 --- a/devices_list_request_device_type.go +++ /dev/null @@ -1,185 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -package api - -import ( - json "encoding/json" - fmt "fmt" - strconv "strconv" -) - -type DevicesListRequestDeviceType uint8 - -const ( - DevicesListRequestDeviceTypeAkuvoxLock DevicesListRequestDeviceType = iota + 1 - DevicesListRequestDeviceTypeAugustLock - DevicesListRequestDeviceTypeBrivoAccessPoint - DevicesListRequestDeviceTypeButterflymxPanel - DevicesListRequestDeviceTypeDoorkingLock - DevicesListRequestDeviceTypeGenieDoor - DevicesListRequestDeviceTypeIglooLock - DevicesListRequestDeviceTypeLinearLock - DevicesListRequestDeviceTypeLocklyLock - DevicesListRequestDeviceTypeKwiksetLock - DevicesListRequestDeviceTypeNukiLock - DevicesListRequestDeviceTypeSaltoLock - DevicesListRequestDeviceTypeSchlageLock - DevicesListRequestDeviceTypeSeamRelay - DevicesListRequestDeviceTypeSmartthingsLock - DevicesListRequestDeviceTypeYaleLock - DevicesListRequestDeviceTypeTwoNIntercom - DevicesListRequestDeviceTypeControlbywebDevice - DevicesListRequestDeviceTypeTtlockLock - DevicesListRequestDeviceTypeIgloohomeLock - DevicesListRequestDeviceTypeHubitatLock - DevicesListRequestDeviceTypeNoiseawareActivityZone - DevicesListRequestDeviceTypeMinutSensor - DevicesListRequestDeviceTypeEcobeeThermostat - DevicesListRequestDeviceTypeNestThermostat -) - -func (d DevicesListRequestDeviceType) String() string { - switch d { - default: - return strconv.Itoa(int(d)) - case DevicesListRequestDeviceTypeAkuvoxLock: - return "akuvox_lock" - case DevicesListRequestDeviceTypeAugustLock: - return "august_lock" - case DevicesListRequestDeviceTypeBrivoAccessPoint: - return "brivo_access_point" - case DevicesListRequestDeviceTypeButterflymxPanel: - return "butterflymx_panel" - case DevicesListRequestDeviceTypeDoorkingLock: - return "doorking_lock" - case DevicesListRequestDeviceTypeGenieDoor: - return "genie_door" - case DevicesListRequestDeviceTypeIglooLock: - return "igloo_lock" - case DevicesListRequestDeviceTypeLinearLock: - return "linear_lock" - case DevicesListRequestDeviceTypeLocklyLock: - return "lockly_lock" - case DevicesListRequestDeviceTypeKwiksetLock: - return "kwikset_lock" - case DevicesListRequestDeviceTypeNukiLock: - return "nuki_lock" - case DevicesListRequestDeviceTypeSaltoLock: - return "salto_lock" - case DevicesListRequestDeviceTypeSchlageLock: - return "schlage_lock" - case DevicesListRequestDeviceTypeSeamRelay: - return "seam_relay" - case DevicesListRequestDeviceTypeSmartthingsLock: - return "smartthings_lock" - case DevicesListRequestDeviceTypeYaleLock: - return "yale_lock" - case DevicesListRequestDeviceTypeTwoNIntercom: - return "two_n_intercom" - case DevicesListRequestDeviceTypeControlbywebDevice: - return "controlbyweb_device" - case DevicesListRequestDeviceTypeTtlockLock: - return "ttlock_lock" - case DevicesListRequestDeviceTypeIgloohomeLock: - return "igloohome_lock" - case DevicesListRequestDeviceTypeHubitatLock: - return "hubitat_lock" - case DevicesListRequestDeviceTypeNoiseawareActivityZone: - return "noiseaware_activity_zone" - case DevicesListRequestDeviceTypeMinutSensor: - return "minut_sensor" - case DevicesListRequestDeviceTypeEcobeeThermostat: - return "ecobee_thermostat" - case DevicesListRequestDeviceTypeNestThermostat: - return "nest_thermostat" - } -} - -func (d DevicesListRequestDeviceType) MarshalJSON() ([]byte, error) { - return []byte(fmt.Sprintf("%q", d.String())), nil -} - -func (d *DevicesListRequestDeviceType) UnmarshalJSON(data []byte) error { - var raw string - if err := json.Unmarshal(data, &raw); err != nil { - return err - } - switch raw { - case "akuvox_lock": - value := DevicesListRequestDeviceTypeAkuvoxLock - *d = value - case "august_lock": - value := DevicesListRequestDeviceTypeAugustLock - *d = value - case "brivo_access_point": - value := DevicesListRequestDeviceTypeBrivoAccessPoint - *d = value - case "butterflymx_panel": - value := DevicesListRequestDeviceTypeButterflymxPanel - *d = value - case "doorking_lock": - value := DevicesListRequestDeviceTypeDoorkingLock - *d = value - case "genie_door": - value := DevicesListRequestDeviceTypeGenieDoor - *d = value - case "igloo_lock": - value := DevicesListRequestDeviceTypeIglooLock - *d = value - case "linear_lock": - value := DevicesListRequestDeviceTypeLinearLock - *d = value - case "lockly_lock": - value := DevicesListRequestDeviceTypeLocklyLock - *d = value - case "kwikset_lock": - value := DevicesListRequestDeviceTypeKwiksetLock - *d = value - case "nuki_lock": - value := DevicesListRequestDeviceTypeNukiLock - *d = value - case "salto_lock": - value := DevicesListRequestDeviceTypeSaltoLock - *d = value - case "schlage_lock": - value := DevicesListRequestDeviceTypeSchlageLock - *d = value - case "seam_relay": - value := DevicesListRequestDeviceTypeSeamRelay - *d = value - case "smartthings_lock": - value := DevicesListRequestDeviceTypeSmartthingsLock - *d = value - case "yale_lock": - value := DevicesListRequestDeviceTypeYaleLock - *d = value - case "two_n_intercom": - value := DevicesListRequestDeviceTypeTwoNIntercom - *d = value - case "controlbyweb_device": - value := DevicesListRequestDeviceTypeControlbywebDevice - *d = value - case "ttlock_lock": - value := DevicesListRequestDeviceTypeTtlockLock - *d = value - case "igloohome_lock": - value := DevicesListRequestDeviceTypeIgloohomeLock - *d = value - case "hubitat_lock": - value := DevicesListRequestDeviceTypeHubitatLock - *d = value - case "noiseaware_activity_zone": - value := DevicesListRequestDeviceTypeNoiseawareActivityZone - *d = value - case "minut_sensor": - value := DevicesListRequestDeviceTypeMinutSensor - *d = value - case "ecobee_thermostat": - value := DevicesListRequestDeviceTypeEcobeeThermostat - *d = value - case "nest_thermostat": - value := DevicesListRequestDeviceTypeNestThermostat - *d = value - } - return nil -} diff --git a/devices_list_request_device_types_item.go b/devices_list_request_device_types_item.go deleted file mode 100644 index 9194b76..0000000 --- a/devices_list_request_device_types_item.go +++ /dev/null @@ -1,185 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -package api - -import ( - json "encoding/json" - fmt "fmt" - strconv "strconv" -) - -type DevicesListRequestDeviceTypesItem uint8 - -const ( - DevicesListRequestDeviceTypesItemAkuvoxLock DevicesListRequestDeviceTypesItem = iota + 1 - DevicesListRequestDeviceTypesItemAugustLock - DevicesListRequestDeviceTypesItemBrivoAccessPoint - DevicesListRequestDeviceTypesItemButterflymxPanel - DevicesListRequestDeviceTypesItemDoorkingLock - DevicesListRequestDeviceTypesItemGenieDoor - DevicesListRequestDeviceTypesItemIglooLock - DevicesListRequestDeviceTypesItemLinearLock - DevicesListRequestDeviceTypesItemLocklyLock - DevicesListRequestDeviceTypesItemKwiksetLock - DevicesListRequestDeviceTypesItemNukiLock - DevicesListRequestDeviceTypesItemSaltoLock - DevicesListRequestDeviceTypesItemSchlageLock - DevicesListRequestDeviceTypesItemSeamRelay - DevicesListRequestDeviceTypesItemSmartthingsLock - DevicesListRequestDeviceTypesItemYaleLock - DevicesListRequestDeviceTypesItemTwoNIntercom - DevicesListRequestDeviceTypesItemControlbywebDevice - DevicesListRequestDeviceTypesItemTtlockLock - DevicesListRequestDeviceTypesItemIgloohomeLock - DevicesListRequestDeviceTypesItemHubitatLock - DevicesListRequestDeviceTypesItemNoiseawareActivityZone - DevicesListRequestDeviceTypesItemMinutSensor - DevicesListRequestDeviceTypesItemEcobeeThermostat - DevicesListRequestDeviceTypesItemNestThermostat -) - -func (d DevicesListRequestDeviceTypesItem) String() string { - switch d { - default: - return strconv.Itoa(int(d)) - case DevicesListRequestDeviceTypesItemAkuvoxLock: - return "akuvox_lock" - case DevicesListRequestDeviceTypesItemAugustLock: - return "august_lock" - case DevicesListRequestDeviceTypesItemBrivoAccessPoint: - return "brivo_access_point" - case DevicesListRequestDeviceTypesItemButterflymxPanel: - return "butterflymx_panel" - case DevicesListRequestDeviceTypesItemDoorkingLock: - return "doorking_lock" - case DevicesListRequestDeviceTypesItemGenieDoor: - return "genie_door" - case DevicesListRequestDeviceTypesItemIglooLock: - return "igloo_lock" - case DevicesListRequestDeviceTypesItemLinearLock: - return "linear_lock" - case DevicesListRequestDeviceTypesItemLocklyLock: - return "lockly_lock" - case DevicesListRequestDeviceTypesItemKwiksetLock: - return "kwikset_lock" - case DevicesListRequestDeviceTypesItemNukiLock: - return "nuki_lock" - case DevicesListRequestDeviceTypesItemSaltoLock: - return "salto_lock" - case DevicesListRequestDeviceTypesItemSchlageLock: - return "schlage_lock" - case DevicesListRequestDeviceTypesItemSeamRelay: - return "seam_relay" - case DevicesListRequestDeviceTypesItemSmartthingsLock: - return "smartthings_lock" - case DevicesListRequestDeviceTypesItemYaleLock: - return "yale_lock" - case DevicesListRequestDeviceTypesItemTwoNIntercom: - return "two_n_intercom" - case DevicesListRequestDeviceTypesItemControlbywebDevice: - return "controlbyweb_device" - case DevicesListRequestDeviceTypesItemTtlockLock: - return "ttlock_lock" - case DevicesListRequestDeviceTypesItemIgloohomeLock: - return "igloohome_lock" - case DevicesListRequestDeviceTypesItemHubitatLock: - return "hubitat_lock" - case DevicesListRequestDeviceTypesItemNoiseawareActivityZone: - return "noiseaware_activity_zone" - case DevicesListRequestDeviceTypesItemMinutSensor: - return "minut_sensor" - case DevicesListRequestDeviceTypesItemEcobeeThermostat: - return "ecobee_thermostat" - case DevicesListRequestDeviceTypesItemNestThermostat: - return "nest_thermostat" - } -} - -func (d DevicesListRequestDeviceTypesItem) MarshalJSON() ([]byte, error) { - return []byte(fmt.Sprintf("%q", d.String())), nil -} - -func (d *DevicesListRequestDeviceTypesItem) UnmarshalJSON(data []byte) error { - var raw string - if err := json.Unmarshal(data, &raw); err != nil { - return err - } - switch raw { - case "akuvox_lock": - value := DevicesListRequestDeviceTypesItemAkuvoxLock - *d = value - case "august_lock": - value := DevicesListRequestDeviceTypesItemAugustLock - *d = value - case "brivo_access_point": - value := DevicesListRequestDeviceTypesItemBrivoAccessPoint - *d = value - case "butterflymx_panel": - value := DevicesListRequestDeviceTypesItemButterflymxPanel - *d = value - case "doorking_lock": - value := DevicesListRequestDeviceTypesItemDoorkingLock - *d = value - case "genie_door": - value := DevicesListRequestDeviceTypesItemGenieDoor - *d = value - case "igloo_lock": - value := DevicesListRequestDeviceTypesItemIglooLock - *d = value - case "linear_lock": - value := DevicesListRequestDeviceTypesItemLinearLock - *d = value - case "lockly_lock": - value := DevicesListRequestDeviceTypesItemLocklyLock - *d = value - case "kwikset_lock": - value := DevicesListRequestDeviceTypesItemKwiksetLock - *d = value - case "nuki_lock": - value := DevicesListRequestDeviceTypesItemNukiLock - *d = value - case "salto_lock": - value := DevicesListRequestDeviceTypesItemSaltoLock - *d = value - case "schlage_lock": - value := DevicesListRequestDeviceTypesItemSchlageLock - *d = value - case "seam_relay": - value := DevicesListRequestDeviceTypesItemSeamRelay - *d = value - case "smartthings_lock": - value := DevicesListRequestDeviceTypesItemSmartthingsLock - *d = value - case "yale_lock": - value := DevicesListRequestDeviceTypesItemYaleLock - *d = value - case "two_n_intercom": - value := DevicesListRequestDeviceTypesItemTwoNIntercom - *d = value - case "controlbyweb_device": - value := DevicesListRequestDeviceTypesItemControlbywebDevice - *d = value - case "ttlock_lock": - value := DevicesListRequestDeviceTypesItemTtlockLock - *d = value - case "igloohome_lock": - value := DevicesListRequestDeviceTypesItemIgloohomeLock - *d = value - case "hubitat_lock": - value := DevicesListRequestDeviceTypesItemHubitatLock - *d = value - case "noiseaware_activity_zone": - value := DevicesListRequestDeviceTypesItemNoiseawareActivityZone - *d = value - case "minut_sensor": - value := DevicesListRequestDeviceTypesItemMinutSensor - *d = value - case "ecobee_thermostat": - value := DevicesListRequestDeviceTypesItemEcobeeThermostat - *d = value - case "nest_thermostat": - value := DevicesListRequestDeviceTypesItemNestThermostat - *d = value - } - return nil -} diff --git a/devices_list_request_manufacturer.go b/devices_list_request_manufacturer.go deleted file mode 100644 index cd5d807..0000000 --- a/devices_list_request_manufacturer.go +++ /dev/null @@ -1,191 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -package api - -import ( - json "encoding/json" - fmt "fmt" - strconv "strconv" -) - -type DevicesListRequestManufacturer uint8 - -const ( - DevicesListRequestManufacturerAkuvox DevicesListRequestManufacturer = iota + 1 - DevicesListRequestManufacturerAugust - DevicesListRequestManufacturerBrivo - DevicesListRequestManufacturerButterflymx - DevicesListRequestManufacturerDoorking - DevicesListRequestManufacturerGenie - DevicesListRequestManufacturerIgloo - DevicesListRequestManufacturerKeywe - DevicesListRequestManufacturerKwikset - DevicesListRequestManufacturerLinear - DevicesListRequestManufacturerLockly - DevicesListRequestManufacturerNuki - DevicesListRequestManufacturerPhilia - DevicesListRequestManufacturerSalto - DevicesListRequestManufacturerSamsung - DevicesListRequestManufacturerSchlage - DevicesListRequestManufacturerSeam - DevicesListRequestManufacturerUnknown - DevicesListRequestManufacturerYale - DevicesListRequestManufacturerMinut - DevicesListRequestManufacturerTwoN - DevicesListRequestManufacturerTtlock - DevicesListRequestManufacturerNest - DevicesListRequestManufacturerIgloohome - DevicesListRequestManufacturerEcobee - DevicesListRequestManufacturerHubitat -) - -func (d DevicesListRequestManufacturer) String() string { - switch d { - default: - return strconv.Itoa(int(d)) - case DevicesListRequestManufacturerAkuvox: - return "akuvox" - case DevicesListRequestManufacturerAugust: - return "august" - case DevicesListRequestManufacturerBrivo: - return "brivo" - case DevicesListRequestManufacturerButterflymx: - return "butterflymx" - case DevicesListRequestManufacturerDoorking: - return "doorking" - case DevicesListRequestManufacturerGenie: - return "genie" - case DevicesListRequestManufacturerIgloo: - return "igloo" - case DevicesListRequestManufacturerKeywe: - return "keywe" - case DevicesListRequestManufacturerKwikset: - return "kwikset" - case DevicesListRequestManufacturerLinear: - return "linear" - case DevicesListRequestManufacturerLockly: - return "lockly" - case DevicesListRequestManufacturerNuki: - return "nuki" - case DevicesListRequestManufacturerPhilia: - return "philia" - case DevicesListRequestManufacturerSalto: - return "salto" - case DevicesListRequestManufacturerSamsung: - return "samsung" - case DevicesListRequestManufacturerSchlage: - return "schlage" - case DevicesListRequestManufacturerSeam: - return "seam" - case DevicesListRequestManufacturerUnknown: - return "unknown" - case DevicesListRequestManufacturerYale: - return "yale" - case DevicesListRequestManufacturerMinut: - return "minut" - case DevicesListRequestManufacturerTwoN: - return "two_n" - case DevicesListRequestManufacturerTtlock: - return "ttlock" - case DevicesListRequestManufacturerNest: - return "nest" - case DevicesListRequestManufacturerIgloohome: - return "igloohome" - case DevicesListRequestManufacturerEcobee: - return "ecobee" - case DevicesListRequestManufacturerHubitat: - return "hubitat" - } -} - -func (d DevicesListRequestManufacturer) MarshalJSON() ([]byte, error) { - return []byte(fmt.Sprintf("%q", d.String())), nil -} - -func (d *DevicesListRequestManufacturer) UnmarshalJSON(data []byte) error { - var raw string - if err := json.Unmarshal(data, &raw); err != nil { - return err - } - switch raw { - case "akuvox": - value := DevicesListRequestManufacturerAkuvox - *d = value - case "august": - value := DevicesListRequestManufacturerAugust - *d = value - case "brivo": - value := DevicesListRequestManufacturerBrivo - *d = value - case "butterflymx": - value := DevicesListRequestManufacturerButterflymx - *d = value - case "doorking": - value := DevicesListRequestManufacturerDoorking - *d = value - case "genie": - value := DevicesListRequestManufacturerGenie - *d = value - case "igloo": - value := DevicesListRequestManufacturerIgloo - *d = value - case "keywe": - value := DevicesListRequestManufacturerKeywe - *d = value - case "kwikset": - value := DevicesListRequestManufacturerKwikset - *d = value - case "linear": - value := DevicesListRequestManufacturerLinear - *d = value - case "lockly": - value := DevicesListRequestManufacturerLockly - *d = value - case "nuki": - value := DevicesListRequestManufacturerNuki - *d = value - case "philia": - value := DevicesListRequestManufacturerPhilia - *d = value - case "salto": - value := DevicesListRequestManufacturerSalto - *d = value - case "samsung": - value := DevicesListRequestManufacturerSamsung - *d = value - case "schlage": - value := DevicesListRequestManufacturerSchlage - *d = value - case "seam": - value := DevicesListRequestManufacturerSeam - *d = value - case "unknown": - value := DevicesListRequestManufacturerUnknown - *d = value - case "yale": - value := DevicesListRequestManufacturerYale - *d = value - case "minut": - value := DevicesListRequestManufacturerMinut - *d = value - case "two_n": - value := DevicesListRequestManufacturerTwoN - *d = value - case "ttlock": - value := DevicesListRequestManufacturerTtlock - *d = value - case "nest": - value := DevicesListRequestManufacturerNest - *d = value - case "igloohome": - value := DevicesListRequestManufacturerIgloohome - *d = value - case "ecobee": - value := DevicesListRequestManufacturerEcobee - *d = value - case "hubitat": - value := DevicesListRequestManufacturerHubitat - *d = value - } - return nil -} diff --git a/locks_list_request.go b/locks_list_request.go index 3059dd1..53dcded 100644 --- a/locks_list_request.go +++ b/locks_list_request.go @@ -8,13 +8,13 @@ import ( // LocksListRequest is an in-lined request used by the List endpoint. type LocksListRequest struct { - ConnectedAccountId *string `json:"connected_account_id,omitempty"` - ConnectedAccountIds *[]string `json:"connected_account_ids,omitempty"` - ConnectWebviewId *string `json:"connect_webview_id,omitempty"` - DeviceType *LocksListRequestDeviceType `json:"device_type,omitempty"` - DeviceTypes *[]LocksListRequestDeviceTypesItem `json:"device_types,omitempty"` - Manufacturer *LocksListRequestManufacturer `json:"manufacturer,omitempty"` - DeviceIds *[]string `json:"device_ids,omitempty"` - Limit *float64 `json:"limit,omitempty"` - CreatedBefore *time.Time `json:"created_before,omitempty"` + ConnectedAccountId *string `json:"connected_account_id,omitempty"` + ConnectedAccountIds *[]string `json:"connected_account_ids,omitempty"` + ConnectWebviewId *string `json:"connect_webview_id,omitempty"` + DeviceType *DeviceType `json:"device_type,omitempty"` + DeviceTypes *[]DeviceType `json:"device_types,omitempty"` + Manufacturer *Manufacturer `json:"manufacturer,omitempty"` + DeviceIds *[]string `json:"device_ids,omitempty"` + Limit *float64 `json:"limit,omitempty"` + CreatedBefore *time.Time `json:"created_before,omitempty"` } diff --git a/locks_list_request_device_type.go b/locks_list_request_device_type.go deleted file mode 100644 index d1c2ab1..0000000 --- a/locks_list_request_device_type.go +++ /dev/null @@ -1,185 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -package api - -import ( - json "encoding/json" - fmt "fmt" - strconv "strconv" -) - -type LocksListRequestDeviceType uint8 - -const ( - LocksListRequestDeviceTypeAkuvoxLock LocksListRequestDeviceType = iota + 1 - LocksListRequestDeviceTypeAugustLock - LocksListRequestDeviceTypeBrivoAccessPoint - LocksListRequestDeviceTypeButterflymxPanel - LocksListRequestDeviceTypeDoorkingLock - LocksListRequestDeviceTypeGenieDoor - LocksListRequestDeviceTypeIglooLock - LocksListRequestDeviceTypeLinearLock - LocksListRequestDeviceTypeLocklyLock - LocksListRequestDeviceTypeKwiksetLock - LocksListRequestDeviceTypeNukiLock - LocksListRequestDeviceTypeSaltoLock - LocksListRequestDeviceTypeSchlageLock - LocksListRequestDeviceTypeSeamRelay - LocksListRequestDeviceTypeSmartthingsLock - LocksListRequestDeviceTypeYaleLock - LocksListRequestDeviceTypeTwoNIntercom - LocksListRequestDeviceTypeControlbywebDevice - LocksListRequestDeviceTypeTtlockLock - LocksListRequestDeviceTypeIgloohomeLock - LocksListRequestDeviceTypeHubitatLock - LocksListRequestDeviceTypeNoiseawareActivityZone - LocksListRequestDeviceTypeMinutSensor - LocksListRequestDeviceTypeEcobeeThermostat - LocksListRequestDeviceTypeNestThermostat -) - -func (l LocksListRequestDeviceType) String() string { - switch l { - default: - return strconv.Itoa(int(l)) - case LocksListRequestDeviceTypeAkuvoxLock: - return "akuvox_lock" - case LocksListRequestDeviceTypeAugustLock: - return "august_lock" - case LocksListRequestDeviceTypeBrivoAccessPoint: - return "brivo_access_point" - case LocksListRequestDeviceTypeButterflymxPanel: - return "butterflymx_panel" - case LocksListRequestDeviceTypeDoorkingLock: - return "doorking_lock" - case LocksListRequestDeviceTypeGenieDoor: - return "genie_door" - case LocksListRequestDeviceTypeIglooLock: - return "igloo_lock" - case LocksListRequestDeviceTypeLinearLock: - return "linear_lock" - case LocksListRequestDeviceTypeLocklyLock: - return "lockly_lock" - case LocksListRequestDeviceTypeKwiksetLock: - return "kwikset_lock" - case LocksListRequestDeviceTypeNukiLock: - return "nuki_lock" - case LocksListRequestDeviceTypeSaltoLock: - return "salto_lock" - case LocksListRequestDeviceTypeSchlageLock: - return "schlage_lock" - case LocksListRequestDeviceTypeSeamRelay: - return "seam_relay" - case LocksListRequestDeviceTypeSmartthingsLock: - return "smartthings_lock" - case LocksListRequestDeviceTypeYaleLock: - return "yale_lock" - case LocksListRequestDeviceTypeTwoNIntercom: - return "two_n_intercom" - case LocksListRequestDeviceTypeControlbywebDevice: - return "controlbyweb_device" - case LocksListRequestDeviceTypeTtlockLock: - return "ttlock_lock" - case LocksListRequestDeviceTypeIgloohomeLock: - return "igloohome_lock" - case LocksListRequestDeviceTypeHubitatLock: - return "hubitat_lock" - case LocksListRequestDeviceTypeNoiseawareActivityZone: - return "noiseaware_activity_zone" - case LocksListRequestDeviceTypeMinutSensor: - return "minut_sensor" - case LocksListRequestDeviceTypeEcobeeThermostat: - return "ecobee_thermostat" - case LocksListRequestDeviceTypeNestThermostat: - return "nest_thermostat" - } -} - -func (l LocksListRequestDeviceType) MarshalJSON() ([]byte, error) { - return []byte(fmt.Sprintf("%q", l.String())), nil -} - -func (l *LocksListRequestDeviceType) UnmarshalJSON(data []byte) error { - var raw string - if err := json.Unmarshal(data, &raw); err != nil { - return err - } - switch raw { - case "akuvox_lock": - value := LocksListRequestDeviceTypeAkuvoxLock - *l = value - case "august_lock": - value := LocksListRequestDeviceTypeAugustLock - *l = value - case "brivo_access_point": - value := LocksListRequestDeviceTypeBrivoAccessPoint - *l = value - case "butterflymx_panel": - value := LocksListRequestDeviceTypeButterflymxPanel - *l = value - case "doorking_lock": - value := LocksListRequestDeviceTypeDoorkingLock - *l = value - case "genie_door": - value := LocksListRequestDeviceTypeGenieDoor - *l = value - case "igloo_lock": - value := LocksListRequestDeviceTypeIglooLock - *l = value - case "linear_lock": - value := LocksListRequestDeviceTypeLinearLock - *l = value - case "lockly_lock": - value := LocksListRequestDeviceTypeLocklyLock - *l = value - case "kwikset_lock": - value := LocksListRequestDeviceTypeKwiksetLock - *l = value - case "nuki_lock": - value := LocksListRequestDeviceTypeNukiLock - *l = value - case "salto_lock": - value := LocksListRequestDeviceTypeSaltoLock - *l = value - case "schlage_lock": - value := LocksListRequestDeviceTypeSchlageLock - *l = value - case "seam_relay": - value := LocksListRequestDeviceTypeSeamRelay - *l = value - case "smartthings_lock": - value := LocksListRequestDeviceTypeSmartthingsLock - *l = value - case "yale_lock": - value := LocksListRequestDeviceTypeYaleLock - *l = value - case "two_n_intercom": - value := LocksListRequestDeviceTypeTwoNIntercom - *l = value - case "controlbyweb_device": - value := LocksListRequestDeviceTypeControlbywebDevice - *l = value - case "ttlock_lock": - value := LocksListRequestDeviceTypeTtlockLock - *l = value - case "igloohome_lock": - value := LocksListRequestDeviceTypeIgloohomeLock - *l = value - case "hubitat_lock": - value := LocksListRequestDeviceTypeHubitatLock - *l = value - case "noiseaware_activity_zone": - value := LocksListRequestDeviceTypeNoiseawareActivityZone - *l = value - case "minut_sensor": - value := LocksListRequestDeviceTypeMinutSensor - *l = value - case "ecobee_thermostat": - value := LocksListRequestDeviceTypeEcobeeThermostat - *l = value - case "nest_thermostat": - value := LocksListRequestDeviceTypeNestThermostat - *l = value - } - return nil -} diff --git a/locks_list_request_device_types_item.go b/locks_list_request_device_types_item.go deleted file mode 100644 index 9256a07..0000000 --- a/locks_list_request_device_types_item.go +++ /dev/null @@ -1,185 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -package api - -import ( - json "encoding/json" - fmt "fmt" - strconv "strconv" -) - -type LocksListRequestDeviceTypesItem uint8 - -const ( - LocksListRequestDeviceTypesItemAkuvoxLock LocksListRequestDeviceTypesItem = iota + 1 - LocksListRequestDeviceTypesItemAugustLock - LocksListRequestDeviceTypesItemBrivoAccessPoint - LocksListRequestDeviceTypesItemButterflymxPanel - LocksListRequestDeviceTypesItemDoorkingLock - LocksListRequestDeviceTypesItemGenieDoor - LocksListRequestDeviceTypesItemIglooLock - LocksListRequestDeviceTypesItemLinearLock - LocksListRequestDeviceTypesItemLocklyLock - LocksListRequestDeviceTypesItemKwiksetLock - LocksListRequestDeviceTypesItemNukiLock - LocksListRequestDeviceTypesItemSaltoLock - LocksListRequestDeviceTypesItemSchlageLock - LocksListRequestDeviceTypesItemSeamRelay - LocksListRequestDeviceTypesItemSmartthingsLock - LocksListRequestDeviceTypesItemYaleLock - LocksListRequestDeviceTypesItemTwoNIntercom - LocksListRequestDeviceTypesItemControlbywebDevice - LocksListRequestDeviceTypesItemTtlockLock - LocksListRequestDeviceTypesItemIgloohomeLock - LocksListRequestDeviceTypesItemHubitatLock - LocksListRequestDeviceTypesItemNoiseawareActivityZone - LocksListRequestDeviceTypesItemMinutSensor - LocksListRequestDeviceTypesItemEcobeeThermostat - LocksListRequestDeviceTypesItemNestThermostat -) - -func (l LocksListRequestDeviceTypesItem) String() string { - switch l { - default: - return strconv.Itoa(int(l)) - case LocksListRequestDeviceTypesItemAkuvoxLock: - return "akuvox_lock" - case LocksListRequestDeviceTypesItemAugustLock: - return "august_lock" - case LocksListRequestDeviceTypesItemBrivoAccessPoint: - return "brivo_access_point" - case LocksListRequestDeviceTypesItemButterflymxPanel: - return "butterflymx_panel" - case LocksListRequestDeviceTypesItemDoorkingLock: - return "doorking_lock" - case LocksListRequestDeviceTypesItemGenieDoor: - return "genie_door" - case LocksListRequestDeviceTypesItemIglooLock: - return "igloo_lock" - case LocksListRequestDeviceTypesItemLinearLock: - return "linear_lock" - case LocksListRequestDeviceTypesItemLocklyLock: - return "lockly_lock" - case LocksListRequestDeviceTypesItemKwiksetLock: - return "kwikset_lock" - case LocksListRequestDeviceTypesItemNukiLock: - return "nuki_lock" - case LocksListRequestDeviceTypesItemSaltoLock: - return "salto_lock" - case LocksListRequestDeviceTypesItemSchlageLock: - return "schlage_lock" - case LocksListRequestDeviceTypesItemSeamRelay: - return "seam_relay" - case LocksListRequestDeviceTypesItemSmartthingsLock: - return "smartthings_lock" - case LocksListRequestDeviceTypesItemYaleLock: - return "yale_lock" - case LocksListRequestDeviceTypesItemTwoNIntercom: - return "two_n_intercom" - case LocksListRequestDeviceTypesItemControlbywebDevice: - return "controlbyweb_device" - case LocksListRequestDeviceTypesItemTtlockLock: - return "ttlock_lock" - case LocksListRequestDeviceTypesItemIgloohomeLock: - return "igloohome_lock" - case LocksListRequestDeviceTypesItemHubitatLock: - return "hubitat_lock" - case LocksListRequestDeviceTypesItemNoiseawareActivityZone: - return "noiseaware_activity_zone" - case LocksListRequestDeviceTypesItemMinutSensor: - return "minut_sensor" - case LocksListRequestDeviceTypesItemEcobeeThermostat: - return "ecobee_thermostat" - case LocksListRequestDeviceTypesItemNestThermostat: - return "nest_thermostat" - } -} - -func (l LocksListRequestDeviceTypesItem) MarshalJSON() ([]byte, error) { - return []byte(fmt.Sprintf("%q", l.String())), nil -} - -func (l *LocksListRequestDeviceTypesItem) UnmarshalJSON(data []byte) error { - var raw string - if err := json.Unmarshal(data, &raw); err != nil { - return err - } - switch raw { - case "akuvox_lock": - value := LocksListRequestDeviceTypesItemAkuvoxLock - *l = value - case "august_lock": - value := LocksListRequestDeviceTypesItemAugustLock - *l = value - case "brivo_access_point": - value := LocksListRequestDeviceTypesItemBrivoAccessPoint - *l = value - case "butterflymx_panel": - value := LocksListRequestDeviceTypesItemButterflymxPanel - *l = value - case "doorking_lock": - value := LocksListRequestDeviceTypesItemDoorkingLock - *l = value - case "genie_door": - value := LocksListRequestDeviceTypesItemGenieDoor - *l = value - case "igloo_lock": - value := LocksListRequestDeviceTypesItemIglooLock - *l = value - case "linear_lock": - value := LocksListRequestDeviceTypesItemLinearLock - *l = value - case "lockly_lock": - value := LocksListRequestDeviceTypesItemLocklyLock - *l = value - case "kwikset_lock": - value := LocksListRequestDeviceTypesItemKwiksetLock - *l = value - case "nuki_lock": - value := LocksListRequestDeviceTypesItemNukiLock - *l = value - case "salto_lock": - value := LocksListRequestDeviceTypesItemSaltoLock - *l = value - case "schlage_lock": - value := LocksListRequestDeviceTypesItemSchlageLock - *l = value - case "seam_relay": - value := LocksListRequestDeviceTypesItemSeamRelay - *l = value - case "smartthings_lock": - value := LocksListRequestDeviceTypesItemSmartthingsLock - *l = value - case "yale_lock": - value := LocksListRequestDeviceTypesItemYaleLock - *l = value - case "two_n_intercom": - value := LocksListRequestDeviceTypesItemTwoNIntercom - *l = value - case "controlbyweb_device": - value := LocksListRequestDeviceTypesItemControlbywebDevice - *l = value - case "ttlock_lock": - value := LocksListRequestDeviceTypesItemTtlockLock - *l = value - case "igloohome_lock": - value := LocksListRequestDeviceTypesItemIgloohomeLock - *l = value - case "hubitat_lock": - value := LocksListRequestDeviceTypesItemHubitatLock - *l = value - case "noiseaware_activity_zone": - value := LocksListRequestDeviceTypesItemNoiseawareActivityZone - *l = value - case "minut_sensor": - value := LocksListRequestDeviceTypesItemMinutSensor - *l = value - case "ecobee_thermostat": - value := LocksListRequestDeviceTypesItemEcobeeThermostat - *l = value - case "nest_thermostat": - value := LocksListRequestDeviceTypesItemNestThermostat - *l = value - } - return nil -} diff --git a/locks_list_request_manufacturer.go b/locks_list_request_manufacturer.go deleted file mode 100644 index 1d28734..0000000 --- a/locks_list_request_manufacturer.go +++ /dev/null @@ -1,191 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -package api - -import ( - json "encoding/json" - fmt "fmt" - strconv "strconv" -) - -type LocksListRequestManufacturer uint8 - -const ( - LocksListRequestManufacturerAkuvox LocksListRequestManufacturer = iota + 1 - LocksListRequestManufacturerAugust - LocksListRequestManufacturerBrivo - LocksListRequestManufacturerButterflymx - LocksListRequestManufacturerDoorking - LocksListRequestManufacturerGenie - LocksListRequestManufacturerIgloo - LocksListRequestManufacturerKeywe - LocksListRequestManufacturerKwikset - LocksListRequestManufacturerLinear - LocksListRequestManufacturerLockly - LocksListRequestManufacturerNuki - LocksListRequestManufacturerPhilia - LocksListRequestManufacturerSalto - LocksListRequestManufacturerSamsung - LocksListRequestManufacturerSchlage - LocksListRequestManufacturerSeam - LocksListRequestManufacturerUnknown - LocksListRequestManufacturerYale - LocksListRequestManufacturerMinut - LocksListRequestManufacturerTwoN - LocksListRequestManufacturerTtlock - LocksListRequestManufacturerNest - LocksListRequestManufacturerIgloohome - LocksListRequestManufacturerEcobee - LocksListRequestManufacturerHubitat -) - -func (l LocksListRequestManufacturer) String() string { - switch l { - default: - return strconv.Itoa(int(l)) - case LocksListRequestManufacturerAkuvox: - return "akuvox" - case LocksListRequestManufacturerAugust: - return "august" - case LocksListRequestManufacturerBrivo: - return "brivo" - case LocksListRequestManufacturerButterflymx: - return "butterflymx" - case LocksListRequestManufacturerDoorking: - return "doorking" - case LocksListRequestManufacturerGenie: - return "genie" - case LocksListRequestManufacturerIgloo: - return "igloo" - case LocksListRequestManufacturerKeywe: - return "keywe" - case LocksListRequestManufacturerKwikset: - return "kwikset" - case LocksListRequestManufacturerLinear: - return "linear" - case LocksListRequestManufacturerLockly: - return "lockly" - case LocksListRequestManufacturerNuki: - return "nuki" - case LocksListRequestManufacturerPhilia: - return "philia" - case LocksListRequestManufacturerSalto: - return "salto" - case LocksListRequestManufacturerSamsung: - return "samsung" - case LocksListRequestManufacturerSchlage: - return "schlage" - case LocksListRequestManufacturerSeam: - return "seam" - case LocksListRequestManufacturerUnknown: - return "unknown" - case LocksListRequestManufacturerYale: - return "yale" - case LocksListRequestManufacturerMinut: - return "minut" - case LocksListRequestManufacturerTwoN: - return "two_n" - case LocksListRequestManufacturerTtlock: - return "ttlock" - case LocksListRequestManufacturerNest: - return "nest" - case LocksListRequestManufacturerIgloohome: - return "igloohome" - case LocksListRequestManufacturerEcobee: - return "ecobee" - case LocksListRequestManufacturerHubitat: - return "hubitat" - } -} - -func (l LocksListRequestManufacturer) MarshalJSON() ([]byte, error) { - return []byte(fmt.Sprintf("%q", l.String())), nil -} - -func (l *LocksListRequestManufacturer) UnmarshalJSON(data []byte) error { - var raw string - if err := json.Unmarshal(data, &raw); err != nil { - return err - } - switch raw { - case "akuvox": - value := LocksListRequestManufacturerAkuvox - *l = value - case "august": - value := LocksListRequestManufacturerAugust - *l = value - case "brivo": - value := LocksListRequestManufacturerBrivo - *l = value - case "butterflymx": - value := LocksListRequestManufacturerButterflymx - *l = value - case "doorking": - value := LocksListRequestManufacturerDoorking - *l = value - case "genie": - value := LocksListRequestManufacturerGenie - *l = value - case "igloo": - value := LocksListRequestManufacturerIgloo - *l = value - case "keywe": - value := LocksListRequestManufacturerKeywe - *l = value - case "kwikset": - value := LocksListRequestManufacturerKwikset - *l = value - case "linear": - value := LocksListRequestManufacturerLinear - *l = value - case "lockly": - value := LocksListRequestManufacturerLockly - *l = value - case "nuki": - value := LocksListRequestManufacturerNuki - *l = value - case "philia": - value := LocksListRequestManufacturerPhilia - *l = value - case "salto": - value := LocksListRequestManufacturerSalto - *l = value - case "samsung": - value := LocksListRequestManufacturerSamsung - *l = value - case "schlage": - value := LocksListRequestManufacturerSchlage - *l = value - case "seam": - value := LocksListRequestManufacturerSeam - *l = value - case "unknown": - value := LocksListRequestManufacturerUnknown - *l = value - case "yale": - value := LocksListRequestManufacturerYale - *l = value - case "minut": - value := LocksListRequestManufacturerMinut - *l = value - case "two_n": - value := LocksListRequestManufacturerTwoN - *l = value - case "ttlock": - value := LocksListRequestManufacturerTtlock - *l = value - case "nest": - value := LocksListRequestManufacturerNest - *l = value - case "igloohome": - value := LocksListRequestManufacturerIgloohome - *l = value - case "ecobee": - value := LocksListRequestManufacturerEcobee - *l = value - case "hubitat": - value := LocksListRequestManufacturerHubitat - *l = value - } - return nil -} diff --git a/manufacturer.go b/manufacturer.go new file mode 100644 index 0000000..24985c4 --- /dev/null +++ b/manufacturer.go @@ -0,0 +1,191 @@ +// This file was auto-generated by Fern from our API Definition. + +package api + +import ( + json "encoding/json" + fmt "fmt" + strconv "strconv" +) + +type Manufacturer uint8 + +const ( + ManufacturerAkuvox Manufacturer = iota + 1 + ManufacturerAugust + ManufacturerBrivo + ManufacturerButterflymx + ManufacturerDoorking + ManufacturerGenie + ManufacturerIgloo + ManufacturerKeywe + ManufacturerKwikset + ManufacturerLinear + ManufacturerLockly + ManufacturerNuki + ManufacturerPhilia + ManufacturerSalto + ManufacturerSamsung + ManufacturerSchlage + ManufacturerSeam + ManufacturerUnknown + ManufacturerYale + ManufacturerMinut + ManufacturerTwoN + ManufacturerTtlock + ManufacturerNest + ManufacturerIgloohome + ManufacturerEcobee + ManufacturerHubitat +) + +func (m Manufacturer) String() string { + switch m { + default: + return strconv.Itoa(int(m)) + case ManufacturerAkuvox: + return "akuvox" + case ManufacturerAugust: + return "august" + case ManufacturerBrivo: + return "brivo" + case ManufacturerButterflymx: + return "butterflymx" + case ManufacturerDoorking: + return "doorking" + case ManufacturerGenie: + return "genie" + case ManufacturerIgloo: + return "igloo" + case ManufacturerKeywe: + return "keywe" + case ManufacturerKwikset: + return "kwikset" + case ManufacturerLinear: + return "linear" + case ManufacturerLockly: + return "lockly" + case ManufacturerNuki: + return "nuki" + case ManufacturerPhilia: + return "philia" + case ManufacturerSalto: + return "salto" + case ManufacturerSamsung: + return "samsung" + case ManufacturerSchlage: + return "schlage" + case ManufacturerSeam: + return "seam" + case ManufacturerUnknown: + return "unknown" + case ManufacturerYale: + return "yale" + case ManufacturerMinut: + return "minut" + case ManufacturerTwoN: + return "two_n" + case ManufacturerTtlock: + return "ttlock" + case ManufacturerNest: + return "nest" + case ManufacturerIgloohome: + return "igloohome" + case ManufacturerEcobee: + return "ecobee" + case ManufacturerHubitat: + return "hubitat" + } +} + +func (m Manufacturer) MarshalJSON() ([]byte, error) { + return []byte(fmt.Sprintf("%q", m.String())), nil +} + +func (m *Manufacturer) UnmarshalJSON(data []byte) error { + var raw string + if err := json.Unmarshal(data, &raw); err != nil { + return err + } + switch raw { + case "akuvox": + value := ManufacturerAkuvox + *m = value + case "august": + value := ManufacturerAugust + *m = value + case "brivo": + value := ManufacturerBrivo + *m = value + case "butterflymx": + value := ManufacturerButterflymx + *m = value + case "doorking": + value := ManufacturerDoorking + *m = value + case "genie": + value := ManufacturerGenie + *m = value + case "igloo": + value := ManufacturerIgloo + *m = value + case "keywe": + value := ManufacturerKeywe + *m = value + case "kwikset": + value := ManufacturerKwikset + *m = value + case "linear": + value := ManufacturerLinear + *m = value + case "lockly": + value := ManufacturerLockly + *m = value + case "nuki": + value := ManufacturerNuki + *m = value + case "philia": + value := ManufacturerPhilia + *m = value + case "salto": + value := ManufacturerSalto + *m = value + case "samsung": + value := ManufacturerSamsung + *m = value + case "schlage": + value := ManufacturerSchlage + *m = value + case "seam": + value := ManufacturerSeam + *m = value + case "unknown": + value := ManufacturerUnknown + *m = value + case "yale": + value := ManufacturerYale + *m = value + case "minut": + value := ManufacturerMinut + *m = value + case "two_n": + value := ManufacturerTwoN + *m = value + case "ttlock": + value := ManufacturerTtlock + *m = value + case "nest": + value := ManufacturerNest + *m = value + case "igloohome": + value := ManufacturerIgloohome + *m = value + case "ecobee": + value := ManufacturerEcobee + *m = value + case "hubitat": + value := ManufacturerHubitat + *m = value + } + return nil +} diff --git a/noisesensors/client.go b/noisesensors/client.go index 1290f6a..429a88e 100644 --- a/noisesensors/client.go +++ b/noisesensors/client.go @@ -8,8 +8,8 @@ import ( ) type Client interface { - Simulate() SimulateClient NoiseThresholds() NoiseThresholdsClient + Simulate() SimulateClient } func NewClient(opts ...core.ClientOption) Client { @@ -21,8 +21,8 @@ func NewClient(opts ...core.ClientOption) Client { baseURL: options.BaseURL, httpClient: options.HTTPClient, header: options.ToHeader(), - simulateClient: NewSimulateClient(opts...), noiseThresholdsClient: NewNoiseThresholdsClient(opts...), + simulateClient: NewSimulateClient(opts...), } } @@ -30,14 +30,14 @@ type client struct { baseURL string httpClient core.HTTPClient header http.Header - simulateClient SimulateClient noiseThresholdsClient NoiseThresholdsClient -} - -func (c *client) Simulate() SimulateClient { - return c.simulateClient + simulateClient SimulateClient } func (c *client) NoiseThresholds() NoiseThresholdsClient { return c.noiseThresholdsClient } + +func (c *client) Simulate() SimulateClient { + return c.simulateClient +} diff --git a/supported_capabililty.go b/supported_capabililty.go new file mode 100644 index 0000000..511ce6d --- /dev/null +++ b/supported_capabililty.go @@ -0,0 +1,65 @@ +// This file was auto-generated by Fern from our API Definition. + +package api + +import ( + json "encoding/json" + fmt "fmt" + strconv "strconv" +) + +type SupportedCapabililty uint8 + +const ( + SupportedCapabililtyAccessCode SupportedCapabililty = iota + 1 + SupportedCapabililtyLock + SupportedCapabililtyNoiseDetection + SupportedCapabililtyThermostat + SupportedCapabililtyBattery +) + +func (s SupportedCapabililty) String() string { + switch s { + default: + return strconv.Itoa(int(s)) + case SupportedCapabililtyAccessCode: + return "access_code" + case SupportedCapabililtyLock: + return "lock" + case SupportedCapabililtyNoiseDetection: + return "noise_detection" + case SupportedCapabililtyThermostat: + return "thermostat" + case SupportedCapabililtyBattery: + return "battery" + } +} + +func (s SupportedCapabililty) MarshalJSON() ([]byte, error) { + return []byte(fmt.Sprintf("%q", s.String())), nil +} + +func (s *SupportedCapabililty) UnmarshalJSON(data []byte) error { + var raw string + if err := json.Unmarshal(data, &raw); err != nil { + return err + } + switch raw { + case "access_code": + value := SupportedCapabililtyAccessCode + *s = value + case "lock": + value := SupportedCapabililtyLock + *s = value + case "noise_detection": + value := SupportedCapabililtyNoiseDetection + *s = value + case "thermostat": + value := SupportedCapabililtyThermostat + *s = value + case "battery": + value := SupportedCapabililtyBattery + *s = value + } + return nil +} diff --git a/thermostats_list_request.go b/thermostats_list_request.go index 0c2ddbb..7a549be 100644 --- a/thermostats_list_request.go +++ b/thermostats_list_request.go @@ -8,13 +8,13 @@ import ( // ThermostatsListRequest is an in-lined request used by the List endpoint. type ThermostatsListRequest struct { - ConnectedAccountId *string `json:"connected_account_id,omitempty"` - ConnectedAccountIds *[]string `json:"connected_account_ids,omitempty"` - ConnectWebviewId *string `json:"connect_webview_id,omitempty"` - DeviceType *ThermostatsListRequestDeviceType `json:"device_type,omitempty"` - DeviceTypes *[]ThermostatsListRequestDeviceTypesItem `json:"device_types,omitempty"` - Manufacturer *ThermostatsListRequestManufacturer `json:"manufacturer,omitempty"` - DeviceIds *[]string `json:"device_ids,omitempty"` - Limit *float64 `json:"limit,omitempty"` - CreatedBefore *time.Time `json:"created_before,omitempty"` + ConnectedAccountId *string `json:"connected_account_id,omitempty"` + ConnectedAccountIds *[]string `json:"connected_account_ids,omitempty"` + ConnectWebviewId *string `json:"connect_webview_id,omitempty"` + DeviceType *DeviceType `json:"device_type,omitempty"` + DeviceTypes *[]DeviceType `json:"device_types,omitempty"` + Manufacturer *Manufacturer `json:"manufacturer,omitempty"` + DeviceIds *[]string `json:"device_ids,omitempty"` + Limit *float64 `json:"limit,omitempty"` + CreatedBefore *time.Time `json:"created_before,omitempty"` } diff --git a/thermostats_list_request_device_type.go b/thermostats_list_request_device_type.go deleted file mode 100644 index 25b4bb0..0000000 --- a/thermostats_list_request_device_type.go +++ /dev/null @@ -1,185 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -package api - -import ( - json "encoding/json" - fmt "fmt" - strconv "strconv" -) - -type ThermostatsListRequestDeviceType uint8 - -const ( - ThermostatsListRequestDeviceTypeAkuvoxLock ThermostatsListRequestDeviceType = iota + 1 - ThermostatsListRequestDeviceTypeAugustLock - ThermostatsListRequestDeviceTypeBrivoAccessPoint - ThermostatsListRequestDeviceTypeButterflymxPanel - ThermostatsListRequestDeviceTypeDoorkingLock - ThermostatsListRequestDeviceTypeGenieDoor - ThermostatsListRequestDeviceTypeIglooLock - ThermostatsListRequestDeviceTypeLinearLock - ThermostatsListRequestDeviceTypeLocklyLock - ThermostatsListRequestDeviceTypeKwiksetLock - ThermostatsListRequestDeviceTypeNukiLock - ThermostatsListRequestDeviceTypeSaltoLock - ThermostatsListRequestDeviceTypeSchlageLock - ThermostatsListRequestDeviceTypeSeamRelay - ThermostatsListRequestDeviceTypeSmartthingsLock - ThermostatsListRequestDeviceTypeYaleLock - ThermostatsListRequestDeviceTypeTwoNIntercom - ThermostatsListRequestDeviceTypeControlbywebDevice - ThermostatsListRequestDeviceTypeTtlockLock - ThermostatsListRequestDeviceTypeIgloohomeLock - ThermostatsListRequestDeviceTypeHubitatLock - ThermostatsListRequestDeviceTypeNoiseawareActivityZone - ThermostatsListRequestDeviceTypeMinutSensor - ThermostatsListRequestDeviceTypeEcobeeThermostat - ThermostatsListRequestDeviceTypeNestThermostat -) - -func (t ThermostatsListRequestDeviceType) String() string { - switch t { - default: - return strconv.Itoa(int(t)) - case ThermostatsListRequestDeviceTypeAkuvoxLock: - return "akuvox_lock" - case ThermostatsListRequestDeviceTypeAugustLock: - return "august_lock" - case ThermostatsListRequestDeviceTypeBrivoAccessPoint: - return "brivo_access_point" - case ThermostatsListRequestDeviceTypeButterflymxPanel: - return "butterflymx_panel" - case ThermostatsListRequestDeviceTypeDoorkingLock: - return "doorking_lock" - case ThermostatsListRequestDeviceTypeGenieDoor: - return "genie_door" - case ThermostatsListRequestDeviceTypeIglooLock: - return "igloo_lock" - case ThermostatsListRequestDeviceTypeLinearLock: - return "linear_lock" - case ThermostatsListRequestDeviceTypeLocklyLock: - return "lockly_lock" - case ThermostatsListRequestDeviceTypeKwiksetLock: - return "kwikset_lock" - case ThermostatsListRequestDeviceTypeNukiLock: - return "nuki_lock" - case ThermostatsListRequestDeviceTypeSaltoLock: - return "salto_lock" - case ThermostatsListRequestDeviceTypeSchlageLock: - return "schlage_lock" - case ThermostatsListRequestDeviceTypeSeamRelay: - return "seam_relay" - case ThermostatsListRequestDeviceTypeSmartthingsLock: - return "smartthings_lock" - case ThermostatsListRequestDeviceTypeYaleLock: - return "yale_lock" - case ThermostatsListRequestDeviceTypeTwoNIntercom: - return "two_n_intercom" - case ThermostatsListRequestDeviceTypeControlbywebDevice: - return "controlbyweb_device" - case ThermostatsListRequestDeviceTypeTtlockLock: - return "ttlock_lock" - case ThermostatsListRequestDeviceTypeIgloohomeLock: - return "igloohome_lock" - case ThermostatsListRequestDeviceTypeHubitatLock: - return "hubitat_lock" - case ThermostatsListRequestDeviceTypeNoiseawareActivityZone: - return "noiseaware_activity_zone" - case ThermostatsListRequestDeviceTypeMinutSensor: - return "minut_sensor" - case ThermostatsListRequestDeviceTypeEcobeeThermostat: - return "ecobee_thermostat" - case ThermostatsListRequestDeviceTypeNestThermostat: - return "nest_thermostat" - } -} - -func (t ThermostatsListRequestDeviceType) MarshalJSON() ([]byte, error) { - return []byte(fmt.Sprintf("%q", t.String())), nil -} - -func (t *ThermostatsListRequestDeviceType) UnmarshalJSON(data []byte) error { - var raw string - if err := json.Unmarshal(data, &raw); err != nil { - return err - } - switch raw { - case "akuvox_lock": - value := ThermostatsListRequestDeviceTypeAkuvoxLock - *t = value - case "august_lock": - value := ThermostatsListRequestDeviceTypeAugustLock - *t = value - case "brivo_access_point": - value := ThermostatsListRequestDeviceTypeBrivoAccessPoint - *t = value - case "butterflymx_panel": - value := ThermostatsListRequestDeviceTypeButterflymxPanel - *t = value - case "doorking_lock": - value := ThermostatsListRequestDeviceTypeDoorkingLock - *t = value - case "genie_door": - value := ThermostatsListRequestDeviceTypeGenieDoor - *t = value - case "igloo_lock": - value := ThermostatsListRequestDeviceTypeIglooLock - *t = value - case "linear_lock": - value := ThermostatsListRequestDeviceTypeLinearLock - *t = value - case "lockly_lock": - value := ThermostatsListRequestDeviceTypeLocklyLock - *t = value - case "kwikset_lock": - value := ThermostatsListRequestDeviceTypeKwiksetLock - *t = value - case "nuki_lock": - value := ThermostatsListRequestDeviceTypeNukiLock - *t = value - case "salto_lock": - value := ThermostatsListRequestDeviceTypeSaltoLock - *t = value - case "schlage_lock": - value := ThermostatsListRequestDeviceTypeSchlageLock - *t = value - case "seam_relay": - value := ThermostatsListRequestDeviceTypeSeamRelay - *t = value - case "smartthings_lock": - value := ThermostatsListRequestDeviceTypeSmartthingsLock - *t = value - case "yale_lock": - value := ThermostatsListRequestDeviceTypeYaleLock - *t = value - case "two_n_intercom": - value := ThermostatsListRequestDeviceTypeTwoNIntercom - *t = value - case "controlbyweb_device": - value := ThermostatsListRequestDeviceTypeControlbywebDevice - *t = value - case "ttlock_lock": - value := ThermostatsListRequestDeviceTypeTtlockLock - *t = value - case "igloohome_lock": - value := ThermostatsListRequestDeviceTypeIgloohomeLock - *t = value - case "hubitat_lock": - value := ThermostatsListRequestDeviceTypeHubitatLock - *t = value - case "noiseaware_activity_zone": - value := ThermostatsListRequestDeviceTypeNoiseawareActivityZone - *t = value - case "minut_sensor": - value := ThermostatsListRequestDeviceTypeMinutSensor - *t = value - case "ecobee_thermostat": - value := ThermostatsListRequestDeviceTypeEcobeeThermostat - *t = value - case "nest_thermostat": - value := ThermostatsListRequestDeviceTypeNestThermostat - *t = value - } - return nil -} diff --git a/thermostats_list_request_device_types_item.go b/thermostats_list_request_device_types_item.go deleted file mode 100644 index 6ec6ac0..0000000 --- a/thermostats_list_request_device_types_item.go +++ /dev/null @@ -1,185 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -package api - -import ( - json "encoding/json" - fmt "fmt" - strconv "strconv" -) - -type ThermostatsListRequestDeviceTypesItem uint8 - -const ( - ThermostatsListRequestDeviceTypesItemAkuvoxLock ThermostatsListRequestDeviceTypesItem = iota + 1 - ThermostatsListRequestDeviceTypesItemAugustLock - ThermostatsListRequestDeviceTypesItemBrivoAccessPoint - ThermostatsListRequestDeviceTypesItemButterflymxPanel - ThermostatsListRequestDeviceTypesItemDoorkingLock - ThermostatsListRequestDeviceTypesItemGenieDoor - ThermostatsListRequestDeviceTypesItemIglooLock - ThermostatsListRequestDeviceTypesItemLinearLock - ThermostatsListRequestDeviceTypesItemLocklyLock - ThermostatsListRequestDeviceTypesItemKwiksetLock - ThermostatsListRequestDeviceTypesItemNukiLock - ThermostatsListRequestDeviceTypesItemSaltoLock - ThermostatsListRequestDeviceTypesItemSchlageLock - ThermostatsListRequestDeviceTypesItemSeamRelay - ThermostatsListRequestDeviceTypesItemSmartthingsLock - ThermostatsListRequestDeviceTypesItemYaleLock - ThermostatsListRequestDeviceTypesItemTwoNIntercom - ThermostatsListRequestDeviceTypesItemControlbywebDevice - ThermostatsListRequestDeviceTypesItemTtlockLock - ThermostatsListRequestDeviceTypesItemIgloohomeLock - ThermostatsListRequestDeviceTypesItemHubitatLock - ThermostatsListRequestDeviceTypesItemNoiseawareActivityZone - ThermostatsListRequestDeviceTypesItemMinutSensor - ThermostatsListRequestDeviceTypesItemEcobeeThermostat - ThermostatsListRequestDeviceTypesItemNestThermostat -) - -func (t ThermostatsListRequestDeviceTypesItem) String() string { - switch t { - default: - return strconv.Itoa(int(t)) - case ThermostatsListRequestDeviceTypesItemAkuvoxLock: - return "akuvox_lock" - case ThermostatsListRequestDeviceTypesItemAugustLock: - return "august_lock" - case ThermostatsListRequestDeviceTypesItemBrivoAccessPoint: - return "brivo_access_point" - case ThermostatsListRequestDeviceTypesItemButterflymxPanel: - return "butterflymx_panel" - case ThermostatsListRequestDeviceTypesItemDoorkingLock: - return "doorking_lock" - case ThermostatsListRequestDeviceTypesItemGenieDoor: - return "genie_door" - case ThermostatsListRequestDeviceTypesItemIglooLock: - return "igloo_lock" - case ThermostatsListRequestDeviceTypesItemLinearLock: - return "linear_lock" - case ThermostatsListRequestDeviceTypesItemLocklyLock: - return "lockly_lock" - case ThermostatsListRequestDeviceTypesItemKwiksetLock: - return "kwikset_lock" - case ThermostatsListRequestDeviceTypesItemNukiLock: - return "nuki_lock" - case ThermostatsListRequestDeviceTypesItemSaltoLock: - return "salto_lock" - case ThermostatsListRequestDeviceTypesItemSchlageLock: - return "schlage_lock" - case ThermostatsListRequestDeviceTypesItemSeamRelay: - return "seam_relay" - case ThermostatsListRequestDeviceTypesItemSmartthingsLock: - return "smartthings_lock" - case ThermostatsListRequestDeviceTypesItemYaleLock: - return "yale_lock" - case ThermostatsListRequestDeviceTypesItemTwoNIntercom: - return "two_n_intercom" - case ThermostatsListRequestDeviceTypesItemControlbywebDevice: - return "controlbyweb_device" - case ThermostatsListRequestDeviceTypesItemTtlockLock: - return "ttlock_lock" - case ThermostatsListRequestDeviceTypesItemIgloohomeLock: - return "igloohome_lock" - case ThermostatsListRequestDeviceTypesItemHubitatLock: - return "hubitat_lock" - case ThermostatsListRequestDeviceTypesItemNoiseawareActivityZone: - return "noiseaware_activity_zone" - case ThermostatsListRequestDeviceTypesItemMinutSensor: - return "minut_sensor" - case ThermostatsListRequestDeviceTypesItemEcobeeThermostat: - return "ecobee_thermostat" - case ThermostatsListRequestDeviceTypesItemNestThermostat: - return "nest_thermostat" - } -} - -func (t ThermostatsListRequestDeviceTypesItem) MarshalJSON() ([]byte, error) { - return []byte(fmt.Sprintf("%q", t.String())), nil -} - -func (t *ThermostatsListRequestDeviceTypesItem) UnmarshalJSON(data []byte) error { - var raw string - if err := json.Unmarshal(data, &raw); err != nil { - return err - } - switch raw { - case "akuvox_lock": - value := ThermostatsListRequestDeviceTypesItemAkuvoxLock - *t = value - case "august_lock": - value := ThermostatsListRequestDeviceTypesItemAugustLock - *t = value - case "brivo_access_point": - value := ThermostatsListRequestDeviceTypesItemBrivoAccessPoint - *t = value - case "butterflymx_panel": - value := ThermostatsListRequestDeviceTypesItemButterflymxPanel - *t = value - case "doorking_lock": - value := ThermostatsListRequestDeviceTypesItemDoorkingLock - *t = value - case "genie_door": - value := ThermostatsListRequestDeviceTypesItemGenieDoor - *t = value - case "igloo_lock": - value := ThermostatsListRequestDeviceTypesItemIglooLock - *t = value - case "linear_lock": - value := ThermostatsListRequestDeviceTypesItemLinearLock - *t = value - case "lockly_lock": - value := ThermostatsListRequestDeviceTypesItemLocklyLock - *t = value - case "kwikset_lock": - value := ThermostatsListRequestDeviceTypesItemKwiksetLock - *t = value - case "nuki_lock": - value := ThermostatsListRequestDeviceTypesItemNukiLock - *t = value - case "salto_lock": - value := ThermostatsListRequestDeviceTypesItemSaltoLock - *t = value - case "schlage_lock": - value := ThermostatsListRequestDeviceTypesItemSchlageLock - *t = value - case "seam_relay": - value := ThermostatsListRequestDeviceTypesItemSeamRelay - *t = value - case "smartthings_lock": - value := ThermostatsListRequestDeviceTypesItemSmartthingsLock - *t = value - case "yale_lock": - value := ThermostatsListRequestDeviceTypesItemYaleLock - *t = value - case "two_n_intercom": - value := ThermostatsListRequestDeviceTypesItemTwoNIntercom - *t = value - case "controlbyweb_device": - value := ThermostatsListRequestDeviceTypesItemControlbywebDevice - *t = value - case "ttlock_lock": - value := ThermostatsListRequestDeviceTypesItemTtlockLock - *t = value - case "igloohome_lock": - value := ThermostatsListRequestDeviceTypesItemIgloohomeLock - *t = value - case "hubitat_lock": - value := ThermostatsListRequestDeviceTypesItemHubitatLock - *t = value - case "noiseaware_activity_zone": - value := ThermostatsListRequestDeviceTypesItemNoiseawareActivityZone - *t = value - case "minut_sensor": - value := ThermostatsListRequestDeviceTypesItemMinutSensor - *t = value - case "ecobee_thermostat": - value := ThermostatsListRequestDeviceTypesItemEcobeeThermostat - *t = value - case "nest_thermostat": - value := ThermostatsListRequestDeviceTypesItemNestThermostat - *t = value - } - return nil -} diff --git a/thermostats_list_request_manufacturer.go b/thermostats_list_request_manufacturer.go deleted file mode 100644 index b5651a5..0000000 --- a/thermostats_list_request_manufacturer.go +++ /dev/null @@ -1,191 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -package api - -import ( - json "encoding/json" - fmt "fmt" - strconv "strconv" -) - -type ThermostatsListRequestManufacturer uint8 - -const ( - ThermostatsListRequestManufacturerAkuvox ThermostatsListRequestManufacturer = iota + 1 - ThermostatsListRequestManufacturerAugust - ThermostatsListRequestManufacturerBrivo - ThermostatsListRequestManufacturerButterflymx - ThermostatsListRequestManufacturerDoorking - ThermostatsListRequestManufacturerGenie - ThermostatsListRequestManufacturerIgloo - ThermostatsListRequestManufacturerKeywe - ThermostatsListRequestManufacturerKwikset - ThermostatsListRequestManufacturerLinear - ThermostatsListRequestManufacturerLockly - ThermostatsListRequestManufacturerNuki - ThermostatsListRequestManufacturerPhilia - ThermostatsListRequestManufacturerSalto - ThermostatsListRequestManufacturerSamsung - ThermostatsListRequestManufacturerSchlage - ThermostatsListRequestManufacturerSeam - ThermostatsListRequestManufacturerUnknown - ThermostatsListRequestManufacturerYale - ThermostatsListRequestManufacturerMinut - ThermostatsListRequestManufacturerTwoN - ThermostatsListRequestManufacturerTtlock - ThermostatsListRequestManufacturerNest - ThermostatsListRequestManufacturerIgloohome - ThermostatsListRequestManufacturerEcobee - ThermostatsListRequestManufacturerHubitat -) - -func (t ThermostatsListRequestManufacturer) String() string { - switch t { - default: - return strconv.Itoa(int(t)) - case ThermostatsListRequestManufacturerAkuvox: - return "akuvox" - case ThermostatsListRequestManufacturerAugust: - return "august" - case ThermostatsListRequestManufacturerBrivo: - return "brivo" - case ThermostatsListRequestManufacturerButterflymx: - return "butterflymx" - case ThermostatsListRequestManufacturerDoorking: - return "doorking" - case ThermostatsListRequestManufacturerGenie: - return "genie" - case ThermostatsListRequestManufacturerIgloo: - return "igloo" - case ThermostatsListRequestManufacturerKeywe: - return "keywe" - case ThermostatsListRequestManufacturerKwikset: - return "kwikset" - case ThermostatsListRequestManufacturerLinear: - return "linear" - case ThermostatsListRequestManufacturerLockly: - return "lockly" - case ThermostatsListRequestManufacturerNuki: - return "nuki" - case ThermostatsListRequestManufacturerPhilia: - return "philia" - case ThermostatsListRequestManufacturerSalto: - return "salto" - case ThermostatsListRequestManufacturerSamsung: - return "samsung" - case ThermostatsListRequestManufacturerSchlage: - return "schlage" - case ThermostatsListRequestManufacturerSeam: - return "seam" - case ThermostatsListRequestManufacturerUnknown: - return "unknown" - case ThermostatsListRequestManufacturerYale: - return "yale" - case ThermostatsListRequestManufacturerMinut: - return "minut" - case ThermostatsListRequestManufacturerTwoN: - return "two_n" - case ThermostatsListRequestManufacturerTtlock: - return "ttlock" - case ThermostatsListRequestManufacturerNest: - return "nest" - case ThermostatsListRequestManufacturerIgloohome: - return "igloohome" - case ThermostatsListRequestManufacturerEcobee: - return "ecobee" - case ThermostatsListRequestManufacturerHubitat: - return "hubitat" - } -} - -func (t ThermostatsListRequestManufacturer) MarshalJSON() ([]byte, error) { - return []byte(fmt.Sprintf("%q", t.String())), nil -} - -func (t *ThermostatsListRequestManufacturer) UnmarshalJSON(data []byte) error { - var raw string - if err := json.Unmarshal(data, &raw); err != nil { - return err - } - switch raw { - case "akuvox": - value := ThermostatsListRequestManufacturerAkuvox - *t = value - case "august": - value := ThermostatsListRequestManufacturerAugust - *t = value - case "brivo": - value := ThermostatsListRequestManufacturerBrivo - *t = value - case "butterflymx": - value := ThermostatsListRequestManufacturerButterflymx - *t = value - case "doorking": - value := ThermostatsListRequestManufacturerDoorking - *t = value - case "genie": - value := ThermostatsListRequestManufacturerGenie - *t = value - case "igloo": - value := ThermostatsListRequestManufacturerIgloo - *t = value - case "keywe": - value := ThermostatsListRequestManufacturerKeywe - *t = value - case "kwikset": - value := ThermostatsListRequestManufacturerKwikset - *t = value - case "linear": - value := ThermostatsListRequestManufacturerLinear - *t = value - case "lockly": - value := ThermostatsListRequestManufacturerLockly - *t = value - case "nuki": - value := ThermostatsListRequestManufacturerNuki - *t = value - case "philia": - value := ThermostatsListRequestManufacturerPhilia - *t = value - case "salto": - value := ThermostatsListRequestManufacturerSalto - *t = value - case "samsung": - value := ThermostatsListRequestManufacturerSamsung - *t = value - case "schlage": - value := ThermostatsListRequestManufacturerSchlage - *t = value - case "seam": - value := ThermostatsListRequestManufacturerSeam - *t = value - case "unknown": - value := ThermostatsListRequestManufacturerUnknown - *t = value - case "yale": - value := ThermostatsListRequestManufacturerYale - *t = value - case "minut": - value := ThermostatsListRequestManufacturerMinut - *t = value - case "two_n": - value := ThermostatsListRequestManufacturerTwoN - *t = value - case "ttlock": - value := ThermostatsListRequestManufacturerTtlock - *t = value - case "nest": - value := ThermostatsListRequestManufacturerNest - *t = value - case "igloohome": - value := ThermostatsListRequestManufacturerIgloohome - *t = value - case "ecobee": - value := ThermostatsListRequestManufacturerEcobee - *t = value - case "hubitat": - value := ThermostatsListRequestManufacturerHubitat - *t = value - } - return nil -} diff --git a/unmanaged_device.go b/unmanaged_device.go index c193e59..9ca150c 100644 --- a/unmanaged_device.go +++ b/unmanaged_device.go @@ -7,14 +7,14 @@ import ( ) type UnmanagedDevice struct { - DeviceId string `json:"device_id"` - DeviceType UnmanagedDeviceDeviceType `json:"device_type,omitempty"` - ConnectedAccountId string `json:"connected_account_id"` - CapabilitiesSupported []UnmanagedDeviceCapabilitiesSupportedItem `json:"capabilities_supported,omitempty"` - WorkspaceId string `json:"workspace_id"` - Errors []*UnmanagedDeviceErrorsItem `json:"errors,omitempty"` - Warnings []*UnmanagedDeviceWarningsItem `json:"warnings,omitempty"` - CreatedAt time.Time `json:"created_at"` - IsManaged string `json:"is_managed"` - Properties *UnmanagedDeviceProperties `json:"properties,omitempty"` + DeviceId string `json:"device_id"` + DeviceType DeviceType `json:"device_type,omitempty"` + ConnectedAccountId string `json:"connected_account_id"` + CapabilitiesSupported []SupportedCapabililty `json:"capabilities_supported,omitempty"` + WorkspaceId string `json:"workspace_id"` + Errors []*UnmanagedDeviceErrorsItem `json:"errors,omitempty"` + Warnings []*UnmanagedDeviceWarningsItem `json:"warnings,omitempty"` + CreatedAt time.Time `json:"created_at"` + IsManaged string `json:"is_managed"` + Properties *UnmanagedDeviceProperties `json:"properties,omitempty"` } diff --git a/unmanaged_device_capabilities_supported_item.go b/unmanaged_device_capabilities_supported_item.go deleted file mode 100644 index 40570ac..0000000 --- a/unmanaged_device_capabilities_supported_item.go +++ /dev/null @@ -1,65 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -package api - -import ( - json "encoding/json" - fmt "fmt" - strconv "strconv" -) - -type UnmanagedDeviceCapabilitiesSupportedItem uint8 - -const ( - UnmanagedDeviceCapabilitiesSupportedItemAccessCode UnmanagedDeviceCapabilitiesSupportedItem = iota + 1 - UnmanagedDeviceCapabilitiesSupportedItemLock - UnmanagedDeviceCapabilitiesSupportedItemNoiseDetection - UnmanagedDeviceCapabilitiesSupportedItemThermostat - UnmanagedDeviceCapabilitiesSupportedItemBattery -) - -func (u UnmanagedDeviceCapabilitiesSupportedItem) String() string { - switch u { - default: - return strconv.Itoa(int(u)) - case UnmanagedDeviceCapabilitiesSupportedItemAccessCode: - return "access_code" - case UnmanagedDeviceCapabilitiesSupportedItemLock: - return "lock" - case UnmanagedDeviceCapabilitiesSupportedItemNoiseDetection: - return "noise_detection" - case UnmanagedDeviceCapabilitiesSupportedItemThermostat: - return "thermostat" - case UnmanagedDeviceCapabilitiesSupportedItemBattery: - return "battery" - } -} - -func (u UnmanagedDeviceCapabilitiesSupportedItem) MarshalJSON() ([]byte, error) { - return []byte(fmt.Sprintf("%q", u.String())), nil -} - -func (u *UnmanagedDeviceCapabilitiesSupportedItem) UnmarshalJSON(data []byte) error { - var raw string - if err := json.Unmarshal(data, &raw); err != nil { - return err - } - switch raw { - case "access_code": - value := UnmanagedDeviceCapabilitiesSupportedItemAccessCode - *u = value - case "lock": - value := UnmanagedDeviceCapabilitiesSupportedItemLock - *u = value - case "noise_detection": - value := UnmanagedDeviceCapabilitiesSupportedItemNoiseDetection - *u = value - case "thermostat": - value := UnmanagedDeviceCapabilitiesSupportedItemThermostat - *u = value - case "battery": - value := UnmanagedDeviceCapabilitiesSupportedItemBattery - *u = value - } - return nil -} diff --git a/unmanaged_device_device_type.go b/unmanaged_device_device_type.go deleted file mode 100644 index 760c31e..0000000 --- a/unmanaged_device_device_type.go +++ /dev/null @@ -1,185 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -package api - -import ( - json "encoding/json" - fmt "fmt" - strconv "strconv" -) - -type UnmanagedDeviceDeviceType uint8 - -const ( - UnmanagedDeviceDeviceTypeAkuvoxLock UnmanagedDeviceDeviceType = iota + 1 - UnmanagedDeviceDeviceTypeAugustLock - UnmanagedDeviceDeviceTypeBrivoAccessPoint - UnmanagedDeviceDeviceTypeButterflymxPanel - UnmanagedDeviceDeviceTypeDoorkingLock - UnmanagedDeviceDeviceTypeGenieDoor - UnmanagedDeviceDeviceTypeIglooLock - UnmanagedDeviceDeviceTypeLinearLock - UnmanagedDeviceDeviceTypeLocklyLock - UnmanagedDeviceDeviceTypeKwiksetLock - UnmanagedDeviceDeviceTypeNukiLock - UnmanagedDeviceDeviceTypeSaltoLock - UnmanagedDeviceDeviceTypeSchlageLock - UnmanagedDeviceDeviceTypeSeamRelay - UnmanagedDeviceDeviceTypeSmartthingsLock - UnmanagedDeviceDeviceTypeYaleLock - UnmanagedDeviceDeviceTypeTwoNIntercom - UnmanagedDeviceDeviceTypeControlbywebDevice - UnmanagedDeviceDeviceTypeTtlockLock - UnmanagedDeviceDeviceTypeIgloohomeLock - UnmanagedDeviceDeviceTypeHubitatLock - UnmanagedDeviceDeviceTypeNoiseawareActivityZone - UnmanagedDeviceDeviceTypeMinutSensor - UnmanagedDeviceDeviceTypeEcobeeThermostat - UnmanagedDeviceDeviceTypeNestThermostat -) - -func (u UnmanagedDeviceDeviceType) String() string { - switch u { - default: - return strconv.Itoa(int(u)) - case UnmanagedDeviceDeviceTypeAkuvoxLock: - return "akuvox_lock" - case UnmanagedDeviceDeviceTypeAugustLock: - return "august_lock" - case UnmanagedDeviceDeviceTypeBrivoAccessPoint: - return "brivo_access_point" - case UnmanagedDeviceDeviceTypeButterflymxPanel: - return "butterflymx_panel" - case UnmanagedDeviceDeviceTypeDoorkingLock: - return "doorking_lock" - case UnmanagedDeviceDeviceTypeGenieDoor: - return "genie_door" - case UnmanagedDeviceDeviceTypeIglooLock: - return "igloo_lock" - case UnmanagedDeviceDeviceTypeLinearLock: - return "linear_lock" - case UnmanagedDeviceDeviceTypeLocklyLock: - return "lockly_lock" - case UnmanagedDeviceDeviceTypeKwiksetLock: - return "kwikset_lock" - case UnmanagedDeviceDeviceTypeNukiLock: - return "nuki_lock" - case UnmanagedDeviceDeviceTypeSaltoLock: - return "salto_lock" - case UnmanagedDeviceDeviceTypeSchlageLock: - return "schlage_lock" - case UnmanagedDeviceDeviceTypeSeamRelay: - return "seam_relay" - case UnmanagedDeviceDeviceTypeSmartthingsLock: - return "smartthings_lock" - case UnmanagedDeviceDeviceTypeYaleLock: - return "yale_lock" - case UnmanagedDeviceDeviceTypeTwoNIntercom: - return "two_n_intercom" - case UnmanagedDeviceDeviceTypeControlbywebDevice: - return "controlbyweb_device" - case UnmanagedDeviceDeviceTypeTtlockLock: - return "ttlock_lock" - case UnmanagedDeviceDeviceTypeIgloohomeLock: - return "igloohome_lock" - case UnmanagedDeviceDeviceTypeHubitatLock: - return "hubitat_lock" - case UnmanagedDeviceDeviceTypeNoiseawareActivityZone: - return "noiseaware_activity_zone" - case UnmanagedDeviceDeviceTypeMinutSensor: - return "minut_sensor" - case UnmanagedDeviceDeviceTypeEcobeeThermostat: - return "ecobee_thermostat" - case UnmanagedDeviceDeviceTypeNestThermostat: - return "nest_thermostat" - } -} - -func (u UnmanagedDeviceDeviceType) MarshalJSON() ([]byte, error) { - return []byte(fmt.Sprintf("%q", u.String())), nil -} - -func (u *UnmanagedDeviceDeviceType) UnmarshalJSON(data []byte) error { - var raw string - if err := json.Unmarshal(data, &raw); err != nil { - return err - } - switch raw { - case "akuvox_lock": - value := UnmanagedDeviceDeviceTypeAkuvoxLock - *u = value - case "august_lock": - value := UnmanagedDeviceDeviceTypeAugustLock - *u = value - case "brivo_access_point": - value := UnmanagedDeviceDeviceTypeBrivoAccessPoint - *u = value - case "butterflymx_panel": - value := UnmanagedDeviceDeviceTypeButterflymxPanel - *u = value - case "doorking_lock": - value := UnmanagedDeviceDeviceTypeDoorkingLock - *u = value - case "genie_door": - value := UnmanagedDeviceDeviceTypeGenieDoor - *u = value - case "igloo_lock": - value := UnmanagedDeviceDeviceTypeIglooLock - *u = value - case "linear_lock": - value := UnmanagedDeviceDeviceTypeLinearLock - *u = value - case "lockly_lock": - value := UnmanagedDeviceDeviceTypeLocklyLock - *u = value - case "kwikset_lock": - value := UnmanagedDeviceDeviceTypeKwiksetLock - *u = value - case "nuki_lock": - value := UnmanagedDeviceDeviceTypeNukiLock - *u = value - case "salto_lock": - value := UnmanagedDeviceDeviceTypeSaltoLock - *u = value - case "schlage_lock": - value := UnmanagedDeviceDeviceTypeSchlageLock - *u = value - case "seam_relay": - value := UnmanagedDeviceDeviceTypeSeamRelay - *u = value - case "smartthings_lock": - value := UnmanagedDeviceDeviceTypeSmartthingsLock - *u = value - case "yale_lock": - value := UnmanagedDeviceDeviceTypeYaleLock - *u = value - case "two_n_intercom": - value := UnmanagedDeviceDeviceTypeTwoNIntercom - *u = value - case "controlbyweb_device": - value := UnmanagedDeviceDeviceTypeControlbywebDevice - *u = value - case "ttlock_lock": - value := UnmanagedDeviceDeviceTypeTtlockLock - *u = value - case "igloohome_lock": - value := UnmanagedDeviceDeviceTypeIgloohomeLock - *u = value - case "hubitat_lock": - value := UnmanagedDeviceDeviceTypeHubitatLock - *u = value - case "noiseaware_activity_zone": - value := UnmanagedDeviceDeviceTypeNoiseawareActivityZone - *u = value - case "minut_sensor": - value := UnmanagedDeviceDeviceTypeMinutSensor - *u = value - case "ecobee_thermostat": - value := UnmanagedDeviceDeviceTypeEcobeeThermostat - *u = value - case "nest_thermostat": - value := UnmanagedDeviceDeviceTypeNestThermostat - *u = value - } - return nil -} diff --git a/unmanaged_list_request_device_type.go b/unmanaged_list_request_device_type.go deleted file mode 100644 index 678bfe3..0000000 --- a/unmanaged_list_request_device_type.go +++ /dev/null @@ -1,185 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -package api - -import ( - json "encoding/json" - fmt "fmt" - strconv "strconv" -) - -type UnmanagedListRequestDeviceType uint8 - -const ( - UnmanagedListRequestDeviceTypeAkuvoxLock UnmanagedListRequestDeviceType = iota + 1 - UnmanagedListRequestDeviceTypeAugustLock - UnmanagedListRequestDeviceTypeBrivoAccessPoint - UnmanagedListRequestDeviceTypeButterflymxPanel - UnmanagedListRequestDeviceTypeDoorkingLock - UnmanagedListRequestDeviceTypeGenieDoor - UnmanagedListRequestDeviceTypeIglooLock - UnmanagedListRequestDeviceTypeLinearLock - UnmanagedListRequestDeviceTypeLocklyLock - UnmanagedListRequestDeviceTypeKwiksetLock - UnmanagedListRequestDeviceTypeNukiLock - UnmanagedListRequestDeviceTypeSaltoLock - UnmanagedListRequestDeviceTypeSchlageLock - UnmanagedListRequestDeviceTypeSeamRelay - UnmanagedListRequestDeviceTypeSmartthingsLock - UnmanagedListRequestDeviceTypeYaleLock - UnmanagedListRequestDeviceTypeTwoNIntercom - UnmanagedListRequestDeviceTypeControlbywebDevice - UnmanagedListRequestDeviceTypeTtlockLock - UnmanagedListRequestDeviceTypeIgloohomeLock - UnmanagedListRequestDeviceTypeHubitatLock - UnmanagedListRequestDeviceTypeNoiseawareActivityZone - UnmanagedListRequestDeviceTypeMinutSensor - UnmanagedListRequestDeviceTypeEcobeeThermostat - UnmanagedListRequestDeviceTypeNestThermostat -) - -func (u UnmanagedListRequestDeviceType) String() string { - switch u { - default: - return strconv.Itoa(int(u)) - case UnmanagedListRequestDeviceTypeAkuvoxLock: - return "akuvox_lock" - case UnmanagedListRequestDeviceTypeAugustLock: - return "august_lock" - case UnmanagedListRequestDeviceTypeBrivoAccessPoint: - return "brivo_access_point" - case UnmanagedListRequestDeviceTypeButterflymxPanel: - return "butterflymx_panel" - case UnmanagedListRequestDeviceTypeDoorkingLock: - return "doorking_lock" - case UnmanagedListRequestDeviceTypeGenieDoor: - return "genie_door" - case UnmanagedListRequestDeviceTypeIglooLock: - return "igloo_lock" - case UnmanagedListRequestDeviceTypeLinearLock: - return "linear_lock" - case UnmanagedListRequestDeviceTypeLocklyLock: - return "lockly_lock" - case UnmanagedListRequestDeviceTypeKwiksetLock: - return "kwikset_lock" - case UnmanagedListRequestDeviceTypeNukiLock: - return "nuki_lock" - case UnmanagedListRequestDeviceTypeSaltoLock: - return "salto_lock" - case UnmanagedListRequestDeviceTypeSchlageLock: - return "schlage_lock" - case UnmanagedListRequestDeviceTypeSeamRelay: - return "seam_relay" - case UnmanagedListRequestDeviceTypeSmartthingsLock: - return "smartthings_lock" - case UnmanagedListRequestDeviceTypeYaleLock: - return "yale_lock" - case UnmanagedListRequestDeviceTypeTwoNIntercom: - return "two_n_intercom" - case UnmanagedListRequestDeviceTypeControlbywebDevice: - return "controlbyweb_device" - case UnmanagedListRequestDeviceTypeTtlockLock: - return "ttlock_lock" - case UnmanagedListRequestDeviceTypeIgloohomeLock: - return "igloohome_lock" - case UnmanagedListRequestDeviceTypeHubitatLock: - return "hubitat_lock" - case UnmanagedListRequestDeviceTypeNoiseawareActivityZone: - return "noiseaware_activity_zone" - case UnmanagedListRequestDeviceTypeMinutSensor: - return "minut_sensor" - case UnmanagedListRequestDeviceTypeEcobeeThermostat: - return "ecobee_thermostat" - case UnmanagedListRequestDeviceTypeNestThermostat: - return "nest_thermostat" - } -} - -func (u UnmanagedListRequestDeviceType) MarshalJSON() ([]byte, error) { - return []byte(fmt.Sprintf("%q", u.String())), nil -} - -func (u *UnmanagedListRequestDeviceType) UnmarshalJSON(data []byte) error { - var raw string - if err := json.Unmarshal(data, &raw); err != nil { - return err - } - switch raw { - case "akuvox_lock": - value := UnmanagedListRequestDeviceTypeAkuvoxLock - *u = value - case "august_lock": - value := UnmanagedListRequestDeviceTypeAugustLock - *u = value - case "brivo_access_point": - value := UnmanagedListRequestDeviceTypeBrivoAccessPoint - *u = value - case "butterflymx_panel": - value := UnmanagedListRequestDeviceTypeButterflymxPanel - *u = value - case "doorking_lock": - value := UnmanagedListRequestDeviceTypeDoorkingLock - *u = value - case "genie_door": - value := UnmanagedListRequestDeviceTypeGenieDoor - *u = value - case "igloo_lock": - value := UnmanagedListRequestDeviceTypeIglooLock - *u = value - case "linear_lock": - value := UnmanagedListRequestDeviceTypeLinearLock - *u = value - case "lockly_lock": - value := UnmanagedListRequestDeviceTypeLocklyLock - *u = value - case "kwikset_lock": - value := UnmanagedListRequestDeviceTypeKwiksetLock - *u = value - case "nuki_lock": - value := UnmanagedListRequestDeviceTypeNukiLock - *u = value - case "salto_lock": - value := UnmanagedListRequestDeviceTypeSaltoLock - *u = value - case "schlage_lock": - value := UnmanagedListRequestDeviceTypeSchlageLock - *u = value - case "seam_relay": - value := UnmanagedListRequestDeviceTypeSeamRelay - *u = value - case "smartthings_lock": - value := UnmanagedListRequestDeviceTypeSmartthingsLock - *u = value - case "yale_lock": - value := UnmanagedListRequestDeviceTypeYaleLock - *u = value - case "two_n_intercom": - value := UnmanagedListRequestDeviceTypeTwoNIntercom - *u = value - case "controlbyweb_device": - value := UnmanagedListRequestDeviceTypeControlbywebDevice - *u = value - case "ttlock_lock": - value := UnmanagedListRequestDeviceTypeTtlockLock - *u = value - case "igloohome_lock": - value := UnmanagedListRequestDeviceTypeIgloohomeLock - *u = value - case "hubitat_lock": - value := UnmanagedListRequestDeviceTypeHubitatLock - *u = value - case "noiseaware_activity_zone": - value := UnmanagedListRequestDeviceTypeNoiseawareActivityZone - *u = value - case "minut_sensor": - value := UnmanagedListRequestDeviceTypeMinutSensor - *u = value - case "ecobee_thermostat": - value := UnmanagedListRequestDeviceTypeEcobeeThermostat - *u = value - case "nest_thermostat": - value := UnmanagedListRequestDeviceTypeNestThermostat - *u = value - } - return nil -} diff --git a/unmanaged_list_request_device_types_item.go b/unmanaged_list_request_device_types_item.go deleted file mode 100644 index aae0c8a..0000000 --- a/unmanaged_list_request_device_types_item.go +++ /dev/null @@ -1,185 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -package api - -import ( - json "encoding/json" - fmt "fmt" - strconv "strconv" -) - -type UnmanagedListRequestDeviceTypesItem uint8 - -const ( - UnmanagedListRequestDeviceTypesItemAkuvoxLock UnmanagedListRequestDeviceTypesItem = iota + 1 - UnmanagedListRequestDeviceTypesItemAugustLock - UnmanagedListRequestDeviceTypesItemBrivoAccessPoint - UnmanagedListRequestDeviceTypesItemButterflymxPanel - UnmanagedListRequestDeviceTypesItemDoorkingLock - UnmanagedListRequestDeviceTypesItemGenieDoor - UnmanagedListRequestDeviceTypesItemIglooLock - UnmanagedListRequestDeviceTypesItemLinearLock - UnmanagedListRequestDeviceTypesItemLocklyLock - UnmanagedListRequestDeviceTypesItemKwiksetLock - UnmanagedListRequestDeviceTypesItemNukiLock - UnmanagedListRequestDeviceTypesItemSaltoLock - UnmanagedListRequestDeviceTypesItemSchlageLock - UnmanagedListRequestDeviceTypesItemSeamRelay - UnmanagedListRequestDeviceTypesItemSmartthingsLock - UnmanagedListRequestDeviceTypesItemYaleLock - UnmanagedListRequestDeviceTypesItemTwoNIntercom - UnmanagedListRequestDeviceTypesItemControlbywebDevice - UnmanagedListRequestDeviceTypesItemTtlockLock - UnmanagedListRequestDeviceTypesItemIgloohomeLock - UnmanagedListRequestDeviceTypesItemHubitatLock - UnmanagedListRequestDeviceTypesItemNoiseawareActivityZone - UnmanagedListRequestDeviceTypesItemMinutSensor - UnmanagedListRequestDeviceTypesItemEcobeeThermostat - UnmanagedListRequestDeviceTypesItemNestThermostat -) - -func (u UnmanagedListRequestDeviceTypesItem) String() string { - switch u { - default: - return strconv.Itoa(int(u)) - case UnmanagedListRequestDeviceTypesItemAkuvoxLock: - return "akuvox_lock" - case UnmanagedListRequestDeviceTypesItemAugustLock: - return "august_lock" - case UnmanagedListRequestDeviceTypesItemBrivoAccessPoint: - return "brivo_access_point" - case UnmanagedListRequestDeviceTypesItemButterflymxPanel: - return "butterflymx_panel" - case UnmanagedListRequestDeviceTypesItemDoorkingLock: - return "doorking_lock" - case UnmanagedListRequestDeviceTypesItemGenieDoor: - return "genie_door" - case UnmanagedListRequestDeviceTypesItemIglooLock: - return "igloo_lock" - case UnmanagedListRequestDeviceTypesItemLinearLock: - return "linear_lock" - case UnmanagedListRequestDeviceTypesItemLocklyLock: - return "lockly_lock" - case UnmanagedListRequestDeviceTypesItemKwiksetLock: - return "kwikset_lock" - case UnmanagedListRequestDeviceTypesItemNukiLock: - return "nuki_lock" - case UnmanagedListRequestDeviceTypesItemSaltoLock: - return "salto_lock" - case UnmanagedListRequestDeviceTypesItemSchlageLock: - return "schlage_lock" - case UnmanagedListRequestDeviceTypesItemSeamRelay: - return "seam_relay" - case UnmanagedListRequestDeviceTypesItemSmartthingsLock: - return "smartthings_lock" - case UnmanagedListRequestDeviceTypesItemYaleLock: - return "yale_lock" - case UnmanagedListRequestDeviceTypesItemTwoNIntercom: - return "two_n_intercom" - case UnmanagedListRequestDeviceTypesItemControlbywebDevice: - return "controlbyweb_device" - case UnmanagedListRequestDeviceTypesItemTtlockLock: - return "ttlock_lock" - case UnmanagedListRequestDeviceTypesItemIgloohomeLock: - return "igloohome_lock" - case UnmanagedListRequestDeviceTypesItemHubitatLock: - return "hubitat_lock" - case UnmanagedListRequestDeviceTypesItemNoiseawareActivityZone: - return "noiseaware_activity_zone" - case UnmanagedListRequestDeviceTypesItemMinutSensor: - return "minut_sensor" - case UnmanagedListRequestDeviceTypesItemEcobeeThermostat: - return "ecobee_thermostat" - case UnmanagedListRequestDeviceTypesItemNestThermostat: - return "nest_thermostat" - } -} - -func (u UnmanagedListRequestDeviceTypesItem) MarshalJSON() ([]byte, error) { - return []byte(fmt.Sprintf("%q", u.String())), nil -} - -func (u *UnmanagedListRequestDeviceTypesItem) UnmarshalJSON(data []byte) error { - var raw string - if err := json.Unmarshal(data, &raw); err != nil { - return err - } - switch raw { - case "akuvox_lock": - value := UnmanagedListRequestDeviceTypesItemAkuvoxLock - *u = value - case "august_lock": - value := UnmanagedListRequestDeviceTypesItemAugustLock - *u = value - case "brivo_access_point": - value := UnmanagedListRequestDeviceTypesItemBrivoAccessPoint - *u = value - case "butterflymx_panel": - value := UnmanagedListRequestDeviceTypesItemButterflymxPanel - *u = value - case "doorking_lock": - value := UnmanagedListRequestDeviceTypesItemDoorkingLock - *u = value - case "genie_door": - value := UnmanagedListRequestDeviceTypesItemGenieDoor - *u = value - case "igloo_lock": - value := UnmanagedListRequestDeviceTypesItemIglooLock - *u = value - case "linear_lock": - value := UnmanagedListRequestDeviceTypesItemLinearLock - *u = value - case "lockly_lock": - value := UnmanagedListRequestDeviceTypesItemLocklyLock - *u = value - case "kwikset_lock": - value := UnmanagedListRequestDeviceTypesItemKwiksetLock - *u = value - case "nuki_lock": - value := UnmanagedListRequestDeviceTypesItemNukiLock - *u = value - case "salto_lock": - value := UnmanagedListRequestDeviceTypesItemSaltoLock - *u = value - case "schlage_lock": - value := UnmanagedListRequestDeviceTypesItemSchlageLock - *u = value - case "seam_relay": - value := UnmanagedListRequestDeviceTypesItemSeamRelay - *u = value - case "smartthings_lock": - value := UnmanagedListRequestDeviceTypesItemSmartthingsLock - *u = value - case "yale_lock": - value := UnmanagedListRequestDeviceTypesItemYaleLock - *u = value - case "two_n_intercom": - value := UnmanagedListRequestDeviceTypesItemTwoNIntercom - *u = value - case "controlbyweb_device": - value := UnmanagedListRequestDeviceTypesItemControlbywebDevice - *u = value - case "ttlock_lock": - value := UnmanagedListRequestDeviceTypesItemTtlockLock - *u = value - case "igloohome_lock": - value := UnmanagedListRequestDeviceTypesItemIgloohomeLock - *u = value - case "hubitat_lock": - value := UnmanagedListRequestDeviceTypesItemHubitatLock - *u = value - case "noiseaware_activity_zone": - value := UnmanagedListRequestDeviceTypesItemNoiseawareActivityZone - *u = value - case "minut_sensor": - value := UnmanagedListRequestDeviceTypesItemMinutSensor - *u = value - case "ecobee_thermostat": - value := UnmanagedListRequestDeviceTypesItemEcobeeThermostat - *u = value - case "nest_thermostat": - value := UnmanagedListRequestDeviceTypesItemNestThermostat - *u = value - } - return nil -} diff --git a/unmanaged_list_request_manufacturer.go b/unmanaged_list_request_manufacturer.go deleted file mode 100644 index b790789..0000000 --- a/unmanaged_list_request_manufacturer.go +++ /dev/null @@ -1,191 +0,0 @@ -// This file was auto-generated by Fern from our API Definition. - -package api - -import ( - json "encoding/json" - fmt "fmt" - strconv "strconv" -) - -type UnmanagedListRequestManufacturer uint8 - -const ( - UnmanagedListRequestManufacturerAkuvox UnmanagedListRequestManufacturer = iota + 1 - UnmanagedListRequestManufacturerAugust - UnmanagedListRequestManufacturerBrivo - UnmanagedListRequestManufacturerButterflymx - UnmanagedListRequestManufacturerDoorking - UnmanagedListRequestManufacturerGenie - UnmanagedListRequestManufacturerIgloo - UnmanagedListRequestManufacturerKeywe - UnmanagedListRequestManufacturerKwikset - UnmanagedListRequestManufacturerLinear - UnmanagedListRequestManufacturerLockly - UnmanagedListRequestManufacturerNuki - UnmanagedListRequestManufacturerPhilia - UnmanagedListRequestManufacturerSalto - UnmanagedListRequestManufacturerSamsung - UnmanagedListRequestManufacturerSchlage - UnmanagedListRequestManufacturerSeam - UnmanagedListRequestManufacturerUnknown - UnmanagedListRequestManufacturerYale - UnmanagedListRequestManufacturerMinut - UnmanagedListRequestManufacturerTwoN - UnmanagedListRequestManufacturerTtlock - UnmanagedListRequestManufacturerNest - UnmanagedListRequestManufacturerIgloohome - UnmanagedListRequestManufacturerEcobee - UnmanagedListRequestManufacturerHubitat -) - -func (u UnmanagedListRequestManufacturer) String() string { - switch u { - default: - return strconv.Itoa(int(u)) - case UnmanagedListRequestManufacturerAkuvox: - return "akuvox" - case UnmanagedListRequestManufacturerAugust: - return "august" - case UnmanagedListRequestManufacturerBrivo: - return "brivo" - case UnmanagedListRequestManufacturerButterflymx: - return "butterflymx" - case UnmanagedListRequestManufacturerDoorking: - return "doorking" - case UnmanagedListRequestManufacturerGenie: - return "genie" - case UnmanagedListRequestManufacturerIgloo: - return "igloo" - case UnmanagedListRequestManufacturerKeywe: - return "keywe" - case UnmanagedListRequestManufacturerKwikset: - return "kwikset" - case UnmanagedListRequestManufacturerLinear: - return "linear" - case UnmanagedListRequestManufacturerLockly: - return "lockly" - case UnmanagedListRequestManufacturerNuki: - return "nuki" - case UnmanagedListRequestManufacturerPhilia: - return "philia" - case UnmanagedListRequestManufacturerSalto: - return "salto" - case UnmanagedListRequestManufacturerSamsung: - return "samsung" - case UnmanagedListRequestManufacturerSchlage: - return "schlage" - case UnmanagedListRequestManufacturerSeam: - return "seam" - case UnmanagedListRequestManufacturerUnknown: - return "unknown" - case UnmanagedListRequestManufacturerYale: - return "yale" - case UnmanagedListRequestManufacturerMinut: - return "minut" - case UnmanagedListRequestManufacturerTwoN: - return "two_n" - case UnmanagedListRequestManufacturerTtlock: - return "ttlock" - case UnmanagedListRequestManufacturerNest: - return "nest" - case UnmanagedListRequestManufacturerIgloohome: - return "igloohome" - case UnmanagedListRequestManufacturerEcobee: - return "ecobee" - case UnmanagedListRequestManufacturerHubitat: - return "hubitat" - } -} - -func (u UnmanagedListRequestManufacturer) MarshalJSON() ([]byte, error) { - return []byte(fmt.Sprintf("%q", u.String())), nil -} - -func (u *UnmanagedListRequestManufacturer) UnmarshalJSON(data []byte) error { - var raw string - if err := json.Unmarshal(data, &raw); err != nil { - return err - } - switch raw { - case "akuvox": - value := UnmanagedListRequestManufacturerAkuvox - *u = value - case "august": - value := UnmanagedListRequestManufacturerAugust - *u = value - case "brivo": - value := UnmanagedListRequestManufacturerBrivo - *u = value - case "butterflymx": - value := UnmanagedListRequestManufacturerButterflymx - *u = value - case "doorking": - value := UnmanagedListRequestManufacturerDoorking - *u = value - case "genie": - value := UnmanagedListRequestManufacturerGenie - *u = value - case "igloo": - value := UnmanagedListRequestManufacturerIgloo - *u = value - case "keywe": - value := UnmanagedListRequestManufacturerKeywe - *u = value - case "kwikset": - value := UnmanagedListRequestManufacturerKwikset - *u = value - case "linear": - value := UnmanagedListRequestManufacturerLinear - *u = value - case "lockly": - value := UnmanagedListRequestManufacturerLockly - *u = value - case "nuki": - value := UnmanagedListRequestManufacturerNuki - *u = value - case "philia": - value := UnmanagedListRequestManufacturerPhilia - *u = value - case "salto": - value := UnmanagedListRequestManufacturerSalto - *u = value - case "samsung": - value := UnmanagedListRequestManufacturerSamsung - *u = value - case "schlage": - value := UnmanagedListRequestManufacturerSchlage - *u = value - case "seam": - value := UnmanagedListRequestManufacturerSeam - *u = value - case "unknown": - value := UnmanagedListRequestManufacturerUnknown - *u = value - case "yale": - value := UnmanagedListRequestManufacturerYale - *u = value - case "minut": - value := UnmanagedListRequestManufacturerMinut - *u = value - case "two_n": - value := UnmanagedListRequestManufacturerTwoN - *u = value - case "ttlock": - value := UnmanagedListRequestManufacturerTtlock - *u = value - case "nest": - value := UnmanagedListRequestManufacturerNest - *u = value - case "igloohome": - value := UnmanagedListRequestManufacturerIgloohome - *u = value - case "ecobee": - value := UnmanagedListRequestManufacturerEcobee - *u = value - case "hubitat": - value := UnmanagedListRequestManufacturerHubitat - *u = value - } - return nil -}