RockyRoad 0.0.594__py3-none-any.whl → 0.0.595__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.
@@ -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-model")
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-model/{uid}")
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-model/{uid}")
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-model")
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-model/{uid}")
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-model/machines/catalogs/{uid}")
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
- self, tco_cost_model_uid: Query = None,
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
@@ -218,3 +232,39 @@ class _TCO(Consumer):
218
232
  @patch("calculators/tco/tasks/{uid}")
219
233
  def update(self, uid: str, tco_task: Body):
220
234
  """This call will update the TCO Task."""
235
+
236
+ @headers({"Ocp-Apim-Subscription-Key": key})
237
+ @retry(max_attempts=20, when=status_5xx())
238
+ class _Logs(Consumer):
239
+ """Interface to TCO Logs resource for the RockyRoad API."""
240
+
241
+ def __init__(self, Resource, *args, **kw):
242
+ self._base_url = Resource._base_url
243
+ super().__init__(base_url=Resource._base_url, *args, **kw)
244
+
245
+ @returns.json
246
+ @http_get("calculators/tco/logs")
247
+ def list(self):
248
+ """This call will return list of TCO Logs."""
249
+
250
+ @returns.json
251
+ @http_get("calculators/tco/cost-models/{tco_cost_model_uid}/logs")
252
+ def list_by_cost_model(self, tco_cost_model_uid: str):
253
+ """This call will return list of TCO Logs."""
254
+
255
+ @returns.json
256
+ @http_get("calculators/tco/logs/{uid}")
257
+ def get(self, uid: str):
258
+ """This call will return the specified TCO Log."""
259
+
260
+ @delete("calculators/tco/logs/{uid}")
261
+ def delete(self, uid: str):
262
+ """This call will delete the TCO Log."""
263
+
264
+ @returns.json
265
+ @json
266
+ @post("calculators/tco/cost-models/{tco_cost_model_uid}/logs")
267
+ def insert(self, tco_cost_model_uid: str, tco_log: Body):
268
+ """This call will create the TCO Log."""
269
+
270
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: RockyRoad
3
- Version: 0.0.594
3
+ Version: 0.0.595
4
4
  Summary: Python wrapper for the RockyRoad API
5
5
  Home-page: https://github.com/pypa/sampleproject
6
6
  Project-URL: Bug Tracker, https://github.com/pypa/sampleproject/issues
@@ -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=KDBGWY5Wkfx8ODSUNvfwdt276suZGuBUnbLudbfan5w,7428
47
+ rockyroad/modules/tco_calculator.py,sha256=5XjeN0GvdYrTufS2UELN3aHO4PpftfiAQgV14RQE-Hc,9257
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.594.dist-info/licenses/LICENSE,sha256=2bm9uFabQZ3Ykb_SaSU_uUbAj2-htc6WJQmS_65qD00,1073
63
- rockyroad-0.0.594.dist-info/METADATA,sha256=UlBCBjufuVQ_xS7U1mlNx13WNO8GgbebdUelR09uY3Q,34189
64
- rockyroad-0.0.594.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
65
- rockyroad-0.0.594.dist-info/top_level.txt,sha256=2i16gCpB6x-hh1eUXH0KijIjfx08oEvLfV7eS9TL3Bs,10
66
- rockyroad-0.0.594.dist-info/RECORD,,
62
+ rockyroad-0.0.595.dist-info/licenses/LICENSE,sha256=2bm9uFabQZ3Ykb_SaSU_uUbAj2-htc6WJQmS_65qD00,1073
63
+ rockyroad-0.0.595.dist-info/METADATA,sha256=04MTlQAGZmtygc69A4tSYjuXGbDvO77_NOZr8oI3ydI,34189
64
+ rockyroad-0.0.595.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
65
+ rockyroad-0.0.595.dist-info/top_level.txt,sha256=2i16gCpB6x-hh1eUXH0KijIjfx08oEvLfV7eS9TL3Bs,10
66
+ rockyroad-0.0.595.dist-info/RECORD,,