RockyRoad 0.0.575__py3-none-any.whl → 0.0.577__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/content_management.py +1 -0
- rockyroad/modules/sharepoint.py +47 -0
- {rockyroad-0.0.575.dist-info → rockyroad-0.0.577.dist-info}/METADATA +1 -1
- {rockyroad-0.0.575.dist-info → rockyroad-0.0.577.dist-info}/RECORD +7 -7
- {rockyroad-0.0.575.dist-info → rockyroad-0.0.577.dist-info}/WHEEL +0 -0
- {rockyroad-0.0.575.dist-info → rockyroad-0.0.577.dist-info}/licenses/LICENSE +0 -0
- {rockyroad-0.0.575.dist-info → rockyroad-0.0.577.dist-info}/top_level.txt +0 -0
rockyroad/modules/sharepoint.py
CHANGED
|
@@ -7,6 +7,11 @@ from uplink import (
|
|
|
7
7
|
headers,
|
|
8
8
|
retry,
|
|
9
9
|
Query,
|
|
10
|
+
delete,
|
|
11
|
+
post,
|
|
12
|
+
patch,
|
|
13
|
+
Body,
|
|
14
|
+
json,
|
|
10
15
|
)
|
|
11
16
|
|
|
12
17
|
# Module configuration
|
|
@@ -22,6 +27,9 @@ class Sharepoint(Consumer):
|
|
|
22
27
|
self._base_url = Resource._services_base_url if USE_SERVICES_API else Resource._base_url
|
|
23
28
|
super().__init__(base_url=self._base_url, *args, **kw)
|
|
24
29
|
|
|
30
|
+
def mappings(self):
|
|
31
|
+
return self.Mappings(self)
|
|
32
|
+
|
|
25
33
|
@returns.json
|
|
26
34
|
@http_get("sharepoint/sites")
|
|
27
35
|
def list_sites(self):
|
|
@@ -31,4 +39,43 @@ class Sharepoint(Consumer):
|
|
|
31
39
|
@http_get("sharepoint/files")
|
|
32
40
|
def list_files(self, site_name: Query = None, drive_name: Query = None, item_id: Query = None):
|
|
33
41
|
"""This call will return list of files for the specified site, drive, and item."""
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
@headers({"Ocp-Apim-Subscription-Key": key})
|
|
45
|
+
@retry(max_attempts=20, when=status_5xx())
|
|
46
|
+
class __Mappings(Consumer):
|
|
47
|
+
"""Interface to Sharepoint Mappings resource for the RockyRoad API."""
|
|
48
|
+
|
|
49
|
+
def __init__(self, Resource, *args, **kw):
|
|
50
|
+
self._base_url = Resource._base_url
|
|
51
|
+
super().__init__(base_url=self._base_url, *args, **kw)
|
|
52
|
+
|
|
53
|
+
@returns.json
|
|
54
|
+
@http_get("sharepoint/mappings")
|
|
55
|
+
def list(
|
|
56
|
+
self,
|
|
57
|
+
machine_uid: Query = None,
|
|
58
|
+
machine_catalog_uid: Query = None,
|
|
59
|
+
):
|
|
60
|
+
"""This call will return list of mappings."""
|
|
61
|
+
|
|
62
|
+
@returns.json
|
|
63
|
+
@http_get("sharepoint/mappings/{uid}")
|
|
64
|
+
def get(self, uid: str):
|
|
65
|
+
"""This call will return a mapping for the specified uid."""
|
|
66
|
+
|
|
67
|
+
@delete("sharepoint/mappings/{uid}")
|
|
68
|
+
def delete(self, uid: str):
|
|
69
|
+
"""This call will delete a mapping for the specified uid."""
|
|
70
|
+
|
|
71
|
+
@returns.json
|
|
72
|
+
@json
|
|
73
|
+
@post("sharepoint/mappings")
|
|
74
|
+
def insert(self, mapping: Body):
|
|
75
|
+
"""This call will create a mapping with the specified parameters."""
|
|
76
|
+
|
|
77
|
+
@json
|
|
78
|
+
@patch("sharepoint/mappings/{uid}")
|
|
79
|
+
def update(self, uid: str, mapping: Body):
|
|
80
|
+
"""This call will update a mapping with the specified parameters."""
|
|
34
81
|
|
|
@@ -11,7 +11,7 @@ rockyroad/modules/business_information.py,sha256=KI0SwfcAQ3GJyHyELNL01jBh5F1wUye
|
|
|
11
11
|
rockyroad/modules/calculators.py,sha256=yjhBUavlaeccani1FwxZwiCbpSgISRzPk0GwF9yBA64,567
|
|
12
12
|
rockyroad/modules/companies.py,sha256=BXnAVTuGOoW5Ei9LyOkcMr1A6iTbRhAsyIqVS2CdpHU,13192
|
|
13
13
|
rockyroad/modules/company_specified_info.py,sha256=wD8-qaQerpGqFfzUrTIR7ednHQJ2RboODGJnd-kKsh4,2313
|
|
14
|
-
rockyroad/modules/content_management.py,sha256=
|
|
14
|
+
rockyroad/modules/content_management.py,sha256=3miiVmSv7cUqUNG25H71Ir9nP6YLFUrMlK8gi4LhflU,4487
|
|
15
15
|
rockyroad/modules/dealer_parts.py,sha256=lWRSEMulimvb6lIRUvwHUS2snMFvRVbL3YONYf6CLJs,4432
|
|
16
16
|
rockyroad/modules/dealers.py,sha256=W1CYiGUmgJ28ZTC3-RhkT-bBtQuUC5-_qrHpX-OviJ0,5636
|
|
17
17
|
rockyroad/modules/docs.py,sha256=SqIN_Kan5FzcfbslH9yaIPVuP90qirFhFnWuXaS7_w4,777
|
|
@@ -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=phSik6SUoz_PZPEUcYLAECeGNoBx1RhE5W6ypMQKFI8,2522
|
|
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.577.dist-info/licenses/LICENSE,sha256=2bm9uFabQZ3Ykb_SaSU_uUbAj2-htc6WJQmS_65qD00,1073
|
|
63
|
+
rockyroad-0.0.577.dist-info/METADATA,sha256=1kyS7UlqcGf_nuzazDZjly1lTjJ9W6zllVCeyXwrx_M,34189
|
|
64
|
+
rockyroad-0.0.577.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
65
|
+
rockyroad-0.0.577.dist-info/top_level.txt,sha256=2i16gCpB6x-hh1eUXH0KijIjfx08oEvLfV7eS9TL3Bs,10
|
|
66
|
+
rockyroad-0.0.577.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|