RockyRoad 0.0.587__py3-none-any.whl → 0.0.589__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.
@@ -30,6 +30,12 @@ class _TCO(Consumer):
30
30
  def maintenance(self):
31
31
  return self._Maintenance(self)
32
32
 
33
+ def tasks(self):
34
+ return self._Tasks(self)
35
+
36
+ def parts(self):
37
+ return self._Parts(self)
38
+
33
39
  @headers({"Ocp-Apim-Subscription-Key": key})
34
40
  @retry(max_attempts=20, when=status_5xx())
35
41
  class _Cost_Model(Consumer):
@@ -103,9 +109,6 @@ class _TCO(Consumer):
103
109
  self._base_url = Resource._base_url
104
110
  super().__init__(base_url=Resource._base_url, *args, **kw)
105
111
 
106
- def parts(self):
107
- return self._Parts(self)
108
-
109
112
  @returns.json
110
113
  @http_get("calculators/tco/maintenance")
111
114
  def list(
@@ -133,41 +136,83 @@ class _TCO(Consumer):
133
136
  def update(self, uid: str, tco_part: Body):
134
137
  """This call will update the TCO Maintenance."""
135
138
 
136
- @headers({"Ocp-Apim-Subscription-Key": key})
137
- @retry(max_attempts=20, when=status_5xx())
138
- class _Parts(Consumer):
139
- """Inteface to TCO resource for the RockyRoad API."""
139
+ @headers({"Ocp-Apim-Subscription-Key": key})
140
+ @retry(max_attempts=20, when=status_5xx())
141
+ class _Parts(Consumer):
142
+ """Inteface to TCO resource for the RockyRoad API."""
140
143
 
141
- def __init__(self, Resource, *args, **kw):
142
- self._base_url = Resource._base_url
143
- super().__init__(base_url=Resource._base_url, *args, **kw)
144
+ def __init__(self, Resource, *args, **kw):
145
+ self._base_url = Resource._base_url
146
+ super().__init__(base_url=Resource._base_url, *args, **kw)
147
+
148
+ def parts(self):
149
+ return self.TCO(self)
150
+
151
+ @returns.json
152
+ @http_get("calculators/tco/parts")
153
+ def list(
154
+ self,
155
+ tco_task_uid: Query = None
156
+ ):
157
+ """This call will return list of TCO Parts."""
158
+
159
+ @returns.json
160
+ @http_get("calculators/tco/parts/{uid}")
161
+ def get(self, uid: str):
162
+ """This call will return the specified TCO Part."""
163
+
164
+ @delete("calculators/tco/parts/{uid}")
165
+ def delete(self, uid: str):
166
+ """This call will delete the TCO Part."""
144
167
 
145
- def parts(self):
146
- return self.TCO(self)
147
-
148
- @returns.json
149
- @http_get("calculators/tco/maintenance/parts")
150
- def list(
151
- self,
152
- ):
153
- """This call will return list of TCO Parts."""
154
-
155
- @returns.json
156
- @http_get("calculators/tco/maintenance/parts/{uid}")
157
- def get(self, uid: str):
158
- """This call will return the specified TCO Part."""
159
-
160
- @delete("calculators/tco/maintenance/parts/{uid}")
161
- def delete(self, uid: str):
162
- """This call will delete the TCO Part."""
163
-
164
- @returns.json
165
- @json
166
- @post("calculators/tco/maintenance/parts")
167
- def insert(self, tco_part: Body):
168
- """This call will create the TCO Part."""
169
-
170
- @json
171
- @patch("calculators/tco/maintenance/parts/{uid}")
172
- def update(self, uid: str, tco_part: Body):
173
- """This call will update the TCO Part."""
168
+ @returns.json
169
+ @json
170
+ @post("calculators/tco/parts")
171
+ def insert(self, tco_part: Body):
172
+ """This call will create the TCO Part."""
173
+
174
+ @json
175
+ @patch("calculators/tco/parts/{uid}")
176
+ def update(self, uid: str, tco_part: Body):
177
+ """This call will update the TCO Part."""
178
+
179
+
180
+ @headers({"Ocp-Apim-Subscription-Key": key})
181
+ @retry(max_attempts=20, when=status_5xx())
182
+ class _Tasks(Consumer):
183
+ """Interface to TCO Tasks resource for the RockyRoad API."""
184
+
185
+ def __init__(self, Resource, *args, **kw):
186
+ self._base_url = Resource._base_url
187
+ super().__init__(base_url=Resource._base_url, *args, **kw)
188
+
189
+ @returns.json
190
+ @http_get("calculators/tco/tasks")
191
+ def list(self, cost_model_uid: Query = None):
192
+ """This call will return list of TCO Tasks."""
193
+
194
+ @returns.json
195
+ @http_get("calculators/tco/tasks/{uid}")
196
+ def get(self, uid: str):
197
+ """This call will return the specified TCO Task."""
198
+
199
+ @delete("calculators/tco/tasks/{uid}")
200
+ def delete(self, uid: str):
201
+ """This call will delete the TCO Task."""
202
+
203
+ @returns.json
204
+ @json
205
+ @post("calculators/tco/tasks")
206
+ def insert(self, tco_task: Body):
207
+ """This call will create the TCO Task."""
208
+
209
+ @returns.json
210
+ @json
211
+ @post("calculators/tco/tasks/batch")
212
+ def insert_batch(self, tco_tasks: Body):
213
+ """This call will create multiple TCO Tasks."""
214
+
215
+ @json
216
+ @patch("calculators/tco/tasks/{uid}")
217
+ def update(self, uid: str, tco_task: Body):
218
+ """This call will update the TCO Task."""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: RockyRoad
3
- Version: 0.0.587
3
+ Version: 0.0.589
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=McOaWzlwHK7FPT-UFiK1wr7IIKz2n-bMd3mbQL5HNKE,5990
47
+ rockyroad/modules/tco_calculator.py,sha256=dm211AP8rgCmyb_hNxWQn1sAcJA-NsC0Cy9HNt2NOfM,7298
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.587.dist-info/licenses/LICENSE,sha256=2bm9uFabQZ3Ykb_SaSU_uUbAj2-htc6WJQmS_65qD00,1073
63
- rockyroad-0.0.587.dist-info/METADATA,sha256=NrJW0rjyJhysesfgZKLm9bkKGgil_Ui-XYzTuvm-0ms,34189
64
- rockyroad-0.0.587.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
65
- rockyroad-0.0.587.dist-info/top_level.txt,sha256=2i16gCpB6x-hh1eUXH0KijIjfx08oEvLfV7eS9TL3Bs,10
66
- rockyroad-0.0.587.dist-info/RECORD,,
62
+ rockyroad-0.0.589.dist-info/licenses/LICENSE,sha256=2bm9uFabQZ3Ykb_SaSU_uUbAj2-htc6WJQmS_65qD00,1073
63
+ rockyroad-0.0.589.dist-info/METADATA,sha256=AMTQ_WDkCvQbZIqRf11mvgDEFga_ykzwMsiK8pGaoTE,34189
64
+ rockyroad-0.0.589.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
65
+ rockyroad-0.0.589.dist-info/top_level.txt,sha256=2i16gCpB6x-hh1eUXH0KijIjfx08oEvLfV7eS9TL3Bs,10
66
+ rockyroad-0.0.589.dist-info/RECORD,,