B `-@sGdddeZdS)cs0eZdZfddZddZedddZedd d Zedd d Zedd dZ ee dddZ edddZ eedddZ eedddZeedddZedddZeeeedddZeed d!d"Zeed d#d$Zdedd'd(Zedd)d*Zedd+d,Zeeeed-d.d/Zedd0d1Zee d2d3d4Zeed5d6d7Zeed5d8d9Zeed5d:d;Zeddd?d@Z eddAdBZ!eed>dCdDZ"eedEdFdGZ#eedEdHdIZ$eedEdJdKZ%deddMdNZ&deddOdPZ'deddQdRZ(eddSdTZ)deddUdVZ*eedWdXdYZ+deddZd[Z,eeee-d\d]d^Z.eee d_d`daZ/eeee-dbdcddZ0eddedfZ1eeedgdhdiZ2eedjdkdlZ3eedjdmdnZ4eddodpZ5eddqdrZ6deddsdtZ7eee dudvdwZ8eee dxdydzZ9edd{d|Z:edd}d~Z;edddZeedddZ?eedddZ@eedddZAedddZBeeedddZCeedddZDeedddZEeedddZFedddZGedddZHdedddZIedddZJdedddZKZLS) Organizationscstt|||_dS)N)superr__init___session)selfsession) __class__s/private/var/folders/7j/8686xlfs15q3tgljmghtvg0r0000gn/T/pip-target-isidps9b/lib/python/meraki/api/organizations.pyrszOrganizations.__init__cCs ddgdd}d}|j||S)z **List the organizations that the user has privileges on** https://developer.cisco.com/meraki/api-v1/#!get-organizations organizations configuregetOrganizations)tags operationz/organizations)rget)rmetadataresourcerrr r szOrganizations.getOrganizations)namecsDt}ddgdd}d}dgfdd|D}|j|||S) z **Create a new organization** https://developer.cisco.com/meraki/api-v1/#!create-organization - name (string): The name of the organization r r createOrganization)r rz/organizationsrcs&i|]\}}|kr||qSr)strip).0kv) body_paramsrr *sz4Organizations.createOrganization..)localsitemsrpost)rrkwargsrrpayloadr)rr rsz Organizations.createOrganization)organizationIdcCs&ddgdd}d|}|j||S)z **Return an organization** https://developer.cisco.com/meraki/api-v1/#!get-organization - organizationId (string): (required) r r getOrganization)r rz/organizations/)rr)rrrrrrr r 0s  zOrganizations.getOrganizationc sP|tddgdd}d|}dgfdd|D}|j|||S) z **Update an organization** https://developer.cisco.com/meraki/api-v1/#!update-organization - organizationId (string): (required) - name (string): The name of the organization r r updateOrganization)r rz/organizations/rcs&i|]\}}|kr||qSr)r)rrr)rrr rTsz4Organizations.updateOrganization..)updaterrrput)rrrrrrr)rr r!Bs  z Organizations.updateOrganizationcCs&ddgdd}d|}|j||S)z **Delete an organization** https://developer.cisco.com/meraki/api-v1/#!delete-organization - organizationId (string): (required) r r deleteOrganization)r rz/organizations/)rdelete)rrrrrrr r$Zs  z Organizations.deleteOrganization)ractionsc sX|tdddgdd}d|d}dd d gfd d |D}|j|||S) a **Create an action batch** https://developer.cisco.com/meraki/api-v1/#!create-organization-action-batch - organizationId (string): (required) - actions (array): A set of changes to make as part of this action (more details) - confirmed (boolean): Set to true for immediate execution. Set to false if the action should be previewed before executing. This property cannot be unset once it is true. Defaults to false. - synchronous (boolean): Set to true to force the batch to run synchronous. There can be at most 20 actions in synchronous batch. Defaults to false. r r actionBatchescreateOrganizationActionBatch)r rz/organizations/z/actionBatches confirmed synchronousr&cs&i|]\}}|kr||qSr)r)rrr)rrr rsz?Organizations.createOrganizationActionBatch..)r"rrrr)rrr&rrrrr)rr r(ls   z+Organizations.createOrganizationActionBatchc s|td|krBdddg}|d|ksBtd|dd|ddd gd d }d |d }dgfdd|D}|j|||S)a3 **Return the list of action batches in the organization** https://developer.cisco.com/meraki/api-v1/#!get-organization-action-batches - organizationId (string): (required) - status (string): Filter batches by status. Valid types are pending, completed, and failed. statuspendingZ completedfailedz"status" cannot be "z", & must be set to one of: r r r'getOrganizationActionBatches)r rz/organizations/z/actionBatchescs&i|]\}}|kr||qSr)r)rrr) query_paramsrr rsz>Organizations.getOrganizationActionBatches..)r"rAssertionErrorrrr)rrroptionsrrparamsr)r/r r.s  $ z*Organizations.getOrganizationActionBatches)r actionBatchIdcCs.dddgdd}d|d|}|j||S)z **Return an action batch** https://developer.cisco.com/meraki/api-v1/#!get-organization-action-batch - organizationId (string): (required) - actionBatchId (string): (required) r r r'getOrganizationActionBatch)r rz/organizations/z/actionBatches/)rr)rrr3rrrrr r4s z(Organizations.getOrganizationActionBatchcCs.dddgdd}d|d|}|j||S)z **Delete an action batch** https://developer.cisco.com/meraki/api-v1/#!delete-organization-action-batch - organizationId (string): (required) - actionBatchId (string): (required) r r r'deleteOrganizationActionBatch)r rz/organizations/z/actionBatches/)rr%)rrr3rrrrr r5s z+Organizations.deleteOrganizationActionBatchc sZ|tdddgdd}d|d|}dd gfd d |D}|j|||S) a **Update an action batch** https://developer.cisco.com/meraki/api-v1/#!update-organization-action-batch - organizationId (string): (required) - actionBatchId (string): (required) - confirmed (boolean): A boolean representing whether or not the batch has been confirmed. This property cannot be unset once it is true. - synchronous (boolean): Set to true to force the batch to run synchronous. There can be at most 20 actions in synchronous batch. r r r'updateOrganizationActionBatch)r rz/organizations/z/actionBatches/r)r*cs&i|]\}}|kr||qSr)r)rrr)rrr rsz?Organizations.updateOrganizationActionBatch..)r"rrrr#)rrr3rrrrr)rr r6s z+Organizations.updateOrganizationActionBatchcCs*dddgdd}d|d}|j||S)z **List the dashboard administrators in this organization** https://developer.cisco.com/meraki/api-v1/#!get-organization-admins - organizationId (string): (required) r r adminsgetOrganizationAdmins)r rz/organizations/z/admins)rr)rrrrrrr r8s  z#Organizations.getOrganizationAdmins)remailr orgAccessc  s|td|krDddddg}|d|ksDtd|dd|d|krxd d g}|d|ksxtd |dd|d d dgdd}d|d}ddddddgfdd|D} |j||| S)a **Create a new dashboard administrator** https://developer.cisco.com/meraki/api-v1/#!create-organization-admin - organizationId (string): (required) - 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 r:fullz read-only enterprisenonez"orgAccess" cannot be "z", & must be set to one of: ZauthenticationMethodZEmailzCisco SecureX Sign-Onz""authenticationMethod" cannot be "r r r7createOrganizationAdmin)r rz/organizations/z/adminsr9rr networkscs&i|]\}}|kr||qSr)r)rrr)rrr rsz9Organizations.createOrganizationAdmin..)r"rr0rrr) rrr9rr:rr1rrrr)rr r>s  $$ z%Organizations.createOrganizationAdmin)radminIdc s|td|krDddddg}|d|ksDtd|dd|dd d gd d }d |d|}ddddgfdd|D}|j|||S)al **Update an administrator** https://developer.cisco.com/meraki/api-v1/#!update-organization-admin - organizationId (string): (required) - adminId (string): (required) - 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 r:r;z read-onlyr<r=z"orgAccess" cannot be "z", & must be set to one of: r r r7updateOrganizationAdmin)r rz/organizations/z/admins/rr r?cs&i|]\}}|kr||qSr)r)rrr)rrr r2sz9Organizations.updateOrganizationAdmin..)r"rr0rrr#)rrr@rr1rrrr)rr rAs  $ z%Organizations.updateOrganizationAdmincCs.dddgdd}d|d|}|j||S)a **Revoke all access for a dashboard administrator within this organization** https://developer.cisco.com/meraki/api-v1/#!delete-organization-admin - organizationId (string): (required) - adminId (string): (required) r r r7deleteOrganizationAdmin)r rz/organizations/z/admins/)rr%)rrr@rrrrr rB8s z%Organizations.deleteOrganizationAdminnextc sl|tdddgdd}d|d}dd d d d d dddddg fdd|D}|j|||||S)a; **List the API requests made by an organization** https://developer.cisco.com/meraki/api-v1/#!get-organization-api-requests - organizationId (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 - t0 (string): The beginning of the timespan for the data. The maximum lookback period is 31 days from today. - t1 (string): The end of the timespan for the data. t1 can be a maximum of 31 days after t0. - timespan (number): The timespan for which the information will be fetched. If specifying timespan, do not specify parameters t0 and t1. The value must be in seconds and be less than or equal to 31 days. The default is 31 days. - perPage (integer): The number of entries per page returned. Acceptable range is 3 - 1000. Default is 50. - 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. - adminId (string): Filter the results by the ID of the admin who made the API requests - path (string): Filter the results by the path of the API requests - method (string): Filter the results by the method of the API requests (must be 'GET', 'PUT', 'POST' or 'DELETE') - responseCode (integer): Filter the results by the response code of the API requests - sourceIp (string): Filter the results by the IP address of the originating API request r monitor apiRequestsgetOrganizationApiRequests)r rz/organizations/z /apiRequestst0t1timespanperPage startingAfter endingBeforer@pathmethodZ responseCodeZsourceIpcs&i|]\}}|kr||qSr)r)rrr)r/rr risz.)r"rrr get_pages)rr total_pages directionrrrr2r)r/r rGKs  z(Organizations.getOrganizationApiRequestsc sZ|tddddgdd}d|d}d d d gfd d |D}|j|||S)a **Return an aggregated overview of API requests data** https://developer.cisco.com/meraki/api-v1/#!get-organization-api-requests-overview - organizationId (string): (required) - t0 (string): The beginning of the timespan for the data. The maximum lookback period is 31 days from today. - t1 (string): The end of the timespan for the data. t1 can be a maximum of 31 days after t0. - timespan (number): The timespan for which the information will be fetched. If specifying timespan, do not specify parameters t0 and t1. The value must be in seconds and be less than or equal to 31 days. The default is 31 days. r rErFoverview"getOrganizationApiRequestsOverview)r rz/organizations/z/apiRequests/overviewrHrIrJcs&i|]\}}|kr||qSr)r)rrr)r/rr rszDOrganizations.getOrganizationApiRequestsOverview..)r"rrrr)rrrrrr2r)r/r rTos    z0Organizations.getOrganizationApiRequestsOverviewcCs*dddgdd}d|d}|j||S)z **List the branding policies of an organization** https://developer.cisco.com/meraki/api-v1/#!get-organization-branding-policies - organizationId (string): (required) r r brandingPoliciesgetOrganizationBrandingPolicies)r rz/organizations/z/brandingPolicies)rr)rrrrrrr rVs  z-Organizations.getOrganizationBrandingPolicies)rrenabled adminSettingsc  sZ|tdddgdd}d|d}dd d d gfd d |D}|j|||S)a **Add a new branding policy to an organization** https://developer.cisco.com/meraki/api-v1/#!create-organization-branding-policy - organizationId (string): (required) - name (string): Name of the Dashboard branding policy. - enabled (boolean): Boolean indicating whether this policy is enabled. - adminSettings (object): Settings for describing which kinds of admins this policy applies to. - helpSettings (object): Settings for describing the modifications to various Help page features. Each property in this object accepts one of 'default or inherit' (do not modify functionality), 'hide' (remove the section from Dashboard), or 'show' (always show the section on Dashboard). Some properties in this object also accept custom HTML used to replace the section on Dashboard; see the documentation for each property to see the allowed values. Each property defaults to 'default or inherit' when not provided. r r rU createOrganizationBrandingPolicy)r rz/organizations/z/brandingPoliciesrrWrX helpSettingscs&i|]\}}|kr||qSr)r)rrr)rrr rszBOrganizations.createOrganizationBrandingPolicy..)r"rrrr) rrrrWrXrrrrr)rr rYs   z.Organizations.createOrganizationBrandingPolicycCs,ddddgdd}d|d}|j||S) z **Return the branding policy IDs of an organization in priority order** https://developer.cisco.com/meraki/api-v1/#!get-organization-branding-policies-priorities - organizationId (string): (required) r r rU priorities)getOrganizationBrandingPoliciesPriorities)r rz/organizations/z/brandingPolicies/priorities)rr)rrrrrrr r\s  z7Organizations.getOrganizationBrandingPoliciesPriorities)rbrandingPolicyIdscsPt}ddddgdd}d|d}d gfd d |D}|j|||S) a **Update the priority ordering of an organization's branding policies.** https://developer.cisco.com/meraki/api-v1/#!update-organization-branding-policies-priorities - organizationId (string): (required) - brandingPolicyIds (array): A list of branding policy IDs arranged in ascending priority order (IDs later in the array have higher priority). r r rUr[,updateOrganizationBrandingPoliciesPriorities)r rz/organizations/z/brandingPolicies/prioritiesr]cs&i|]\}}|kr||qSr)r)rrr)rrr rszNOrganizations.updateOrganizationBrandingPoliciesPriorities..)rrrr#)rrr]rrrrr)rr r^s   z:Organizations.updateOrganizationBrandingPoliciesPriorities)rbrandingPolicyIdcCs.dddgdd}d|d|}|j||S)z **Return a branding policy** https://developer.cisco.com/meraki/api-v1/#!get-organization-branding-policy - organizationId (string): (required) - brandingPolicyId (string): (required) r r rUgetOrganizationBrandingPolicy)r rz/organizations/z/brandingPolicies/)rr)rrr_rrrrr r`s z+Organizations.getOrganizationBrandingPolicyc s^|tdddgdd}d|d|}dd d d gfd d |D}|j|||S)a **Update a branding policy** https://developer.cisco.com/meraki/api-v1/#!update-organization-branding-policy - organizationId (string): (required) - brandingPolicyId (string): (required) - name (string): Name of the Dashboard branding policy. - enabled (boolean): Boolean indicating whether this policy is enabled. - adminSettings (object): Settings for describing which kinds of admins this policy applies to. - helpSettings (object): Settings for describing the modifications to various Help page features. Each property in this object accepts one of 'default or inherit' (do not modify functionality), 'hide' (remove the section from Dashboard), or 'show' (always show the section on Dashboard). Some properties in this object also accept custom HTML used to replace the section on Dashboard; see the documentation for each property to see the allowed values. r r rU updateOrganizationBrandingPolicy)r rz/organizations/z/brandingPolicies/rrWrXrZcs&i|]\}}|kr||qSr)r)rrr)rrr rszBOrganizations.updateOrganizationBrandingPolicy..)r"rrrr#)rrr_rrrrr)rr ras  z.Organizations.updateOrganizationBrandingPolicycCs.dddgdd}d|d|}|j||S)z **Delete a branding policy** https://developer.cisco.com/meraki/api-v1/#!delete-organization-branding-policy - organizationId (string): (required) - brandingPolicyId (string): (required) r r rU deleteOrganizationBrandingPolicy)r rz/organizations/z/brandingPolicies/)rr%)rrr_rrrrr rbs z.Organizations.deleteOrganizationBrandingPolicyc sV|tddgdd}d|d}ddd gfd d |D}|j|||S) a **Claim a list of devices, licenses, and/or orders into an organization** https://developer.cisco.com/meraki/api-v1/#!claim-into-organization - organizationId (string): (required) - orders (array): The numbers of the orders that should be claimed - serials (array): The serials of the devices that should be claimed - licenses (array): The licenses that should be claimed r r claimIntoOrganization)r rz/organizations/z/claimZordersserialslicensescs&i|]\}}|kr||qSr)r)rrr)rrr r>sz7Organizations.claimIntoOrganization..)r"rrrr)rrrrrrr)rr rc*s   z#Organizations.claimIntoOrganization)rrcsLt}ddgdd}d|d}dgfdd |D}|j|||S) a **Create a new organization by cloning the addressed organization** https://developer.cisco.com/meraki/api-v1/#!clone-organization - organizationId (string): (required) - name (string): The name of the new organization r r cloneOrganization)r rz/organizations/z/clonercs&i|]\}}|kr||qSr)r)rrr)rrr rVsz3Organizations.cloneOrganization..)rrrr)rrrrrrrr)rr rfDs  zOrganizations.cloneOrganizationcCs*dddgdd}d|d}|j||S)z **List the configuration templates for this organization** https://developer.cisco.com/meraki/api-v1/#!get-organization-config-templates - organizationId (string): (required) r r configTemplatesgetOrganizationConfigTemplates)r rz/organizations/z/configTemplates)rr)rrrrrrr rh\s  z,Organizations.getOrganizationConfigTemplatesc sX|tdddgdd}d|d}dd d gfd d |D}|j|||S) a **Create a new configuration template** https://developer.cisco.com/meraki/api-v1/#!create-organization-config-template - organizationId (string): (required) - name (string): The name of the configuration template - timeZone (string): The timezone of the configuration template. For a list of allowed timezones, please see the 'TZ' column in the table in this article. Not applicable if copying from existing network or template - copyFromNetworkId (string): The ID of the network or config template to copy configuration from r r rg createOrganizationConfigTemplate)r rz/organizations/z/configTemplatesrtimeZonecopyFromNetworkIdcs&i|]\}}|kr||qSr)r)rrr)rrr rszBOrganizations.createOrganizationConfigTemplate..)r"rrrr)rrrrrrrr)rr rins   z.Organizations.createOrganizationConfigTemplate)rconfigTemplateIdc sZ|tdddgdd}d|d|}dd gfd d |D}|j|||S) a* **Update a configuration template** https://developer.cisco.com/meraki/api-v1/#!update-organization-config-template - organizationId (string): (required) - configTemplateId (string): (required) - name (string): The name of the configuration template - timeZone (string): The timezone of the configuration template. For a list of allowed timezones, please see the 'TZ' column in the table in this article. r r rg updateOrganizationConfigTemplate)r rz/organizations/z/configTemplates/rrjcs&i|]\}}|kr||qSr)r)rrr)rrr rszBOrganizations.updateOrganizationConfigTemplate..)r"rrrr#)rrrlrrrrr)rr rms z.Organizations.updateOrganizationConfigTemplatecCs.dddgdd}d|d|}|j||S)z **Remove a configuration template** https://developer.cisco.com/meraki/api-v1/#!delete-organization-config-template - organizationId (string): (required) - configTemplateId (string): (required) r r rg deleteOrganizationConfigTemplate)r rz/organizations/z/configTemplates/)rr%)rrrlrrrrr rns z.Organizations.deleteOrganizationConfigTemplatecCs.dddgdd}d|d|}|j||S)z **Return a single configuration template** https://developer.cisco.com/meraki/api-v1/#!get-organization-config-template - organizationId (string): (required) - configTemplateId (string): (required) r r rggetOrganizationConfigTemplate)r rz/organizations/z/configTemplates/)rr)rrrlrrrrr ros z+Organizations.getOrganizationConfigTemplateprevc sf|tdddgdd}d|d}dd d d d d ddgfdd|D}|j|||||S)a **View the Change Log for your organization** https://developer.cisco.com/meraki/api-v1/#!get-organization-configuration-changes - organizationId (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" or "prev" (default) page - t0 (string): The beginning of the timespan for the data. The maximum lookback period is 365 days from today. - t1 (string): The end of the timespan for the data. t1 can be a maximum of 365 days after t0. - timespan (number): The timespan for which the information will be fetched. If specifying timespan, do not specify parameters t0 and t1. The value must be in seconds and be less than or equal to 365 days. The default is 365 days. - perPage (integer): The number of entries per page returned. Acceptable range is 3 - 5000. Default is 5000. - 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. - networkId (string): Filters on the given network - adminId (string): Filters on the given Admin r rEZconfigurationChanges#getOrganizationConfigurationChanges)r rz/organizations/z/configurationChangesrHrIrJrKrLrM networkIdr@cs&i|]\}}|kr||qSr)r)rrr)r/rr rszEOrganizations.getOrganizationConfigurationChanges..)r"rrrrP)rrrQrRrrrr2r)r/r rqs  z1Organizations.getOrganizationConfigurationChangesc s^|tdddgdd}d|d}dd d d gfd d |D}|j|||||S)a **List the devices in an organization** https://developer.cisco.com/meraki/api-v1/#!get-organization-devices - organizationId (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. - configurationUpdatedAfter (string): Filter results by whether or not the device's configuration has been updated after the given timestamp r r devicesgetOrganizationDevices)r rz/organizations/z/devicesrKrLrMZconfigurationUpdatedAftercs&i|]\}}|kr||qSr)r)rrr)r/rr rsz8Organizations.getOrganizationDevices..)r"rrrrP)rrrQrRrrrr2r)r/r rts   z$Organizations.getOrganizationDevicesc s^|tddddgdd}d|d}d d d gfd d |D}|j|||||S)a **List the status of every Meraki device in the organization** https://developer.cisco.com/meraki/api-v1/#!get-organization-devices-statuses - organizationId (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 rErsstatusesgetOrganizationDevicesStatuses)r rz/organizations/z/devices/statusesrKrLrMcs&i|]\}}|kr||qSr)r)rrr)r/rr rsz@Organizations.getOrganizationDevicesStatuses..)r"rrrrP)rrrQrRrrrr2r)r/r rvs    z,Organizations.getOrganizationDevicesStatusesc s|td|krBdddg}|d|ksBtd|dd|ddd d gd d }d |d}dddddgfdd|D}|j|||S)a **Return the uplink loss and latency for every MX in the organization from at latest 2 minutes ago** https://developer.cisco.com/meraki/api-v1/#!get-organization-devices-uplinks-loss-and-latency - organizationId (string): (required) - t0 (string): The beginning of the timespan for the data. The maximum lookback period is 365 days from today. - t1 (string): The end of the timespan for the data. t1 can be a maximum of 5 minutes after t0. The latest possible time that t1 can be is 2 minutes into the past. - timespan (number): The timespan for which the information will be fetched. If specifying timespan, do not specify parameters t0 and t1. The value must be in seconds and be less than or equal to 5 minutes. The default is 5 minutes. - uplink (string): Optional filter for a specific WAN uplink. Valid uplinks are wan1, wan2, cellular. Default will return all uplinks. - ip (string): Optional filter for a specific destination IP. Default will return all destination IPs. ZuplinkZwan1Zwan2Zcellularz"uplink" cannot be "z", & must be set to one of: r rErsZuplinksLossAndLatency+getOrganizationDevicesUplinksLossAndLatency)r rz/organizations/z/devices/uplinksLossAndLatencyrHrIrJipcs&i|]\}}|kr||qSr)r)rrr)r/rr r<szMOrganizations.getOrganizationDevicesUplinksLossAndLatency..)r"rr0rrr)rrrr1rrr2r)r/r rw"s  $  z9Organizations.getOrganizationDevicesUplinksLossAndLatencyc  s|td|kr@ddg}|d|ks@td|dd|dddgd d }d |d }d ddddgfdd|D}|j|||||S)aq **Return the device inventory for an organization** https://developer.cisco.com/meraki/api-v1/#!get-organization-inventory-devices - organizationId (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. - usedState (string): Filter results by used or unused inventory. Accepted values are "used" or "unused". - search (string): Search for devices in inventory based on serial number, mac address, or model. Z usedStateusedunusedz"usedState" cannot be "z", & must be set to one of: r r inventoryDevicesgetOrganizationInventoryDevices)r rz/organizations/z/inventoryDevicesrKrLrMsearchcs&i|]\}}|kr||qSr)r)rrr)r/rr r^szAOrganizations.getOrganizationInventoryDevices..)r"rr0rrrP) rrrQrRrr1rrr2r)r/r r|Bs $ z-Organizations.getOrganizationInventoryDevices)rserialcCs.dddgdd}d|d|}|j||S)z **Return a single device from the inventory of an organization** https://developer.cisco.com/meraki/api-v1/#!get-organization-inventory-device - organizationId (string): (required) - serial (string): (required) r r r{getOrganizationInventoryDevice)r rz/organizations/z/inventoryDevices/)rr)rrr~rrrrr rds z,Organizations.getOrganizationInventoryDevicec  s|td|krHddddddg}|d|ksHtd|dd |d d d gd d}d|d}ddddddgfdd|D}|j|||||S)a **List the licenses for an organization** https://developer.cisco.com/meraki/api-v1/#!get-organization-licenses - organizationId (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. - deviceSerial (string): Filter the licenses to those assigned to a particular device - networkId (string): Filter the licenses to those assigned in a particular network - state (string): Filter the licenses to those in a particular state. Can be one of 'active', 'expired', 'expiring', 'unused', 'unusedActive' or 'recentlyQueued' stateactiveZexpiredZexpiringrzZ unusedActiveZrecentlyQueuedz"state" cannot be "z", & must be set to one of: r r regetOrganizationLicenses)r rz/organizations/z /licensesrKrLrM deviceSerialrrcs&i|]\}}|kr||qSr)r)rrr)r/rr rsz9Organizations.getOrganizationLicenses..)r"rr0rrrP) rrrQrRrr1rrr2r)r/r rws $ z%Organizations.getOrganizationLicenses)r licenseIdrr seatCountc sRt}dddgdd}d|d}dd d gfd d |D}|j|||S) a **Assign SM seats to a network** https://developer.cisco.com/meraki/api-v1/#!assign-organization-licenses-seats - organizationId (string): (required) - licenseId (string): The ID of the SM license to assign seats from - networkId (string): The ID of the SM network to assign the seats to - seatCount (integer): The number of seats to assign to the SM network. Must be less than or equal to the total number of seats of the license r r reassignOrganizationLicensesSeats)r rz/organizations/z/licenses/assignSeatsrrrrcs&i|]\}}|kr||qSr)r)rrr)rrr rszAOrganizations.assignOrganizationLicensesSeats..)rrrr) rrrrrrrrrrr)rr rs   z-Organizations.assignOrganizationLicensesSeats)rdestOrganizationId licenseIdscsPt}dddgdd}d|d}dd gfd d |D}|j|||S) ak **Move licenses to another organization** https://developer.cisco.com/meraki/api-v1/#!move-organization-licenses - organizationId (string): (required) - destOrganizationId (string): The ID of the organization to move the licenses to - licenseIds (array): A list of IDs of licenses to move to the new organization r r removeOrganizationLicenses)r rz/organizations/z/licenses/moverrcs&i|]\}}|kr||qSr)r)rrr)rrr rsz:Organizations.moveOrganizationLicenses..)rrrr)rrrrrrrrr)rr rs  z&Organizations.moveOrganizationLicenses)rrrrc sRt}dddgdd}d|d}dd d gfd d |D}|j|||S) a **Move SM seats to another organization** https://developer.cisco.com/meraki/api-v1/#!move-organization-licenses-seats - organizationId (string): (required) - destOrganizationId (string): The ID of the organization to move the SM seats to - licenseId (string): The ID of the SM license to move the seats from - seatCount (integer): The number of seats to move to the new organization. Must be less than or equal to the total number of seats of the license r r removeOrganizationLicensesSeats)r rz/organizations/z/licenses/moveSeatsrrrcs&i|]\}}|kr||qSr)r)rrr)rrr rsz?Organizations.moveOrganizationLicensesSeats..)rrrr) rrrrrrrrrr)rr rs   z+Organizations.moveOrganizationLicensesSeatscCs,ddddgdd}d|d}|j||S) z **Return an overview of the license state for an organization** https://developer.cisco.com/meraki/api-v1/#!get-organization-licenses-overview - organizationId (string): (required) r rErerSgetOrganizationLicensesOverview)r rz/organizations/z/licenses/overview)rr)rrrrrrr rs  z-Organizations.getOrganizationLicensesOverview)rlicenseIdToRenewunusedLicenseIdcsPt}dddgdd}d|d}dd gfd d |D}|j|||S) a **Renew SM seats of a license** https://developer.cisco.com/meraki/api-v1/#!renew-organization-licenses-seats - organizationId (string): (required) - licenseIdToRenew (string): The ID of the SM license to renew. This license must already be assigned to an SM network - unusedLicenseId (string): The SM license to use to renew the seats on 'licenseIdToRenew'. This license must have at least as many seats available as there are seats on 'licenseIdToRenew' r r rerenewOrganizationLicensesSeats)r rz/organizations/z/licenses/renewSeatsrrcs&i|]\}}|kr||qSr)r)rrr)rrr r sz@Organizations.renewOrganizationLicensesSeats..)rrrr)rrrrrrrrr)rr rs  z,Organizations.renewOrganizationLicensesSeats)rrcCs.dddgdd}d|d|}|j||S)z **Display a license** https://developer.cisco.com/meraki/api-v1/#!get-organization-license - organizationId (string): (required) - licenseId (string): (required) r r regetOrganizationLicense)r rz/organizations/z /licenses/)rr)rrrrrrrr rs z$Organizations.getOrganizationLicensec sX|tdddgdd}d|d|}dgfd d |D}|j|||S) a **Update a license** https://developer.cisco.com/meraki/api-v1/#!update-organization-license - organizationId (string): (required) - licenseId (string): (required) - deviceSerial (string): The serial number of the device to assign this license to. Set this to null to unassign the license. If a different license is already active on the device, this parameter will control queueing/dequeuing this license. r r reupdateOrganizationLicense)r rz/organizations/z /licenses/rcs&i|]\}}|kr||qSr)r)rrr)rrr r8sz;Organizations.updateOrganizationLicense..)r"rrrr#)rrrrrrrr)rr r%s z'Organizations.updateOrganizationLicensecCs*dddgdd}d|d}|j||S)z **Returns the login security settings for an organization.** https://developer.cisco.com/meraki/api-v1/#!get-organization-login-security - organizationId (string): (required) r r loginSecuritygetOrganizationLoginSecurity)r rz/organizations/z/loginSecurity)rr)rrrrrrr r>s  z*Organizations.getOrganizationLoginSecurityc sj|tdddgdd}d|d}dd d d d d ddddddg fdd|D}|j|||S)a **Update the login security settings for an organization** https://developer.cisco.com/meraki/api-v1/#!update-organization-login-security - organizationId (string): (required) - enforcePasswordExpiration (boolean): Boolean indicating whether users are forced to change their password every X number of days. - passwordExpirationDays (integer): Number of days after which users will be forced to change their password. - enforceDifferentPasswords (boolean): Boolean indicating whether users, when setting a new password, are forced to choose a new password that is different from any past passwords. - numDifferentPasswords (integer): Number of recent passwords that new password must be distinct from. - enforceStrongPasswords (boolean): Boolean indicating whether users will be forced to choose strong passwords for their accounts. Strong passwords are at least 8 characters that contain 3 of the following: number, uppercase letter, lowercase letter, and symbol - enforceAccountLockout (boolean): Boolean indicating whether users' Dashboard accounts will be locked out after a specified number of consecutive failed login attempts. - accountLockoutAttempts (integer): Number of consecutive failed login attempts after which users' accounts will be locked. - enforceIdleTimeout (boolean): Boolean indicating whether users will be logged out after being idle for the specified number of minutes. - idleTimeoutMinutes (integer): Number of minutes users can remain idle before being logged out of their accounts. - enforceTwoFactorAuth (boolean): Boolean indicating whether users in this organization will be required to use an extra verification code when logging in to Dashboard. This code will be sent to their mobile phone via SMS, or can be generated by the Google Authenticator application. - enforceLoginIpRanges (boolean): Boolean indicating whether organization will restrict access to Dashboard (including the API) from certain IP addresses. - loginIpRanges (array): List of acceptable IP ranges. Entries can be single IP addresses, IP address ranges, and CIDR subnets. r r rupdateOrganizationLoginSecurity)r rz/organizations/z/loginSecurityZenforcePasswordExpirationZpasswordExpirationDaysZenforceDifferentPasswordsZnumDifferentPasswordsZenforceStrongPasswordsZenforceAccountLockoutZaccountLockoutAttemptsZenforceIdleTimeoutZidleTimeoutMinutesZenforceTwoFactorAuthZenforceLoginIpRangesZ loginIpRangescs&i|]\}}|kr||qSr)r)rrr)rrr rmszAOrganizations.updateOrganizationLoginSecurity..)r"rrrr#)rrrrrrr)rr rPs  z-Organizations.updateOrganizationLoginSecurityc  s|td|kr@ddg}|d|ks@td|dd|dddgd d }d |d }d dddddgfdd|D}dg} xF|D]:\} } | | kr|| || d<|| qW|j|||||S)a **List the networks that the user has privileges on in an organization** https://developer.cisco.com/meraki/api-v1/#!get-organization-networks - organizationId (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 - configTemplateId (string): An optional parameter that is the ID of a config template. Will return all networks bound to that template. - tags (array): An optional parameter to filter networks by tags. The filtering is case-sensitive. If tags are included, 'tagsFilterType' should also be included (see below). - tagsFilterType (string): An optional parameter of value 'withAnyTags' or 'withAllTags' to indicate whether to return networks which contain ANY or ALL of the included tags. If no type is included, 'withAnyTags' will be selected. - perPage (integer): The number of entries per page returned. Acceptable range is 3 - 100000. 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. ZtagsFilterTypeZ withAnyTagsZ withAllTagsz"tagsFilterType" cannot be "z", & must be set to one of: r r r?getOrganizationNetworks)r rz/organizations/z /networksrlr rKrLrMcs&i|]\}}|kr||qSr)r)rrr)r/rr rsz9Organizations.getOrganizationNetworks..z[])r"rr0rrpoprrP) rrrQrRrr1rrr2 array_paramsrrr)r/r rss $  z%Organizations.getOrganizationNetworks)rr productTypesc s^|tdddgdd}d|d}dd d d d d gfdd|D}|j|||S)a4 **Create a network** https://developer.cisco.com/meraki/api-v1/#!create-organization-network - organizationId (string): (required) - name (string): The name of the new network - productTypes (array): The product type(s) of the new network. Valid types are wireless, appliance, switch, systemsManager, camera, cellularGateway, environmental. If more than one type is included, the network will be a combined network. - tags (array): A list of tags to be applied to the network - timeZone (string): The timezone of the network. For a list of allowed timezones, please see the 'TZ' column in the table in this article. - copyFromNetworkId (string): The ID of the network to copy configuration from. Other provided parameters will override the copied configuration, except type which must match this network's type exactly. - notes (string): Add any notes or additional information about this network here. r r r?createOrganizationNetwork)r rz/organizations/z /networksrrr rjrkZnotescs&i|]\}}|kr||qSr)r)rrr)rrr rsz;Organizations.createOrganizationNetwork..)r"rrrr)rrrrrrrrr)rr rs  z'Organizations.createOrganizationNetwork)rr networkIdsc sX|tdddgdd}d|d}dd d gfd d |D}|j|||S) a| **Combine multiple networks into a single network** https://developer.cisco.com/meraki/api-v1/#!combine-organization-networks - organizationId (string): (required) - name (string): The name of the combined network - networkIds (array): A list of the network IDs that will be combined. If an ID of a combined network is included in this list, the other networks in the list will be grouped into that network - enrollmentString (string): A unique identifier which can be used for device enrollment or easy access through the Meraki SM Registration page or the Self Service Portal. Please note that changing this field may cause existing bookmarks to break. All networks that are part of this combined network will have their enrollment string appended by '-network_type'. If left empty, all exisitng enrollment strings will be deleted. r r r?combineOrganizationNetworks)r rz/organizations/z/networks/combinerrZenrollmentStringcs&i|]\}}|kr||qSr)r)rrr)rrr rsz=Organizations.combineOrganizationNetworks..)r"rrrr)rrrrrrrrr)rr rs   z)Organizations.combineOrganizationNetworkscCs*dddgdd}d|d}|j||S)z **Return the OpenAPI 2.0 Specification of the organization's API documentation in JSON** https://developer.cisco.com/meraki/api-v1/#!get-organization-openapi-spec - organizationId (string): (required) r rEZ openapiSpecgetOrganizationOpenapiSpec)r rz/organizations/z /openapiSpec)rr)rrrrrrr rs  z(Organizations.getOrganizationOpenapiSpeccCs*dddgdd}d|d}|j||S)z **Returns the SAML SSO enabled settings for an organization.** https://developer.cisco.com/meraki/api-v1/#!get-organization-saml - organizationId (string): (required) r r samlgetOrganizationSaml)r rz/organizations/z/saml)rr)rrrrrrr rs  z!Organizations.getOrganizationSamlc sT|tdddgdd}d|d}dgfd d |D}|j|||S) a **Updates the SAML SSO enabled settings for an organization.** https://developer.cisco.com/meraki/api-v1/#!update-organization-saml - organizationId (string): (required) - enabled (boolean): Boolean for updating SAML SSO enabled settings. r r rupdateOrganizationSaml)r rz/organizations/z/samlrWcs&i|]\}}|kr||qSr)r)rrr)rrr r sz8Organizations.updateOrganizationSaml..)r"rrrr#)rrrrrrr)rr rs  z$Organizations.updateOrganizationSamlcCs,ddddgdd}d|d}|j||S) z **List the SAML IdPs in your organization.** https://developer.cisco.com/meraki/api-v1/#!get-organization-saml-idps - organizationId (string): (required) r r ridpsgetOrganizationSamlIdps)r rz/organizations/z /saml/idps)rr)rrrrrrr rs  z%Organizations.getOrganizationSamlIdps)rx509certSha1Fingerprintc sX|tddddgdd}d|d}d d gfd d |D}|j|||S) a **Create a SAML IdP for your organization.** https://developer.cisco.com/meraki/api-v1/#!create-organization-saml-idp - organizationId (string): (required) - x509certSha1Fingerprint (string): Fingerprint (SHA1) of the SAML certificate provided by your Identity Provider (IdP). This will be used for encryption / validation. - sloLogoutUrl (string): Dashboard will redirect users to this URL when they sign out. r r rrcreateOrganizationSamlIdp)r rz/organizations/z /saml/idpsr sloLogoutUrlcs&i|]\}}|kr||qSr)r)rrr)rrr r4sz;Organizations.createOrganizationSamlIdp..)r"rrrr)rrrrrrrr)rr r!s   z'Organizations.createOrganizationSamlIdp)ridpIdc s\|tddddgdd}d|d|}d d gfd d |D}|j|||S) a **Update a SAML IdP in your organization** https://developer.cisco.com/meraki/api-v1/#!update-organization-saml-idp - organizationId (string): (required) - idpId (string): (required) - x509certSha1Fingerprint (string): Fingerprint (SHA1) of the SAML certificate provided by your Identity Provider (IdP). This will be used for encryption / validation. - sloLogoutUrl (string): Dashboard will redirect users to this URL when they sign out. r r rrupdateOrganizationSamlIdp)r rz/organizations/z /saml/idps/rrcs&i|]\}}|kr||qSr)r)rrr)rrr rNsz;Organizations.updateOrganizationSamlIdp..)r"rrrr#)rrrrrrrr)rr r:s  z'Organizations.updateOrganizationSamlIdpcCs0ddddgdd}d|d|}|j||S) z **Get a SAML IdP from your organization.** https://developer.cisco.com/meraki/api-v1/#!get-organization-saml-idp - organizationId (string): (required) - idpId (string): (required) r r rrgetOrganizationSamlIdp)r rz/organizations/z /saml/idps/)rr)rrrrrrrr rTs z$Organizations.getOrganizationSamlIdpcCs0ddddgdd}d|d|}|j||S) z **Remove a SAML IdP in your organization.** https://developer.cisco.com/meraki/api-v1/#!delete-organization-saml-idp - organizationId (string): (required) - idpId (string): (required) r r rrdeleteOrganizationSamlIdp)r rz/organizations/z /saml/idps/)rr%)rrrrrrrr rgs z'Organizations.deleteOrganizationSamlIdpcCs*dddgdd}d|d}|j||S)z **List the SAML roles for this organization** https://developer.cisco.com/meraki/api-v1/#!get-organization-saml-roles - organizationId (string): (required) r r samlRolesgetOrganizationSamlRoles)r rz/organizations/z /samlRoles)rr)rrrrrrr rzs  z&Organizations.getOrganizationSamlRoles)rroler:c  s|td|krBdddg}|d|ksBtd|dd|ddd gd d }d |d }ddddgfdd|D}|j|||S)a! **Create a SAML role** https://developer.cisco.com/meraki/api-v1/#!create-organization-saml-role - organizationId (string): (required) - role (string): The role of the SAML administrator - orgAccess (string): The privilege of the SAML administrator on the organization. Can be one of 'none', 'read-only' or 'full' - 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 r:r=z read-onlyr;z"orgAccess" cannot be "z", & must be set to one of: r r rcreateOrganizationSamlRole)r rz/organizations/z /samlRolesrr r?cs&i|]\}}|kr||qSr)r)rrr)rrr rsz.)r"rr0rrr) rrrr:rr1rrrr)rr rs  $  z(Organizations.createOrganizationSamlRole)r samlRoleIdcCs.dddgdd}d|d|}|j||S)z **Return a SAML role** https://developer.cisco.com/meraki/api-v1/#!get-organization-saml-role - organizationId (string): (required) - samlRoleId (string): (required) r r rgetOrganizationSamlRole)r rz/organizations/z /samlRoles/)rr)rrrrrrrr rs z%Organizations.getOrganizationSamlRolec s|td|krBdddg}|d|ksBtd|dd|ddd gd d }d |d |}ddddgfdd|D}|j|||S)aK **Update a SAML role** https://developer.cisco.com/meraki/api-v1/#!update-organization-saml-role - organizationId (string): (required) - samlRoleId (string): (required) - role (string): The role of the SAML administrator - orgAccess (string): The privilege of the SAML administrator on the organization. Can be one of 'none', 'read-only' or 'full' - 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 r:r=z read-onlyr;z"orgAccess" cannot be "z", & must be set to one of: r r rupdateOrganizationSamlRole)r rz/organizations/z /samlRoles/rr r?cs&i|]\}}|kr||qSr)r)rrr)rrr rsz.)r"rr0rrr#)rrrrr1rrrr)rr rs  $ z(Organizations.updateOrganizationSamlRolecCs.dddgdd}d|d|}|j||S)z **Remove a SAML role** https://developer.cisco.com/meraki/api-v1/#!delete-organization-saml-role - organizationId (string): (required) - samlRoleId (string): (required) r r rdeleteOrganizationSamlRole)r rz/organizations/z /samlRoles/)rr%)rrrrrrrr rs z(Organizations.deleteOrganizationSamlRolecCs*dddgdd}d|d}|j||S)z **Return the SNMP settings for an organization** https://developer.cisco.com/meraki/api-v1/#!get-organization-snmp - organizationId (string): (required) r r snmpgetOrganizationSnmp)r rz/organizations/z/snmp)rr)rrrrrrr rs  z!Organizations.getOrganizationSnmpc s|td|kr@ddg}|d|ks@td|dd|d|krtddg}|d|ksttd |dd|d d d gd d}d|d}dddddddgfdd|D}|j|||S)a **Update the SNMP settings for an organization** https://developer.cisco.com/meraki/api-v1/#!update-organization-snmp - organizationId (string): (required) - v2cEnabled (boolean): Boolean indicating whether SNMP version 2c is enabled for the organization. - v3Enabled (boolean): Boolean indicating whether SNMP version 3 is enabled for the organization. - v3AuthMode (string): The SNMP version 3 authentication mode. Can be either 'MD5' or 'SHA'. - v3AuthPass (string): The SNMP version 3 authentication password. Must be at least 8 characters if specified. - v3PrivMode (string): The SNMP version 3 privacy mode. Can be either 'DES' or 'AES128'. - v3PrivPass (string): The SNMP version 3 privacy password. Must be at least 8 characters if specified. - peerIps (array): The list of IPv4 addresses that are allowed to access the SNMP server. Z v3AuthModeMD5SHAz"v3AuthMode" cannot be "z", & must be set to one of: Z v3PrivModeZDESZAES128z"v3PrivMode" cannot be "r r rupdateOrganizationSnmp)r rz/organizations/z/snmpZ v2cEnabledZ v3EnabledZ v3AuthPassZ v3PrivPassZpeerIpscs&i|]\}}|kr||qSr)r)rrr)rrr r"sz8Organizations.updateOrganizationSnmp..)r"rr0rrr#)rrrr1rrrr)rr rs $$ z$Organizations.updateOrganizationSnmpc  s|tddddgdd}d|d}d d d d d dgfdd|D}d d dg}xF|D]:\} } | |krd|| || d<|| qdW|j|||||S)a  **List the uplink status of every Meraki MX, MG and Z series devices in the organization** https://developer.cisco.com/meraki/api-v1/#!get-organization-uplinks-statuses - organizationId (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. - networkIds (array): A list of network IDs. The returned devices will be filtered to only include these networks. - serials (array): A list of serial numbers. The returned devices will be filtered to only include these serials. - iccids (array): A list of ICCIDs. The returned devices will be filtered to only include these ICCIDs. r rEZuplinksrugetOrganizationUplinksStatuses)r rz/organizations/z/uplinks/statusesrKrLrMrrdZiccidscs&i|]\}}|kr||qSr)r)rrr)r/rr rAsz@Organizations.getOrganizationUplinksStatuses..z[])r"rrrrrrP) rrrQrRrrrr2rrrr)r/r r(s     z,Organizations.getOrganizationUplinksStatusescCs,ddddgdd}d|d}|j||S) z **Return a list of alert types to be used with managing webhook alerts** https://developer.cisco.com/meraki/api-v1/#!get-organization-webhooks-alert-types - organizationId (string): (required) r rEwebhooksZ alertTypes!getOrganizationWebhooksAlertTypes)r rz/organizations/z/webhooks/alertTypes)rr)rrrrrrr rMs  z/Organizations.getOrganizationWebhooksAlertTypesc sf|tddddgdd}d|d}d d d d d ddgfdd|D}|j|||||S)a **Return the log of webhook POSTs sent** https://developer.cisco.com/meraki/api-v1/#!get-organization-webhooks-logs - organizationId (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 - t0 (string): The beginning of the timespan for the data. The maximum lookback period is 90 days from today. - t1 (string): The end of the timespan for the data. t1 can be a maximum of 31 days after t0. - timespan (number): The timespan for which the information will be fetched. If specifying timespan, do not specify parameters t0 and t1. The value must be in seconds and be less than or equal to 31 days. The default is 1 day. - perPage (integer): The number of entries per page returned. Acceptable range is 3 - 1000. Default is 50. - 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. - url (string): The URL the webhook was sent to r rErZlogsgetOrganizationWebhooksLogs)r rz/organizations/z/webhooks/logsrHrIrJrKrLrMurlcs&i|]\}}|kr||qSr)r)rrr)r/rr rysz=Organizations.getOrganizationWebhooksLogs..)r"rrrrP)rrrQrRrrrr2r)r/r r_s   z)Organizations.getOrganizationWebhooksLogs)rCrD)rCrp)rCrD)rCrD)rCrD)rCrD)rCrD)rCrD)rCrD)M__name__ __module__ __qualname__rr strrr r!r$listr(r.r4r5r6r8r>rArBrGrTrVbooldictrYr\r^r`rarbrcrfrhrirmrnrorqrtrvrwr|rrintrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr __classcell__rr)rr rs $ $ ! "##) %%rN)objectrrrrr