B `@sGdddeZdS)cseZdZfddZeedddZeedddZedd d Zeeed d d ZeedddZ eedddZ eedddZ Z S) RadioSettingscstt|||_dS)N)superr__init___session)selfsession) __class__w/private/var/folders/7j/8686xlfs15q3tgljmghtvg0r0000gn/T/pip-target-isidps9b/lib/python/meraki_v0/api/radio_settings.pyrszRadioSettings.__init__) networkIdserialcCs,dgdd}d|d|d}|j||S)z **Return the radio settings of a device** https://developer.cisco.com/meraki/api/#!get-network-device-wireless-radio-settings - networkId (string) - serial (string) zRadio settings%getNetworkDeviceWirelessRadioSettings)tags operationz /networks/z /devices/z/wireless/radioSettings)rget)rr r metadataresourcerrr r s z3RadioSettings.getNetworkDeviceWirelessRadioSettingsc sV|tdgdd}d|d|d}dgfdd |D}|j|||S) a* **Update the radio settings of a device** https://developer.cisco.com/meraki/api/#!update-network-device-wireless-radio-settings - networkId (string) - serial (string) - rfProfileId (integer): The ID of an RF profile to assign to the device. If the value of this parameter is null, the appropriate basic RF profile (indoor or outdoor) will be assigned to the device. Assigning an RF profile will clear ALL manually configured overrides on the device (channel width, channel, power). zRadio settings(updateNetworkDeviceWirelessRadioSettings)r rz /networks/z /devices/z/wireless/radioSettings rfProfileIdcs&i|]\}}|kr||qSr)strip).0kv) body_paramsrr -szJRadioSettings.updateNetworkDeviceWirelessRadioSettings..)updatelocalsitemsrput)rr r kwargsrrpayloadr)rr rs z6RadioSettings.updateNetworkDeviceWirelessRadioSettings)r c sP|tdgdd}d|d}dgfdd|D}|j|||S) a **List the non-basic RF profiles for this network** https://developer.cisco.com/meraki/api/#!get-network-wireless-rf-profiles - networkId (string) - includeTemplateProfiles (boolean): If the network is bound to a template, this parameter controls whether or not the non-basic RF profiles defined on the template should be included in the response alongside the non-basic profiles defined on the bound network. Defaults to false. zRadio settingsgetNetworkWirelessRfProfiles)r rz /networks/z/wireless/rfProfilesZincludeTemplateProfilescs&i|]\}}|kr||qSr)r)rrr) query_paramsrr rEsz>RadioSettings.getNetworkWirelessRfProfiles..)rrrrr)rr rrrparamsr)r!r r 1s  z*RadioSettings.getNetworkWirelessRfProfiles)r namebandSelectionTypec  s|td|kr@ddg}|d|ks@td|dd|d|krtddg}|d|ksttd|dd|d gd d }d |d }dddddddgfdd|D}|j|||S)a **Creates new RF profile for this network** https://developer.cisco.com/meraki/api/#!create-network-wireless-rf-profile - networkId (string) - name (string): The name of the new profile. Must be unique. This param is required on creation. - bandSelectionType (string): Band selection can be set to either 'ssid' or 'ap'. This param is required on creation. - clientBalancingEnabled (boolean): Steers client to best available access point. Can be either true or false. Defaults to true. - minBitrateType (string): Minimum bitrate can be set to either 'band' or 'ssid'. Defaults to band. - apBandSettings (object): Settings that will be enabled if selectionType is set to 'ap'. - twoFourGhzSettings (object): Settings related to 2.4Ghz band - fiveGhzSettings (object): Settings related to 5Ghz band minBitrateTypebandssidz"minBitrateType" cannot be "z", & must be set to one of: r$apz"bandSelectionType" cannot be "zRadio settingscreateNetworkWirelessRfProfile)r rz /networks/z/wireless/rfProfilesr#clientBalancingEnabledapBandSettingstwoFourGhzSettingsfiveGhzSettingscs&i|]\}}|kr||qSr)r)rrr)rrr rhsz@RadioSettings.createNetworkWirelessRfProfile..)rrAssertionErrorrrpost) rr r#r$roptionsrrrr)rr r)Is $$ z,RadioSettings.createNetworkWirelessRfProfile)r rc s|td|kr@ddg}|d|ks@td|dd|d|krtddg}|d|ksttd|dd|d gd d }d |d |}dddddddgfdd|D}|j|||S)a8 **Updates specified RF profile for this network** https://developer.cisco.com/meraki/api/#!update-network-wireless-rf-profile - networkId (string) - rfProfileId (string) - name (string): The name of the new profile. Must be unique. - clientBalancingEnabled (boolean): Steers client to best available access point. Can be either true or false. - minBitrateType (string): Minimum bitrate can be set to either 'band' or 'ssid'. - bandSelectionType (string): Band selection can be set to either 'ssid' or 'ap'. - apBandSettings (object): Settings that will be enabled if selectionType is set to 'ap'. - twoFourGhzSettings (object): Settings related to 2.4Ghz band - fiveGhzSettings (object): Settings related to 5Ghz band r%r&r'z"minBitrateType" cannot be "z", & must be set to one of: r$r(z"bandSelectionType" cannot be "zRadio settingsupdateNetworkWirelessRfProfile)r rz /networks/z/wireless/rfProfiles/r#r*r+r,r-cs&i|]\}}|kr||qSr)r)rrr)rrr rsz@RadioSettings.updateNetworkWirelessRfProfile..)rrr.rrr)rr rrr0rrrr)rr r1ls $$z,RadioSettings.updateNetworkWirelessRfProfilecCs*dgdd}d|d|}|j||S)z **Delete a RF Profile** https://developer.cisco.com/meraki/api/#!delete-network-wireless-rf-profile - networkId (string) - rfProfileId (string) zRadio settingsdeleteNetworkWirelessRfProfile)r rz /networks/z/wireless/rfProfiles/)rdelete)rr rrrrrr r2s z,RadioSettings.deleteNetworkWirelessRfProfilecCs*dgdd}d|d|}|j||S)z **Return a RF profile** https://developer.cisco.com/meraki/api/#!get-network-wireless-rf-profile - networkId (string) - rfProfileId (string) zRadio settingsgetNetworkWirelessRfProfile)r rz /networks/z/wireless/rfProfiles/)rr)rr rrrrrr r4s z)RadioSettings.getNetworkWirelessRfProfile) __name__ __module__ __qualname__rstrr rr r)r1r2r4 __classcell__rr)rr rs #$rN)objectrrrrr