B `N@sGdddeZdS)csTeZdZfddZedddZedddZedd d Zedd d ZZ S) BluetoothSettingscstt|||_dS)N)superr__init___session)selfsession) __class__{/private/var/folders/7j/8686xlfs15q3tgljmghtvg0r0000gn/T/pip-target-isidps9b/lib/python/meraki_v0/api/bluetooth_settings.pyrszBluetoothSettings.__init__)serialcCs&dgdd}d|d}|j||S)z **Return the bluetooth settings for a wireless device** https://developer.cisco.com/meraki/api/#!get-device-wireless-bluetooth-settings - serial (string) zBluetooth settings"getDeviceWirelessBluetoothSettings)tags operationz /devices/z/wireless/bluetooth/settings)rget)rr metadataresourcerrr r s  z4BluetoothSettings.getDeviceWirelessBluetoothSettingsc sT|tdgdd}d|d}dddgfd d |D}|j|||S) a **Update the bluetooth settings for a wireless device** https://developer.cisco.com/meraki/api/#!update-device-wireless-bluetooth-settings - serial (string) - uuid (string): Desired UUID of the beacon. If the value is set to null it will reset to Dashboard's automatically generated value. - major (integer): Desired major value of the beacon. If the value is set to null it will reset to Dashboard's automatically generated value. - minor (integer): Desired minor value of the beacon. If the value is set to null it will reset to Dashboard's automatically generated value. zBluetooth settings%updateDeviceWirelessBluetoothSettings)r r z /devices/z/wireless/bluetooth/settingsuuidmajorminorcs&i|]\}}|kr||qSr)strip).0kv) body_paramsrr *szKBluetoothSettings.updateDeviceWirelessBluetoothSettings..)updatelocalsitemsrput)rr kwargsrrpayloadr)rr rs   z7BluetoothSettings.updateDeviceWirelessBluetoothSettings) networkIdcCs&dgdd}d|d}|j||S)aB **Return the Bluetooth settings for a network. Bluetooth settings must be enabled on the network.** https://developer.cisco.com/meraki/api/#!get-network-bluetooth-settings - networkId (string) zBluetooth settingsgetNetworkBluetoothSettings)r r z /networks/z/bluetoothSettings)rr)rr!rrrrr r".s  z-BluetoothSettings.getNetworkBluetoothSettingsc s|td|kr@ddg}|d|ks@td|dd|dgdd}d |d }d d d dddgfdd|D}|j|||S)a **Update the Bluetooth settings for a network. See the docs page for Bluetooth settings.** https://developer.cisco.com/meraki/api/#!update-network-bluetooth-settings - networkId (string) - scanningEnabled (boolean): Whether APs will scan for Bluetooth enabled clients. (true, false) - advertisingEnabled (boolean): Whether APs will advertise beacons. (true, false) - uuid (string): The UUID to be used in the beacon identifier. - majorMinorAssignmentMode (string): The way major and minor number should be assigned to nodes in the network. ('Unique', 'Non-unique') - major (integer): The major number to be used in the beacon identifier. Only valid in 'Non-unique' mode. - minor (integer): The minor number to be used in the beacon identifier. Only valid in 'Non-unique' mode. ZmajorMinorAssignmentModeZUniquez Non-uniquez&"majorMinorAssignmentMode" cannot be "z", & must be set to one of: zBluetooth settingsupdateNetworkBluetoothSettings)r r z /networks/z/bluetoothSettingsZscanningEnabledZadvertisingEnabledrrrcs&i|]\}}|kr||qSr)r)rrr)rrr rYszDBluetoothSettings.updateNetworkBluetoothSettings..)rrAssertionErrorrrr)rr!roptionsrrr r)rr r#>s $ z0BluetoothSettings.updateNetworkBluetoothSettings) __name__ __module__ __qualname__rstrr rr"r# __classcell__rr)rr rs  rN)objectrrrrr