B `ِ@sGdddZdS)csdeZdZfddZeedddZeedddZd[ed d d Zed ddZ ee dddZ ed ddZ eeedddZ eedddZed ddZeedddZeedd d!Zd\eedd"d#Zd]eedd$d%Zd^eedd&d'Zeedd(d)Zeedd*d+Zd_eedd,d-Zeedd.d/Zeedd0d1Zeedd2d3Zeedd4d5Zeedd6d7Zeedd8d9Zed d:d;Zed dd?Z eed@dAdBZ!eed@dCdDZ"eed@dEdFZ#d`ed dGdHZ$eedIdJdKZ%ed dLdMZ&eedNdOdPZ'eedNdQdRZ(edSdTdUZ)edSdVdWZ*eedXdYdZZ+Z,S)aAsyncSmcst||_dS)N)super__init___session)selfsession) __class__l/private/var/folders/7j/8686xlfs15q3tgljmghtvg0r0000gn/T/pip-target-isidps9b/lib/python/meraki/aio/api/sm.pyrs zAsyncSm.__init__) networkIdidscsNt}dddgdd}d|d}dgfd d |D}|j|||S) a **Bypass activation lock attempt** https://developer.cisco.com/meraki/api-v1/#!create-network-sm-bypass-activation-lock-attempt - networkId (string): (required) - ids (array): The ids of the devices to attempt activation lock bypass. sm configurebypassActivationLockAttempts*createNetworkSmBypassActivationLockAttempt)tags operationz /networks/z /sm/bypassActivationLockAttemptsr cs&i|]\}}|kr||qSr)strip).0kv) body_paramsrr szFAsyncSm.createNetworkSmBypassActivationLockAttempt..)localsitemsrpost)rr r kwargsmetadataresourcepayloadr)rr rs  z2AsyncSm.createNetworkSmBypassActivationLockAttempt)r attemptIdcCs.dddgdd}d|d|}|j||S)z **Bypass activation lock attempt status** https://developer.cisco.com/meraki/api-v1/#!get-network-sm-bypass-activation-lock-attempt - networkId (string): (required) - attemptId (string): (required) r r r'getNetworkSmBypassActivationLockAttempt)rrz /networks/z!/sm/bypassActivationLockAttempts/)rget)rr rrrrrr r s z/AsyncSm.getNetworkSmBypassActivationLockAttemptnext)r c  s|tdddgdd}d|d}dd d d d d ddgfdd|D}dd d d d g}xF|D]:\} } | |krj|| || d<|| qjW|j|||||S)a9 **List the devices enrolled in an SM network with various specified fields and filters** https://developer.cisco.com/meraki/api-v1/#!get-network-sm-devices - networkId (string): (required) - total_pages (integer or string): use with perPage to get total results up to total_pages*perPage; -1 or "all" for all pages - direction (string): direction to paginate, either "next" (default) or "prev" page - fields (array): Additional fields that will be displayed for each device. The default fields are: id, name, tags, ssid, wifiMac, osName, systemModel, uuid, and serialNumber. The additional fields are: ip, systemType, availableDeviceCapacity, kioskAppName, biosVersion, lastConnected, missingAppsCount, userSuppliedAddress, location, lastUser, ownerEmail, ownerUsername, osBuild, publicIp, phoneNumber, diskInfoJson, deviceCapacity, isManaged, hadMdm, isSupervised, meid, imei, iccid, simCarrierNetwork, cellularDataUsed, isHotspotEnabled, createdAt, batteryEstCharge, quarantined, avName, avRunning, asName, fwName, isRooted, loginRequired, screenLockEnabled, screenLockDelay, autoLoginDisabled, autoTags, hasMdm, hasDesktopAgent, diskEncryptionEnabled, hardwareEncryptionCaps, passCodeLock, usesHardwareKeystore, and androidSecurityPatchVersion. - wifiMacs (array): Filter devices by wifi mac(s). - serials (array): Filter devices by serial(s). - ids (array): Filter devices by id(s). - scope (array): Specify a scope (one of all, none, withAny, withAll, withoutAny, or withoutAll) and a set of tags. - perPage (integer): The number of entries per page returned. Acceptable range is 3 - 1000. Default is 1000. - startingAfter (string): A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it. - endingBefore (string): A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it. r r devicesgetNetworkSmDevices)rrz /networks/z /sm/devicesfieldswifiMacsserialsr scopeperPage startingAfter endingBeforecs&i|]\}}|kr||qSr)r)rrr) query_paramsrr rTsz/AsyncSm.getNetworkSmDevices..z[])updaterrrpopr get_pages) rr total_pages directionrrrparams array_paramsrrr)r-r r%3s   zAsyncSm.getNetworkSmDevicesc sZ|tdddgdd}d|d}dd d d gfd d |D}|j|||S)a **Force check-in a set of devices** https://developer.cisco.com/meraki/api-v1/#!checkin-network-sm-devices - networkId (string): (required) - wifiMacs (array): The wifiMacs of the devices to be checked-in. - ids (array): The ids of the devices to be checked-in. - serials (array): The serials of the devices to be checked-in. - scope (array): The scope (one of all, none, withAny, withAll, withoutAny, or withoutAll) and a set of tags of the devices to be checked-in. r r r$checkinNetworkSmDevices)rrz /networks/z/sm/devices/checkinr'r r(r)cs&i|]\}}|kr||qSr)r)rrr)rrr rusz3AsyncSm.checkinNetworkSmDevices..)r.rrrr)rr rrrrr)rr r5`s   zAsyncSm.checkinNetworkSmDevices)r deviceFieldsc s\|tddddgdd}d|d}d d d d gfd d|D}|j|||S)a **Modify the fields of a device** https://developer.cisco.com/meraki/api-v1/#!update-network-sm-devices-fields - networkId (string): (required) - deviceFields (object): The new fields of the device. Each field of this object is optional. - wifiMac (string): The wifiMac of the device to be modified. - id (string): The id of the device to be modified. - serial (string): The serial of the device to be modified. r r r$r&updateNetworkSmDevicesFields)rrz /networks/z/sm/devices/fieldswifiMacidserialr6cs&i|]\}}|kr||qSr)r)rrr)rrr rsz8AsyncSm.updateNetworkSmDevicesFields..)r.rrrput)rr r6rrrrr)rr r7{s    z$AsyncSm.updateNetworkSmDevicesFieldsc s\|tdddgdd}d|d}dd d d d gfd d|D}|j|||S)aq **Lock a set of devices** https://developer.cisco.com/meraki/api-v1/#!lock-network-sm-devices - networkId (string): (required) - wifiMacs (array): The wifiMacs of the devices to be locked. - ids (array): The ids of the devices to be locked. - serials (array): The serials of the devices to be locked. - scope (array): The scope (one of all, none, withAny, withAll, withoutAny, or withoutAll) and a set of tags of the devices to be wiped. - pin (integer): The pin number for locking macOS devices (a six digit number). Required only for macOS devices. r r r$lockNetworkSmDevices)rrz /networks/z/sm/devices/lockr'r r(r)pincs&i|]\}}|kr||qSr)r)rrr)rrr rsz0AsyncSm.lockNetworkSmDevices..)r.rrrr)rr rrrrr)rr r<s  zAsyncSm.lockNetworkSmDevices)r r updateActionc s^|tdddgdd}d|d}dd d d d d gfdd|D}|j|||S)a **Add, delete, or update the tags of a set of devices** https://developer.cisco.com/meraki/api-v1/#!modify-network-sm-devices-tags - networkId (string): (required) - tags (array): The tags to be added, deleted, or updated. - updateAction (string): One of add, delete, or update. Only devices that have been modified will be returned. - wifiMacs (array): The wifiMacs of the devices to be modified. - ids (array): The ids of the devices to be modified. - serials (array): The serials of the devices to be modified. - scope (array): The scope (one of all, none, withAny, withAll, withoutAny, or withoutAll) and a set of tags of the devices to be modified. r r r$modifyNetworkSmDevicesTags)rrz /networks/z/sm/devices/modifyTagsr'r r(r)rr>cs&i|]\}}|kr||qSr)r)rrr)rrr rsz6AsyncSm.modifyNetworkSmDevicesTags..)r.rrrr)rr rr>rrrrr)rr r?s  z"AsyncSm.modifyNetworkSmDevicesTags)r newNetworkc s\|tdddgdd}d|d}dd d d d gfd d|D}|j|||S)aY **Move a set of devices to a new network** https://developer.cisco.com/meraki/api-v1/#!move-network-sm-devices - networkId (string): (required) - newNetwork (string): The new network to which the devices will be moved. - wifiMacs (array): The wifiMacs of the devices to be moved. - ids (array): The ids of the devices to be moved. - serials (array): The serials of the devices to be moved. - scope (array): The scope (one of all, none, withAny, withAll, withoutAny, or withoutAll) and a set of tags of the devices to be moved. r r r$moveNetworkSmDevices)rrz /networks/z/sm/devices/mover'r r(r)r@cs&i|]\}}|kr||qSr)r)rrr)rrr rsz0AsyncSm.moveNetworkSmDevices..)r.rrrr)rr r@rrrrr)rr rAs  zAsyncSm.moveNetworkSmDevicesc sZ|tdddgdd}d|d}dd d d gfd d |D}|j|||S)a **Wipe a device** https://developer.cisco.com/meraki/api-v1/#!wipe-network-sm-devices - networkId (string): (required) - wifiMac (string): The wifiMac of the device to be wiped. - id (string): The id of the device to be wiped. - serial (string): The serial of the device to be wiped. - pin (integer): The pin number (a six digit value) for wiping a macOS device. Required only for macOS devices. r r r$wipeNetworkSmDevices)rrz /networks/z/sm/devices/wiper8r9r:r=cs&i|]\}}|kr||qSr)r)rrr)rrr rsz0AsyncSm.wipeNetworkSmDevices..)r.rrrr)rr rrrrr)rr rBs   zAsyncSm.wipeNetworkSmDevices)r deviceIdcCs2ddddgdd}d|d|d }|j||S) z **Return the client's daily cellular data usage history** https://developer.cisco.com/meraki/api-v1/#!get-network-sm-device-cellular-usage-history - networkId (string): (required) - deviceId (string): (required) r monitorr$ZcellularUsageHistory&getNetworkSmDeviceCellularUsageHistory)rrz /networks/z /sm/devices/z/cellularUsageHistory)rr!)rr rCrrrrr rEs z.AsyncSm.getNetworkSmDeviceCellularUsageHistorycCs2ddddgdd}d|d|d }|j||S) z **List the certs on a device** https://developer.cisco.com/meraki/api-v1/#!get-network-sm-device-certs - networkId (string): (required) - deviceId (string): (required) r r r$certsgetNetworkSmDeviceCerts)rrz /networks/z /sm/devices/z/certs)rr!)rr rCrrrrr rGs zAsyncSm.getNetworkSmDeviceCertsc  sd|tddddgdd}d|d|d }d d d gfd d|D}|j|||||S)a **Returns historical connectivity data (whether a device is regularly checking in to Dashboard).** https://developer.cisco.com/meraki/api-v1/#!get-network-sm-device-connectivity - networkId (string): (required) - deviceId (string): (required) - total_pages (integer or string): use with perPage to get total results up to total_pages*perPage; -1 or "all" for all pages - direction (string): direction to paginate, either "next" (default) or "prev" page - perPage (integer): The number of entries per page returned. Acceptable range is 3 - 1000. Default is 1000. - startingAfter (string): A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it. - endingBefore (string): A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it. r rDr$Z connectivitygetNetworkSmDeviceConnectivity)rrz /networks/z /sm/devices/z /connectivityr*r+r,cs&i|]\}}|kr||qSr)r)rrr)r-rr rCsz:AsyncSm.getNetworkSmDeviceConnectivity..)r.rrrr0) rr rCr1r2rrrr3r)r-r rH,s   z&AsyncSm.getNetworkSmDeviceConnectivityc  sd|tddddgdd}d|d|d }d d d gfd d|D}|j|||||S)a **Return historical records of various Systems Manager network connection details for desktop devices.** https://developer.cisco.com/meraki/api-v1/#!get-network-sm-device-desktop-logs - networkId (string): (required) - deviceId (string): (required) - total_pages (integer or string): use with perPage to get total results up to total_pages*perPage; -1 or "all" for all pages - direction (string): direction to paginate, either "next" (default) or "prev" page - perPage (integer): The number of entries per page returned. Acceptable range is 3 - 1000. Default is 1000. - startingAfter (string): A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it. - endingBefore (string): A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it. r rDr$Z desktopLogsgetNetworkSmDeviceDesktopLogs)rrz /networks/z /sm/devices/z /desktopLogsr*r+r,cs&i|]\}}|kr||qSr)r)rrr)r-rr r`sz9AsyncSm.getNetworkSmDeviceDesktopLogs..)r.rrrr0) rr rCr1r2rrrr3r)r-r rIIs   z%AsyncSm.getNetworkSmDeviceDesktopLogsc  sd|tddddgdd}d|d|d }d d d gfd d|D}|j|||||S)a **Return historical records of commands sent to Systems Manager devices** https://developer.cisco.com/meraki/api-v1/#!get-network-sm-device-device-command-logs - networkId (string): (required) - deviceId (string): (required) - total_pages (integer or string): use with perPage to get total results up to total_pages*perPage; -1 or "all" for all pages - direction (string): direction to paginate, either "next" (default) or "prev" page - perPage (integer): The number of entries per page returned. Acceptable range is 3 - 1000. Default is 1000. - startingAfter (string): A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it. - endingBefore (string): A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it. r rDr$ZdeviceCommandLogs#getNetworkSmDeviceDeviceCommandLogs)rrz /networks/z /sm/devices/z/deviceCommandLogsr*r+r,cs&i|]\}}|kr||qSr)r)rrr)r-rr r}sz?AsyncSm.getNetworkSmDeviceDeviceCommandLogs..)r.rrrr0) rr rCr1r2rrrr3r)r-r rJfs   z+AsyncSm.getNetworkSmDeviceDeviceCommandLogscCs2ddddgdd}d|d|d }|j||S) z **Get the profiles associated with a device** https://developer.cisco.com/meraki/api-v1/#!get-network-sm-device-device-profiles - networkId (string): (required) - deviceId (string): (required) r r r$deviceProfiles getNetworkSmDeviceDeviceProfiles)rrz /networks/z /sm/devices/z/deviceProfiles)rr!)rr rCrrrrr rLs z(AsyncSm.getNetworkSmDeviceDeviceProfilescCs2ddddgdd}d|d|d }|j||S) z **List the network adapters of a device** https://developer.cisco.com/meraki/api-v1/#!get-network-sm-device-network-adapters - networkId (string): (required) - deviceId (string): (required) r r r$ZnetworkAdapters!getNetworkSmDeviceNetworkAdapters)rrz /networks/z /sm/devices/z/networkAdapters)rr!)rr rCrrrrr rMs z)AsyncSm.getNetworkSmDeviceNetworkAdaptersc  sd|tddddgdd}d|d|d }d d d gfd d|D}|j|||||S)a **Return historical records of various Systems Manager client metrics for desktop devices.** https://developer.cisco.com/meraki/api-v1/#!get-network-sm-device-performance-history - networkId (string): (required) - deviceId (string): (required) - total_pages (integer or string): use with perPage to get total results up to total_pages*perPage; -1 or "all" for all pages - direction (string): direction to paginate, either "next" (default) or "prev" page - perPage (integer): The number of entries per page returned. Acceptable range is 3 - 1000. Default is 1000. - startingAfter (string): A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it. - endingBefore (string): A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it. r rDr$ZperformanceHistory$getNetworkSmDevicePerformanceHistory)rrz /networks/z /sm/devices/z/performanceHistoryr*r+r,cs&i|]\}}|kr||qSr)r)rrr)r-rr rsz@AsyncSm.getNetworkSmDevicePerformanceHistory..)r.rrrr0) rr rCr1r2rrrr3r)r-r rNs   z,AsyncSm.getNetworkSmDevicePerformanceHistorycCs0dddgdd}d|d|d}|j||S) z **Refresh the details of a device** https://developer.cisco.com/meraki/api-v1/#!refresh-network-sm-device-details - networkId (string): (required) - deviceId (string): (required) r r r$refreshNetworkSmDeviceDetails)rrz /networks/z /sm/devices/z/refreshDetails)rr)rr rCrrrrr rOs z%AsyncSm.refreshNetworkSmDeviceDetailscCs2ddddgdd}d|d|d }|j||S) z **List the restrictions on a device** https://developer.cisco.com/meraki/api-v1/#!get-network-sm-device-restrictions - networkId (string): (required) - deviceId (string): (required) r r r$Z restrictionsgetNetworkSmDeviceRestrictions)rrz /networks/z /sm/devices/z /restrictions)rr!)rr rCrrrrr rPs z&AsyncSm.getNetworkSmDeviceRestrictionscCs2ddddgdd}d|d|d }|j||S) z **List the security centers on a device** https://developer.cisco.com/meraki/api-v1/#!get-network-sm-device-security-centers - networkId (string): (required) - deviceId (string): (required) r r r$ZsecurityCenters!getNetworkSmDeviceSecurityCenters)rrz /networks/z /sm/devices/z/securityCenters)rr!)rr rCrrrrr rQs z)AsyncSm.getNetworkSmDeviceSecurityCenterscCs2ddddgdd}d|d|d }|j||S) z **Get a list of softwares associated with a device** https://developer.cisco.com/meraki/api-v1/#!get-network-sm-device-softwares - networkId (string): (required) - deviceId (string): (required) r r r$ softwaresgetNetworkSmDeviceSoftwares)rrz /networks/z /sm/devices/z /softwares)rr!)rr rCrrrrr rSs z#AsyncSm.getNetworkSmDeviceSoftwarescCs0dddgdd}d|d|d}|j||S) z **Unenroll a device** https://developer.cisco.com/meraki/api-v1/#!unenroll-network-sm-device - networkId (string): (required) - deviceId (string): (required) r r r$unenrollNetworkSmDevice)rrz /networks/z /sm/devices/z /unenroll)rr)rr rCrrrrr rTs zAsyncSm.unenrollNetworkSmDevicecCs2ddddgdd}d|d|d }|j||S) z **List the saved SSID names on a device** https://developer.cisco.com/meraki/api-v1/#!get-network-sm-device-wlan-lists - networkId (string): (required) - deviceId (string): (required) r r r$Z wlanListsgetNetworkSmDeviceWlanLists)rrz /networks/z /sm/devices/z /wlanLists)rr!)rr rCrrrrr rU%s z#AsyncSm.getNetworkSmDeviceWlanListscCs*dddgdd}d|d}|j||S)z **List all profiles in a network** https://developer.cisco.com/meraki/api-v1/#!get-network-sm-profiles - networkId (string): (required) r r ZprofilesgetNetworkSmProfiles)rrz /networks/z /sm/profiles)rr!)rr rrrrr rV8s  zAsyncSm.getNetworkSmProfilesc sT|tdddgdd}d|d}dgfd d |D}|j|||S) aP **List the target groups in this network** https://developer.cisco.com/meraki/api-v1/#!get-network-sm-target-groups - networkId (string): (required) - withDetails (boolean): Boolean indicating if the the ids of the devices or users scoped by the target group should be included in the response r r targetGroupsgetNetworkSmTargetGroups)rrz /networks/z/sm/targetGroups withDetailscs&i|]\}}|kr||qSr)r)rrr)r-rr r\sz4AsyncSm.getNetworkSmTargetGroups..)r.rrrr!)rr rrrr3r)r-r rXJs  z AsyncSm.getNetworkSmTargetGroupsc sV|tdddgdd}d|d}dd gfd d |D}|j|||S) a **Add a target group** https://developer.cisco.com/meraki/api-v1/#!create-network-sm-target-group - networkId (string): (required) - name (string): The name of this target group - scope (string): The scope and tag options of the target group. Comma separated values beginning with one of withAny, withAll, withoutAny, withoutAll, all, none, followed by tags. Default to none if empty. r r rWcreateNetworkSmTargetGroup)rrz /networks/z/sm/targetGroupsnamer)cs&i|]\}}|kr||qSr)r)rrr)rrr rusz6AsyncSm.createNetworkSmTargetGroup..)r.rrrr)rr rrrrr)rr rZbs  z"AsyncSm.createNetworkSmTargetGroup)r targetGroupIdc sX|tdddgdd}d|d|}dgfd d |D}|j|||S) ak **Return a target group** https://developer.cisco.com/meraki/api-v1/#!get-network-sm-target-group - networkId (string): (required) - targetGroupId (string): (required) - withDetails (boolean): Boolean indicating if the the ids of the devices or users scoped by the target group should be included in the response r r rWgetNetworkSmTargetGroup)rrz /networks/z/sm/targetGroups/rYcs&i|]\}}|kr||qSr)r)rrr)r-rr rsz3AsyncSm.getNetworkSmTargetGroup..)r.rrrr!)rr r\rrrr3r)r-r r]{s zAsyncSm.getNetworkSmTargetGroupc sZ|tdddgdd}d|d|}dd gfd d |D}|j|||S) a **Update a target group** https://developer.cisco.com/meraki/api-v1/#!update-network-sm-target-group - networkId (string): (required) - targetGroupId (string): (required) - name (string): The name of this target group - scope (string): The scope and tag options of the target group. Comma separated values beginning with one of withAny, withAll, withoutAny, withoutAll, all, none, followed by tags. Default to none if empty. r r rWupdateNetworkSmTargetGroup)rrz /networks/z/sm/targetGroups/r[r)cs&i|]\}}|kr||qSr)r)rrr)rrr rsz6AsyncSm.updateNetworkSmTargetGroup..)r.rrrr;)rr r\rrrrr)rr r^s z"AsyncSm.updateNetworkSmTargetGroupcCs.dddgdd}d|d|}|j||S)z **Delete a target group from a network** https://developer.cisco.com/meraki/api-v1/#!delete-network-sm-target-group - networkId (string): (required) - targetGroupId (string): (required) r r rWdeleteNetworkSmTargetGroup)rrz /networks/z/sm/targetGroups/)rdelete)rr r\rrrrr r_s z"AsyncSm.deleteNetworkSmTargetGroupc s\|tdddgdd}d|d}dd d gfd d |D}|j|||||S) a **List User Access Devices and its Trusted Access Connections** https://developer.cisco.com/meraki/api-v1/#!get-network-sm-user-access-devices - networkId (string): (required) - total_pages (integer or string): use with perPage to get total results up to total_pages*perPage; -1 or "all" for all pages - direction (string): direction to paginate, either "next" (default) or "prev" page - perPage (integer): The number of entries per page returned. Acceptable range is 3 - 1000. Default is 100. - startingAfter (string): A token used by the server to indicate the start of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it. - endingBefore (string): A token used by the server to indicate the end of the page. Often this is a timestamp or an ID but it is not limited to those. This parameter should not be defined by client applications. The link for the first, last, prev, or next page in the HTTP Link header should define it. r r userAccessDevicesgetNetworkSmUserAccessDevices)rrz /networks/z/sm/userAccessDevicesr*r+r,cs&i|]\}}|kr||qSr)r)rrr)r-rr rsz9AsyncSm.getNetworkSmUserAccessDevices..)r.rrrr0)rr r1r2rrrr3r)r-r rbs   z%AsyncSm.getNetworkSmUserAccessDevices)r userAccessDeviceIdcCs.dddgdd}d|d|}|j||S)z **Delete a User Access Device** https://developer.cisco.com/meraki/api-v1/#!delete-network-sm-user-access-device - networkId (string): (required) - userAccessDeviceId (string): (required) r r radeleteNetworkSmUserAccessDevice)rrz /networks/z/sm/userAccessDevices/)rr`)rr rcrrrrr rds z'AsyncSm.deleteNetworkSmUserAccessDevicec  s|tdddgdd}d|d}dd d d gfd d |D}dd d d g}xF|D]:\}}||kr`||||d<||q`W|j|||S)a **List the owners in an SM network with various specified fields and filters** https://developer.cisco.com/meraki/api-v1/#!get-network-sm-users - networkId (string): (required) - ids (array): Filter users by id(s). - usernames (array): Filter users by username(s). - emails (array): Filter users by email(s). - scope (array): Specifiy a scope (one of all, none, withAny, withAll, withoutAny, withoutAll) and a set of tags. r r usersgetNetworkSmUsers)rrz /networks/z /sm/usersr Z usernamesZemailsr)cs&i|]\}}|kr||qSr)r)rrr)r-rr rsz-AsyncSm.getNetworkSmUsers..z[])r.rrrr/rr!) rr rrrr3r4rrr)r-r rfs     zAsyncSm.getNetworkSmUsers)r userIdcCs2ddddgdd}d|d|d }|j||S) z **Get the profiles associated with a user** https://developer.cisco.com/meraki/api-v1/#!get-network-sm-user-device-profiles - networkId (string): (required) - userId (string): (required) r r rerKgetNetworkSmUserDeviceProfiles)rrz /networks/z /sm/users/z/deviceProfiles)rr!)rr rgrrrrr rhs z&AsyncSm.getNetworkSmUserDeviceProfilescCs2ddddgdd}d|d|d }|j||S) z **Get a list of softwares associated with a user** https://developer.cisco.com/meraki/api-v1/#!get-network-sm-user-softwares - networkId (string): (required) - userId (string): (required) r r rerRgetNetworkSmUserSoftwares)rrz /networks/z /sm/users/z /softwares)rr!)rr rgrrrrr ri$s z!AsyncSm.getNetworkSmUserSoftwares)organizationIdcCs*dddgdd}d|d}|j||S)z **Get the organization's APNS certificate** https://developer.cisco.com/meraki/api-v1/#!get-organization-sm-apns-cert - organizationId (string): (required) r r ZapnsCertgetOrganizationSmApnsCert)rrz/organizations/z /sm/apnsCert)rr!)rrjrrrrr rk7s  z!AsyncSm.getOrganizationSmApnsCertcCs*dddgdd}d|d}|j||S)z **List the VPP accounts in the organization** https://developer.cisco.com/meraki/api-v1/#!get-organization-sm-vpp-accounts - organizationId (string): (required) r r vppAccountsgetOrganizationSmVppAccounts)rrz/organizations/z/sm/vppAccounts)rr!)rrjrrrrr rmIs  z$AsyncSm.getOrganizationSmVppAccounts)rj vppAccountIdcCs.dddgdd}d|d|}|j||S)a **Get a hash containing the unparsed token of the VPP account with the given ID** https://developer.cisco.com/meraki/api-v1/#!get-organization-sm-vpp-account - organizationId (string): (required) - vppAccountId (string): (required) r r rlgetOrganizationSmVppAccount)rrz/organizations/z/sm/vppAccounts/)rr!)rrjrnrrrrr ro[s z#AsyncSm.getOrganizationSmVppAccount)r"r#)r"r#)r"r#)r"r#)r"r#)r"r#)-__name__ __module__ __qualname__rstrlistrr r%r5dictr7r<r?rArBrErGrHrIrJrLrMrNrOrPrQrSrTrUrVrXrZr]r^r_rbrdrfrhrirkrmro __classcell__rr)rr rsL -!rN)rrrrr