B `l@sGdddeZdS)csleZdZfddZedddZeeedddZeed d d Zeed d d Zeed ddZ Z S) SAMLRolescstt|||_dS)N)superr__init___session)selfsession) __class__s/private/var/folders/7j/8686xlfs15q3tgljmghtvg0r0000gn/T/pip-target-isidps9b/lib/python/meraki_v0/api/saml_roles.pyrszSAMLRoles.__init__)organizationIdcCs&dgdd}d|d}|j||S)z **List the SAML roles for this organization** https://developer.cisco.com/meraki/api/#!get-organization-saml-roles - organizationId (string) z SAML rolesgetOrganizationSamlRoles)tags operationz/organizations/z /samlRoles)rget)rr metadataresourcerrr r s  z"SAMLRoles.getOrganizationSamlRoles)r role orgAccessc sV|tdgdd}d|d}dddd gfd d |D}|j|||S) a **Create a SAML role** https://developer.cisco.com/meraki/api/#!create-organization-saml-role - organizationId (string) - role (string): The role of the SAML administrator - orgAccess (string): The privilege of the SAML administrator on the organization - tags (array): The list of tags that the SAML administrator has privleges on - networks (array): The list of networks that the SAML administrator has privileges on z SAML rolescreateOrganizationSamlRole)r r z/organizations/z /samlRolesrrr networkscs&i|]\}}|kr||qSr)strip).0kv) body_paramsrr +sz8SAMLRoles.createOrganizationSamlRole..)updatelocalsitemsrpost)rr rrkwargsrrpayloadr)rr rs   z$SAMLRoles.createOrganizationSamlRole)r samlRoleIdcCs*dgdd}d|d|}|j||S)z **Return a SAML role** https://developer.cisco.com/meraki/api/#!get-organization-saml-role - organizationId (string) - samlRoleId (string) z SAML rolesgetOrganizationSamlRole)r r z/organizations/z /samlRoles/)rr)rr r!rrrrr r"/s z!SAMLRoles.getOrganizationSamlRolec sZ|tdgdd}d|d|}dddd gfd d |D}|j|||S) a  **Update a SAML role** https://developer.cisco.com/meraki/api/#!update-organization-saml-role - organizationId (string) - samlRoleId (string) - role (string): The role of the SAML administrator - orgAccess (string): The privilege of the SAML administrator on the organization - tags (array): The list of tags that the SAML administrator has privleges on - networks (array): The list of networks that the SAML administrator has privileges on z SAML rolesupdateOrganizationSamlRole)r r z/organizations/z /samlRoles/rrr rcs&i|]\}}|kr||qSr)r)rrr)rrr rVsz8SAMLRoles.updateOrganizationSamlRole..)rrrrput)rr r!rrrr r)rr r#@s  z$SAMLRoles.updateOrganizationSamlRolecCs*dgdd}d|d|}|j||S)z **Remove a SAML role** https://developer.cisco.com/meraki/api/#!delete-organization-saml-role - organizationId (string) - samlRoleId (string) z SAML rolesdeleteOrganizationSamlRole)r r z/organizations/z /samlRoles/)rdelete)rr r!rrrrr r%Zs z$SAMLRoles.deleteOrganizationSamlRole) __name__ __module__ __qualname__rstrr rr"r#r% __classcell__rr)rr rs  rN)objectrrrrr