forked from meraki/dashboard-api-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathspaces.py
More file actions
27 lines (18 loc) · 836 Bytes
/
Copy pathspaces.py
File metadata and controls
27 lines (18 loc) · 836 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import urllib
class Spaces(object):
def __init__(self, session):
super(Spaces, self).__init__()
self._session = session
def removeOrganizationSpacesIntegration(self, organizationId: str):
"""
**Remove the Spaces integration from Meraki**
https://developer.cisco.com/meraki/api-v1/#!remove-organization-spaces-integration
- organizationId (string): Organization ID
"""
metadata = {
'tags': ['organizations', 'configure', 'spaces', 'integration'],
'operation': 'removeOrganizationSpacesIntegration'
}
organizationId = urllib.parse.quote(str(organizationId), safe='')
resource = f'/organizations/{organizationId}/spaces/integration/remove'
return self._session.post(metadata, resource)