B `m@sGdddZdS)cs^eZdZfddZedddZeeeedddZeed d d Zeed d d ZZ S) AsyncAdminscst||_dS)N)super__init___session)selfsession) __class__s/private/var/folders/7j/8686xlfs15q3tgljmghtvg0r0000gn/T/pip-target-isidps9b/lib/python/meraki_v0/aio/api/admins.pyrs zAsyncAdmins.__init__)organizationIdcs,dgdd}d|d}|j||IdHS)z **List the dashboard administrators in this organization** https://developer.cisco.com/meraki/api/#!get-organization-admins - organizationId (string) AdminsgetOrganizationAdmins)tags operationz/organizations/z/adminsN)rget)rr metadataresourcerrr r s  z!AsyncAdmins.getOrganizationAdmins)r emailname orgAccessc s|td|krDddddg}|d|ksDtd|dd|d|krxd d g}|d|ksxtd |dd|d gd d}d|d}ddddddgfdd|D} |j||| IdHS)a **Create a new dashboard administrator** https://developer.cisco.com/meraki/api/#!create-organization-admin - organizationId (string) - email (string): The email of the dashboard administrator. This attribute can not be updated. - name (string): The name of the dashboard administrator - orgAccess (string): The privilege of the dashboard administrator on the organization. Can be one of 'full', 'read-only', 'enterprise' or 'none' - tags (array): The list of tags that the dashboard administrator has privileges on - networks (array): The list of networks that the dashboard administrator has privileges on - authenticationMethod (string): The method of authentication the user will use to sign in to the Meraki dashboard. Can be one of 'Email' or 'Cisco SecureX Sign-On'. The default is Email authentication rfullz read-only enterprisenonez"orgAccess" cannot be "z", & must be set to one of: ZauthenticationMethodZEmailzCisco SecureX Sign-Onz""authenticationMethod" cannot be "r createOrganizationAdmin)r rz/organizations/z/adminsrrr networkscs&i|]\}}|kr||qSr)strip).0kv) body_paramsrr 4sz7AsyncAdmins.createOrganizationAdmin..N)updatelocalsAssertionErroritemsrpost) rr rrrkwargsoptionsrrpayloadr)rr rs  $$ z#AsyncAdmins.createOrganizationAdmin)r adminIdcs|td|krDddddg}|d|ksDtd|dd|dgd d }d |d |}d dddgfdd|D}|j|||IdHS)aY **Update an administrator** https://developer.cisco.com/meraki/api/#!update-organization-admin - organizationId (string) - adminId (string) - name (string): The name of the dashboard administrator - orgAccess (string): The privilege of the dashboard administrator on the organization. Can be one of 'full', 'read-only', 'enterprise' or 'none' - tags (array): The list of tags that the dashboard administrator has privileges on - networks (array): The list of networks that the dashboard administrator has privileges on rrz read-onlyrrz"orgAccess" cannot be "z", & must be set to one of: r updateOrganizationAdmin)r rz/organizations/z/admins/rr rcs&i|]\}}|kr||qSr)r)rrr)rrr rRsz7AsyncAdmins.updateOrganizationAdmin..N)r r!r"r#rput)rr r(r%r&rrr'r)rr r)8s  $ z#AsyncAdmins.updateOrganizationAdmincs0dgdd}d|d|}|j||IdHS)z **Revoke all access for a dashboard administrator within this organization** https://developer.cisco.com/meraki/api/#!delete-organization-admin - organizationId (string) - adminId (string) r deleteOrganizationAdmin)r rz/organizations/z/admins/N)rdelete)rr r(rrrrr r+Vs z#AsyncAdmins.deleteOrganizationAdmin) __name__ __module__ __qualname__rstrr rr)r+ __classcell__rr)rr rs  "rN)rrrrr