qi-compute-api-client 0.4.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 (166) hide show
  1. compute_api_client/__init__.py +23 -20
  2. compute_api_client/api/__init__.py +5 -6
  3. compute_api_client/api/algorithms_api.py +1334 -554
  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 +1069 -436
  8. compute_api_client/api/files_api.py +1076 -436
  9. compute_api_client/api/final_results_api.py +737 -339
  10. compute_api_client/api/jobs_api.py +1653 -0
  11. compute_api_client/api/languages_api.py +557 -218
  12. compute_api_client/api/members_api.py +1058 -436
  13. compute_api_client/api/metadata_api.py +737 -338
  14. compute_api_client/api/permissions_api.py +1056 -422
  15. compute_api_client/api/projects_api.py +1605 -677
  16. compute_api_client/api/reservations_api.py +1125 -428
  17. compute_api_client/api/results_api.py +739 -338
  18. compute_api_client/api/teams_api.py +568 -221
  19. compute_api_client/api/transactions_api.py +680 -219
  20. compute_api_client/api/users_api.py +1091 -436
  21. compute_api_client/api_client.py +347 -305
  22. compute_api_client/api_response.py +21 -0
  23. compute_api_client/configuration.py +55 -68
  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/BatchJobsApi.md +524 -0
  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 +40 -74
  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 +20 -17
  90. compute_api_client/models/__init__.py +17 -15
  91. compute_api_client/models/algorithm.py +79 -238
  92. compute_api_client/models/algorithm_in.py +77 -205
  93. compute_api_client/models/algorithm_type.py +22 -88
  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 +73 -231
  103. compute_api_client/models/commit_in.py +68 -170
  104. compute_api_client/models/compile_stage.py +24 -90
  105. compute_api_client/models/domain.py +23 -89
  106. compute_api_client/models/file.py +75 -289
  107. compute_api_client/models/file_in.py +73 -255
  108. compute_api_client/models/final_result.py +69 -199
  109. compute_api_client/models/final_result_in.py +64 -138
  110. compute_api_client/models/http_not_found_error.py +61 -106
  111. compute_api_client/models/http_validation_error.py +70 -106
  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 +68 -173
  117. compute_api_client/models/location_inner.py +126 -85
  118. compute_api_client/models/member.py +71 -237
  119. compute_api_client/models/member_in.py +69 -204
  120. compute_api_client/models/metadata.py +69 -199
  121. compute_api_client/models/metadata_in.py +69 -138
  122. compute_api_client/models/permission.py +68 -173
  123. compute_api_client/models/permission_group.py +66 -143
  124. compute_api_client/models/project.py +75 -257
  125. compute_api_client/models/project_in.py +70 -196
  126. compute_api_client/models/project_patch.py +90 -193
  127. compute_api_client/models/reservation.py +80 -291
  128. compute_api_client/models/reservation_in.py +69 -201
  129. compute_api_client/models/result.py +102 -360
  130. compute_api_client/models/result_in.py +96 -293
  131. compute_api_client/models/role.py +22 -88
  132. compute_api_client/models/share_type.py +23 -89
  133. compute_api_client/models/team.py +70 -199
  134. compute_api_client/models/transaction.py +94 -300
  135. compute_api_client/models/user.py +76 -277
  136. compute_api_client/models/user_in.py +74 -244
  137. compute_api_client/models/validation_error.py +74 -161
  138. compute_api_client/rest.py +56 -115
  139. {qi_compute_api_client-0.4.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/BatchRunsApi.md +0 -600
  148. compute_api_client/docs/Run.md +0 -18
  149. compute_api_client/docs/RunIn.md +0 -13
  150. compute_api_client/docs/Runtime.md +0 -16
  151. compute_api_client/docs/RuntimeApi.md +0 -229
  152. compute_api_client/docs/RuntimeType.md +0 -19
  153. compute_api_client/docs/RuntimeWithAuthentication.md +0 -17
  154. compute_api_client/models/batch_run.py +0 -423
  155. compute_api_client/models/batch_run_in.py +0 -171
  156. compute_api_client/models/batch_run_status.py +0 -114
  157. compute_api_client/models/run.py +0 -345
  158. compute_api_client/models/run_in.py +0 -202
  159. compute_api_client/models/run_status.py +0 -114
  160. compute_api_client/models/runtime.py +0 -290
  161. compute_api_client/models/runtime_status.py +0 -113
  162. compute_api_client/models/runtime_type.py +0 -357
  163. compute_api_client/models/runtime_with_authentication.py +0 -320
  164. qi_compute_api_client-0.4.0.dist-info/RECORD +0 -137
  165. {qi_compute_api_client-0.4.0.dist-info → qi_compute_api_client-0.17.0.dist-info}/LICENSE.md +0 -0
  166. {qi_compute_api_client-0.4.0.dist-info → qi_compute_api_client-0.17.0.dist-info}/WHEEL +0 -0
@@ -1,229 +0,0 @@
1
- # compute_api_client.RuntimeApi
2
-
3
- All URIs are relative to *http://localhost*
4
-
5
- Method | HTTP request | Description
6
- ------------- | ------------- | -------------
7
- [**create_runtime_runtimes_post**](RuntimeApi.md#create_runtime_runtimes_post) | **POST** /runtimes | Create runtime
8
- [**read_runtime_runtimes_id_get**](RuntimeApi.md#read_runtime_runtimes_id_get) | **GET** /runtimes/{id} | Retrieve runtime
9
- [**read_runtimes_runtimes_get**](RuntimeApi.md#read_runtimes_runtimes_get) | **GET** /runtimes | List runtimes
10
-
11
-
12
- # **create_runtime_runtimes_post**
13
- > RuntimeWithAuthentication create_runtime_runtimes_post(runtime)
14
-
15
- Create runtime
16
-
17
- Create new runtime.
18
-
19
- ### Example
20
-
21
- * Api Key Authentication (user):
22
- ```python
23
- from __future__ import print_function
24
- import time
25
- import compute_api_client
26
- from compute_api_client.rest import ApiException
27
- from pprint import pprint
28
- # Defining the host is optional and defaults to http://localhost
29
- # See configuration.py for a list of all supported configuration parameters.
30
- configuration = compute_api_client.Configuration(
31
- host = "http://localhost"
32
- )
33
-
34
- # The client must configure the authentication and authorization parameters
35
- # in accordance with the API server security policy.
36
- # Examples for each auth method are provided below, use the example that
37
- # satisfies your auth use case.
38
-
39
- # Configure API key authorization: user
40
- configuration.api_key['user'] = 'YOUR_API_KEY'
41
-
42
- # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
43
- # configuration.api_key_prefix['user'] = 'Bearer'
44
-
45
- # Enter a context with an instance of the API client
46
- with compute_api_client.ApiClient(configuration) as api_client:
47
- # Create an instance of the API class
48
- api_instance = compute_api_client.RuntimeApi(api_client)
49
- runtime = compute_api_client.Runtime() # Runtime |
50
-
51
- try:
52
- # Create runtime
53
- api_response = api_instance.create_runtime_runtimes_post(runtime)
54
- pprint(api_response)
55
- except ApiException as e:
56
- print("Exception when calling RuntimeApi->create_runtime_runtimes_post: %s\n" % e)
57
- ```
58
-
59
- ### Parameters
60
-
61
- Name | Type | Description | Notes
62
- ------------- | ------------- | ------------- | -------------
63
- **runtime** | [**Runtime**](Runtime.md)| |
64
-
65
- ### Return type
66
-
67
- [**RuntimeWithAuthentication**](RuntimeWithAuthentication.md)
68
-
69
- ### Authorization
70
-
71
- [user](../README.md#user)
72
-
73
- ### HTTP request headers
74
-
75
- - **Content-Type**: application/json
76
- - **Accept**: application/json
77
-
78
- ### HTTP response details
79
- | Status code | Description | Response headers |
80
- |-------------|-------------|------------------|
81
- **201** | Successful Response | - |
82
- **422** | Validation Error | - |
83
-
84
- [[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
-
86
- # **read_runtime_runtimes_id_get**
87
- > Runtime read_runtime_runtimes_id_get(id)
88
-
89
- Retrieve runtime
90
-
91
- Get runtime by ID.
92
-
93
- ### Example
94
-
95
- * Api Key Authentication (user):
96
- ```python
97
- from __future__ import print_function
98
- import time
99
- import compute_api_client
100
- from compute_api_client.rest import ApiException
101
- from pprint import pprint
102
- # Defining the host is optional and defaults to http://localhost
103
- # See configuration.py for a list of all supported configuration parameters.
104
- configuration = compute_api_client.Configuration(
105
- host = "http://localhost"
106
- )
107
-
108
- # The client must configure the authentication and authorization parameters
109
- # in accordance with the API server security policy.
110
- # Examples for each auth method are provided below, use the example that
111
- # satisfies your auth use case.
112
-
113
- # Configure API key authorization: user
114
- configuration.api_key['user'] = 'YOUR_API_KEY'
115
-
116
- # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
117
- # configuration.api_key_prefix['user'] = 'Bearer'
118
-
119
- # Enter a context with an instance of the API client
120
- with compute_api_client.ApiClient(configuration) as api_client:
121
- # Create an instance of the API class
122
- api_instance = compute_api_client.RuntimeApi(api_client)
123
- id = 56 # int |
124
-
125
- try:
126
- # Retrieve runtime
127
- api_response = api_instance.read_runtime_runtimes_id_get(id)
128
- pprint(api_response)
129
- except ApiException as e:
130
- print("Exception when calling RuntimeApi->read_runtime_runtimes_id_get: %s\n" % e)
131
- ```
132
-
133
- ### Parameters
134
-
135
- Name | Type | Description | Notes
136
- ------------- | ------------- | ------------- | -------------
137
- **id** | **int**| |
138
-
139
- ### Return type
140
-
141
- [**Runtime**](Runtime.md)
142
-
143
- ### Authorization
144
-
145
- [user](../README.md#user)
146
-
147
- ### HTTP request headers
148
-
149
- - **Content-Type**: Not defined
150
- - **Accept**: application/json
151
-
152
- ### HTTP response details
153
- | Status code | Description | Response headers |
154
- |-------------|-------------|------------------|
155
- **200** | Successful Response | - |
156
- **404** | Not Found | - |
157
- **422** | Validation Error | - |
158
-
159
- [[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)
160
-
161
- # **read_runtimes_runtimes_get**
162
- > list[Runtime] read_runtimes_runtimes_get()
163
-
164
- List runtimes
165
-
166
- Read runtimes.
167
-
168
- ### Example
169
-
170
- * Api Key Authentication (user):
171
- ```python
172
- from __future__ import print_function
173
- import time
174
- import compute_api_client
175
- from compute_api_client.rest import ApiException
176
- from pprint import pprint
177
- # Defining the host is optional and defaults to http://localhost
178
- # See configuration.py for a list of all supported configuration parameters.
179
- configuration = compute_api_client.Configuration(
180
- host = "http://localhost"
181
- )
182
-
183
- # The client must configure the authentication and authorization parameters
184
- # in accordance with the API server security policy.
185
- # Examples for each auth method are provided below, use the example that
186
- # satisfies your auth use case.
187
-
188
- # Configure API key authorization: user
189
- configuration.api_key['user'] = 'YOUR_API_KEY'
190
-
191
- # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
192
- # configuration.api_key_prefix['user'] = 'Bearer'
193
-
194
- # Enter a context with an instance of the API client
195
- with compute_api_client.ApiClient(configuration) as api_client:
196
- # Create an instance of the API class
197
- api_instance = compute_api_client.RuntimeApi(api_client)
198
-
199
- try:
200
- # List runtimes
201
- api_response = api_instance.read_runtimes_runtimes_get()
202
- pprint(api_response)
203
- except ApiException as e:
204
- print("Exception when calling RuntimeApi->read_runtimes_runtimes_get: %s\n" % e)
205
- ```
206
-
207
- ### Parameters
208
- This endpoint does not need any parameter.
209
-
210
- ### Return type
211
-
212
- [**list[Runtime]**](Runtime.md)
213
-
214
- ### Authorization
215
-
216
- [user](../README.md#user)
217
-
218
- ### HTTP request headers
219
-
220
- - **Content-Type**: Not defined
221
- - **Accept**: application/json
222
-
223
- ### HTTP response details
224
- | Status code | Description | Response headers |
225
- |-------------|-------------|------------------|
226
- **200** | Successful Response | - |
227
-
228
- [[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)
229
-
@@ -1,19 +0,0 @@
1
- # RuntimeType
2
-
3
-
4
- ## Properties
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **id** | **int** | |
8
- **name** | **str** | |
9
- **infrastructure** | **str** | |
10
- **description** | **str** | |
11
- **image_id** | **str** | |
12
- **is_hardware** | **bool** | |
13
- **features** | **object** | | [optional]
14
- **default_compiler_config** | **object** | | [optional]
15
- **native_gateset** | **object** | | [optional]
16
-
17
- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
18
-
19
-
@@ -1,17 +0,0 @@
1
- # RuntimeWithAuthentication
2
-
3
-
4
- ## Properties
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **id** | **int** | |
8
- **name** | **str** | |
9
- **location** | **str** | |
10
- **status** | [**RuntimeStatus**](RuntimeStatus.md) | OFFLINE: offline<br/>IDLE: idle<br/>EXECUTING: executing<br/>CALIBRATING: calibrating |
11
- **last_heartbeat** | **datetime** | |
12
- **authentication_hash** | **str** | |
13
- **runtime_type_id** | **int** | |
14
-
15
- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
16
-
17
-
@@ -1,423 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- Compute Job Manager
5
-
6
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7
-
8
- The version of the OpenAPI document: 0.1.0
9
- Generated by: https://openapi-generator.tech
10
- """
11
-
12
-
13
- try:
14
- from inspect import getfullargspec
15
- except ImportError:
16
- from inspect import getargspec as getfullargspec
17
- import pprint
18
- import re # noqa: F401
19
- import six
20
-
21
- from compute_api_client.configuration import Configuration
22
-
23
-
24
- class BatchRun(object):
25
- """NOTE: This class is auto generated by OpenAPI Generator.
26
- Ref: https://openapi-generator.tech
27
-
28
- Do not edit the class manually.
29
- """
30
-
31
- """
32
- Attributes:
33
- openapi_types (dict): The key is attribute name
34
- and the value is attribute type.
35
- attribute_map (dict): The key is attribute name
36
- and the value is json key in definition.
37
- """
38
- openapi_types = {
39
- 'created_on': 'datetime',
40
- 'queued_at': 'datetime',
41
- 'finished_at': 'datetime',
42
- 'id': 'int',
43
- 'status': 'BatchRunStatus',
44
- 'reserved_at': 'datetime',
45
- 'runtime_id': 'int',
46
- 'runtime_type_id': 'int',
47
- 'user_id': 'int',
48
- 'run_ids': 'list[int]',
49
- 'aggregated_algorithm_type': 'AlgorithmType'
50
- }
51
-
52
- attribute_map = {
53
- 'created_on': 'created_on',
54
- 'queued_at': 'queued_at',
55
- 'finished_at': 'finished_at',
56
- 'id': 'id',
57
- 'status': 'status',
58
- 'reserved_at': 'reserved_at',
59
- 'runtime_id': 'runtime_id',
60
- 'runtime_type_id': 'runtime_type_id',
61
- 'user_id': 'user_id',
62
- 'run_ids': 'run_ids',
63
- 'aggregated_algorithm_type': 'aggregated_algorithm_type'
64
- }
65
-
66
- def __init__(self, created_on=None, queued_at=None, finished_at=None, id=None, status=None, reserved_at=None, runtime_id=None, runtime_type_id=None, user_id=None, run_ids=None, aggregated_algorithm_type=None, local_vars_configuration=None): # noqa: E501
67
- """BatchRun - a model defined in OpenAPI""" # noqa: E501
68
- if local_vars_configuration is None:
69
- local_vars_configuration = Configuration.get_default_copy()
70
- self.local_vars_configuration = local_vars_configuration
71
-
72
- self._created_on = None
73
- self._queued_at = None
74
- self._finished_at = None
75
- self._id = None
76
- self._status = None
77
- self._reserved_at = None
78
- self._runtime_id = None
79
- self._runtime_type_id = None
80
- self._user_id = None
81
- self._run_ids = None
82
- self._aggregated_algorithm_type = None
83
- self.discriminator = None
84
-
85
- self.created_on = created_on
86
- self.queued_at = queued_at
87
- self.finished_at = finished_at
88
- self.id = id
89
- self.status = status
90
- self.reserved_at = reserved_at
91
- self.runtime_id = runtime_id
92
- self.runtime_type_id = runtime_type_id
93
- self.user_id = user_id
94
- self.run_ids = run_ids
95
- self.aggregated_algorithm_type = aggregated_algorithm_type
96
-
97
- @property
98
- def created_on(self):
99
- """Gets the created_on of this BatchRun. # noqa: E501
100
-
101
-
102
- :return: The created_on of this BatchRun. # noqa: E501
103
- :rtype: datetime
104
- """
105
- return self._created_on
106
-
107
- @created_on.setter
108
- def created_on(self, created_on):
109
- """Sets the created_on of this BatchRun.
110
-
111
-
112
- :param created_on: The created_on of this BatchRun. # noqa: E501
113
- :type created_on: datetime
114
- """
115
- if self.local_vars_configuration.client_side_validation and created_on is None: # noqa: E501
116
- raise ValueError("Invalid value for `created_on`, must not be `None`") # noqa: E501
117
-
118
- self._created_on = created_on
119
-
120
- @property
121
- def queued_at(self):
122
- """Gets the queued_at of this BatchRun. # noqa: E501
123
-
124
-
125
- :return: The queued_at of this BatchRun. # noqa: E501
126
- :rtype: datetime
127
- """
128
- return self._queued_at
129
-
130
- @queued_at.setter
131
- def queued_at(self, queued_at):
132
- """Sets the queued_at of this BatchRun.
133
-
134
-
135
- :param queued_at: The queued_at of this BatchRun. # noqa: E501
136
- :type queued_at: datetime
137
- """
138
-
139
- self._queued_at = queued_at
140
-
141
- @property
142
- def finished_at(self):
143
- """Gets the finished_at of this BatchRun. # noqa: E501
144
-
145
-
146
- :return: The finished_at of this BatchRun. # noqa: E501
147
- :rtype: datetime
148
- """
149
- return self._finished_at
150
-
151
- @finished_at.setter
152
- def finished_at(self, finished_at):
153
- """Sets the finished_at of this BatchRun.
154
-
155
-
156
- :param finished_at: The finished_at of this BatchRun. # noqa: E501
157
- :type finished_at: datetime
158
- """
159
-
160
- self._finished_at = finished_at
161
-
162
- @property
163
- def id(self):
164
- """Gets the id of this BatchRun. # noqa: E501
165
-
166
-
167
- :return: The id of this BatchRun. # noqa: E501
168
- :rtype: int
169
- """
170
- return self._id
171
-
172
- @id.setter
173
- def id(self, id):
174
- """Sets the id of this BatchRun.
175
-
176
-
177
- :param id: The id of this BatchRun. # noqa: E501
178
- :type id: int
179
- """
180
- if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
181
- raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
182
- if (self.local_vars_configuration.client_side_validation and
183
- id is not None and id > 2147483647): # noqa: E501
184
- raise ValueError("Invalid value for `id`, must be a value less than or equal to `2147483647`") # noqa: E501
185
- if (self.local_vars_configuration.client_side_validation and
186
- id is not None and id < 1): # noqa: E501
187
- raise ValueError("Invalid value for `id`, must be a value greater than or equal to `1`") # noqa: E501
188
-
189
- self._id = id
190
-
191
- @property
192
- def status(self):
193
- """Gets the status of this BatchRun. # noqa: E501
194
-
195
- PLANNED: planned<br/>QUEUED: queued<br/>RESERVED: reserved<br/>RUNNING: running<br/>FINISHED: finished # noqa: E501
196
-
197
- :return: The status of this BatchRun. # noqa: E501
198
- :rtype: BatchRunStatus
199
- """
200
- return self._status
201
-
202
- @status.setter
203
- def status(self, status):
204
- """Sets the status of this BatchRun.
205
-
206
- PLANNED: planned<br/>QUEUED: queued<br/>RESERVED: reserved<br/>RUNNING: running<br/>FINISHED: finished # noqa: E501
207
-
208
- :param status: The status of this BatchRun. # noqa: E501
209
- :type status: BatchRunStatus
210
- """
211
- if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501
212
- raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501
213
- if (self.local_vars_configuration.client_side_validation and
214
- status is not None and len(status) > 8):
215
- raise ValueError("Invalid value for `status`, length must be less than or equal to `8`") # noqa: E501
216
-
217
- self._status = status
218
-
219
- @property
220
- def reserved_at(self):
221
- """Gets the reserved_at of this BatchRun. # noqa: E501
222
-
223
-
224
- :return: The reserved_at of this BatchRun. # noqa: E501
225
- :rtype: datetime
226
- """
227
- return self._reserved_at
228
-
229
- @reserved_at.setter
230
- def reserved_at(self, reserved_at):
231
- """Sets the reserved_at of this BatchRun.
232
-
233
-
234
- :param reserved_at: The reserved_at of this BatchRun. # noqa: E501
235
- :type reserved_at: datetime
236
- """
237
-
238
- self._reserved_at = reserved_at
239
-
240
- @property
241
- def runtime_id(self):
242
- """Gets the runtime_id of this BatchRun. # noqa: E501
243
-
244
-
245
- :return: The runtime_id of this BatchRun. # noqa: E501
246
- :rtype: int
247
- """
248
- return self._runtime_id
249
-
250
- @runtime_id.setter
251
- def runtime_id(self, runtime_id):
252
- """Sets the runtime_id of this BatchRun.
253
-
254
-
255
- :param runtime_id: The runtime_id of this BatchRun. # noqa: E501
256
- :type runtime_id: int
257
- """
258
- if (self.local_vars_configuration.client_side_validation and
259
- runtime_id is not None and runtime_id > 2147483647): # noqa: E501
260
- raise ValueError("Invalid value for `runtime_id`, must be a value less than or equal to `2147483647`") # noqa: E501
261
- if (self.local_vars_configuration.client_side_validation and
262
- runtime_id is not None and runtime_id < 1): # noqa: E501
263
- raise ValueError("Invalid value for `runtime_id`, must be a value greater than or equal to `1`") # noqa: E501
264
-
265
- self._runtime_id = runtime_id
266
-
267
- @property
268
- def runtime_type_id(self):
269
- """Gets the runtime_type_id of this BatchRun. # noqa: E501
270
-
271
-
272
- :return: The runtime_type_id of this BatchRun. # noqa: E501
273
- :rtype: int
274
- """
275
- return self._runtime_type_id
276
-
277
- @runtime_type_id.setter
278
- def runtime_type_id(self, runtime_type_id):
279
- """Sets the runtime_type_id of this BatchRun.
280
-
281
-
282
- :param runtime_type_id: The runtime_type_id of this BatchRun. # noqa: E501
283
- :type runtime_type_id: int
284
- """
285
- if self.local_vars_configuration.client_side_validation and runtime_type_id is None: # noqa: E501
286
- raise ValueError("Invalid value for `runtime_type_id`, must not be `None`") # noqa: E501
287
- if (self.local_vars_configuration.client_side_validation and
288
- runtime_type_id is not None and runtime_type_id > 2147483647): # noqa: E501
289
- raise ValueError("Invalid value for `runtime_type_id`, must be a value less than or equal to `2147483647`") # noqa: E501
290
- if (self.local_vars_configuration.client_side_validation and
291
- runtime_type_id is not None and runtime_type_id < 1): # noqa: E501
292
- raise ValueError("Invalid value for `runtime_type_id`, must be a value greater than or equal to `1`") # noqa: E501
293
-
294
- self._runtime_type_id = runtime_type_id
295
-
296
- @property
297
- def user_id(self):
298
- """Gets the user_id of this BatchRun. # noqa: E501
299
-
300
-
301
- :return: The user_id of this BatchRun. # noqa: E501
302
- :rtype: int
303
- """
304
- return self._user_id
305
-
306
- @user_id.setter
307
- def user_id(self, user_id):
308
- """Sets the user_id of this BatchRun.
309
-
310
-
311
- :param user_id: The user_id of this BatchRun. # noqa: E501
312
- :type user_id: int
313
- """
314
- if self.local_vars_configuration.client_side_validation and user_id is None: # noqa: E501
315
- raise ValueError("Invalid value for `user_id`, must not be `None`") # noqa: E501
316
- if (self.local_vars_configuration.client_side_validation and
317
- user_id is not None and user_id > 2147483647): # noqa: E501
318
- raise ValueError("Invalid value for `user_id`, must be a value less than or equal to `2147483647`") # noqa: E501
319
- if (self.local_vars_configuration.client_side_validation and
320
- user_id is not None and user_id < 1): # noqa: E501
321
- raise ValueError("Invalid value for `user_id`, must be a value greater than or equal to `1`") # noqa: E501
322
-
323
- self._user_id = user_id
324
-
325
- @property
326
- def run_ids(self):
327
- """Gets the run_ids of this BatchRun. # noqa: E501
328
-
329
-
330
- :return: The run_ids of this BatchRun. # noqa: E501
331
- :rtype: list[int]
332
- """
333
- return self._run_ids
334
-
335
- @run_ids.setter
336
- def run_ids(self, run_ids):
337
- """Sets the run_ids of this BatchRun.
338
-
339
-
340
- :param run_ids: The run_ids of this BatchRun. # noqa: E501
341
- :type run_ids: list[int]
342
- """
343
- if self.local_vars_configuration.client_side_validation and run_ids is None: # noqa: E501
344
- raise ValueError("Invalid value for `run_ids`, must not be `None`") # noqa: E501
345
-
346
- self._run_ids = run_ids
347
-
348
- @property
349
- def aggregated_algorithm_type(self):
350
- """Gets the aggregated_algorithm_type of this BatchRun. # noqa: E501
351
-
352
-
353
- :return: The aggregated_algorithm_type of this BatchRun. # noqa: E501
354
- :rtype: AlgorithmType
355
- """
356
- return self._aggregated_algorithm_type
357
-
358
- @aggregated_algorithm_type.setter
359
- def aggregated_algorithm_type(self, aggregated_algorithm_type):
360
- """Sets the aggregated_algorithm_type of this BatchRun.
361
-
362
-
363
- :param aggregated_algorithm_type: The aggregated_algorithm_type of this BatchRun. # noqa: E501
364
- :type aggregated_algorithm_type: AlgorithmType
365
- """
366
- if self.local_vars_configuration.client_side_validation and aggregated_algorithm_type is None: # noqa: E501
367
- raise ValueError("Invalid value for `aggregated_algorithm_type`, must not be `None`") # noqa: E501
368
-
369
- self._aggregated_algorithm_type = aggregated_algorithm_type
370
-
371
- def to_dict(self, serialize=False):
372
- """Returns the model properties as a dict"""
373
- result = {}
374
-
375
- def convert(x):
376
- if hasattr(x, "to_dict"):
377
- args = getfullargspec(x.to_dict).args
378
- if len(args) == 1:
379
- return x.to_dict()
380
- else:
381
- return x.to_dict(serialize)
382
- else:
383
- return x
384
-
385
- for attr, _ in six.iteritems(self.openapi_types):
386
- value = getattr(self, attr)
387
- attr = self.attribute_map.get(attr, attr) if serialize else attr
388
- if isinstance(value, list):
389
- result[attr] = list(map(
390
- lambda x: convert(x),
391
- value
392
- ))
393
- elif isinstance(value, dict):
394
- result[attr] = dict(map(
395
- lambda item: (item[0], convert(item[1])),
396
- value.items()
397
- ))
398
- else:
399
- result[attr] = convert(value)
400
-
401
- return result
402
-
403
- def to_str(self):
404
- """Returns the string representation of the model"""
405
- return pprint.pformat(self.to_dict())
406
-
407
- def __repr__(self):
408
- """For `print` and `pprint`"""
409
- return self.to_str()
410
-
411
- def __eq__(self, other):
412
- """Returns true if both objects are equal"""
413
- if not isinstance(other, BatchRun):
414
- return False
415
-
416
- return self.to_dict() == other.to_dict()
417
-
418
- def __ne__(self, other):
419
- """Returns true if both objects are not equal"""
420
- if not isinstance(other, BatchRun):
421
- return True
422
-
423
- return self.to_dict() != other.to_dict()