RockyRoad 0.0.598__py3-none-any.whl → 0.0.599__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/price_reviews.py +169 -0
- rockyroad/rockyroad.py +4 -0
- {rockyroad-0.0.598.dist-info → rockyroad-0.0.599.dist-info}/METADATA +1 -1
- {rockyroad-0.0.598.dist-info → rockyroad-0.0.599.dist-info}/RECORD +7 -6
- {rockyroad-0.0.598.dist-info → rockyroad-0.0.599.dist-info}/WHEEL +0 -0
- {rockyroad-0.0.598.dist-info → rockyroad-0.0.599.dist-info}/licenses/LICENSE +0 -0
- {rockyroad-0.0.598.dist-info → rockyroad-0.0.599.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
from .module_imports import get_key
|
|
2
|
+
from uplink.retry.when import status_5xx
|
|
3
|
+
from uplink import (
|
|
4
|
+
Consumer,
|
|
5
|
+
Path,
|
|
6
|
+
delete,
|
|
7
|
+
get as http_get,
|
|
8
|
+
patch,
|
|
9
|
+
post,
|
|
10
|
+
returns,
|
|
11
|
+
headers,
|
|
12
|
+
retry,
|
|
13
|
+
Body,
|
|
14
|
+
json,
|
|
15
|
+
Query,
|
|
16
|
+
)
|
|
17
|
+
|
|
18
|
+
# Module configuration
|
|
19
|
+
USE_SERVICES_API = True
|
|
20
|
+
key = get_key(use_services_api=USE_SERVICES_API)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
@headers({"Ocp-Apim-Subscription-Key": key})
|
|
24
|
+
@retry(max_attempts=20, when=status_5xx())
|
|
25
|
+
class Price_Reviews(Consumer):
|
|
26
|
+
"""Interface to Price Reviews resource for the RockyRoad API."""
|
|
27
|
+
|
|
28
|
+
def __init__(self, Resource, *args, **kw):
|
|
29
|
+
self._base_url = Resource._services_base_url if USE_SERVICES_API else Resource._base_url
|
|
30
|
+
super().__init__(base_url=self._base_url, *args, **kw)
|
|
31
|
+
|
|
32
|
+
def requests(self):
|
|
33
|
+
return self.__Requests(self)
|
|
34
|
+
|
|
35
|
+
def parts(self):
|
|
36
|
+
return self.__Parts(self)
|
|
37
|
+
|
|
38
|
+
def logs(self):
|
|
39
|
+
return self.__Logs(self)
|
|
40
|
+
|
|
41
|
+
@headers({"Ocp-Apim-Subscription-Key": key})
|
|
42
|
+
@retry(max_attempts=20, when=status_5xx())
|
|
43
|
+
class __Requests(Consumer):
|
|
44
|
+
"""Interface to Price Review Requests resource for the RockyRoad API."""
|
|
45
|
+
|
|
46
|
+
def __init__(self, Resource, *args, **kw):
|
|
47
|
+
self._base_url = Resource._base_url
|
|
48
|
+
super().__init__(base_url=self._base_url, *args, **kw)
|
|
49
|
+
|
|
50
|
+
@returns.json
|
|
51
|
+
@http_get("price-reviews/requests")
|
|
52
|
+
def list(
|
|
53
|
+
self,
|
|
54
|
+
company_uid: Query = None,
|
|
55
|
+
):
|
|
56
|
+
"""This call will return detailed price review requests information for the specified criteria."""
|
|
57
|
+
|
|
58
|
+
@returns.json
|
|
59
|
+
@http_get("price-reviews/requests/{uid}")
|
|
60
|
+
def get(
|
|
61
|
+
self,
|
|
62
|
+
uid: str,
|
|
63
|
+
):
|
|
64
|
+
"""This call will return detailed price review requests information for the specified criteria."""
|
|
65
|
+
|
|
66
|
+
@delete("price-reviews/requests/{uid}")
|
|
67
|
+
def delete(self, uid: str):
|
|
68
|
+
"""This call will delete the price review requests for the specified uid."""
|
|
69
|
+
|
|
70
|
+
@returns.json
|
|
71
|
+
@json
|
|
72
|
+
@post("price-reviews/requests")
|
|
73
|
+
def insert(self, price_review_request: Body):
|
|
74
|
+
"""This call will create a price review requests with the specified parameters."""
|
|
75
|
+
|
|
76
|
+
@json
|
|
77
|
+
@patch("price-reviews/requests/{uid}")
|
|
78
|
+
def update(self, uid: str, price_review_request: Body):
|
|
79
|
+
"""This call will update the price review requests with the specified parameters."""
|
|
80
|
+
|
|
81
|
+
@headers({"Ocp-Apim-Subscription-Key": key})
|
|
82
|
+
@retry(max_attempts=20, when=status_5xx())
|
|
83
|
+
class __Parts(Consumer):
|
|
84
|
+
"""Interface to Price Review Parts resource for the RockyRoad API."""
|
|
85
|
+
|
|
86
|
+
def __init__(self, Resource, *args, **kw):
|
|
87
|
+
self._base_url = Resource._base_url
|
|
88
|
+
super().__init__(base_url=self._base_url, *args, **kw)
|
|
89
|
+
|
|
90
|
+
@returns.json
|
|
91
|
+
@http_get("price-reviews/parts")
|
|
92
|
+
def list(
|
|
93
|
+
self,
|
|
94
|
+
):
|
|
95
|
+
"""This call will return detailed price review parts information for the specified criteria."""
|
|
96
|
+
|
|
97
|
+
@returns.json
|
|
98
|
+
@http_get("price-reviews/requests/{request_uid}/parts")
|
|
99
|
+
def list_by_request(
|
|
100
|
+
self,
|
|
101
|
+
request_uid: str,
|
|
102
|
+
):
|
|
103
|
+
"""This call will return detailed price review parts information for the specified criteria."""
|
|
104
|
+
|
|
105
|
+
@returns.json
|
|
106
|
+
@http_get("price-reviews/parts/{uid}")
|
|
107
|
+
def get(
|
|
108
|
+
self,
|
|
109
|
+
uid: str,
|
|
110
|
+
):
|
|
111
|
+
"""This call will return detailed price review parts information for the specified criteria."""
|
|
112
|
+
|
|
113
|
+
@delete("price-reviews/parts/{uid}")
|
|
114
|
+
def delete(self, uid: str):
|
|
115
|
+
"""This call will delete the price review parts for the specified uid."""
|
|
116
|
+
|
|
117
|
+
@returns.json
|
|
118
|
+
@json
|
|
119
|
+
@post("price-reviews/requests/{request_uid}/parts")
|
|
120
|
+
def insert(self, request_uid: str, price_review_part: Body):
|
|
121
|
+
"""This call will create a price review parts with the specified parameters."""
|
|
122
|
+
|
|
123
|
+
@json
|
|
124
|
+
@patch("price-reviews/parts/{uid}")
|
|
125
|
+
def update(self, uid: str, price_review_part: Body):
|
|
126
|
+
"""This call will update the price review parts with the specified parameters."""
|
|
127
|
+
|
|
128
|
+
@headers({"Ocp-Apim-Subscription-Key": key})
|
|
129
|
+
@retry(max_attempts=20, when=status_5xx())
|
|
130
|
+
class __Logs(Consumer):
|
|
131
|
+
"""Interface to Price Review Logs resource for the RockyRoad API."""
|
|
132
|
+
|
|
133
|
+
def __init__(self, Resource, *args, **kw):
|
|
134
|
+
self._base_url = Resource._base_url
|
|
135
|
+
super().__init__(base_url=self._base_url, *args, **kw)
|
|
136
|
+
|
|
137
|
+
@returns.json
|
|
138
|
+
@http_get("price-reviews/logs")
|
|
139
|
+
def list(
|
|
140
|
+
self,
|
|
141
|
+
):
|
|
142
|
+
"""This call will return detailed price review logs information for the specified criteria."""
|
|
143
|
+
|
|
144
|
+
@returns.json
|
|
145
|
+
@http_get("price-reviews/requests/{request_uid}/logs")
|
|
146
|
+
def list_by_request(
|
|
147
|
+
self,
|
|
148
|
+
request_uid: str,
|
|
149
|
+
):
|
|
150
|
+
"""This call will return detailed price review logs information for the specified criteria."""
|
|
151
|
+
|
|
152
|
+
@returns.json
|
|
153
|
+
@http_get("price-reviews/logs/{uid}")
|
|
154
|
+
def get(
|
|
155
|
+
self,
|
|
156
|
+
request_uid: str,
|
|
157
|
+
uid: str,
|
|
158
|
+
):
|
|
159
|
+
"""This call will return detailed price review logs information for the specified criteria."""
|
|
160
|
+
|
|
161
|
+
@delete("price-reviews/logs/{uid}")
|
|
162
|
+
def delete(self, uid: str):
|
|
163
|
+
"""This call will delete the price review logs for the specified uid."""
|
|
164
|
+
|
|
165
|
+
@returns.json
|
|
166
|
+
@json
|
|
167
|
+
@post("price-reviews/requests/{request_uid}/logs")
|
|
168
|
+
def insert(self, request_uid: str, price_review_log: Body):
|
|
169
|
+
"""This call will create a price review log with the specified parameters."""
|
rockyroad/rockyroad.py
CHANGED
|
@@ -86,6 +86,7 @@ class DataServicesResource(object):
|
|
|
86
86
|
from .modules.machine_passcodes import Machine_Passcodes
|
|
87
87
|
from .modules.documoto import Documoto
|
|
88
88
|
from .modules.sharepoint import Sharepoint
|
|
89
|
+
from .modules.price_reviews import Price_Reviews
|
|
89
90
|
|
|
90
91
|
def apiInfo(self):
|
|
91
92
|
return self._API_Info(self)
|
|
@@ -220,6 +221,9 @@ class DataServicesResource(object):
|
|
|
220
221
|
def sharepoint(self):
|
|
221
222
|
return self.Sharepoint(self)
|
|
222
223
|
|
|
224
|
+
def priceReviews(self):
|
|
225
|
+
return self.Price_Reviews(self)
|
|
226
|
+
|
|
223
227
|
|
|
224
228
|
class EmailServicesResource(object):
|
|
225
229
|
"""Interface to Email Services resources for the RockyRoad API."""
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
rockyroad/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
rockyroad/rockyroad.py,sha256=
|
|
2
|
+
rockyroad/rockyroad.py,sha256=0yDBbUbdFU5xTyExQPIPr8H6p4G7npViXuS5zKAKu2A,39506
|
|
3
3
|
rockyroad/modules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
rockyroad/modules/accounts.py,sha256=jgZKHFSLEFSyystEUBkOvNGCUipQBbH172pKAEvAg50,6540
|
|
5
5
|
rockyroad/modules/alerts.py,sha256=pQuagcTvma-C2Gf7shM7Ty6Niny1juLkmc9EST26_eM,2141
|
|
@@ -38,6 +38,7 @@ rockyroad/modules/parts.py,sha256=Ee4bKSoOzhrdMH1RTBSRMIMJf5BRFxkdppxwD22z-mA,56
|
|
|
38
38
|
rockyroad/modules/portal_configurations.py,sha256=6mYcEK9VSuQi348m_1vzRmgS8hxbcJB7NiLQXnHoYgg,2673
|
|
39
39
|
rockyroad/modules/portal_users.py,sha256=h1IpyD02NtbZaVYy-mtyygBmJgvOHWzPRiJoQHyOj2k,1018
|
|
40
40
|
rockyroad/modules/predictive_maintenance.py,sha256=-lpt93hJC__oGmn8pdAHhwSmJVMTpDHhQLhOg8k-FlQ,695
|
|
41
|
+
rockyroad/modules/price_reviews.py,sha256=166UM_7CTa7IBMhk58MsOVm0rkR0sniMM3c14n2U28w,5749
|
|
41
42
|
rockyroad/modules/service_reports.py,sha256=AndnKc3xgs-iXQino60LD7LHvpc00NL1ZDPyODyNmSI,1539
|
|
42
43
|
rockyroad/modules/services.py,sha256=yAYJxMzYFgAw95uaAH4Y1FWsGz1LNN5s3pQDvQ88wFE,6420
|
|
43
44
|
rockyroad/modules/sharepoint.py,sha256=H_Oy2Q6ST1g-uX4spvlcYAf95zfuA-XO8UOKmtBvN_w,4510
|
|
@@ -59,8 +60,8 @@ rockyroad/modules/warranty_pip.py,sha256=_viDrbdMOX07OirXCH-22bfeeid60IoIl-lqZr_
|
|
|
59
60
|
rockyroad/modules/warranty_rates.py,sha256=8oeDfg3boooBa3KPOWoR1JIm9yaX9Kslo4ZZnuuCDZA,1704
|
|
60
61
|
rockyroad/modules/warranty_registrations.py,sha256=ycTKiYoV9T_OTyKlwKSiLrDH7cOigSBzjIFI47GPhFA,1969
|
|
61
62
|
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.
|
|
63
|
+
rockyroad-0.0.599.dist-info/licenses/LICENSE,sha256=2bm9uFabQZ3Ykb_SaSU_uUbAj2-htc6WJQmS_65qD00,1073
|
|
64
|
+
rockyroad-0.0.599.dist-info/METADATA,sha256=xMcu8MUWPE3i82rFgAxzI3SqWXGGZR8uLpKRn0VnsKM,34189
|
|
65
|
+
rockyroad-0.0.599.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
66
|
+
rockyroad-0.0.599.dist-info/top_level.txt,sha256=2i16gCpB6x-hh1eUXH0KijIjfx08oEvLfV7eS9TL3Bs,10
|
|
67
|
+
rockyroad-0.0.599.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|