RockyRoad 0.0.577__py3-none-any.whl → 0.0.579__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- rockyroad/modules/sharepoint.py +48 -2
- {rockyroad-0.0.577.dist-info → rockyroad-0.0.579.dist-info}/METADATA +1 -1
- {rockyroad-0.0.577.dist-info → rockyroad-0.0.579.dist-info}/RECORD +6 -6
- {rockyroad-0.0.577.dist-info → rockyroad-0.0.579.dist-info}/WHEEL +0 -0
- {rockyroad-0.0.577.dist-info → rockyroad-0.0.579.dist-info}/licenses/LICENSE +0 -0
- {rockyroad-0.0.577.dist-info → rockyroad-0.0.579.dist-info}/top_level.txt +0 -0
rockyroad/modules/sharepoint.py
CHANGED
|
@@ -28,7 +28,10 @@ class Sharepoint(Consumer):
|
|
|
28
28
|
super().__init__(base_url=self._base_url, *args, **kw)
|
|
29
29
|
|
|
30
30
|
def mappings(self):
|
|
31
|
-
return self.
|
|
31
|
+
return self.__Mappings(self)
|
|
32
|
+
|
|
33
|
+
def tree(self):
|
|
34
|
+
return self.__Tree(self)
|
|
32
35
|
|
|
33
36
|
@returns.json
|
|
34
37
|
@http_get("sharepoint/sites")
|
|
@@ -78,4 +81,47 @@ class Sharepoint(Consumer):
|
|
|
78
81
|
@patch("sharepoint/mappings/{uid}")
|
|
79
82
|
def update(self, uid: str, mapping: Body):
|
|
80
83
|
"""This call will update a mapping with the specified parameters."""
|
|
81
|
-
|
|
84
|
+
|
|
85
|
+
@headers({"Ocp-Apim-Subscription-Key": key})
|
|
86
|
+
@retry(max_attempts=20, when=status_5xx())
|
|
87
|
+
class __Tree(Consumer):
|
|
88
|
+
"""Interface to Sharepoint Tree resource for the RockyRoad API."""
|
|
89
|
+
|
|
90
|
+
def __init__(self, Resource, *args, **kw):
|
|
91
|
+
self._base_url = Resource._base_url
|
|
92
|
+
super().__init__(base_url=self._base_url, *args, **kw)
|
|
93
|
+
|
|
94
|
+
@returns.json
|
|
95
|
+
@http_get("sharepoint-tree/folder-tree/{site_name}/{drive_name}")
|
|
96
|
+
def get_tree(self, site_name: str, drive_name: str):
|
|
97
|
+
"""Get cached folder tree for the specified site and drive."""
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
@returns.json
|
|
101
|
+
@http_get("sharepoint-tree/folder-tree/{site_name}/{drive_name}/children/{parent_id}")
|
|
102
|
+
def get_folder_children(self, site_name: str, drive_name: str, parent_id: str):
|
|
103
|
+
"""Get cached folder children for the specified site, drive, and parent id."""
|
|
104
|
+
|
|
105
|
+
@returns.json
|
|
106
|
+
@post("sharepoint-tree/folder-tree/refresh")
|
|
107
|
+
def refresh_tree(self, body: Body):
|
|
108
|
+
"""Refresh cached folder tree for the specified site and drive."""
|
|
109
|
+
|
|
110
|
+
@returns.json
|
|
111
|
+
@http_get("sharepoint-tree/folder-tree/status")
|
|
112
|
+
def get_tree_status(self):
|
|
113
|
+
"""Get cached folder tree status."""
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
@returns.json
|
|
117
|
+
@http_get("sharepoint-tree/folder-tree/{site_name}/{drive_name}/metadata")
|
|
118
|
+
def get_tree_metadata(self, site_name: str, drive_name: str):
|
|
119
|
+
"""Get cached folder tree metadata for the specified site and drive."""
|
|
120
|
+
|
|
121
|
+
@http_get("sharepoint-tree/health")
|
|
122
|
+
def get_health(self):
|
|
123
|
+
"""Get health of the sharepoint tree."""
|
|
124
|
+
|
|
125
|
+
@delete("sharepoint-tree/folder-tree/{site_name}/{drive_name}")
|
|
126
|
+
def clear_cached_tree(self, site_name: str, drive_name: str):
|
|
127
|
+
"""Clear cached folder tree for the specified site and drive."""
|
|
@@ -40,7 +40,7 @@ rockyroad/modules/portal_users.py,sha256=h1IpyD02NtbZaVYy-mtyygBmJgvOHWzPRiJoQHy
|
|
|
40
40
|
rockyroad/modules/predictive_maintenance.py,sha256=-lpt93hJC__oGmn8pdAHhwSmJVMTpDHhQLhOg8k-FlQ,695
|
|
41
41
|
rockyroad/modules/service_reports.py,sha256=AndnKc3xgs-iXQino60LD7LHvpc00NL1ZDPyODyNmSI,1539
|
|
42
42
|
rockyroad/modules/services.py,sha256=yAYJxMzYFgAw95uaAH4Y1FWsGz1LNN5s3pQDvQ88wFE,6420
|
|
43
|
-
rockyroad/modules/sharepoint.py,sha256=
|
|
43
|
+
rockyroad/modules/sharepoint.py,sha256=pwmLp_gpODjrOXm7-RzOl-K-YmPAu0aF-XvvtGD9ta4,4478
|
|
44
44
|
rockyroad/modules/simple_forms.py,sha256=mHrGDjHu_t8RIxF0Av-WaIb6U_1gNXY3oNpENsQw2mU,3555
|
|
45
45
|
rockyroad/modules/subscriptions.py,sha256=eT2AdETZqqtx55CxF0sW92-D5z9Eww1m8TSnybt2L7g,4472
|
|
46
46
|
rockyroad/modules/summaries.py,sha256=-UYNUaSBZB4jVatIItAVEF0ac4rlO-4Fk5hvL60lofs,2709
|
|
@@ -59,8 +59,8 @@ rockyroad/modules/warranty_pip.py,sha256=_viDrbdMOX07OirXCH-22bfeeid60IoIl-lqZr_
|
|
|
59
59
|
rockyroad/modules/warranty_rates.py,sha256=8oeDfg3boooBa3KPOWoR1JIm9yaX9Kslo4ZZnuuCDZA,1704
|
|
60
60
|
rockyroad/modules/warranty_registrations.py,sha256=ycTKiYoV9T_OTyKlwKSiLrDH7cOigSBzjIFI47GPhFA,1969
|
|
61
61
|
rockyroad/modules/warranty_rga.py,sha256=9rDQFE1YLw4dcpbt2yD3qIMxbvhUfoBNdpWl6KBRTPU,4714
|
|
62
|
-
rockyroad-0.0.
|
|
63
|
-
rockyroad-0.0.
|
|
64
|
-
rockyroad-0.0.
|
|
65
|
-
rockyroad-0.0.
|
|
66
|
-
rockyroad-0.0.
|
|
62
|
+
rockyroad-0.0.579.dist-info/licenses/LICENSE,sha256=2bm9uFabQZ3Ykb_SaSU_uUbAj2-htc6WJQmS_65qD00,1073
|
|
63
|
+
rockyroad-0.0.579.dist-info/METADATA,sha256=l9-ax8xfL2WLdYxyChMoSpoeJzUaMC9FLryDBSEPfao,34189
|
|
64
|
+
rockyroad-0.0.579.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
65
|
+
rockyroad-0.0.579.dist-info/top_level.txt,sha256=2i16gCpB6x-hh1eUXH0KijIjfx08oEvLfV7eS9TL3Bs,10
|
|
66
|
+
rockyroad-0.0.579.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|