qi-compute-api-client 0.7.0__py3-none-any.whl → 0.17.0__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.

Potentially problematic release.


This version of qi-compute-api-client might be problematic. Click here for more details.

Files changed (165) hide show
  1. compute_api_client/__init__.py +22 -19
  2. compute_api_client/api/__init__.py +5 -6
  3. compute_api_client/api/algorithms_api.py +1333 -553
  4. compute_api_client/api/backend_api.py +1501 -0
  5. compute_api_client/api/backend_types_api.py +684 -0
  6. compute_api_client/api/batch_jobs_api.py +1937 -0
  7. compute_api_client/api/commits_api.py +1068 -435
  8. compute_api_client/api/files_api.py +1075 -435
  9. compute_api_client/api/final_results_api.py +736 -338
  10. compute_api_client/api/jobs_api.py +1653 -0
  11. compute_api_client/api/languages_api.py +556 -217
  12. compute_api_client/api/members_api.py +1057 -435
  13. compute_api_client/api/metadata_api.py +736 -337
  14. compute_api_client/api/permissions_api.py +1055 -421
  15. compute_api_client/api/projects_api.py +1604 -676
  16. compute_api_client/api/reservations_api.py +1124 -427
  17. compute_api_client/api/results_api.py +738 -337
  18. compute_api_client/api/teams_api.py +567 -220
  19. compute_api_client/api/transactions_api.py +679 -218
  20. compute_api_client/api/users_api.py +1090 -435
  21. compute_api_client/api_client.py +346 -304
  22. compute_api_client/api_response.py +21 -0
  23. compute_api_client/configuration.py +54 -67
  24. compute_api_client/docs/Algorithm.md +20 -3
  25. compute_api_client/docs/AlgorithmIn.md +20 -3
  26. compute_api_client/docs/AlgorithmType.md +0 -1
  27. compute_api_client/docs/AlgorithmsApi.md +78 -77
  28. compute_api_client/docs/Backend.md +33 -0
  29. compute_api_client/docs/BackendApi.md +419 -0
  30. compute_api_client/docs/BackendPatch.md +29 -0
  31. compute_api_client/docs/{RunStatus.md → BackendStatus.md} +1 -2
  32. compute_api_client/docs/BackendType.md +36 -0
  33. compute_api_client/docs/{RuntimeTypesApi.md → BackendTypesApi.md} +58 -31
  34. compute_api_client/docs/BackendWithAuthentication.md +34 -0
  35. compute_api_client/docs/BatchJob.md +38 -0
  36. compute_api_client/docs/BatchJobIn.md +29 -0
  37. compute_api_client/docs/{RuntimeStatus.md → BatchJobStatus.md} +1 -2
  38. compute_api_client/docs/{BatchRunsApi.md → BatchJobsApi.md} +170 -147
  39. compute_api_client/docs/Commit.md +18 -1
  40. compute_api_client/docs/CommitIn.md +17 -0
  41. compute_api_client/docs/CommitsApi.md +62 -71
  42. compute_api_client/docs/CompileStage.md +0 -1
  43. compute_api_client/docs/Domain.md +0 -1
  44. compute_api_client/docs/File.md +21 -4
  45. compute_api_client/docs/FileIn.md +21 -4
  46. compute_api_client/docs/FilesApi.md +65 -71
  47. compute_api_client/docs/FinalResult.md +20 -3
  48. compute_api_client/docs/FinalResultIn.md +19 -2
  49. compute_api_client/docs/FinalResultsApi.md +44 -71
  50. compute_api_client/docs/HTTPNotFoundError.md +17 -0
  51. compute_api_client/docs/HTTPValidationError.md +18 -1
  52. compute_api_client/docs/Job.md +36 -0
  53. compute_api_client/docs/JobIn.md +31 -0
  54. compute_api_client/docs/JobPatch.md +28 -0
  55. compute_api_client/docs/{BatchRunStatus.md → JobStatus.md} +1 -2
  56. compute_api_client/docs/{RunsApi.md → JobsApi.md} +137 -122
  57. compute_api_client/docs/Language.md +17 -0
  58. compute_api_client/docs/LanguagesApi.md +30 -12
  59. compute_api_client/docs/LocationInner.md +17 -0
  60. compute_api_client/docs/Member.md +19 -2
  61. compute_api_client/docs/MemberIn.md +19 -2
  62. compute_api_client/docs/MembersApi.md +59 -24
  63. compute_api_client/docs/Metadata.md +20 -3
  64. compute_api_client/docs/MetadataApi.md +49 -33
  65. compute_api_client/docs/MetadataIn.md +19 -2
  66. compute_api_client/docs/Permission.md +17 -0
  67. compute_api_client/docs/PermissionGroup.md +17 -0
  68. compute_api_client/docs/PermissionsApi.md +68 -28
  69. compute_api_client/docs/Project.md +20 -3
  70. compute_api_client/docs/ProjectIn.md +18 -1
  71. compute_api_client/docs/ProjectPatch.md +19 -2
  72. compute_api_client/docs/ProjectsApi.md +84 -36
  73. compute_api_client/docs/Reservation.md +21 -4
  74. compute_api_client/docs/ReservationIn.md +19 -2
  75. compute_api_client/docs/ReservationsApi.md +66 -24
  76. compute_api_client/docs/Result.md +23 -6
  77. compute_api_client/docs/ResultIn.md +19 -2
  78. compute_api_client/docs/ResultsApi.md +42 -26
  79. compute_api_client/docs/Role.md +0 -1
  80. compute_api_client/docs/ShareType.md +0 -1
  81. compute_api_client/docs/Team.md +18 -1
  82. compute_api_client/docs/TeamsApi.md +37 -14
  83. compute_api_client/docs/Transaction.md +21 -4
  84. compute_api_client/docs/TransactionsApi.md +50 -14
  85. compute_api_client/docs/User.md +21 -4
  86. compute_api_client/docs/UserIn.md +17 -0
  87. compute_api_client/docs/UsersApi.md +62 -24
  88. compute_api_client/docs/ValidationError.md +18 -1
  89. compute_api_client/exceptions.py +19 -16
  90. compute_api_client/models/__init__.py +16 -14
  91. compute_api_client/models/algorithm.py +78 -237
  92. compute_api_client/models/algorithm_in.py +76 -204
  93. compute_api_client/models/algorithm_type.py +21 -87
  94. compute_api_client/models/backend.py +100 -0
  95. compute_api_client/models/backend_patch.py +90 -0
  96. compute_api_client/models/backend_status.py +47 -0
  97. compute_api_client/models/backend_type.py +105 -0
  98. compute_api_client/models/backend_with_authentication.py +102 -0
  99. compute_api_client/models/batch_job.py +129 -0
  100. compute_api_client/models/batch_job_in.py +89 -0
  101. compute_api_client/models/batch_job_status.py +48 -0
  102. compute_api_client/models/commit.py +72 -230
  103. compute_api_client/models/commit_in.py +67 -169
  104. compute_api_client/models/compile_stage.py +23 -89
  105. compute_api_client/models/domain.py +22 -88
  106. compute_api_client/models/file.py +74 -288
  107. compute_api_client/models/file_in.py +72 -254
  108. compute_api_client/models/final_result.py +68 -198
  109. compute_api_client/models/final_result_in.py +63 -137
  110. compute_api_client/models/http_not_found_error.py +60 -105
  111. compute_api_client/models/http_validation_error.py +69 -105
  112. compute_api_client/models/job.py +120 -0
  113. compute_api_client/models/job_in.py +99 -0
  114. compute_api_client/models/job_patch.py +88 -0
  115. compute_api_client/models/job_status.py +48 -0
  116. compute_api_client/models/language.py +67 -172
  117. compute_api_client/models/location_inner.py +125 -84
  118. compute_api_client/models/member.py +70 -236
  119. compute_api_client/models/member_in.py +68 -203
  120. compute_api_client/models/metadata.py +68 -198
  121. compute_api_client/models/metadata_in.py +68 -137
  122. compute_api_client/models/permission.py +67 -172
  123. compute_api_client/models/permission_group.py +65 -142
  124. compute_api_client/models/project.py +74 -256
  125. compute_api_client/models/project_in.py +69 -195
  126. compute_api_client/models/project_patch.py +89 -192
  127. compute_api_client/models/reservation.py +79 -290
  128. compute_api_client/models/reservation_in.py +68 -200
  129. compute_api_client/models/result.py +101 -359
  130. compute_api_client/models/result_in.py +95 -291
  131. compute_api_client/models/role.py +21 -87
  132. compute_api_client/models/share_type.py +22 -88
  133. compute_api_client/models/team.py +69 -198
  134. compute_api_client/models/transaction.py +93 -299
  135. compute_api_client/models/user.py +75 -276
  136. compute_api_client/models/user_in.py +73 -243
  137. compute_api_client/models/validation_error.py +73 -160
  138. compute_api_client/rest.py +55 -114
  139. {qi_compute_api_client-0.7.0.dist-info → qi_compute_api_client-0.17.0.dist-info}/METADATA +47 -40
  140. qi_compute_api_client-0.17.0.dist-info/RECORD +142 -0
  141. compute_api_client/api/batch_runs_api.py +0 -862
  142. compute_api_client/api/runs_api.py +0 -723
  143. compute_api_client/api/runtime_api.py +0 -449
  144. compute_api_client/api/runtime_types_api.py +0 -303
  145. compute_api_client/docs/BatchRun.md +0 -21
  146. compute_api_client/docs/BatchRunIn.md +0 -12
  147. compute_api_client/docs/Run.md +0 -19
  148. compute_api_client/docs/RunIn.md +0 -14
  149. compute_api_client/docs/Runtime.md +0 -16
  150. compute_api_client/docs/RuntimeApi.md +0 -229
  151. compute_api_client/docs/RuntimeType.md +0 -19
  152. compute_api_client/docs/RuntimeWithAuthentication.md +0 -17
  153. compute_api_client/models/batch_run.py +0 -423
  154. compute_api_client/models/batch_run_in.py +0 -171
  155. compute_api_client/models/batch_run_status.py +0 -114
  156. compute_api_client/models/run.py +0 -376
  157. compute_api_client/models/run_in.py +0 -233
  158. compute_api_client/models/run_status.py +0 -114
  159. compute_api_client/models/runtime.py +0 -290
  160. compute_api_client/models/runtime_status.py +0 -113
  161. compute_api_client/models/runtime_type.py +0 -357
  162. compute_api_client/models/runtime_with_authentication.py +0 -320
  163. qi_compute_api_client-0.7.0.dist-info/RECORD +0 -137
  164. {qi_compute_api_client-0.7.0.dist-info → qi_compute_api_client-0.17.0.dist-info}/LICENSE.md +0 -0
  165. {qi_compute_api_client-0.7.0.dist-info → qi_compute_api_client-0.17.0.dist-info}/WHEEL +0 -0
@@ -1,29 +1,31 @@
1
- # compute_api_client.RuntimeTypesApi
1
+ # compute_api_client.BackendTypesApi
2
2
 
3
3
  All URIs are relative to *http://localhost*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
- [**read_runtime_type_runtime_types_id_get**](RuntimeTypesApi.md#read_runtime_type_runtime_types_id_get) | **GET** /runtime_types/{id} | Retrieve runtime type
8
- [**read_runtime_types_runtime_types_get**](RuntimeTypesApi.md#read_runtime_types_runtime_types_get) | **GET** /runtime_types/ | List runtime types
7
+ [**read_backend_type_backend_types_id_get**](BackendTypesApi.md#read_backend_type_backend_types_id_get) | **GET** /backend_types/{id} | Retrieve backend type
8
+ [**read_backend_types_backend_types_get**](BackendTypesApi.md#read_backend_types_backend_types_get) | **GET** /backend_types/ | List backend types
9
9
 
10
10
 
11
- # **read_runtime_type_runtime_types_id_get**
12
- > RuntimeType read_runtime_type_runtime_types_id_get(id)
11
+ # **read_backend_type_backend_types_id_get**
12
+ > BackendType read_backend_type_backend_types_id_get(id)
13
13
 
14
- Retrieve runtime type
14
+ Retrieve backend type
15
15
 
16
- Get runtime type by ID.
16
+ Get backend type by ID.
17
17
 
18
18
  ### Example
19
19
 
20
20
  * Api Key Authentication (user):
21
21
  ```python
22
- from __future__ import print_function
23
22
  import time
23
+ import os
24
24
  import compute_api_client
25
+ from compute_api_client.models.backend_type import BackendType
25
26
  from compute_api_client.rest import ApiException
26
27
  from pprint import pprint
28
+
27
29
  # Defining the host is optional and defaults to http://localhost
28
30
  # See configuration.py for a list of all supported configuration parameters.
29
31
  configuration = compute_api_client.Configuration(
@@ -36,25 +38,28 @@ configuration = compute_api_client.Configuration(
36
38
  # satisfies your auth use case.
37
39
 
38
40
  # Configure API key authorization: user
39
- configuration.api_key['user'] = 'YOUR_API_KEY'
41
+ configuration.api_key['user'] = os.environ["API_KEY"]
40
42
 
41
43
  # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
42
44
  # configuration.api_key_prefix['user'] = 'Bearer'
43
45
 
44
46
  # Enter a context with an instance of the API client
45
- with compute_api_client.ApiClient(configuration) as api_client:
47
+ async with compute_api_client.ApiClient(configuration) as api_client:
46
48
  # Create an instance of the API class
47
- api_instance = compute_api_client.RuntimeTypesApi(api_client)
49
+ api_instance = compute_api_client.BackendTypesApi(api_client)
48
50
  id = 56 # int |
49
51
 
50
52
  try:
51
- # Retrieve runtime type
52
- api_response = api_instance.read_runtime_type_runtime_types_id_get(id)
53
+ # Retrieve backend type
54
+ api_response = await api_instance.read_backend_type_backend_types_id_get(id)
55
+ print("The response of BackendTypesApi->read_backend_type_backend_types_id_get:\n")
53
56
  pprint(api_response)
54
- except ApiException as e:
55
- print("Exception when calling RuntimeTypesApi->read_runtime_type_runtime_types_id_get: %s\n" % e)
57
+ except Exception as e:
58
+ print("Exception when calling BackendTypesApi->read_backend_type_backend_types_id_get: %s\n" % e)
56
59
  ```
57
60
 
61
+
62
+
58
63
  ### Parameters
59
64
 
60
65
  Name | Type | Description | Notes
@@ -63,7 +68,7 @@ Name | Type | Description | Notes
63
68
 
64
69
  ### Return type
65
70
 
66
- [**RuntimeType**](RuntimeType.md)
71
+ [**BackendType**](BackendType.md)
67
72
 
68
73
  ### Authorization
69
74
 
@@ -83,22 +88,24 @@ Name | Type | Description | Notes
83
88
 
84
89
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
85
90
 
86
- # **read_runtime_types_runtime_types_get**
87
- > list[RuntimeType] read_runtime_types_runtime_types_get()
91
+ # **read_backend_types_backend_types_get**
92
+ > List[BackendType] read_backend_types_backend_types_get(latest=latest, id=id, name=name, infrastructure=infrastructure, description=description, image_id=image_id, is_hardware=is_hardware)
88
93
 
89
- List runtime types
94
+ List backend types
90
95
 
91
- Read runtime types.
96
+ Read backend types.
92
97
 
93
98
  ### Example
94
99
 
95
100
  * Api Key Authentication (user):
96
101
  ```python
97
- from __future__ import print_function
98
102
  import time
103
+ import os
99
104
  import compute_api_client
105
+ from compute_api_client.models.backend_type import BackendType
100
106
  from compute_api_client.rest import ApiException
101
107
  from pprint import pprint
108
+
102
109
  # Defining the host is optional and defaults to http://localhost
103
110
  # See configuration.py for a list of all supported configuration parameters.
104
111
  configuration = compute_api_client.Configuration(
@@ -111,30 +118,49 @@ configuration = compute_api_client.Configuration(
111
118
  # satisfies your auth use case.
112
119
 
113
120
  # Configure API key authorization: user
114
- configuration.api_key['user'] = 'YOUR_API_KEY'
121
+ configuration.api_key['user'] = os.environ["API_KEY"]
115
122
 
116
123
  # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
117
124
  # configuration.api_key_prefix['user'] = 'Bearer'
118
125
 
119
126
  # Enter a context with an instance of the API client
120
- with compute_api_client.ApiClient(configuration) as api_client:
127
+ async with compute_api_client.ApiClient(configuration) as api_client:
121
128
  # Create an instance of the API class
122
- api_instance = compute_api_client.RuntimeTypesApi(api_client)
123
-
129
+ api_instance = compute_api_client.BackendTypesApi(api_client)
130
+ latest = True # bool | (optional)
131
+ id = 56 # int | (optional)
132
+ name = 'name_example' # str | (optional)
133
+ infrastructure = 'infrastructure_example' # str | (optional)
134
+ description = 'description_example' # str | (optional)
135
+ image_id = 'image_id_example' # str | (optional)
136
+ is_hardware = True # bool | (optional)
137
+
124
138
  try:
125
- # List runtime types
126
- api_response = api_instance.read_runtime_types_runtime_types_get()
139
+ # List backend types
140
+ api_response = await api_instance.read_backend_types_backend_types_get(latest=latest, id=id, name=name, infrastructure=infrastructure, description=description, image_id=image_id, is_hardware=is_hardware)
141
+ print("The response of BackendTypesApi->read_backend_types_backend_types_get:\n")
127
142
  pprint(api_response)
128
- except ApiException as e:
129
- print("Exception when calling RuntimeTypesApi->read_runtime_types_runtime_types_get: %s\n" % e)
143
+ except Exception as e:
144
+ print("Exception when calling BackendTypesApi->read_backend_types_backend_types_get: %s\n" % e)
130
145
  ```
131
146
 
147
+
148
+
132
149
  ### Parameters
133
- This endpoint does not need any parameter.
150
+
151
+ Name | Type | Description | Notes
152
+ ------------- | ------------- | ------------- | -------------
153
+ **latest** | **bool**| | [optional]
154
+ **id** | **int**| | [optional]
155
+ **name** | **str**| | [optional]
156
+ **infrastructure** | **str**| | [optional]
157
+ **description** | **str**| | [optional]
158
+ **image_id** | **str**| | [optional]
159
+ **is_hardware** | **bool**| | [optional]
134
160
 
135
161
  ### Return type
136
162
 
137
- [**list[RuntimeType]**](RuntimeType.md)
163
+ [**List[BackendType]**](BackendType.md)
138
164
 
139
165
  ### Authorization
140
166
 
@@ -149,6 +175,7 @@ This endpoint does not need any parameter.
149
175
  | Status code | Description | Response headers |
150
176
  |-------------|-------------|------------------|
151
177
  **200** | Successful Response | - |
178
+ **422** | Validation Error | - |
152
179
 
153
180
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
154
181
 
@@ -0,0 +1,34 @@
1
+ # BackendWithAuthentication
2
+
3
+
4
+ ## Properties
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **id** | **int** | |
8
+ **name** | **str** | |
9
+ **location** | **str** | |
10
+ **backend_type_id** | **int** | |
11
+ **status** | [**BackendStatus**](BackendStatus.md) | |
12
+ **last_heartbeat** | **datetime** | |
13
+ **authentication_hash** | **str** | |
14
+
15
+ ## Example
16
+
17
+ ```python
18
+ from compute_api_client.models.backend_with_authentication import BackendWithAuthentication
19
+
20
+ # TODO update the JSON string below
21
+ json = "{}"
22
+ # create an instance of BackendWithAuthentication from a JSON string
23
+ backend_with_authentication_instance = BackendWithAuthentication.from_json(json)
24
+ # print the JSON string representation of the object
25
+ print BackendWithAuthentication.to_json()
26
+
27
+ # convert the object into a dict
28
+ backend_with_authentication_dict = backend_with_authentication_instance.to_dict()
29
+ # create an instance of BackendWithAuthentication from a dict
30
+ backend_with_authentication_form_dict = backend_with_authentication.from_dict(backend_with_authentication_dict)
31
+ ```
32
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
33
+
34
+
@@ -0,0 +1,38 @@
1
+ # BatchJob
2
+
3
+
4
+ ## Properties
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **id** | **int** | |
8
+ **created_on** | **datetime** | |
9
+ **status** | [**BatchJobStatus**](BatchJobStatus.md) | |
10
+ **user_id** | **int** | |
11
+ **backend_type_id** | **int** | |
12
+ **backend_id** | **int** | |
13
+ **queued_at** | **datetime** | |
14
+ **reserved_at** | **datetime** | |
15
+ **finished_at** | **datetime** | |
16
+ **job_ids** | **List[int]** | |
17
+ **aggregated_algorithm_type** | [**AlgorithmType**](AlgorithmType.md) | |
18
+
19
+ ## Example
20
+
21
+ ```python
22
+ from compute_api_client.models.batch_job import BatchJob
23
+
24
+ # TODO update the JSON string below
25
+ json = "{}"
26
+ # create an instance of BatchJob from a JSON string
27
+ batch_job_instance = BatchJob.from_json(json)
28
+ # print the JSON string representation of the object
29
+ print BatchJob.to_json()
30
+
31
+ # convert the object into a dict
32
+ batch_job_dict = batch_job_instance.to_dict()
33
+ # create an instance of BatchJob from a dict
34
+ batch_job_form_dict = batch_job.from_dict(batch_job_dict)
35
+ ```
36
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
37
+
38
+
@@ -0,0 +1,29 @@
1
+ # BatchJobIn
2
+
3
+
4
+ ## Properties
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **user_id** | **int** | |
8
+ **backend_type_id** | **int** | |
9
+
10
+ ## Example
11
+
12
+ ```python
13
+ from compute_api_client.models.batch_job_in import BatchJobIn
14
+
15
+ # TODO update the JSON string below
16
+ json = "{}"
17
+ # create an instance of BatchJobIn from a JSON string
18
+ batch_job_in_instance = BatchJobIn.from_json(json)
19
+ # print the JSON string representation of the object
20
+ print BatchJobIn.to_json()
21
+
22
+ # convert the object into a dict
23
+ batch_job_in_dict = batch_job_in_instance.to_dict()
24
+ # create an instance of BatchJobIn from a dict
25
+ batch_job_in_form_dict = batch_job_in.from_dict(batch_job_in_dict)
26
+ ```
27
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
28
+
29
+
@@ -1,6 +1,5 @@
1
- # RuntimeStatus
1
+ # BatchJobStatus
2
2
 
3
- An enumeration.
4
3
 
5
4
  ## Properties
6
5
  Name | Type | Description | Notes