RockyRoad 0.0.594__py3-none-any.whl → 0.0.596__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/tco_calculator.py +68 -13
- {rockyroad-0.0.594.dist-info → rockyroad-0.0.596.dist-info}/METADATA +1 -1
- {rockyroad-0.0.594.dist-info → rockyroad-0.0.596.dist-info}/RECORD +6 -6
- {rockyroad-0.0.594.dist-info → rockyroad-0.0.596.dist-info}/WHEEL +0 -0
- {rockyroad-0.0.594.dist-info → rockyroad-0.0.596.dist-info}/licenses/LICENSE +0 -0
- {rockyroad-0.0.594.dist-info → rockyroad-0.0.596.dist-info}/top_level.txt +0 -0
|
@@ -39,6 +39,9 @@ class _TCO(Consumer):
|
|
|
39
39
|
def parts(self):
|
|
40
40
|
return self._Parts(self)
|
|
41
41
|
|
|
42
|
+
def logs(self):
|
|
43
|
+
return self._Logs(self)
|
|
44
|
+
|
|
42
45
|
@headers({"Ocp-Apim-Subscription-Key": key})
|
|
43
46
|
@retry(max_attempts=20, when=status_5xx())
|
|
44
47
|
class _Cost_Model(Consumer):
|
|
@@ -52,28 +55,28 @@ class _TCO(Consumer):
|
|
|
52
55
|
return self._Machines(self)
|
|
53
56
|
|
|
54
57
|
@returns.json
|
|
55
|
-
@http_get("calculators/tco/cost-
|
|
58
|
+
@http_get("calculators/tco/cost-models")
|
|
56
59
|
def list(
|
|
57
60
|
self, is_validated: Query = None, is_maintenance_calculator: Query = None):
|
|
58
61
|
"""This call will return list of TCO Cost Model."""
|
|
59
62
|
|
|
60
63
|
@returns.json
|
|
61
|
-
@http_get("calculators/tco/cost-
|
|
64
|
+
@http_get("calculators/tco/cost-models/{uid}")
|
|
62
65
|
def get(self, uid: str):
|
|
63
66
|
"""This call will return the specified TCO Cost Model."""
|
|
64
67
|
|
|
65
|
-
@delete("calculators/tco/cost-
|
|
68
|
+
@delete("calculators/tco/cost-models/{uid}")
|
|
66
69
|
def delete(self, uid: str):
|
|
67
70
|
"""This call will delete the TCO Cost Model."""
|
|
68
71
|
|
|
69
72
|
@returns.json
|
|
70
73
|
@json
|
|
71
|
-
@post("calculators/tco/cost-
|
|
74
|
+
@post("calculators/tco/cost-models")
|
|
72
75
|
def insert(self, tco_part: Body):
|
|
73
76
|
"""This call will create the TCO Cost Model."""
|
|
74
77
|
|
|
75
78
|
@json
|
|
76
|
-
@patch("calculators/tco/cost-
|
|
79
|
+
@patch("calculators/tco/cost-models/{uid}")
|
|
77
80
|
def update(self, uid: str, tco_part: Body):
|
|
78
81
|
"""This call will update the TCO Cost Model."""
|
|
79
82
|
|
|
@@ -99,7 +102,7 @@ class _TCO(Consumer):
|
|
|
99
102
|
super().__init__(base_url=Resource._base_url, *args, **kw)
|
|
100
103
|
|
|
101
104
|
@returns.json
|
|
102
|
-
@http_get("calculators/tco/cost-
|
|
105
|
+
@http_get("calculators/tco/cost-models/machines/catalogs/{uid}")
|
|
103
106
|
def get(self, uid: str):
|
|
104
107
|
"""This call will return the TCO cost model for the specified machine catalog uid."""
|
|
105
108
|
|
|
@@ -114,9 +117,12 @@ class _TCO(Consumer):
|
|
|
114
117
|
|
|
115
118
|
@returns.json
|
|
116
119
|
@http_get("calculators/tco/maintenance")
|
|
117
|
-
def list(
|
|
118
|
-
|
|
119
|
-
|
|
120
|
+
def list(self):
|
|
121
|
+
"""This call will return list of TCO Maintenances."""
|
|
122
|
+
|
|
123
|
+
@returns.json
|
|
124
|
+
@http_get("calculators/tco/cost-models/{tco_cost_model_uid}/maintenance")
|
|
125
|
+
def list_by_cost_model(self, tco_cost_model_uid: str):
|
|
120
126
|
"""This call will return list of TCO Maintenances."""
|
|
121
127
|
|
|
122
128
|
@returns.json
|
|
@@ -130,8 +136,8 @@ class _TCO(Consumer):
|
|
|
130
136
|
|
|
131
137
|
@returns.json
|
|
132
138
|
@json
|
|
133
|
-
@post("calculators/tco/maintenance")
|
|
134
|
-
def insert(self, tco_part: Body):
|
|
139
|
+
@post("calculators/tco/cost-models/{tco_cost_model_uid}/maintenance")
|
|
140
|
+
def insert(self, tco_cost_model_uid: str, tco_part: Body):
|
|
135
141
|
"""This call will create the TCO Maintenance."""
|
|
136
142
|
|
|
137
143
|
@json
|
|
@@ -159,6 +165,14 @@ class _TCO(Consumer):
|
|
|
159
165
|
):
|
|
160
166
|
"""This call will return list of TCO Parts."""
|
|
161
167
|
|
|
168
|
+
@returns.json
|
|
169
|
+
@http_get("calculators/tco/tasks/{tco_task_uid}/parts")
|
|
170
|
+
def list_by_task(
|
|
171
|
+
self,
|
|
172
|
+
tco_task_uid: str
|
|
173
|
+
):
|
|
174
|
+
"""This call will return list of TCO Parts."""
|
|
175
|
+
|
|
162
176
|
@returns.json
|
|
163
177
|
@http_get("calculators/tco/parts/{uid}")
|
|
164
178
|
def get(self, uid: str):
|
|
@@ -170,8 +184,8 @@ class _TCO(Consumer):
|
|
|
170
184
|
|
|
171
185
|
@returns.json
|
|
172
186
|
@json
|
|
173
|
-
@post("calculators/tco/parts")
|
|
174
|
-
def insert(self, tco_part: Body):
|
|
187
|
+
@post("calculators/tco/tasks/{tco_task_uid}/parts")
|
|
188
|
+
def insert(self, tco_task_uid: str, tco_part: Body):
|
|
175
189
|
"""This call will create the TCO Part."""
|
|
176
190
|
|
|
177
191
|
@json
|
|
@@ -194,6 +208,11 @@ class _TCO(Consumer):
|
|
|
194
208
|
def list(self, tco_cost_model_uid: Query = None):
|
|
195
209
|
"""This call will return list of TCO Tasks."""
|
|
196
210
|
|
|
211
|
+
@returns.json
|
|
212
|
+
@http_get("calculators/tco/cost-models/{tco_cost_model_uid}/tasks")
|
|
213
|
+
def list_by_cost_model(self, tco_cost_model_uid: str):
|
|
214
|
+
"""This call will return list of TCO Tasks."""
|
|
215
|
+
|
|
197
216
|
@returns.json
|
|
198
217
|
@http_get("calculators/tco/tasks/{uid}")
|
|
199
218
|
def get(self, uid: str):
|
|
@@ -218,3 +237,39 @@ class _TCO(Consumer):
|
|
|
218
237
|
@patch("calculators/tco/tasks/{uid}")
|
|
219
238
|
def update(self, uid: str, tco_task: Body):
|
|
220
239
|
"""This call will update the TCO Task."""
|
|
240
|
+
|
|
241
|
+
@headers({"Ocp-Apim-Subscription-Key": key})
|
|
242
|
+
@retry(max_attempts=20, when=status_5xx())
|
|
243
|
+
class _Logs(Consumer):
|
|
244
|
+
"""Interface to TCO Logs resource for the RockyRoad API."""
|
|
245
|
+
|
|
246
|
+
def __init__(self, Resource, *args, **kw):
|
|
247
|
+
self._base_url = Resource._base_url
|
|
248
|
+
super().__init__(base_url=Resource._base_url, *args, **kw)
|
|
249
|
+
|
|
250
|
+
@returns.json
|
|
251
|
+
@http_get("calculators/tco/logs")
|
|
252
|
+
def list(self):
|
|
253
|
+
"""This call will return list of TCO Logs."""
|
|
254
|
+
|
|
255
|
+
@returns.json
|
|
256
|
+
@http_get("calculators/tco/cost-models/{tco_cost_model_uid}/logs")
|
|
257
|
+
def list_by_cost_model(self, tco_cost_model_uid: str):
|
|
258
|
+
"""This call will return list of TCO Logs."""
|
|
259
|
+
|
|
260
|
+
@returns.json
|
|
261
|
+
@http_get("calculators/tco/logs/{uid}")
|
|
262
|
+
def get(self, uid: str):
|
|
263
|
+
"""This call will return the specified TCO Log."""
|
|
264
|
+
|
|
265
|
+
@delete("calculators/tco/logs/{uid}")
|
|
266
|
+
def delete(self, uid: str):
|
|
267
|
+
"""This call will delete the TCO Log."""
|
|
268
|
+
|
|
269
|
+
@returns.json
|
|
270
|
+
@json
|
|
271
|
+
@post("calculators/tco/cost-models/{tco_cost_model_uid}/logs")
|
|
272
|
+
def insert(self, tco_cost_model_uid: str, tco_log: Body):
|
|
273
|
+
"""This call will create the TCO Log."""
|
|
274
|
+
|
|
275
|
+
|
|
@@ -44,7 +44,7 @@ rockyroad/modules/sharepoint.py,sha256=H_Oy2Q6ST1g-uX4spvlcYAf95zfuA-XO8UOKmtBvN
|
|
|
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
|
|
47
|
-
rockyroad/modules/tco_calculator.py,sha256=
|
|
47
|
+
rockyroad/modules/tco_calculator.py,sha256=hjprvQr7eMFcLnjRqjj44jyrJp45FbuXdixwd1lzKxo,9478
|
|
48
48
|
rockyroad/modules/technical_content_feedback.py,sha256=tZUZJ3CSi3Fv3MVnoGN15gzzi8EhOLYbVhcpwNsc_xg,18134
|
|
49
49
|
rockyroad/modules/telematics.py,sha256=qaU_ndUFGM6CpzpXjGhWsgZOScjpkW4Ui3KZJUliKjU,2040
|
|
50
50
|
rockyroad/modules/template.py,sha256=6RdWzHX3YZqdMQCU3IaCUgn1VWjS312Ok8pB8yDK790,2837
|
|
@@ -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.596.dist-info/licenses/LICENSE,sha256=2bm9uFabQZ3Ykb_SaSU_uUbAj2-htc6WJQmS_65qD00,1073
|
|
63
|
+
rockyroad-0.0.596.dist-info/METADATA,sha256=017sICWRFYmFI-GBM1C4sY73Vcs13bQghgcmA7B5Q24,34189
|
|
64
|
+
rockyroad-0.0.596.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
65
|
+
rockyroad-0.0.596.dist-info/top_level.txt,sha256=2i16gCpB6x-hh1eUXH0KijIjfx08oEvLfV7eS9TL3Bs,10
|
|
66
|
+
rockyroad-0.0.596.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|