|
| 1 | +from nisystemlink.clients.core._api_info import Operation |
| 2 | +from nisystemlink.clients.core._uplink._json_model import JsonModel |
| 3 | + |
| 4 | + |
| 5 | +class V2Operations(JsonModel): |
| 6 | + """The operations available in the routes provided by the v2 HTTP API.""" |
| 7 | + |
| 8 | + get_products: Operation |
| 9 | + """The ability to get a list of products.""" |
| 10 | + |
| 11 | + query_products: Operation |
| 12 | + """The ability to query products based on their properties.""" |
| 13 | + |
| 14 | + create_products: Operation |
| 15 | + """The ability to create one or more products.""" |
| 16 | + |
| 17 | + update_products: Operation |
| 18 | + """The ability to update the properties of one or more products.""" |
| 19 | + |
| 20 | + delete_products: Operation |
| 21 | + """The ability to delete a single products.""" |
| 22 | + |
| 23 | + delete_many_products: Operation |
| 24 | + """The ability to delete a list of products.""" |
| 25 | + |
| 26 | + get_results: Operation |
| 27 | + """The ability to get a list of results.""" |
| 28 | + |
| 29 | + get_results_property_keys: Operation |
| 30 | + """The ability to get custom property keys.""" |
| 31 | + |
| 32 | + query_results: Operation |
| 33 | + """"The ability to to query results based on their properties.""" |
| 34 | + |
| 35 | + create_results: Operation |
| 36 | + """The ability to create results.""" |
| 37 | + |
| 38 | + update_results: Operation |
| 39 | + """The ability to update results.""" |
| 40 | + |
| 41 | + delete_result: Operation |
| 42 | + """The ability to delete a single results.""" |
| 43 | + |
| 44 | + delete_many_results: Operation |
| 45 | + """The ability to delete multiple results.""" |
| 46 | + |
| 47 | + get_steps: Operation |
| 48 | + """The ability to get a list of steps.""" |
| 49 | + |
| 50 | + query_steps: Operation |
| 51 | + """The ability to query steps based on their properties.""" |
| 52 | + |
| 53 | + create_steps: Operation |
| 54 | + """The ability to create steps.""" |
| 55 | + |
| 56 | + update_steps: Operation |
| 57 | + """The ability to update steps.""" |
| 58 | + |
| 59 | + delete_step: Operation |
| 60 | + """The ability to delete a single step.""" |
| 61 | + |
| 62 | + delete_many_steps: Operation |
| 63 | + """The ability to delete multiple steps.""" |
| 64 | + |
| 65 | + query_paths: Operation |
| 66 | + """The ability to query step paths.""" |
| 67 | + |
| 68 | + |
| 69 | +class ApiInfo(JsonModel): |
| 70 | + """Information about the available API operations.""" |
| 71 | + |
| 72 | + operations: V2Operations |
0 commit comments