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,171 +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 BatchRunIn(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
- 'runtime_type_id': 'int',
40
- 'user_id': 'int'
41
- }
42
-
43
- attribute_map = {
44
- 'runtime_type_id': 'runtime_type_id',
45
- 'user_id': 'user_id'
46
- }
47
-
48
- def __init__(self, runtime_type_id=None, user_id=None, local_vars_configuration=None): # noqa: E501
49
- """BatchRunIn - a model defined in OpenAPI""" # noqa: E501
50
- if local_vars_configuration is None:
51
- local_vars_configuration = Configuration.get_default_copy()
52
- self.local_vars_configuration = local_vars_configuration
53
-
54
- self._runtime_type_id = None
55
- self._user_id = None
56
- self.discriminator = None
57
-
58
- self.runtime_type_id = runtime_type_id
59
- self.user_id = user_id
60
-
61
- @property
62
- def runtime_type_id(self):
63
- """Gets the runtime_type_id of this BatchRunIn. # noqa: E501
64
-
65
-
66
- :return: The runtime_type_id of this BatchRunIn. # noqa: E501
67
- :rtype: int
68
- """
69
- return self._runtime_type_id
70
-
71
- @runtime_type_id.setter
72
- def runtime_type_id(self, runtime_type_id):
73
- """Sets the runtime_type_id of this BatchRunIn.
74
-
75
-
76
- :param runtime_type_id: The runtime_type_id of this BatchRunIn. # noqa: E501
77
- :type runtime_type_id: int
78
- """
79
- if self.local_vars_configuration.client_side_validation and runtime_type_id is None: # noqa: E501
80
- raise ValueError("Invalid value for `runtime_type_id`, must not be `None`") # noqa: E501
81
- if (self.local_vars_configuration.client_side_validation and
82
- runtime_type_id is not None and runtime_type_id > 2147483647): # noqa: E501
83
- raise ValueError("Invalid value for `runtime_type_id`, must be a value less than or equal to `2147483647`") # noqa: E501
84
- if (self.local_vars_configuration.client_side_validation and
85
- runtime_type_id is not None and runtime_type_id < 1): # noqa: E501
86
- raise ValueError("Invalid value for `runtime_type_id`, must be a value greater than or equal to `1`") # noqa: E501
87
-
88
- self._runtime_type_id = runtime_type_id
89
-
90
- @property
91
- def user_id(self):
92
- """Gets the user_id of this BatchRunIn. # noqa: E501
93
-
94
-
95
- :return: The user_id of this BatchRunIn. # noqa: E501
96
- :rtype: int
97
- """
98
- return self._user_id
99
-
100
- @user_id.setter
101
- def user_id(self, user_id):
102
- """Sets the user_id of this BatchRunIn.
103
-
104
-
105
- :param user_id: The user_id of this BatchRunIn. # noqa: E501
106
- :type user_id: int
107
- """
108
- if self.local_vars_configuration.client_side_validation and user_id is None: # noqa: E501
109
- raise ValueError("Invalid value for `user_id`, must not be `None`") # noqa: E501
110
- if (self.local_vars_configuration.client_side_validation and
111
- user_id is not None and user_id > 2147483647): # noqa: E501
112
- raise ValueError("Invalid value for `user_id`, must be a value less than or equal to `2147483647`") # noqa: E501
113
- if (self.local_vars_configuration.client_side_validation and
114
- user_id is not None and user_id < 1): # noqa: E501
115
- raise ValueError("Invalid value for `user_id`, must be a value greater than or equal to `1`") # noqa: E501
116
-
117
- self._user_id = user_id
118
-
119
- def to_dict(self, serialize=False):
120
- """Returns the model properties as a dict"""
121
- result = {}
122
-
123
- def convert(x):
124
- if hasattr(x, "to_dict"):
125
- args = getfullargspec(x.to_dict).args
126
- if len(args) == 1:
127
- return x.to_dict()
128
- else:
129
- return x.to_dict(serialize)
130
- else:
131
- return x
132
-
133
- for attr, _ in six.iteritems(self.openapi_types):
134
- value = getattr(self, attr)
135
- attr = self.attribute_map.get(attr, attr) if serialize else attr
136
- if isinstance(value, list):
137
- result[attr] = list(map(
138
- lambda x: convert(x),
139
- value
140
- ))
141
- elif isinstance(value, dict):
142
- result[attr] = dict(map(
143
- lambda item: (item[0], convert(item[1])),
144
- value.items()
145
- ))
146
- else:
147
- result[attr] = convert(value)
148
-
149
- return result
150
-
151
- def to_str(self):
152
- """Returns the string representation of the model"""
153
- return pprint.pformat(self.to_dict())
154
-
155
- def __repr__(self):
156
- """For `print` and `pprint`"""
157
- return self.to_str()
158
-
159
- def __eq__(self, other):
160
- """Returns true if both objects are equal"""
161
- if not isinstance(other, BatchRunIn):
162
- return False
163
-
164
- return self.to_dict() == other.to_dict()
165
-
166
- def __ne__(self, other):
167
- """Returns true if both objects are not equal"""
168
- if not isinstance(other, BatchRunIn):
169
- return True
170
-
171
- return self.to_dict() != other.to_dict()
@@ -1,114 +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 BatchRunStatus(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
- allowed enum values
33
- """
34
- PLANNED = "planned"
35
- QUEUED = "queued"
36
- RESERVED = "reserved"
37
- RUNNING = "running"
38
- FINISHED = "finished"
39
-
40
- allowable_values = [PLANNED, QUEUED, RESERVED, RUNNING, FINISHED] # noqa: E501
41
-
42
- """
43
- Attributes:
44
- openapi_types (dict): The key is attribute name
45
- and the value is attribute type.
46
- attribute_map (dict): The key is attribute name
47
- and the value is json key in definition.
48
- """
49
- openapi_types = {
50
- }
51
-
52
- attribute_map = {
53
- }
54
-
55
- def __init__(self, local_vars_configuration=None): # noqa: E501
56
- """BatchRunStatus - a model defined in OpenAPI""" # noqa: E501
57
- if local_vars_configuration is None:
58
- local_vars_configuration = Configuration.get_default_copy()
59
- self.local_vars_configuration = local_vars_configuration
60
- self.discriminator = None
61
-
62
- def to_dict(self, serialize=False):
63
- """Returns the model properties as a dict"""
64
- result = {}
65
-
66
- def convert(x):
67
- if hasattr(x, "to_dict"):
68
- args = getfullargspec(x.to_dict).args
69
- if len(args) == 1:
70
- return x.to_dict()
71
- else:
72
- return x.to_dict(serialize)
73
- else:
74
- return x
75
-
76
- for attr, _ in six.iteritems(self.openapi_types):
77
- value = getattr(self, attr)
78
- attr = self.attribute_map.get(attr, attr) if serialize else attr
79
- if isinstance(value, list):
80
- result[attr] = list(map(
81
- lambda x: convert(x),
82
- value
83
- ))
84
- elif isinstance(value, dict):
85
- result[attr] = dict(map(
86
- lambda item: (item[0], convert(item[1])),
87
- value.items()
88
- ))
89
- else:
90
- result[attr] = convert(value)
91
-
92
- return result
93
-
94
- def to_str(self):
95
- """Returns the string representation of the model"""
96
- return pprint.pformat(self.to_dict())
97
-
98
- def __repr__(self):
99
- """For `print` and `pprint`"""
100
- return self.to_str()
101
-
102
- def __eq__(self, other):
103
- """Returns true if both objects are equal"""
104
- if not isinstance(other, BatchRunStatus):
105
- return False
106
-
107
- return self.to_dict() == other.to_dict()
108
-
109
- def __ne__(self, other):
110
- """Returns true if both objects are not equal"""
111
- if not isinstance(other, BatchRunStatus):
112
- return True
113
-
114
- return self.to_dict() != other.to_dict()
@@ -1,345 +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 Run(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
- 'algorithm_type': 'AlgorithmType',
44
- 'status': 'RunStatus',
45
- 'batch_run_id': 'int',
46
- 'file_id': 'int'
47
- }
48
-
49
- attribute_map = {
50
- 'created_on': 'created_on',
51
- 'queued_at': 'queued_at',
52
- 'finished_at': 'finished_at',
53
- 'id': 'id',
54
- 'algorithm_type': 'algorithm_type',
55
- 'status': 'status',
56
- 'batch_run_id': 'batch_run_id',
57
- 'file_id': 'file_id'
58
- }
59
-
60
- def __init__(self, created_on=None, queued_at=None, finished_at=None, id=None, algorithm_type=None, status=None, batch_run_id=None, file_id=None, local_vars_configuration=None): # noqa: E501
61
- """Run - a model defined in OpenAPI""" # noqa: E501
62
- if local_vars_configuration is None:
63
- local_vars_configuration = Configuration.get_default_copy()
64
- self.local_vars_configuration = local_vars_configuration
65
-
66
- self._created_on = None
67
- self._queued_at = None
68
- self._finished_at = None
69
- self._id = None
70
- self._algorithm_type = None
71
- self._status = None
72
- self._batch_run_id = None
73
- self._file_id = None
74
- self.discriminator = None
75
-
76
- self.created_on = created_on
77
- self.queued_at = queued_at
78
- self.finished_at = finished_at
79
- self.id = id
80
- self.algorithm_type = algorithm_type
81
- self.status = status
82
- self.batch_run_id = batch_run_id
83
- self.file_id = file_id
84
-
85
- @property
86
- def created_on(self):
87
- """Gets the created_on of this Run. # noqa: E501
88
-
89
-
90
- :return: The created_on of this Run. # noqa: E501
91
- :rtype: datetime
92
- """
93
- return self._created_on
94
-
95
- @created_on.setter
96
- def created_on(self, created_on):
97
- """Sets the created_on of this Run.
98
-
99
-
100
- :param created_on: The created_on of this Run. # noqa: E501
101
- :type created_on: datetime
102
- """
103
- if self.local_vars_configuration.client_side_validation and created_on is None: # noqa: E501
104
- raise ValueError("Invalid value for `created_on`, must not be `None`") # noqa: E501
105
-
106
- self._created_on = created_on
107
-
108
- @property
109
- def queued_at(self):
110
- """Gets the queued_at of this Run. # noqa: E501
111
-
112
-
113
- :return: The queued_at of this Run. # noqa: E501
114
- :rtype: datetime
115
- """
116
- return self._queued_at
117
-
118
- @queued_at.setter
119
- def queued_at(self, queued_at):
120
- """Sets the queued_at of this Run.
121
-
122
-
123
- :param queued_at: The queued_at of this Run. # noqa: E501
124
- :type queued_at: datetime
125
- """
126
-
127
- self._queued_at = queued_at
128
-
129
- @property
130
- def finished_at(self):
131
- """Gets the finished_at of this Run. # noqa: E501
132
-
133
-
134
- :return: The finished_at of this Run. # noqa: E501
135
- :rtype: datetime
136
- """
137
- return self._finished_at
138
-
139
- @finished_at.setter
140
- def finished_at(self, finished_at):
141
- """Sets the finished_at of this Run.
142
-
143
-
144
- :param finished_at: The finished_at of this Run. # noqa: E501
145
- :type finished_at: datetime
146
- """
147
-
148
- self._finished_at = finished_at
149
-
150
- @property
151
- def id(self):
152
- """Gets the id of this Run. # noqa: E501
153
-
154
-
155
- :return: The id of this Run. # noqa: E501
156
- :rtype: int
157
- """
158
- return self._id
159
-
160
- @id.setter
161
- def id(self, id):
162
- """Sets the id of this Run.
163
-
164
-
165
- :param id: The id of this Run. # noqa: E501
166
- :type id: int
167
- """
168
- if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
169
- raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
170
- if (self.local_vars_configuration.client_side_validation and
171
- id is not None and id > 2147483647): # noqa: E501
172
- raise ValueError("Invalid value for `id`, must be a value less than or equal to `2147483647`") # noqa: E501
173
- if (self.local_vars_configuration.client_side_validation and
174
- id is not None and id < 1): # noqa: E501
175
- raise ValueError("Invalid value for `id`, must be a value greater than or equal to `1`") # noqa: E501
176
-
177
- self._id = id
178
-
179
- @property
180
- def algorithm_type(self):
181
- """Gets the algorithm_type of this Run. # noqa: E501
182
-
183
- HYBRID: hybrid<br/>QUANTUM: quantum # noqa: E501
184
-
185
- :return: The algorithm_type of this Run. # noqa: E501
186
- :rtype: AlgorithmType
187
- """
188
- return self._algorithm_type
189
-
190
- @algorithm_type.setter
191
- def algorithm_type(self, algorithm_type):
192
- """Sets the algorithm_type of this Run.
193
-
194
- HYBRID: hybrid<br/>QUANTUM: quantum # noqa: E501
195
-
196
- :param algorithm_type: The algorithm_type of this Run. # noqa: E501
197
- :type algorithm_type: AlgorithmType
198
- """
199
- if self.local_vars_configuration.client_side_validation and algorithm_type is None: # noqa: E501
200
- raise ValueError("Invalid value for `algorithm_type`, must not be `None`") # noqa: E501
201
- if (self.local_vars_configuration.client_side_validation and
202
- algorithm_type is not None and len(algorithm_type) > 7):
203
- raise ValueError("Invalid value for `algorithm_type`, length must be less than or equal to `7`") # noqa: E501
204
-
205
- self._algorithm_type = algorithm_type
206
-
207
- @property
208
- def status(self):
209
- """Gets the status of this Run. # noqa: E501
210
-
211
- PLANNED: planned<br/>RUNNING: running<br/>COMPLETED: completed<br/>CANCELLED: cancelled<br/>FAILED: failed # noqa: E501
212
-
213
- :return: The status of this Run. # noqa: E501
214
- :rtype: RunStatus
215
- """
216
- return self._status
217
-
218
- @status.setter
219
- def status(self, status):
220
- """Sets the status of this Run.
221
-
222
- PLANNED: planned<br/>RUNNING: running<br/>COMPLETED: completed<br/>CANCELLED: cancelled<br/>FAILED: failed # noqa: E501
223
-
224
- :param status: The status of this Run. # noqa: E501
225
- :type status: RunStatus
226
- """
227
- if self.local_vars_configuration.client_side_validation and status is None: # noqa: E501
228
- raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501
229
- if (self.local_vars_configuration.client_side_validation and
230
- status is not None and len(status) > 9):
231
- raise ValueError("Invalid value for `status`, length must be less than or equal to `9`") # noqa: E501
232
-
233
- self._status = status
234
-
235
- @property
236
- def batch_run_id(self):
237
- """Gets the batch_run_id of this Run. # noqa: E501
238
-
239
-
240
- :return: The batch_run_id of this Run. # noqa: E501
241
- :rtype: int
242
- """
243
- return self._batch_run_id
244
-
245
- @batch_run_id.setter
246
- def batch_run_id(self, batch_run_id):
247
- """Sets the batch_run_id of this Run.
248
-
249
-
250
- :param batch_run_id: The batch_run_id of this Run. # noqa: E501
251
- :type batch_run_id: int
252
- """
253
- if self.local_vars_configuration.client_side_validation and batch_run_id is None: # noqa: E501
254
- raise ValueError("Invalid value for `batch_run_id`, must not be `None`") # noqa: E501
255
- if (self.local_vars_configuration.client_side_validation and
256
- batch_run_id is not None and batch_run_id > 2147483647): # noqa: E501
257
- raise ValueError("Invalid value for `batch_run_id`, must be a value less than or equal to `2147483647`") # noqa: E501
258
- if (self.local_vars_configuration.client_side_validation and
259
- batch_run_id is not None and batch_run_id < 1): # noqa: E501
260
- raise ValueError("Invalid value for `batch_run_id`, must be a value greater than or equal to `1`") # noqa: E501
261
-
262
- self._batch_run_id = batch_run_id
263
-
264
- @property
265
- def file_id(self):
266
- """Gets the file_id of this Run. # noqa: E501
267
-
268
-
269
- :return: The file_id of this Run. # noqa: E501
270
- :rtype: int
271
- """
272
- return self._file_id
273
-
274
- @file_id.setter
275
- def file_id(self, file_id):
276
- """Sets the file_id of this Run.
277
-
278
-
279
- :param file_id: The file_id of this Run. # noqa: E501
280
- :type file_id: int
281
- """
282
- if self.local_vars_configuration.client_side_validation and file_id is None: # noqa: E501
283
- raise ValueError("Invalid value for `file_id`, must not be `None`") # noqa: E501
284
- if (self.local_vars_configuration.client_side_validation and
285
- file_id is not None and file_id > 2147483647): # noqa: E501
286
- raise ValueError("Invalid value for `file_id`, must be a value less than or equal to `2147483647`") # noqa: E501
287
- if (self.local_vars_configuration.client_side_validation and
288
- file_id is not None and file_id < 1): # noqa: E501
289
- raise ValueError("Invalid value for `file_id`, must be a value greater than or equal to `1`") # noqa: E501
290
-
291
- self._file_id = file_id
292
-
293
- def to_dict(self, serialize=False):
294
- """Returns the model properties as a dict"""
295
- result = {}
296
-
297
- def convert(x):
298
- if hasattr(x, "to_dict"):
299
- args = getfullargspec(x.to_dict).args
300
- if len(args) == 1:
301
- return x.to_dict()
302
- else:
303
- return x.to_dict(serialize)
304
- else:
305
- return x
306
-
307
- for attr, _ in six.iteritems(self.openapi_types):
308
- value = getattr(self, attr)
309
- attr = self.attribute_map.get(attr, attr) if serialize else attr
310
- if isinstance(value, list):
311
- result[attr] = list(map(
312
- lambda x: convert(x),
313
- value
314
- ))
315
- elif isinstance(value, dict):
316
- result[attr] = dict(map(
317
- lambda item: (item[0], convert(item[1])),
318
- value.items()
319
- ))
320
- else:
321
- result[attr] = convert(value)
322
-
323
- return result
324
-
325
- def to_str(self):
326
- """Returns the string representation of the model"""
327
- return pprint.pformat(self.to_dict())
328
-
329
- def __repr__(self):
330
- """For `print` and `pprint`"""
331
- return self.to_str()
332
-
333
- def __eq__(self, other):
334
- """Returns true if both objects are equal"""
335
- if not isinstance(other, Run):
336
- return False
337
-
338
- return self.to_dict() == other.to_dict()
339
-
340
- def __ne__(self, other):
341
- """Returns true if both objects are not equal"""
342
- if not isinstance(other, Run):
343
- return True
344
-
345
- return self.to_dict() != other.to_dict()