gamsapi 52.2.0__cp314-cp314-win_amd64.whl → 52.4.0__cp314-cp314-win_amd64.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.
Files changed (294) hide show
  1. gams/__init__.py +2 -2
  2. gams/_version.py +1 -1
  3. gams/connect/__init__.py +2 -2
  4. gams/connect/agents/__init__.py +2 -2
  5. gams/connect/agents/_excel/__init__.py +2 -2
  6. gams/connect/agents/_excel/excelagent.py +2 -2
  7. gams/connect/agents/_excel/workbook.py +2 -2
  8. gams/connect/agents/_sqlconnectors/__init__.py +2 -2
  9. gams/connect/agents/_sqlconnectors/_accesshandler.py +2 -2
  10. gams/connect/agents/_sqlconnectors/_databasehandler.py +2 -2
  11. gams/connect/agents/_sqlconnectors/_mysqlhandler.py +2 -2
  12. gams/connect/agents/_sqlconnectors/_postgreshandler.py +2 -2
  13. gams/connect/agents/_sqlconnectors/_pyodbchandler.py +2 -2
  14. gams/connect/agents/_sqlconnectors/_sqlalchemyhandler.py +2 -2
  15. gams/connect/agents/_sqlconnectors/_sqlitehandler.py +2 -2
  16. gams/connect/agents/_sqlconnectors/_sqlserverhandler.py +2 -2
  17. gams/connect/agents/concatenate.py +2 -2
  18. gams/connect/agents/connectagent.py +2 -2
  19. gams/connect/agents/csvreader.py +2 -2
  20. gams/connect/agents/csvwriter.py +2 -2
  21. gams/connect/agents/domainwriter.py +2 -2
  22. gams/connect/agents/excelreader.py +2 -2
  23. gams/connect/agents/excelwriter.py +2 -2
  24. gams/connect/agents/filter.py +2 -2
  25. gams/connect/agents/gamsreader.py +2 -2
  26. gams/connect/agents/gamswriter.py +2 -2
  27. gams/connect/agents/gdxreader.py +2 -2
  28. gams/connect/agents/gdxwriter.py +2 -2
  29. gams/connect/agents/labelmanipulator.py +2 -2
  30. gams/connect/agents/projection.py +2 -2
  31. gams/connect/agents/pythoncode.py +2 -2
  32. gams/connect/agents/rawcsvreader.py +2 -2
  33. gams/connect/agents/rawexcelreader.py +2 -2
  34. gams/connect/agents/sqlreader.py +2 -2
  35. gams/connect/agents/sqlwriter.py +2 -2
  36. gams/connect/connectdatabase.py +2 -2
  37. gams/connect/connectvalidator.py +2 -2
  38. gams/connect/errors.py +2 -2
  39. gams/control/__init__.py +2 -2
  40. gams/control/database.py +2 -2
  41. gams/control/execution.py +2 -2
  42. gams/control/options.py +2 -2
  43. gams/control/workspace.py +2 -2
  44. gams/core/__init__.py +2 -2
  45. gams/core/cfg/__init__.py +2 -2
  46. gams/core/cfg/_cfgmcc.cp314-win_amd64.pyd +0 -0
  47. gams/core/dct/__init__.py +2 -2
  48. gams/core/dct/_dctmcc.cp314-win_amd64.pyd +0 -0
  49. gams/core/embedded/__init__.py +2 -2
  50. gams/core/embedded/gamsemb.py +2 -2
  51. gams/core/emp/__init__.py +2 -2
  52. gams/core/emp/emplexer.py +2 -2
  53. gams/core/emp/empyacc.py +2 -2
  54. gams/core/gdx/__init__.py +2 -2
  55. gams/core/gdx/_gdxcc.cp314-win_amd64.pyd +0 -0
  56. gams/core/gev/__init__.py +2 -2
  57. gams/core/gev/_gevmcc.cp314-win_amd64.pyd +0 -0
  58. gams/core/gmd/__init__.py +2 -2
  59. gams/core/gmd/_gmdcc.cp314-win_amd64.pyd +0 -0
  60. gams/core/gmo/__init__.py +2 -2
  61. gams/core/gmo/_gmomcc.cp314-win_amd64.pyd +0 -0
  62. gams/core/idx/__init__.py +2 -2
  63. gams/core/idx/_idxcc.cp314-win_amd64.pyd +0 -0
  64. gams/core/numpy/__init__.py +2 -2
  65. gams/core/numpy/_gams2numpy.cp314-win_amd64.pyd +0 -0
  66. gams/core/numpy/gams2numpy.py +2 -2
  67. gams/core/opt/__init__.py +2 -2
  68. gams/core/opt/_optcc.cp314-win_amd64.pyd +0 -0
  69. gams/engine/__init__.py +193 -16
  70. gams/engine/api/__init__.py +13 -3
  71. gams/engine/api/auth_api.py +7545 -3618
  72. gams/engine/api/cleanup_api.py +712 -320
  73. gams/engine/api/default_api.py +838 -369
  74. gams/engine/api/hypercube_api.py +2576 -1198
  75. gams/engine/api/jobs_api.py +5170 -2458
  76. gams/engine/api/licenses_api.py +2170 -1014
  77. gams/engine/api/namespaces_api.py +7663 -3557
  78. gams/engine/api/usage_api.py +5575 -1867
  79. gams/engine/api/users_api.py +5880 -2382
  80. gams/engine/api_client.py +579 -641
  81. gams/engine/api_response.py +21 -0
  82. gams/engine/configuration.py +233 -102
  83. gams/engine/exceptions.py +86 -29
  84. gams/engine/models/__init__.py +83 -68
  85. gams/engine/models/bad_input.py +89 -0
  86. gams/engine/models/cleanable_job_result.py +104 -0
  87. gams/engine/models/cleanable_job_result_page.py +113 -0
  88. gams/engine/models/engine_license.py +107 -0
  89. gams/engine/models/files_not_found.py +93 -0
  90. gams/engine/models/forwarded_token_response.py +112 -0
  91. gams/engine/models/generic_key_value_pair.py +89 -0
  92. gams/engine/models/hypercube.py +160 -0
  93. gams/engine/models/hypercube_page.py +111 -0
  94. gams/engine/models/hypercube_summary.py +91 -0
  95. gams/engine/models/hypercube_token.py +97 -0
  96. gams/engine/models/identity_provider.py +107 -0
  97. gams/engine/models/identity_provider_ldap.py +121 -0
  98. gams/engine/models/identity_provider_oauth2.py +146 -0
  99. gams/engine/models/identity_provider_oauth2_scope.py +89 -0
  100. gams/engine/models/identity_provider_oauth2_with_secret.py +152 -0
  101. gams/engine/models/identity_provider_oidc.py +133 -0
  102. gams/engine/models/identity_provider_oidc_with_secret.py +143 -0
  103. gams/engine/models/inex.py +91 -0
  104. gams/engine/models/invitation.py +136 -0
  105. gams/engine/models/invitation_quota.py +106 -0
  106. gams/engine/models/invitation_token.py +87 -0
  107. gams/engine/models/job.py +165 -0
  108. gams/engine/models/job_no_text_entry.py +138 -0
  109. gams/engine/models/job_no_text_entry_page.py +111 -0
  110. gams/engine/models/license.py +91 -0
  111. gams/engine/models/log_piece.py +96 -0
  112. gams/engine/models/message.py +87 -0
  113. gams/engine/models/message_and_token.py +99 -0
  114. gams/engine/models/message_with_webhook_id.py +89 -0
  115. gams/engine/models/model_auth_token.py +87 -0
  116. gams/engine/models/model_configuration.py +125 -0
  117. gams/engine/models/model_default_instance.py +99 -0
  118. gams/engine/models/model_default_user_instance.py +98 -0
  119. gams/engine/models/model_hypercube_job.py +106 -0
  120. gams/engine/models/model_hypercube_usage.py +130 -0
  121. gams/engine/models/model_instance_info.py +116 -0
  122. gams/engine/models/model_instance_info_full.py +123 -0
  123. gams/engine/models/model_instance_pool_info.py +112 -0
  124. gams/engine/models/model_job_labels.py +179 -0
  125. gams/engine/models/model_job_usage.py +133 -0
  126. gams/engine/models/model_pool_usage.py +124 -0
  127. gams/engine/models/model_usage.py +115 -0
  128. gams/engine/models/model_user.py +96 -0
  129. gams/engine/models/model_userinstance_info.py +119 -0
  130. gams/engine/models/model_userinstancepool_info.py +95 -0
  131. gams/engine/models/model_version.py +91 -0
  132. gams/engine/models/models.py +120 -0
  133. gams/engine/models/namespace.py +104 -0
  134. gams/engine/models/namespace_quota.py +96 -0
  135. gams/engine/models/namespace_with_permission.py +96 -0
  136. gams/engine/models/not_found.py +91 -0
  137. gams/engine/models/password_policy.py +97 -0
  138. gams/engine/models/perm_and_username.py +89 -0
  139. gams/engine/models/quota.py +117 -0
  140. gams/engine/models/quota_exceeded.py +97 -0
  141. gams/engine/models/status_code_meaning.py +89 -0
  142. gams/engine/models/stream_entry.py +89 -0
  143. gams/engine/models/system_wide_license.py +92 -0
  144. gams/engine/models/text_entries.py +87 -0
  145. gams/engine/models/text_entry.py +101 -0
  146. gams/engine/models/time_span.py +95 -0
  147. gams/engine/models/time_span_pool_worker.py +99 -0
  148. gams/engine/models/token_forward_error.py +87 -0
  149. gams/engine/models/user.py +127 -0
  150. gams/engine/models/user_group_member.py +96 -0
  151. gams/engine/models/user_groups.py +108 -0
  152. gams/engine/models/vapid_info.py +87 -0
  153. gams/engine/models/webhook.py +138 -0
  154. gams/engine/models/webhook_parameterized_event.py +99 -0
  155. gams/engine/py.typed +0 -0
  156. gams/engine/rest.py +141 -229
  157. gams/magic/__init__.py +2 -2
  158. gams/magic/gams_magic.py +2 -2
  159. gams/magic/interactive.py +2 -2
  160. gams/tools/__init__.py +2 -2
  161. gams/tools/errors.py +2 -2
  162. gams/tools/toolcollection/__init__.py +2 -2
  163. gams/tools/toolcollection/alg/__init__.py +2 -2
  164. gams/tools/toolcollection/alg/rank.py +2 -2
  165. gams/tools/toolcollection/data/__init__.py +2 -2
  166. gams/tools/toolcollection/data/csvread.py +2 -2
  167. gams/tools/toolcollection/data/exceldump.py +2 -2
  168. gams/tools/toolcollection/data/sqlitewrite.py +2 -2
  169. gams/tools/toolcollection/gdxservice/__init__.py +2 -2
  170. gams/tools/toolcollection/gdxservice/gdxencoding.py +2 -2
  171. gams/tools/toolcollection/gdxservice/gdxrename.py +2 -2
  172. gams/tools/toolcollection/linalg/__init__.py +2 -2
  173. gams/tools/toolcollection/linalg/cholesky.py +2 -2
  174. gams/tools/toolcollection/linalg/eigenvalue.py +2 -2
  175. gams/tools/toolcollection/linalg/eigenvector.py +2 -2
  176. gams/tools/toolcollection/linalg/invert.py +2 -2
  177. gams/tools/toolcollection/linalg/ols.py +2 -2
  178. gams/tools/toolcollection/tooltemplate.py +2 -2
  179. gams/tools/toolcollection/win32/__init__.py +2 -2
  180. gams/tools/toolcollection/win32/excelmerge.py +2 -2
  181. gams/tools/toolcollection/win32/exceltalk.py +2 -2
  182. gams/tools/toolcollection/win32/msappavail.py +2 -2
  183. gams/tools/toolcollection/win32/shellexecute.py +2 -2
  184. gams/tools/tools.py +2 -2
  185. gams/transfer/__init__.py +2 -2
  186. gams/transfer/_abcs/__init__.py +2 -2
  187. gams/transfer/_abcs/container_abcs.py +2 -2
  188. gams/transfer/_internals/__init__.py +2 -2
  189. gams/transfer/_internals/algorithms.py +2 -2
  190. gams/transfer/_internals/casepreservingdict.py +2 -2
  191. gams/transfer/_internals/constants.py +2 -2
  192. gams/transfer/_internals/domainviolation.py +2 -2
  193. gams/transfer/_internals/specialvalues.py +2 -2
  194. gams/transfer/containers/__init__.py +2 -2
  195. gams/transfer/containers/_container.py +2 -2
  196. gams/transfer/containers/_io/__init__.py +2 -2
  197. gams/transfer/containers/_io/containers.py +2 -2
  198. gams/transfer/containers/_io/gdx.py +2 -2
  199. gams/transfer/containers/_io/gmd.py +2 -2
  200. gams/transfer/containers/_mixins/__init__.py +2 -2
  201. gams/transfer/containers/_mixins/ccc.py +2 -2
  202. gams/transfer/syms/__init__.py +2 -2
  203. gams/transfer/syms/_methods/__init__.py +2 -2
  204. gams/transfer/syms/_methods/tables.py +2 -2
  205. gams/transfer/syms/_methods/toDict.py +2 -2
  206. gams/transfer/syms/_methods/toList.py +2 -2
  207. gams/transfer/syms/_methods/toValue.py +2 -2
  208. gams/transfer/syms/_mixins/__init__.py +2 -2
  209. gams/transfer/syms/_mixins/equals.py +2 -2
  210. gams/transfer/syms/_mixins/generateRecords.py +2 -2
  211. gams/transfer/syms/_mixins/pivot.py +2 -2
  212. gams/transfer/syms/_mixins/pve.py +2 -2
  213. gams/transfer/syms/_mixins/sa.py +2 -2
  214. gams/transfer/syms/_mixins/sapve.py +2 -2
  215. gams/transfer/syms/_mixins/saua.py +2 -2
  216. gams/transfer/syms/_mixins/sauapve.py +2 -2
  217. gams/transfer/syms/_mixins/spve.py +2 -2
  218. gams/transfer/syms/_mixins/ve.py +2 -2
  219. gams/transfer/syms/container_syms/__init__.py +2 -2
  220. gams/transfer/syms/container_syms/_alias.py +2 -2
  221. gams/transfer/syms/container_syms/_equation.py +2 -2
  222. gams/transfer/syms/container_syms/_parameter.py +2 -2
  223. gams/transfer/syms/container_syms/_set.py +2 -2
  224. gams/transfer/syms/container_syms/_universe_alias.py +2 -2
  225. gams/transfer/syms/container_syms/_variable.py +2 -2
  226. {gamsapi-52.2.0.dist-info → gamsapi-52.4.0.dist-info}/METADATA +12 -10
  227. gamsapi-52.4.0.dist-info/RECORD +257 -0
  228. {gamsapi-52.2.0.dist-info → gamsapi-52.4.0.dist-info}/licenses/LICENSE +2 -2
  229. gams/engine/apis/__init__.py +0 -25
  230. gams/engine/model/__init__.py +0 -5
  231. gams/engine/model/bad_input.py +0 -259
  232. gams/engine/model/cleanable_job_result.py +0 -285
  233. gams/engine/model/cleanable_job_result_page.py +0 -277
  234. gams/engine/model/engine_license.py +0 -263
  235. gams/engine/model/files_not_found.py +0 -267
  236. gams/engine/model/forwarded_token_response.py +0 -275
  237. gams/engine/model/generic_key_value_pair.py +0 -259
  238. gams/engine/model/hypercube.py +0 -331
  239. gams/engine/model/hypercube_page.py +0 -273
  240. gams/engine/model/hypercube_summary.py +0 -263
  241. gams/engine/model/hypercube_token.py +0 -265
  242. gams/engine/model/identity_provider.py +0 -287
  243. gams/engine/model/identity_provider_ldap.py +0 -303
  244. gams/engine/model/identity_provider_oauth2.py +0 -309
  245. gams/engine/model/identity_provider_oauth2_scope.py +0 -259
  246. gams/engine/model/identity_provider_oauth2_with_secret.py +0 -321
  247. gams/engine/model/identity_provider_oidc.py +0 -299
  248. gams/engine/model/identity_provider_oidc_with_secret.py +0 -319
  249. gams/engine/model/inex.py +0 -259
  250. gams/engine/model/invitation.py +0 -309
  251. gams/engine/model/invitation_quota.py +0 -263
  252. gams/engine/model/invitation_token.py +0 -255
  253. gams/engine/model/job.py +0 -337
  254. gams/engine/model/job_no_text_entry.py +0 -313
  255. gams/engine/model/job_no_text_entry_page.py +0 -273
  256. gams/engine/model/license.py +0 -263
  257. gams/engine/model/log_piece.py +0 -263
  258. gams/engine/model/message.py +0 -255
  259. gams/engine/model/message_and_token.py +0 -269
  260. gams/engine/model/model_auth_token.py +0 -255
  261. gams/engine/model/model_configuration.py +0 -268
  262. gams/engine/model/model_hypercube_job.py +0 -273
  263. gams/engine/model/model_hypercube_usage.py +0 -303
  264. gams/engine/model/model_instance_info.py +0 -285
  265. gams/engine/model/model_instance_info_full.py +0 -289
  266. gams/engine/model/model_job_labels.py +0 -295
  267. gams/engine/model/model_job_usage.py +0 -299
  268. gams/engine/model/model_usage.py +0 -267
  269. gams/engine/model/model_userinstance_info.py +0 -273
  270. gams/engine/model/model_version.py +0 -263
  271. gams/engine/model/models.py +0 -297
  272. gams/engine/model/namespace.py +0 -269
  273. gams/engine/model/namespace_quota.py +0 -263
  274. gams/engine/model/namespace_with_permission.py +0 -263
  275. gams/engine/model/not_found.py +0 -263
  276. gams/engine/model/perm_and_username.py +0 -259
  277. gams/engine/model/quota.py +0 -275
  278. gams/engine/model/quota_exceeded.py +0 -265
  279. gams/engine/model/result_user.py +0 -263
  280. gams/engine/model/status_code_meaning.py +0 -259
  281. gams/engine/model/stream_entry.py +0 -259
  282. gams/engine/model/system_wide_license.py +0 -255
  283. gams/engine/model/text_entries.py +0 -255
  284. gams/engine/model/text_entry.py +0 -263
  285. gams/engine/model/time_span.py +0 -259
  286. gams/engine/model/token_forward_error.py +0 -255
  287. gams/engine/model/user.py +0 -283
  288. gams/engine/model/user_group_member.py +0 -269
  289. gams/engine/model/user_groups.py +0 -279
  290. gams/engine/model/webhook.py +0 -292
  291. gams/engine/model_utils.py +0 -2037
  292. gamsapi-52.2.0.dist-info/RECORD +0 -248
  293. {gamsapi-52.2.0.dist-info → gamsapi-52.4.0.dist-info}/WHEEL +0 -0
  294. {gamsapi-52.2.0.dist-info → gamsapi-52.4.0.dist-info}/top_level.txt +0 -0
gams/engine/model/job.py DELETED
@@ -1,337 +0,0 @@
1
- """
2
- GAMS Engine
3
-
4
- With GAMS Engine you can register and solve GAMS models. It has a namespace management system, so you can restrict your users to certain models. # noqa: E501
5
-
6
- The version of the OpenAPI document: latest
7
- Generated by: https://openapi-generator.tech
8
- """
9
-
10
-
11
- import re # noqa: F401
12
- import sys # noqa: F401
13
-
14
- from gams.engine.model_utils import ( # noqa: F401
15
- ApiTypeError,
16
- ModelComposed,
17
- ModelNormal,
18
- ModelSimple,
19
- cached_property,
20
- change_keys_js_to_python,
21
- convert_js_args_to_python_args,
22
- date,
23
- datetime,
24
- file_type,
25
- none_type,
26
- validate_get_composed_info,
27
- OpenApiModel
28
- )
29
- from gams.engine.exceptions import ApiAttributeError
30
-
31
-
32
- def lazy_import():
33
- from gams.engine.model.model_job_labels import ModelJobLabels
34
- from gams.engine.model.result_user import ResultUser
35
- from gams.engine.model.text_entry import TextEntry
36
- globals()['ModelJobLabels'] = ModelJobLabels
37
- globals()['ResultUser'] = ResultUser
38
- globals()['TextEntry'] = TextEntry
39
-
40
-
41
- class Job(ModelNormal):
42
- """NOTE: This class is auto generated by OpenAPI Generator.
43
- Ref: https://openapi-generator.tech
44
-
45
- Do not edit the class manually.
46
-
47
- Attributes:
48
- allowed_values (dict): The key is the tuple path to the attribute
49
- and the for var_name this is (var_name,). The value is a dict
50
- with a capitalized key describing the allowed value and an allowed
51
- value. These dicts store the allowed enum values.
52
- attribute_map (dict): The key is attribute name
53
- and the value is json key in definition.
54
- discriminator_value_class_map (dict): A dict to go from the discriminator
55
- variable value to the discriminator class name.
56
- validations (dict): The key is the tuple path to the attribute
57
- and the for var_name this is (var_name,). The value is a dict
58
- that stores validations for max_length, min_length, max_items,
59
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
60
- inclusive_minimum, and regex.
61
- additional_properties_type (tuple): A tuple of classes accepted
62
- as additional properties values.
63
- """
64
-
65
- allowed_values = {
66
- }
67
-
68
- validations = {
69
- }
70
-
71
- @cached_property
72
- def additional_properties_type():
73
- """
74
- This must be a method because a model may have properties that are
75
- of type self, this must run after the class is loaded
76
- """
77
- lazy_import()
78
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
79
-
80
- _nullable = False
81
-
82
- @cached_property
83
- def openapi_types():
84
- """
85
- This must be a method because a model may have properties that are
86
- of type self, this must run after the class is loaded
87
-
88
- Returns
89
- openapi_types (dict): The key is attribute name
90
- and the value is attribute type.
91
- """
92
- lazy_import()
93
- return {
94
- 'access_groups': ([str],), # noqa: E501
95
- 'arguments': ([str],), # noqa: E501
96
- 'dep_tokens': ([str],), # noqa: E501
97
- 'finished_at': (datetime, none_type,), # noqa: E501
98
- 'is_data_provided': (bool,), # noqa: E501
99
- 'is_temporary_model': (bool,), # noqa: E501
100
- 'labels': (ModelJobLabels,), # noqa: E501
101
- 'model': (str,), # noqa: E501
102
- 'namespace': (str,), # noqa: E501
103
- 'process_status': (int, none_type,), # noqa: E501
104
- 'result_exists': (bool,), # noqa: E501
105
- 'status': (int,), # noqa: E501
106
- 'stdout_filename': (str,), # noqa: E501
107
- 'stream_entries': ([str],), # noqa: E501
108
- 'submitted_at': (datetime,), # noqa: E501
109
- 'tag': (str, none_type,), # noqa: E501
110
- 'text_entries': ([TextEntry],), # noqa: E501
111
- 'token': (str,), # noqa: E501
112
- 'user': (ResultUser,), # noqa: E501
113
- }
114
-
115
- @cached_property
116
- def discriminator():
117
- return None
118
-
119
-
120
- attribute_map = {
121
- 'access_groups': 'access_groups', # noqa: E501
122
- 'arguments': 'arguments', # noqa: E501
123
- 'dep_tokens': 'dep_tokens', # noqa: E501
124
- 'finished_at': 'finished_at', # noqa: E501
125
- 'is_data_provided': 'is_data_provided', # noqa: E501
126
- 'is_temporary_model': 'is_temporary_model', # noqa: E501
127
- 'labels': 'labels', # noqa: E501
128
- 'model': 'model', # noqa: E501
129
- 'namespace': 'namespace', # noqa: E501
130
- 'process_status': 'process_status', # noqa: E501
131
- 'result_exists': 'result_exists', # noqa: E501
132
- 'status': 'status', # noqa: E501
133
- 'stdout_filename': 'stdout_filename', # noqa: E501
134
- 'stream_entries': 'stream_entries', # noqa: E501
135
- 'submitted_at': 'submitted_at', # noqa: E501
136
- 'tag': 'tag', # noqa: E501
137
- 'text_entries': 'text_entries', # noqa: E501
138
- 'token': 'token', # noqa: E501
139
- 'user': 'user', # noqa: E501
140
- }
141
-
142
- read_only_vars = {
143
- }
144
-
145
- _composed_schemas = {}
146
-
147
- @classmethod
148
- @convert_js_args_to_python_args
149
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
150
- """Job - a model defined in OpenAPI
151
-
152
- Keyword Args:
153
- _check_type (bool): if True, values for parameters in openapi_types
154
- will be type checked and a TypeError will be
155
- raised if the wrong type is input.
156
- Defaults to True
157
- _path_to_item (tuple/list): This is a list of keys or values to
158
- drill down to the model in received_data
159
- when deserializing a response
160
- _spec_property_naming (bool): True if the variable names in the input data
161
- are serialized names, as specified in the OpenAPI document.
162
- False if the variable names in the input data
163
- are pythonic names, e.g. snake case (default)
164
- _configuration (Configuration): the instance to use when
165
- deserializing a file_type parameter.
166
- If passed, type conversion is attempted
167
- If omitted no type conversion is done.
168
- _visited_composed_classes (tuple): This stores a tuple of
169
- classes that we have traveled through so that
170
- if we see that class again we will not use its
171
- discriminator again.
172
- When traveling through a discriminator, the
173
- composed schema that is
174
- is traveled through is added to this set.
175
- For example if Animal has a discriminator
176
- petType and we pass in "Dog", and the class Dog
177
- allOf includes Animal, we move through Animal
178
- once using the discriminator, and pick Dog.
179
- Then in Dog, we will make an instance of the
180
- Animal class but this time we won't travel
181
- through its discriminator because we passed in
182
- _visited_composed_classes = (Animal,)
183
- access_groups ([str]): [optional] # noqa: E501
184
- arguments ([str]): [optional] # noqa: E501
185
- dep_tokens ([str]): [optional] # noqa: E501
186
- finished_at (datetime, none_type): [optional] # noqa: E501
187
- is_data_provided (bool): [optional] # noqa: E501
188
- is_temporary_model (bool): [optional] # noqa: E501
189
- labels (ModelJobLabels): [optional] # noqa: E501
190
- model (str): [optional] # noqa: E501
191
- namespace (str): [optional] # noqa: E501
192
- process_status (int, none_type): [optional] # noqa: E501
193
- result_exists (bool): [optional] # noqa: E501
194
- status (int): [optional] # noqa: E501
195
- stdout_filename (str): [optional] # noqa: E501
196
- stream_entries ([str]): [optional] # noqa: E501
197
- submitted_at (datetime): [optional] # noqa: E501
198
- tag (str, none_type): [optional] # noqa: E501
199
- text_entries ([TextEntry]): [optional] # noqa: E501
200
- token (str): [optional] # noqa: E501
201
- user (ResultUser): [optional] # noqa: E501
202
- """
203
-
204
- _check_type = kwargs.pop('_check_type', True)
205
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
206
- _path_to_item = kwargs.pop('_path_to_item', ())
207
- _configuration = kwargs.pop('_configuration', None)
208
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
209
-
210
- self = super(OpenApiModel, cls).__new__(cls)
211
-
212
- if args:
213
- raise ApiTypeError(
214
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
215
- args,
216
- self.__class__.__name__,
217
- ),
218
- path_to_item=_path_to_item,
219
- valid_classes=(self.__class__,),
220
- )
221
-
222
- self._data_store = {}
223
- self._check_type = _check_type
224
- self._spec_property_naming = _spec_property_naming
225
- self._path_to_item = _path_to_item
226
- self._configuration = _configuration
227
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
228
-
229
- for var_name, var_value in kwargs.items():
230
- if var_name not in self.attribute_map and \
231
- self._configuration is not None and \
232
- self._configuration.discard_unknown_keys and \
233
- self.additional_properties_type is None:
234
- # discard variable.
235
- continue
236
- setattr(self, var_name, var_value)
237
- return self
238
-
239
- required_properties = set([
240
- '_data_store',
241
- '_check_type',
242
- '_spec_property_naming',
243
- '_path_to_item',
244
- '_configuration',
245
- '_visited_composed_classes',
246
- ])
247
-
248
- @convert_js_args_to_python_args
249
- def __init__(self, *args, **kwargs): # noqa: E501
250
- """Job - a model defined in OpenAPI
251
-
252
- Keyword Args:
253
- _check_type (bool): if True, values for parameters in openapi_types
254
- will be type checked and a TypeError will be
255
- raised if the wrong type is input.
256
- Defaults to True
257
- _path_to_item (tuple/list): This is a list of keys or values to
258
- drill down to the model in received_data
259
- when deserializing a response
260
- _spec_property_naming (bool): True if the variable names in the input data
261
- are serialized names, as specified in the OpenAPI document.
262
- False if the variable names in the input data
263
- are pythonic names, e.g. snake case (default)
264
- _configuration (Configuration): the instance to use when
265
- deserializing a file_type parameter.
266
- If passed, type conversion is attempted
267
- If omitted no type conversion is done.
268
- _visited_composed_classes (tuple): This stores a tuple of
269
- classes that we have traveled through so that
270
- if we see that class again we will not use its
271
- discriminator again.
272
- When traveling through a discriminator, the
273
- composed schema that is
274
- is traveled through is added to this set.
275
- For example if Animal has a discriminator
276
- petType and we pass in "Dog", and the class Dog
277
- allOf includes Animal, we move through Animal
278
- once using the discriminator, and pick Dog.
279
- Then in Dog, we will make an instance of the
280
- Animal class but this time we won't travel
281
- through its discriminator because we passed in
282
- _visited_composed_classes = (Animal,)
283
- access_groups ([str]): [optional] # noqa: E501
284
- arguments ([str]): [optional] # noqa: E501
285
- dep_tokens ([str]): [optional] # noqa: E501
286
- finished_at (datetime, none_type): [optional] # noqa: E501
287
- is_data_provided (bool): [optional] # noqa: E501
288
- is_temporary_model (bool): [optional] # noqa: E501
289
- labels (ModelJobLabels): [optional] # noqa: E501
290
- model (str): [optional] # noqa: E501
291
- namespace (str): [optional] # noqa: E501
292
- process_status (int, none_type): [optional] # noqa: E501
293
- result_exists (bool): [optional] # noqa: E501
294
- status (int): [optional] # noqa: E501
295
- stdout_filename (str): [optional] # noqa: E501
296
- stream_entries ([str]): [optional] # noqa: E501
297
- submitted_at (datetime): [optional] # noqa: E501
298
- tag (str, none_type): [optional] # noqa: E501
299
- text_entries ([TextEntry]): [optional] # noqa: E501
300
- token (str): [optional] # noqa: E501
301
- user (ResultUser): [optional] # noqa: E501
302
- """
303
-
304
- _check_type = kwargs.pop('_check_type', True)
305
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
306
- _path_to_item = kwargs.pop('_path_to_item', ())
307
- _configuration = kwargs.pop('_configuration', None)
308
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
309
-
310
- if args:
311
- raise ApiTypeError(
312
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
313
- args,
314
- self.__class__.__name__,
315
- ),
316
- path_to_item=_path_to_item,
317
- valid_classes=(self.__class__,),
318
- )
319
-
320
- self._data_store = {}
321
- self._check_type = _check_type
322
- self._spec_property_naming = _spec_property_naming
323
- self._path_to_item = _path_to_item
324
- self._configuration = _configuration
325
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
326
-
327
- for var_name, var_value in kwargs.items():
328
- if var_name not in self.attribute_map and \
329
- self._configuration is not None and \
330
- self._configuration.discard_unknown_keys and \
331
- self.additional_properties_type is None:
332
- # discard variable.
333
- continue
334
- setattr(self, var_name, var_value)
335
- if var_name in self.read_only_vars:
336
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
337
- f"class with read only attributes.")
@@ -1,313 +0,0 @@
1
- """
2
- GAMS Engine
3
-
4
- With GAMS Engine you can register and solve GAMS models. It has a namespace management system, so you can restrict your users to certain models. # noqa: E501
5
-
6
- The version of the OpenAPI document: latest
7
- Generated by: https://openapi-generator.tech
8
- """
9
-
10
-
11
- import re # noqa: F401
12
- import sys # noqa: F401
13
-
14
- from gams.engine.model_utils import ( # noqa: F401
15
- ApiTypeError,
16
- ModelComposed,
17
- ModelNormal,
18
- ModelSimple,
19
- cached_property,
20
- change_keys_js_to_python,
21
- convert_js_args_to_python_args,
22
- date,
23
- datetime,
24
- file_type,
25
- none_type,
26
- validate_get_composed_info,
27
- OpenApiModel
28
- )
29
- from gams.engine.exceptions import ApiAttributeError
30
-
31
-
32
- def lazy_import():
33
- from gams.engine.model.result_user import ResultUser
34
- globals()['ResultUser'] = ResultUser
35
-
36
-
37
- class JobNoTextEntry(ModelNormal):
38
- """NOTE: This class is auto generated by OpenAPI Generator.
39
- Ref: https://openapi-generator.tech
40
-
41
- Do not edit the class manually.
42
-
43
- Attributes:
44
- allowed_values (dict): The key is the tuple path to the attribute
45
- and the for var_name this is (var_name,). The value is a dict
46
- with a capitalized key describing the allowed value and an allowed
47
- value. These dicts store the allowed enum values.
48
- attribute_map (dict): The key is attribute name
49
- and the value is json key in definition.
50
- discriminator_value_class_map (dict): A dict to go from the discriminator
51
- variable value to the discriminator class name.
52
- validations (dict): The key is the tuple path to the attribute
53
- and the for var_name this is (var_name,). The value is a dict
54
- that stores validations for max_length, min_length, max_items,
55
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
56
- inclusive_minimum, and regex.
57
- additional_properties_type (tuple): A tuple of classes accepted
58
- as additional properties values.
59
- """
60
-
61
- allowed_values = {
62
- }
63
-
64
- validations = {
65
- }
66
-
67
- @cached_property
68
- def additional_properties_type():
69
- """
70
- This must be a method because a model may have properties that are
71
- of type self, this must run after the class is loaded
72
- """
73
- lazy_import()
74
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
75
-
76
- _nullable = False
77
-
78
- @cached_property
79
- def openapi_types():
80
- """
81
- This must be a method because a model may have properties that are
82
- of type self, this must run after the class is loaded
83
-
84
- Returns
85
- openapi_types (dict): The key is attribute name
86
- and the value is attribute type.
87
- """
88
- lazy_import()
89
- return {
90
- 'arguments': ([str],), # noqa: E501
91
- 'finished_at': (datetime, none_type,), # noqa: E501
92
- 'is_data_provided': (bool,), # noqa: E501
93
- 'is_temporary_model': (bool,), # noqa: E501
94
- 'model': (str,), # noqa: E501
95
- 'namespace': (str,), # noqa: E501
96
- 'process_status': (int, none_type,), # noqa: E501
97
- 'status': (int,), # noqa: E501
98
- 'stdout_filename': (str,), # noqa: E501
99
- 'stream_entries': ([str],), # noqa: E501
100
- 'submitted_at': (datetime,), # noqa: E501
101
- 'tag': (str, none_type,), # noqa: E501
102
- 'token': (str,), # noqa: E501
103
- 'user': (ResultUser,), # noqa: E501
104
- }
105
-
106
- @cached_property
107
- def discriminator():
108
- return None
109
-
110
-
111
- attribute_map = {
112
- 'arguments': 'arguments', # noqa: E501
113
- 'finished_at': 'finished_at', # noqa: E501
114
- 'is_data_provided': 'is_data_provided', # noqa: E501
115
- 'is_temporary_model': 'is_temporary_model', # noqa: E501
116
- 'model': 'model', # noqa: E501
117
- 'namespace': 'namespace', # noqa: E501
118
- 'process_status': 'process_status', # noqa: E501
119
- 'status': 'status', # noqa: E501
120
- 'stdout_filename': 'stdout_filename', # noqa: E501
121
- 'stream_entries': 'stream_entries', # noqa: E501
122
- 'submitted_at': 'submitted_at', # noqa: E501
123
- 'tag': 'tag', # noqa: E501
124
- 'token': 'token', # noqa: E501
125
- 'user': 'user', # noqa: E501
126
- }
127
-
128
- read_only_vars = {
129
- }
130
-
131
- _composed_schemas = {}
132
-
133
- @classmethod
134
- @convert_js_args_to_python_args
135
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
136
- """JobNoTextEntry - a model defined in OpenAPI
137
-
138
- Keyword Args:
139
- _check_type (bool): if True, values for parameters in openapi_types
140
- will be type checked and a TypeError will be
141
- raised if the wrong type is input.
142
- Defaults to True
143
- _path_to_item (tuple/list): This is a list of keys or values to
144
- drill down to the model in received_data
145
- when deserializing a response
146
- _spec_property_naming (bool): True if the variable names in the input data
147
- are serialized names, as specified in the OpenAPI document.
148
- False if the variable names in the input data
149
- are pythonic names, e.g. snake case (default)
150
- _configuration (Configuration): the instance to use when
151
- deserializing a file_type parameter.
152
- If passed, type conversion is attempted
153
- If omitted no type conversion is done.
154
- _visited_composed_classes (tuple): This stores a tuple of
155
- classes that we have traveled through so that
156
- if we see that class again we will not use its
157
- discriminator again.
158
- When traveling through a discriminator, the
159
- composed schema that is
160
- is traveled through is added to this set.
161
- For example if Animal has a discriminator
162
- petType and we pass in "Dog", and the class Dog
163
- allOf includes Animal, we move through Animal
164
- once using the discriminator, and pick Dog.
165
- Then in Dog, we will make an instance of the
166
- Animal class but this time we won't travel
167
- through its discriminator because we passed in
168
- _visited_composed_classes = (Animal,)
169
- arguments ([str]): [optional] # noqa: E501
170
- finished_at (datetime, none_type): [optional] # noqa: E501
171
- is_data_provided (bool): [optional] # noqa: E501
172
- is_temporary_model (bool): [optional] # noqa: E501
173
- model (str): [optional] # noqa: E501
174
- namespace (str): [optional] # noqa: E501
175
- process_status (int, none_type): [optional] # noqa: E501
176
- status (int): [optional] # noqa: E501
177
- stdout_filename (str): [optional] # noqa: E501
178
- stream_entries ([str]): [optional] # noqa: E501
179
- submitted_at (datetime): [optional] # noqa: E501
180
- tag (str, none_type): [optional] # noqa: E501
181
- token (str): [optional] # noqa: E501
182
- user (ResultUser): [optional] # noqa: E501
183
- """
184
-
185
- _check_type = kwargs.pop('_check_type', True)
186
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
187
- _path_to_item = kwargs.pop('_path_to_item', ())
188
- _configuration = kwargs.pop('_configuration', None)
189
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
190
-
191
- self = super(OpenApiModel, cls).__new__(cls)
192
-
193
- if args:
194
- raise ApiTypeError(
195
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
196
- args,
197
- self.__class__.__name__,
198
- ),
199
- path_to_item=_path_to_item,
200
- valid_classes=(self.__class__,),
201
- )
202
-
203
- self._data_store = {}
204
- self._check_type = _check_type
205
- self._spec_property_naming = _spec_property_naming
206
- self._path_to_item = _path_to_item
207
- self._configuration = _configuration
208
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
209
-
210
- for var_name, var_value in kwargs.items():
211
- if var_name not in self.attribute_map and \
212
- self._configuration is not None and \
213
- self._configuration.discard_unknown_keys and \
214
- self.additional_properties_type is None:
215
- # discard variable.
216
- continue
217
- setattr(self, var_name, var_value)
218
- return self
219
-
220
- required_properties = set([
221
- '_data_store',
222
- '_check_type',
223
- '_spec_property_naming',
224
- '_path_to_item',
225
- '_configuration',
226
- '_visited_composed_classes',
227
- ])
228
-
229
- @convert_js_args_to_python_args
230
- def __init__(self, *args, **kwargs): # noqa: E501
231
- """JobNoTextEntry - a model defined in OpenAPI
232
-
233
- Keyword Args:
234
- _check_type (bool): if True, values for parameters in openapi_types
235
- will be type checked and a TypeError will be
236
- raised if the wrong type is input.
237
- Defaults to True
238
- _path_to_item (tuple/list): This is a list of keys or values to
239
- drill down to the model in received_data
240
- when deserializing a response
241
- _spec_property_naming (bool): True if the variable names in the input data
242
- are serialized names, as specified in the OpenAPI document.
243
- False if the variable names in the input data
244
- are pythonic names, e.g. snake case (default)
245
- _configuration (Configuration): the instance to use when
246
- deserializing a file_type parameter.
247
- If passed, type conversion is attempted
248
- If omitted no type conversion is done.
249
- _visited_composed_classes (tuple): This stores a tuple of
250
- classes that we have traveled through so that
251
- if we see that class again we will not use its
252
- discriminator again.
253
- When traveling through a discriminator, the
254
- composed schema that is
255
- is traveled through is added to this set.
256
- For example if Animal has a discriminator
257
- petType and we pass in "Dog", and the class Dog
258
- allOf includes Animal, we move through Animal
259
- once using the discriminator, and pick Dog.
260
- Then in Dog, we will make an instance of the
261
- Animal class but this time we won't travel
262
- through its discriminator because we passed in
263
- _visited_composed_classes = (Animal,)
264
- arguments ([str]): [optional] # noqa: E501
265
- finished_at (datetime, none_type): [optional] # noqa: E501
266
- is_data_provided (bool): [optional] # noqa: E501
267
- is_temporary_model (bool): [optional] # noqa: E501
268
- model (str): [optional] # noqa: E501
269
- namespace (str): [optional] # noqa: E501
270
- process_status (int, none_type): [optional] # noqa: E501
271
- status (int): [optional] # noqa: E501
272
- stdout_filename (str): [optional] # noqa: E501
273
- stream_entries ([str]): [optional] # noqa: E501
274
- submitted_at (datetime): [optional] # noqa: E501
275
- tag (str, none_type): [optional] # noqa: E501
276
- token (str): [optional] # noqa: E501
277
- user (ResultUser): [optional] # noqa: E501
278
- """
279
-
280
- _check_type = kwargs.pop('_check_type', True)
281
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
282
- _path_to_item = kwargs.pop('_path_to_item', ())
283
- _configuration = kwargs.pop('_configuration', None)
284
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
285
-
286
- if args:
287
- raise ApiTypeError(
288
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
289
- args,
290
- self.__class__.__name__,
291
- ),
292
- path_to_item=_path_to_item,
293
- valid_classes=(self.__class__,),
294
- )
295
-
296
- self._data_store = {}
297
- self._check_type = _check_type
298
- self._spec_property_naming = _spec_property_naming
299
- self._path_to_item = _path_to_item
300
- self._configuration = _configuration
301
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
302
-
303
- for var_name, var_value in kwargs.items():
304
- if var_name not in self.attribute_map and \
305
- self._configuration is not None and \
306
- self._configuration.discard_unknown_keys and \
307
- self.additional_properties_type is None:
308
- # discard variable.
309
- continue
310
- setattr(self, var_name, var_value)
311
- if var_name in self.read_only_vars:
312
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
313
- f"class with read only attributes.")