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,357 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- Quantum Inspire 2
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 RuntimeType(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
- 'id': 'int',
40
- 'name': 'str',
41
- 'infrastructure': 'str',
42
- 'description': 'str',
43
- 'image_id': 'str',
44
- 'is_hardware': 'bool',
45
- 'features': 'object',
46
- 'default_compiler_config': 'object',
47
- 'native_gateset': 'object'
48
- }
49
-
50
- attribute_map = {
51
- 'id': 'id',
52
- 'name': 'name',
53
- 'infrastructure': 'infrastructure',
54
- 'description': 'description',
55
- 'image_id': 'image_id',
56
- 'is_hardware': 'is_hardware',
57
- 'features': 'features',
58
- 'default_compiler_config': 'default_compiler_config',
59
- 'native_gateset': 'native_gateset'
60
- }
61
-
62
- def __init__(self, id=None, name=None, infrastructure=None, description=None, image_id=None, is_hardware=None, features=None, default_compiler_config=None, native_gateset=None, local_vars_configuration=None): # noqa: E501
63
- """RuntimeType - a model defined in OpenAPI""" # noqa: E501
64
- if local_vars_configuration is None:
65
- local_vars_configuration = Configuration.get_default_copy()
66
- self.local_vars_configuration = local_vars_configuration
67
-
68
- self._id = None
69
- self._name = None
70
- self._infrastructure = None
71
- self._description = None
72
- self._image_id = None
73
- self._is_hardware = None
74
- self._features = None
75
- self._default_compiler_config = None
76
- self._native_gateset = None
77
- self.discriminator = None
78
-
79
- self.id = id
80
- self.name = name
81
- self.infrastructure = infrastructure
82
- self.description = description
83
- self.image_id = image_id
84
- self.is_hardware = is_hardware
85
- self.features = features
86
- self.default_compiler_config = default_compiler_config
87
- self.native_gateset = native_gateset
88
-
89
- @property
90
- def id(self):
91
- """Gets the id of this RuntimeType. # noqa: E501
92
-
93
-
94
- :return: The id of this RuntimeType. # noqa: E501
95
- :rtype: int
96
- """
97
- return self._id
98
-
99
- @id.setter
100
- def id(self, id):
101
- """Sets the id of this RuntimeType.
102
-
103
-
104
- :param id: The id of this RuntimeType. # noqa: E501
105
- :type id: int
106
- """
107
- if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
108
- raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
109
- if (self.local_vars_configuration.client_side_validation and
110
- id is not None and id > 2147483647): # noqa: E501
111
- raise ValueError("Invalid value for `id`, must be a value less than or equal to `2147483647`") # noqa: E501
112
- if (self.local_vars_configuration.client_side_validation and
113
- id is not None and id < 1): # noqa: E501
114
- raise ValueError("Invalid value for `id`, must be a value greater than or equal to `1`") # noqa: E501
115
-
116
- self._id = id
117
-
118
- @property
119
- def name(self):
120
- """Gets the name of this RuntimeType. # noqa: E501
121
-
122
-
123
- :return: The name of this RuntimeType. # noqa: E501
124
- :rtype: str
125
- """
126
- return self._name
127
-
128
- @name.setter
129
- def name(self, name):
130
- """Sets the name of this RuntimeType.
131
-
132
-
133
- :param name: The name of this RuntimeType. # noqa: E501
134
- :type name: str
135
- """
136
- if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
137
- raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
138
- if (self.local_vars_configuration.client_side_validation and
139
- name is not None and len(name) > 32):
140
- raise ValueError("Invalid value for `name`, length must be less than or equal to `32`") # noqa: E501
141
-
142
- self._name = name
143
-
144
- @property
145
- def infrastructure(self):
146
- """Gets the infrastructure of this RuntimeType. # noqa: E501
147
-
148
-
149
- :return: The infrastructure of this RuntimeType. # noqa: E501
150
- :rtype: str
151
- """
152
- return self._infrastructure
153
-
154
- @infrastructure.setter
155
- def infrastructure(self, infrastructure):
156
- """Sets the infrastructure of this RuntimeType.
157
-
158
-
159
- :param infrastructure: The infrastructure of this RuntimeType. # noqa: E501
160
- :type infrastructure: str
161
- """
162
- if self.local_vars_configuration.client_side_validation and infrastructure is None: # noqa: E501
163
- raise ValueError("Invalid value for `infrastructure`, must not be `None`") # noqa: E501
164
- if (self.local_vars_configuration.client_side_validation and
165
- infrastructure is not None and len(infrastructure) > 32):
166
- raise ValueError("Invalid value for `infrastructure`, length must be less than or equal to `32`") # noqa: E501
167
-
168
- self._infrastructure = infrastructure
169
-
170
- @property
171
- def description(self):
172
- """Gets the description of this RuntimeType. # noqa: E501
173
-
174
-
175
- :return: The description of this RuntimeType. # noqa: E501
176
- :rtype: str
177
- """
178
- return self._description
179
-
180
- @description.setter
181
- def description(self, description):
182
- """Sets the description of this RuntimeType.
183
-
184
-
185
- :param description: The description of this RuntimeType. # noqa: E501
186
- :type description: str
187
- """
188
- if self.local_vars_configuration.client_side_validation and description is None: # noqa: E501
189
- raise ValueError("Invalid value for `description`, must not be `None`") # noqa: E501
190
-
191
- self._description = description
192
-
193
- @property
194
- def image_id(self):
195
- """Gets the image_id of this RuntimeType. # noqa: E501
196
-
197
-
198
- :return: The image_id of this RuntimeType. # noqa: E501
199
- :rtype: str
200
- """
201
- return self._image_id
202
-
203
- @image_id.setter
204
- def image_id(self, image_id):
205
- """Sets the image_id of this RuntimeType.
206
-
207
-
208
- :param image_id: The image_id of this RuntimeType. # noqa: E501
209
- :type image_id: str
210
- """
211
- if self.local_vars_configuration.client_side_validation and image_id is None: # noqa: E501
212
- raise ValueError("Invalid value for `image_id`, must not be `None`") # noqa: E501
213
- if (self.local_vars_configuration.client_side_validation and
214
- image_id is not None and len(image_id) > 16):
215
- raise ValueError("Invalid value for `image_id`, length must be less than or equal to `16`") # noqa: E501
216
-
217
- self._image_id = image_id
218
-
219
- @property
220
- def is_hardware(self):
221
- """Gets the is_hardware of this RuntimeType. # noqa: E501
222
-
223
-
224
- :return: The is_hardware of this RuntimeType. # noqa: E501
225
- :rtype: bool
226
- """
227
- return self._is_hardware
228
-
229
- @is_hardware.setter
230
- def is_hardware(self, is_hardware):
231
- """Sets the is_hardware of this RuntimeType.
232
-
233
-
234
- :param is_hardware: The is_hardware of this RuntimeType. # noqa: E501
235
- :type is_hardware: bool
236
- """
237
- if self.local_vars_configuration.client_side_validation and is_hardware is None: # noqa: E501
238
- raise ValueError("Invalid value for `is_hardware`, must not be `None`") # noqa: E501
239
-
240
- self._is_hardware = is_hardware
241
-
242
- @property
243
- def features(self):
244
- """Gets the features of this RuntimeType. # noqa: E501
245
-
246
-
247
- :return: The features of this RuntimeType. # noqa: E501
248
- :rtype: object
249
- """
250
- return self._features
251
-
252
- @features.setter
253
- def features(self, features):
254
- """Sets the features of this RuntimeType.
255
-
256
-
257
- :param features: The features of this RuntimeType. # noqa: E501
258
- :type features: object
259
- """
260
-
261
- self._features = features
262
-
263
- @property
264
- def default_compiler_config(self):
265
- """Gets the default_compiler_config of this RuntimeType. # noqa: E501
266
-
267
-
268
- :return: The default_compiler_config of this RuntimeType. # noqa: E501
269
- :rtype: object
270
- """
271
- return self._default_compiler_config
272
-
273
- @default_compiler_config.setter
274
- def default_compiler_config(self, default_compiler_config):
275
- """Sets the default_compiler_config of this RuntimeType.
276
-
277
-
278
- :param default_compiler_config: The default_compiler_config of this RuntimeType. # noqa: E501
279
- :type default_compiler_config: object
280
- """
281
-
282
- self._default_compiler_config = default_compiler_config
283
-
284
- @property
285
- def native_gateset(self):
286
- """Gets the native_gateset of this RuntimeType. # noqa: E501
287
-
288
-
289
- :return: The native_gateset of this RuntimeType. # noqa: E501
290
- :rtype: object
291
- """
292
- return self._native_gateset
293
-
294
- @native_gateset.setter
295
- def native_gateset(self, native_gateset):
296
- """Sets the native_gateset of this RuntimeType.
297
-
298
-
299
- :param native_gateset: The native_gateset of this RuntimeType. # noqa: E501
300
- :type native_gateset: object
301
- """
302
-
303
- self._native_gateset = native_gateset
304
-
305
- def to_dict(self, serialize=False):
306
- """Returns the model properties as a dict"""
307
- result = {}
308
-
309
- def convert(x):
310
- if hasattr(x, "to_dict"):
311
- args = getfullargspec(x.to_dict).args
312
- if len(args) == 1:
313
- return x.to_dict()
314
- else:
315
- return x.to_dict(serialize)
316
- else:
317
- return x
318
-
319
- for attr, _ in six.iteritems(self.openapi_types):
320
- value = getattr(self, attr)
321
- attr = self.attribute_map.get(attr, attr) if serialize else attr
322
- if isinstance(value, list):
323
- result[attr] = list(map(
324
- lambda x: convert(x),
325
- value
326
- ))
327
- elif isinstance(value, dict):
328
- result[attr] = dict(map(
329
- lambda item: (item[0], convert(item[1])),
330
- value.items()
331
- ))
332
- else:
333
- result[attr] = convert(value)
334
-
335
- return result
336
-
337
- def to_str(self):
338
- """Returns the string representation of the model"""
339
- return pprint.pformat(self.to_dict())
340
-
341
- def __repr__(self):
342
- """For `print` and `pprint`"""
343
- return self.to_str()
344
-
345
- def __eq__(self, other):
346
- """Returns true if both objects are equal"""
347
- if not isinstance(other, RuntimeType):
348
- return False
349
-
350
- return self.to_dict() == other.to_dict()
351
-
352
- def __ne__(self, other):
353
- """Returns true if both objects are not equal"""
354
- if not isinstance(other, RuntimeType):
355
- return True
356
-
357
- return self.to_dict() != other.to_dict()
@@ -1,320 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- Quantum Inspire 2
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 RuntimeWithAuthentication(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
- 'id': 'int',
40
- 'name': 'str',
41
- 'location': 'str',
42
- 'status': 'RuntimeStatus',
43
- 'last_heartbeat': 'datetime',
44
- 'authentication_hash': 'str',
45
- 'runtime_type_id': 'int'
46
- }
47
-
48
- attribute_map = {
49
- 'id': 'id',
50
- 'name': 'name',
51
- 'location': 'location',
52
- 'status': 'status',
53
- 'last_heartbeat': 'last_heartbeat',
54
- 'authentication_hash': 'authentication_hash',
55
- 'runtime_type_id': 'runtime_type_id'
56
- }
57
-
58
- def __init__(self, id=None, name=None, location=None, status=None, last_heartbeat=None, authentication_hash=None, runtime_type_id=None, local_vars_configuration=None): # noqa: E501
59
- """RuntimeWithAuthentication - a model defined in OpenAPI""" # noqa: E501
60
- if local_vars_configuration is None:
61
- local_vars_configuration = Configuration.get_default_copy()
62
- self.local_vars_configuration = local_vars_configuration
63
-
64
- self._id = None
65
- self._name = None
66
- self._location = None
67
- self._status = None
68
- self._last_heartbeat = None
69
- self._authentication_hash = None
70
- self._runtime_type_id = None
71
- self.discriminator = None
72
-
73
- self.id = id
74
- self.name = name
75
- self.location = location
76
- self.status = status
77
- self.last_heartbeat = last_heartbeat
78
- self.authentication_hash = authentication_hash
79
- self.runtime_type_id = runtime_type_id
80
-
81
- @property
82
- def id(self):
83
- """Gets the id of this RuntimeWithAuthentication. # noqa: E501
84
-
85
-
86
- :return: The id of this RuntimeWithAuthentication. # noqa: E501
87
- :rtype: int
88
- """
89
- return self._id
90
-
91
- @id.setter
92
- def id(self, id):
93
- """Sets the id of this RuntimeWithAuthentication.
94
-
95
-
96
- :param id: The id of this RuntimeWithAuthentication. # noqa: E501
97
- :type id: int
98
- """
99
- if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
100
- raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
101
- if (self.local_vars_configuration.client_side_validation and
102
- id is not None and id > 2147483647): # noqa: E501
103
- raise ValueError("Invalid value for `id`, must be a value less than or equal to `2147483647`") # noqa: E501
104
- if (self.local_vars_configuration.client_side_validation and
105
- id is not None and id < 1): # noqa: E501
106
- raise ValueError("Invalid value for `id`, must be a value greater than or equal to `1`") # noqa: E501
107
-
108
- self._id = id
109
-
110
- @property
111
- def name(self):
112
- """Gets the name of this RuntimeWithAuthentication. # noqa: E501
113
-
114
-
115
- :return: The name of this RuntimeWithAuthentication. # noqa: E501
116
- :rtype: str
117
- """
118
- return self._name
119
-
120
- @name.setter
121
- def name(self, name):
122
- """Sets the name of this RuntimeWithAuthentication.
123
-
124
-
125
- :param name: The name of this RuntimeWithAuthentication. # noqa: E501
126
- :type name: str
127
- """
128
- if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
129
- raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
130
- if (self.local_vars_configuration.client_side_validation and
131
- name is not None and len(name) > 32):
132
- raise ValueError("Invalid value for `name`, length must be less than or equal to `32`") # noqa: E501
133
-
134
- self._name = name
135
-
136
- @property
137
- def location(self):
138
- """Gets the location of this RuntimeWithAuthentication. # noqa: E501
139
-
140
-
141
- :return: The location of this RuntimeWithAuthentication. # noqa: E501
142
- :rtype: str
143
- """
144
- return self._location
145
-
146
- @location.setter
147
- def location(self, location):
148
- """Sets the location of this RuntimeWithAuthentication.
149
-
150
-
151
- :param location: The location of this RuntimeWithAuthentication. # noqa: E501
152
- :type location: str
153
- """
154
- if self.local_vars_configuration.client_side_validation and location is None: # noqa: E501
155
- raise ValueError("Invalid value for `location`, must not be `None`") # noqa: E501
156
- if (self.local_vars_configuration.client_side_validation and
157
- location is not None and len(location) > 32):
158
- raise ValueError("Invalid value for `location`, length must be less than or equal to `32`") # noqa: E501
159
-
160
- self._location = location
161
-
162
- @property
163
- def status(self):
164
- """Gets the status of this RuntimeWithAuthentication. # noqa: E501
165
-
166
- OFFLINE: offline<br/>IDLE: idle<br/>EXECUTING: executing<br/>CALIBRATING: calibrating # noqa: E501
167
-
168
- :return: The status of this RuntimeWithAuthentication. # noqa: E501
169
- :rtype: RuntimeStatus
170
- """
171
- return self._status
172
-
173
- @status.setter
174
- def status(self, status):
175
- """Sets the status of this RuntimeWithAuthentication.
176
-
177
- OFFLINE: offline<br/>IDLE: idle<br/>EXECUTING: executing<br/>CALIBRATING: calibrating # noqa: E501
178
-
179
- :param status: The status of this RuntimeWithAuthentication. # noqa: E501
180
- :type status: RuntimeStatus
181
- """
182
- if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501
183
- raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501
184
- if (self.local_vars_configuration.client_side_validation and
185
- status is not None and len(status) > 11):
186
- raise ValueError("Invalid value for `status`, length must be less than or equal to `11`") # noqa: E501
187
-
188
- self._status = status
189
-
190
- @property
191
- def last_heartbeat(self):
192
- """Gets the last_heartbeat of this RuntimeWithAuthentication. # noqa: E501
193
-
194
-
195
- :return: The last_heartbeat of this RuntimeWithAuthentication. # noqa: E501
196
- :rtype: datetime
197
- """
198
- return self._last_heartbeat
199
-
200
- @last_heartbeat.setter
201
- def last_heartbeat(self, last_heartbeat):
202
- """Sets the last_heartbeat of this RuntimeWithAuthentication.
203
-
204
-
205
- :param last_heartbeat: The last_heartbeat of this RuntimeWithAuthentication. # noqa: E501
206
- :type last_heartbeat: datetime
207
- """
208
- if self.local_vars_configuration.client_side_validation and last_heartbeat is None: # noqa: E501
209
- raise ValueError("Invalid value for `last_heartbeat`, must not be `None`") # noqa: E501
210
-
211
- self._last_heartbeat = last_heartbeat
212
-
213
- @property
214
- def authentication_hash(self):
215
- """Gets the authentication_hash of this RuntimeWithAuthentication. # noqa: E501
216
-
217
-
218
- :return: The authentication_hash of this RuntimeWithAuthentication. # noqa: E501
219
- :rtype: str
220
- """
221
- return self._authentication_hash
222
-
223
- @authentication_hash.setter
224
- def authentication_hash(self, authentication_hash):
225
- """Sets the authentication_hash of this RuntimeWithAuthentication.
226
-
227
-
228
- :param authentication_hash: The authentication_hash of this RuntimeWithAuthentication. # noqa: E501
229
- :type authentication_hash: str
230
- """
231
- if self.local_vars_configuration.client_side_validation and authentication_hash is None: # noqa: E501
232
- raise ValueError("Invalid value for `authentication_hash`, must not be `None`") # noqa: E501
233
- if (self.local_vars_configuration.client_side_validation and
234
- authentication_hash is not None and len(authentication_hash) > 32):
235
- raise ValueError("Invalid value for `authentication_hash`, length must be less than or equal to `32`") # noqa: E501
236
-
237
- self._authentication_hash = authentication_hash
238
-
239
- @property
240
- def runtime_type_id(self):
241
- """Gets the runtime_type_id of this RuntimeWithAuthentication. # noqa: E501
242
-
243
-
244
- :return: The runtime_type_id of this RuntimeWithAuthentication. # noqa: E501
245
- :rtype: int
246
- """
247
- return self._runtime_type_id
248
-
249
- @runtime_type_id.setter
250
- def runtime_type_id(self, runtime_type_id):
251
- """Sets the runtime_type_id of this RuntimeWithAuthentication.
252
-
253
-
254
- :param runtime_type_id: The runtime_type_id of this RuntimeWithAuthentication. # noqa: E501
255
- :type runtime_type_id: int
256
- """
257
- if self.local_vars_configuration.client_side_validation and runtime_type_id is None: # noqa: E501
258
- raise ValueError("Invalid value for `runtime_type_id`, must not be `None`") # noqa: E501
259
- if (self.local_vars_configuration.client_side_validation and
260
- runtime_type_id is not None and runtime_type_id > 2147483647): # noqa: E501
261
- raise ValueError("Invalid value for `runtime_type_id`, must be a value less than or equal to `2147483647`") # noqa: E501
262
- if (self.local_vars_configuration.client_side_validation and
263
- runtime_type_id is not None and runtime_type_id < 1): # noqa: E501
264
- raise ValueError("Invalid value for `runtime_type_id`, must be a value greater than or equal to `1`") # noqa: E501
265
-
266
- self._runtime_type_id = runtime_type_id
267
-
268
- def to_dict(self, serialize=False):
269
- """Returns the model properties as a dict"""
270
- result = {}
271
-
272
- def convert(x):
273
- if hasattr(x, "to_dict"):
274
- args = getfullargspec(x.to_dict).args
275
- if len(args) == 1:
276
- return x.to_dict()
277
- else:
278
- return x.to_dict(serialize)
279
- else:
280
- return x
281
-
282
- for attr, _ in six.iteritems(self.openapi_types):
283
- value = getattr(self, attr)
284
- attr = self.attribute_map.get(attr, attr) if serialize else attr
285
- if isinstance(value, list):
286
- result[attr] = list(map(
287
- lambda x: convert(x),
288
- value
289
- ))
290
- elif isinstance(value, dict):
291
- result[attr] = dict(map(
292
- lambda item: (item[0], convert(item[1])),
293
- value.items()
294
- ))
295
- else:
296
- result[attr] = convert(value)
297
-
298
- return result
299
-
300
- def to_str(self):
301
- """Returns the string representation of the model"""
302
- return pprint.pformat(self.to_dict())
303
-
304
- def __repr__(self):
305
- """For `print` and `pprint`"""
306
- return self.to_str()
307
-
308
- def __eq__(self, other):
309
- """Returns true if both objects are equal"""
310
- if not isinstance(other, RuntimeWithAuthentication):
311
- return False
312
-
313
- return self.to_dict() == other.to_dict()
314
-
315
- def __ne__(self, other):
316
- """Returns true if both objects are not equal"""
317
- if not isinstance(other, RuntimeWithAuthentication):
318
- return True
319
-
320
- return self.to_dict() != other.to_dict()