gamsapi 52.5.0__cp312-cp312-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 (257) hide show
  1. gams/__init__.py +27 -0
  2. gams/_version.py +1 -0
  3. gams/connect/__init__.py +28 -0
  4. gams/connect/agents/__init__.py +24 -0
  5. gams/connect/agents/_excel/__init__.py +32 -0
  6. gams/connect/agents/_excel/excelagent.py +312 -0
  7. gams/connect/agents/_excel/workbook.py +155 -0
  8. gams/connect/agents/_sqlconnectors/__init__.py +42 -0
  9. gams/connect/agents/_sqlconnectors/_accesshandler.py +211 -0
  10. gams/connect/agents/_sqlconnectors/_databasehandler.py +250 -0
  11. gams/connect/agents/_sqlconnectors/_mysqlhandler.py +168 -0
  12. gams/connect/agents/_sqlconnectors/_postgreshandler.py +131 -0
  13. gams/connect/agents/_sqlconnectors/_pyodbchandler.py +112 -0
  14. gams/connect/agents/_sqlconnectors/_sqlalchemyhandler.py +74 -0
  15. gams/connect/agents/_sqlconnectors/_sqlitehandler.py +262 -0
  16. gams/connect/agents/_sqlconnectors/_sqlserverhandler.py +179 -0
  17. gams/connect/agents/concatenate.py +440 -0
  18. gams/connect/agents/connectagent.py +743 -0
  19. gams/connect/agents/csvreader.py +675 -0
  20. gams/connect/agents/csvwriter.py +151 -0
  21. gams/connect/agents/domainwriter.py +143 -0
  22. gams/connect/agents/excelreader.py +756 -0
  23. gams/connect/agents/excelwriter.py +467 -0
  24. gams/connect/agents/filter.py +223 -0
  25. gams/connect/agents/gamsreader.py +112 -0
  26. gams/connect/agents/gamswriter.py +239 -0
  27. gams/connect/agents/gdxreader.py +109 -0
  28. gams/connect/agents/gdxwriter.py +146 -0
  29. gams/connect/agents/labelmanipulator.py +303 -0
  30. gams/connect/agents/projection.py +539 -0
  31. gams/connect/agents/pythoncode.py +71 -0
  32. gams/connect/agents/rawcsvreader.py +248 -0
  33. gams/connect/agents/rawexcelreader.py +312 -0
  34. gams/connect/agents/schema/CSVReader.yaml +92 -0
  35. gams/connect/agents/schema/CSVWriter.yaml +44 -0
  36. gams/connect/agents/schema/Concatenate.yaml +52 -0
  37. gams/connect/agents/schema/DomainWriter.yaml +25 -0
  38. gams/connect/agents/schema/ExcelReader.yaml +121 -0
  39. gams/connect/agents/schema/ExcelWriter.yaml +78 -0
  40. gams/connect/agents/schema/Filter.yaml +74 -0
  41. gams/connect/agents/schema/GAMSReader.yaml +20 -0
  42. gams/connect/agents/schema/GAMSWriter.yaml +47 -0
  43. gams/connect/agents/schema/GDXReader.yaml +23 -0
  44. gams/connect/agents/schema/GDXWriter.yaml +32 -0
  45. gams/connect/agents/schema/LabelManipulator.yaml +99 -0
  46. gams/connect/agents/schema/Projection.yaml +24 -0
  47. gams/connect/agents/schema/PythonCode.yaml +6 -0
  48. gams/connect/agents/schema/RawCSVReader.yaml +34 -0
  49. gams/connect/agents/schema/RawExcelReader.yaml +42 -0
  50. gams/connect/agents/schema/SQLReader.yaml +75 -0
  51. gams/connect/agents/schema/SQLWriter.yaml +103 -0
  52. gams/connect/agents/sqlreader.py +301 -0
  53. gams/connect/agents/sqlwriter.py +276 -0
  54. gams/connect/connectdatabase.py +275 -0
  55. gams/connect/connectvalidator.py +93 -0
  56. gams/connect/errors.py +34 -0
  57. gams/control/__init__.py +136 -0
  58. gams/control/database.py +2231 -0
  59. gams/control/execution.py +1900 -0
  60. gams/control/options.py +2792 -0
  61. gams/control/workspace.py +1198 -0
  62. gams/core/__init__.py +24 -0
  63. gams/core/cfg/__init__.py +26 -0
  64. gams/core/cfg/_cfgmcc.cp312-win_amd64.pyd +0 -0
  65. gams/core/cfg/cfgmcc.py +519 -0
  66. gams/core/dct/__init__.py +26 -0
  67. gams/core/dct/_dctmcc.cp312-win_amd64.pyd +0 -0
  68. gams/core/dct/dctmcc.py +574 -0
  69. gams/core/embedded/__init__.py +26 -0
  70. gams/core/embedded/gamsemb.py +1024 -0
  71. gams/core/emp/__init__.py +24 -0
  72. gams/core/emp/emplexer.py +89 -0
  73. gams/core/emp/empyacc.py +281 -0
  74. gams/core/gdx/__init__.py +26 -0
  75. gams/core/gdx/_gdxcc.cp312-win_amd64.pyd +0 -0
  76. gams/core/gdx/gdxcc.py +866 -0
  77. gams/core/gev/__init__.py +26 -0
  78. gams/core/gev/_gevmcc.cp312-win_amd64.pyd +0 -0
  79. gams/core/gev/gevmcc.py +855 -0
  80. gams/core/gmd/__init__.py +26 -0
  81. gams/core/gmd/_gmdcc.cp312-win_amd64.pyd +0 -0
  82. gams/core/gmd/gmdcc.py +917 -0
  83. gams/core/gmo/__init__.py +26 -0
  84. gams/core/gmo/_gmomcc.cp312-win_amd64.pyd +0 -0
  85. gams/core/gmo/gmomcc.py +2046 -0
  86. gams/core/idx/__init__.py +26 -0
  87. gams/core/idx/_idxcc.cp312-win_amd64.pyd +0 -0
  88. gams/core/idx/idxcc.py +510 -0
  89. gams/core/numpy/__init__.py +29 -0
  90. gams/core/numpy/_gams2numpy.cp312-win_amd64.pyd +0 -0
  91. gams/core/numpy/gams2numpy.py +1048 -0
  92. gams/core/opt/__init__.py +26 -0
  93. gams/core/opt/_optcc.cp312-win_amd64.pyd +0 -0
  94. gams/core/opt/optcc.py +840 -0
  95. gams/engine/__init__.py +204 -0
  96. gams/engine/api/__init__.py +13 -0
  97. gams/engine/api/auth_api.py +7653 -0
  98. gams/engine/api/cleanup_api.py +751 -0
  99. gams/engine/api/default_api.py +887 -0
  100. gams/engine/api/hypercube_api.py +2629 -0
  101. gams/engine/api/jobs_api.py +5229 -0
  102. gams/engine/api/licenses_api.py +2220 -0
  103. gams/engine/api/namespaces_api.py +7783 -0
  104. gams/engine/api/usage_api.py +5627 -0
  105. gams/engine/api/users_api.py +5931 -0
  106. gams/engine/api_client.py +804 -0
  107. gams/engine/api_response.py +21 -0
  108. gams/engine/configuration.py +601 -0
  109. gams/engine/exceptions.py +216 -0
  110. gams/engine/models/__init__.py +86 -0
  111. gams/engine/models/bad_input.py +89 -0
  112. gams/engine/models/cleanable_job_result.py +104 -0
  113. gams/engine/models/cleanable_job_result_page.py +113 -0
  114. gams/engine/models/engine_license.py +107 -0
  115. gams/engine/models/files_not_found.py +93 -0
  116. gams/engine/models/forwarded_token_response.py +112 -0
  117. gams/engine/models/generic_key_value_pair.py +89 -0
  118. gams/engine/models/hypercube.py +160 -0
  119. gams/engine/models/hypercube_page.py +111 -0
  120. gams/engine/models/hypercube_summary.py +91 -0
  121. gams/engine/models/hypercube_token.py +97 -0
  122. gams/engine/models/identity_provider.py +107 -0
  123. gams/engine/models/identity_provider_ldap.py +121 -0
  124. gams/engine/models/identity_provider_oauth2.py +146 -0
  125. gams/engine/models/identity_provider_oauth2_scope.py +89 -0
  126. gams/engine/models/identity_provider_oauth2_with_secret.py +152 -0
  127. gams/engine/models/identity_provider_oidc.py +133 -0
  128. gams/engine/models/identity_provider_oidc_with_secret.py +143 -0
  129. gams/engine/models/inex.py +91 -0
  130. gams/engine/models/invitation.py +136 -0
  131. gams/engine/models/invitation_quota.py +106 -0
  132. gams/engine/models/invitation_token.py +87 -0
  133. gams/engine/models/job.py +165 -0
  134. gams/engine/models/job_no_text_entry.py +138 -0
  135. gams/engine/models/job_no_text_entry_page.py +111 -0
  136. gams/engine/models/license.py +91 -0
  137. gams/engine/models/log_piece.py +96 -0
  138. gams/engine/models/message.py +87 -0
  139. gams/engine/models/message_and_token.py +99 -0
  140. gams/engine/models/message_with_webhook_id.py +89 -0
  141. gams/engine/models/model_auth_token.py +87 -0
  142. gams/engine/models/model_configuration.py +125 -0
  143. gams/engine/models/model_default_instance.py +99 -0
  144. gams/engine/models/model_default_user_instance.py +98 -0
  145. gams/engine/models/model_hypercube_job.py +106 -0
  146. gams/engine/models/model_hypercube_usage.py +130 -0
  147. gams/engine/models/model_instance_info.py +116 -0
  148. gams/engine/models/model_instance_info_full.py +123 -0
  149. gams/engine/models/model_instance_pool_info.py +112 -0
  150. gams/engine/models/model_job_labels.py +179 -0
  151. gams/engine/models/model_job_usage.py +133 -0
  152. gams/engine/models/model_pool_usage.py +124 -0
  153. gams/engine/models/model_usage.py +115 -0
  154. gams/engine/models/model_user.py +96 -0
  155. gams/engine/models/model_userinstance_info.py +119 -0
  156. gams/engine/models/model_userinstancepool_info.py +95 -0
  157. gams/engine/models/model_version.py +91 -0
  158. gams/engine/models/models.py +120 -0
  159. gams/engine/models/namespace.py +104 -0
  160. gams/engine/models/namespace_quota.py +96 -0
  161. gams/engine/models/namespace_with_permission.py +96 -0
  162. gams/engine/models/not_found.py +91 -0
  163. gams/engine/models/password_policy.py +97 -0
  164. gams/engine/models/perm_and_username.py +89 -0
  165. gams/engine/models/quota.py +117 -0
  166. gams/engine/models/quota_exceeded.py +97 -0
  167. gams/engine/models/status_code_meaning.py +89 -0
  168. gams/engine/models/stream_entry.py +89 -0
  169. gams/engine/models/system_wide_license.py +92 -0
  170. gams/engine/models/text_entries.py +87 -0
  171. gams/engine/models/text_entry.py +101 -0
  172. gams/engine/models/time_span.py +95 -0
  173. gams/engine/models/time_span_pool_worker.py +99 -0
  174. gams/engine/models/token_forward_error.py +87 -0
  175. gams/engine/models/user.py +127 -0
  176. gams/engine/models/user_group_member.py +96 -0
  177. gams/engine/models/user_groups.py +108 -0
  178. gams/engine/models/vapid_info.py +87 -0
  179. gams/engine/models/webhook.py +138 -0
  180. gams/engine/models/webhook_parameterized_event.py +99 -0
  181. gams/engine/py.typed +0 -0
  182. gams/engine/rest.py +258 -0
  183. gams/magic/__init__.py +32 -0
  184. gams/magic/gams_magic.py +142 -0
  185. gams/magic/interactive.py +402 -0
  186. gams/tools/__init__.py +30 -0
  187. gams/tools/errors.py +34 -0
  188. gams/tools/toolcollection/__init__.py +24 -0
  189. gams/tools/toolcollection/alg/__init__.py +24 -0
  190. gams/tools/toolcollection/alg/rank.py +51 -0
  191. gams/tools/toolcollection/data/__init__.py +24 -0
  192. gams/tools/toolcollection/data/csvread.py +444 -0
  193. gams/tools/toolcollection/data/csvwrite.py +311 -0
  194. gams/tools/toolcollection/data/exceldump.py +47 -0
  195. gams/tools/toolcollection/data/sqlitewrite.py +276 -0
  196. gams/tools/toolcollection/gdxservice/__init__.py +24 -0
  197. gams/tools/toolcollection/gdxservice/gdxencoding.py +104 -0
  198. gams/tools/toolcollection/gdxservice/gdxrename.py +94 -0
  199. gams/tools/toolcollection/linalg/__init__.py +24 -0
  200. gams/tools/toolcollection/linalg/cholesky.py +57 -0
  201. gams/tools/toolcollection/linalg/eigenvalue.py +56 -0
  202. gams/tools/toolcollection/linalg/eigenvector.py +58 -0
  203. gams/tools/toolcollection/linalg/invert.py +55 -0
  204. gams/tools/toolcollection/linalg/ols.py +138 -0
  205. gams/tools/toolcollection/tooltemplate.py +321 -0
  206. gams/tools/toolcollection/win32/__init__.py +24 -0
  207. gams/tools/toolcollection/win32/excelmerge.py +93 -0
  208. gams/tools/toolcollection/win32/exceltalk.py +76 -0
  209. gams/tools/toolcollection/win32/msappavail.py +49 -0
  210. gams/tools/toolcollection/win32/shellexecute.py +54 -0
  211. gams/tools/tools.py +116 -0
  212. gams/transfer/__init__.py +35 -0
  213. gams/transfer/_abcs/__init__.py +37 -0
  214. gams/transfer/_abcs/container_abcs.py +433 -0
  215. gams/transfer/_internals/__init__.py +63 -0
  216. gams/transfer/_internals/algorithms.py +436 -0
  217. gams/transfer/_internals/casepreservingdict.py +124 -0
  218. gams/transfer/_internals/constants.py +270 -0
  219. gams/transfer/_internals/domainviolation.py +103 -0
  220. gams/transfer/_internals/specialvalues.py +172 -0
  221. gams/transfer/containers/__init__.py +26 -0
  222. gams/transfer/containers/_container.py +1794 -0
  223. gams/transfer/containers/_io/__init__.py +28 -0
  224. gams/transfer/containers/_io/containers.py +164 -0
  225. gams/transfer/containers/_io/gdx.py +1029 -0
  226. gams/transfer/containers/_io/gmd.py +872 -0
  227. gams/transfer/containers/_mixins/__init__.py +26 -0
  228. gams/transfer/containers/_mixins/ccc.py +1274 -0
  229. gams/transfer/syms/__init__.py +33 -0
  230. gams/transfer/syms/_methods/__init__.py +24 -0
  231. gams/transfer/syms/_methods/tables.py +120 -0
  232. gams/transfer/syms/_methods/toDict.py +115 -0
  233. gams/transfer/syms/_methods/toList.py +83 -0
  234. gams/transfer/syms/_methods/toValue.py +60 -0
  235. gams/transfer/syms/_mixins/__init__.py +32 -0
  236. gams/transfer/syms/_mixins/equals.py +626 -0
  237. gams/transfer/syms/_mixins/generateRecords.py +499 -0
  238. gams/transfer/syms/_mixins/pivot.py +313 -0
  239. gams/transfer/syms/_mixins/pve.py +627 -0
  240. gams/transfer/syms/_mixins/sa.py +27 -0
  241. gams/transfer/syms/_mixins/sapve.py +27 -0
  242. gams/transfer/syms/_mixins/saua.py +27 -0
  243. gams/transfer/syms/_mixins/sauapve.py +199 -0
  244. gams/transfer/syms/_mixins/spve.py +1528 -0
  245. gams/transfer/syms/_mixins/ve.py +936 -0
  246. gams/transfer/syms/container_syms/__init__.py +31 -0
  247. gams/transfer/syms/container_syms/_alias.py +984 -0
  248. gams/transfer/syms/container_syms/_equation.py +333 -0
  249. gams/transfer/syms/container_syms/_parameter.py +973 -0
  250. gams/transfer/syms/container_syms/_set.py +604 -0
  251. gams/transfer/syms/container_syms/_universe_alias.py +461 -0
  252. gams/transfer/syms/container_syms/_variable.py +321 -0
  253. gamsapi-52.5.0.dist-info/METADATA +150 -0
  254. gamsapi-52.5.0.dist-info/RECORD +257 -0
  255. gamsapi-52.5.0.dist-info/WHEEL +5 -0
  256. gamsapi-52.5.0.dist-info/licenses/LICENSE +22 -0
  257. gamsapi-52.5.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,152 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ GAMS Engine
5
+
6
+ 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.
7
+
8
+ The version of the OpenAPI document: latest
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+ from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from gams.engine.models.identity_provider_oauth2_scope import IdentityProviderOauth2Scope
23
+ from typing import Optional, Set
24
+ from typing_extensions import Self
25
+
26
+ class IdentityProviderOauth2WithSecret(BaseModel):
27
+ """
28
+ IdentityProviderOauth2WithSecret
29
+ """ # noqa: E501
30
+ authorization_endpoint: Optional[StrictStr] = None
31
+ device_authorization_endpoint: Optional[StrictStr] = None
32
+ device_client_id: Optional[StrictStr] = None
33
+ end_session_endpoint: Optional[StrictStr] = None
34
+ grant_types_supported: Optional[List[StrictStr]] = None
35
+ hidden: Optional[StrictBool] = None
36
+ issuer: Optional[StrictStr] = None
37
+ jwks_uri: Optional[StrictStr] = None
38
+ label: Optional[StrictStr] = None
39
+ name: Optional[StrictStr] = None
40
+ override_audience: Optional[StrictStr] = None
41
+ response_types_supported: Optional[List[StrictStr]] = None
42
+ scopes: Optional[List[IdentityProviderOauth2Scope]] = None
43
+ token_endpoint: Optional[StrictStr] = None
44
+ token_endpoint_auth_methods_supported: Optional[List[StrictStr]] = None
45
+ web_ui_client_id: Optional[StrictStr] = None
46
+ web_ui_client_secret: Optional[StrictStr] = None
47
+ __properties: ClassVar[List[str]] = ["authorization_endpoint", "device_authorization_endpoint", "device_client_id", "end_session_endpoint", "grant_types_supported", "hidden", "issuer", "jwks_uri", "label", "name", "override_audience", "response_types_supported", "scopes", "token_endpoint", "token_endpoint_auth_methods_supported", "web_ui_client_id", "web_ui_client_secret"]
48
+
49
+ model_config = ConfigDict(
50
+ populate_by_name=True,
51
+ validate_assignment=True,
52
+ protected_namespaces=(),
53
+ )
54
+
55
+
56
+ def to_str(self) -> str:
57
+ """Returns the string representation of the model using alias"""
58
+ return pprint.pformat(self.model_dump(by_alias=True))
59
+
60
+ def to_json(self) -> str:
61
+ """Returns the JSON representation of the model using alias"""
62
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
63
+ return json.dumps(self.to_dict())
64
+
65
+ @classmethod
66
+ def from_json(cls, json_str: str) -> Optional[Self]:
67
+ """Create an instance of IdentityProviderOauth2WithSecret from a JSON string"""
68
+ return cls.from_dict(json.loads(json_str))
69
+
70
+ def to_dict(self) -> Dict[str, Any]:
71
+ """Return the dictionary representation of the model using alias.
72
+
73
+ This has the following differences from calling pydantic's
74
+ `self.model_dump(by_alias=True)`:
75
+
76
+ * `None` is only added to the output dict for nullable fields that
77
+ were set at model initialization. Other fields with value `None`
78
+ are ignored.
79
+ """
80
+ excluded_fields: Set[str] = set([
81
+ ])
82
+
83
+ _dict = self.model_dump(
84
+ by_alias=True,
85
+ exclude=excluded_fields,
86
+ exclude_none=True,
87
+ )
88
+ # override the default output from pydantic by calling `to_dict()` of each item in scopes (list)
89
+ _items = []
90
+ if self.scopes:
91
+ for _item_scopes in self.scopes:
92
+ if _item_scopes:
93
+ _items.append(_item_scopes.to_dict())
94
+ _dict['scopes'] = _items
95
+ # set to None if device_authorization_endpoint (nullable) is None
96
+ # and model_fields_set contains the field
97
+ if self.device_authorization_endpoint is None and "device_authorization_endpoint" in self.model_fields_set:
98
+ _dict['device_authorization_endpoint'] = None
99
+
100
+ # set to None if device_client_id (nullable) is None
101
+ # and model_fields_set contains the field
102
+ if self.device_client_id is None and "device_client_id" in self.model_fields_set:
103
+ _dict['device_client_id'] = None
104
+
105
+ # set to None if end_session_endpoint (nullable) is None
106
+ # and model_fields_set contains the field
107
+ if self.end_session_endpoint is None and "end_session_endpoint" in self.model_fields_set:
108
+ _dict['end_session_endpoint'] = None
109
+
110
+ # set to None if override_audience (nullable) is None
111
+ # and model_fields_set contains the field
112
+ if self.override_audience is None and "override_audience" in self.model_fields_set:
113
+ _dict['override_audience'] = None
114
+
115
+ # set to None if token_endpoint (nullable) is None
116
+ # and model_fields_set contains the field
117
+ if self.token_endpoint is None and "token_endpoint" in self.model_fields_set:
118
+ _dict['token_endpoint'] = None
119
+
120
+ return _dict
121
+
122
+ @classmethod
123
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
124
+ """Create an instance of IdentityProviderOauth2WithSecret from a dict"""
125
+ if obj is None:
126
+ return None
127
+
128
+ if not isinstance(obj, dict):
129
+ return cls.model_validate(obj)
130
+
131
+ _obj = cls.model_validate({
132
+ "authorization_endpoint": obj.get("authorization_endpoint"),
133
+ "device_authorization_endpoint": obj.get("device_authorization_endpoint"),
134
+ "device_client_id": obj.get("device_client_id"),
135
+ "end_session_endpoint": obj.get("end_session_endpoint"),
136
+ "grant_types_supported": obj.get("grant_types_supported"),
137
+ "hidden": obj.get("hidden"),
138
+ "issuer": obj.get("issuer"),
139
+ "jwks_uri": obj.get("jwks_uri"),
140
+ "label": obj.get("label"),
141
+ "name": obj.get("name"),
142
+ "override_audience": obj.get("override_audience"),
143
+ "response_types_supported": obj.get("response_types_supported"),
144
+ "scopes": [IdentityProviderOauth2Scope.from_dict(_item) for _item in obj["scopes"]] if obj.get("scopes") is not None else None,
145
+ "token_endpoint": obj.get("token_endpoint"),
146
+ "token_endpoint_auth_methods_supported": obj.get("token_endpoint_auth_methods_supported"),
147
+ "web_ui_client_id": obj.get("web_ui_client_id"),
148
+ "web_ui_client_secret": obj.get("web_ui_client_secret")
149
+ })
150
+ return _obj
151
+
152
+
@@ -0,0 +1,133 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ GAMS Engine
5
+
6
+ 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.
7
+
8
+ The version of the OpenAPI document: latest
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+ from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from typing import Optional, Set
23
+ from typing_extensions import Self
24
+
25
+ class IdentityProviderOidc(BaseModel):
26
+ """
27
+ IdentityProviderOidc
28
+ """ # noqa: E501
29
+ authorization_endpoint: Optional[StrictStr] = None
30
+ device_authorization_endpoint: Optional[StrictStr] = None
31
+ device_client_id: Optional[StrictStr] = None
32
+ end_session_endpoint: Optional[StrictStr] = None
33
+ extra_client_ids: Optional[List[StrictStr]] = None
34
+ has_device_client_secret: Optional[StrictBool] = None
35
+ has_web_ui_client_secret: Optional[StrictBool] = None
36
+ issuer: Optional[StrictStr] = None
37
+ jwks_uri: Optional[StrictStr] = None
38
+ scopes: Optional[List[StrictStr]] = None
39
+ token_endpoint: Optional[StrictStr] = None
40
+ token_endpoint_auth_methods_supported: Optional[List[StrictStr]] = None
41
+ uid: Optional[StrictStr] = None
42
+ web_ui_client_id: Optional[StrictStr] = None
43
+ __properties: ClassVar[List[str]] = ["authorization_endpoint", "device_authorization_endpoint", "device_client_id", "end_session_endpoint", "extra_client_ids", "has_device_client_secret", "has_web_ui_client_secret", "issuer", "jwks_uri", "scopes", "token_endpoint", "token_endpoint_auth_methods_supported", "uid", "web_ui_client_id"]
44
+
45
+ model_config = ConfigDict(
46
+ populate_by_name=True,
47
+ validate_assignment=True,
48
+ protected_namespaces=(),
49
+ )
50
+
51
+
52
+ def to_str(self) -> str:
53
+ """Returns the string representation of the model using alias"""
54
+ return pprint.pformat(self.model_dump(by_alias=True))
55
+
56
+ def to_json(self) -> str:
57
+ """Returns the JSON representation of the model using alias"""
58
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
59
+ return json.dumps(self.to_dict())
60
+
61
+ @classmethod
62
+ def from_json(cls, json_str: str) -> Optional[Self]:
63
+ """Create an instance of IdentityProviderOidc from a JSON string"""
64
+ return cls.from_dict(json.loads(json_str))
65
+
66
+ def to_dict(self) -> Dict[str, Any]:
67
+ """Return the dictionary representation of the model using alias.
68
+
69
+ This has the following differences from calling pydantic's
70
+ `self.model_dump(by_alias=True)`:
71
+
72
+ * `None` is only added to the output dict for nullable fields that
73
+ were set at model initialization. Other fields with value `None`
74
+ are ignored.
75
+ """
76
+ excluded_fields: Set[str] = set([
77
+ ])
78
+
79
+ _dict = self.model_dump(
80
+ by_alias=True,
81
+ exclude=excluded_fields,
82
+ exclude_none=True,
83
+ )
84
+ # set to None if device_authorization_endpoint (nullable) is None
85
+ # and model_fields_set contains the field
86
+ if self.device_authorization_endpoint is None and "device_authorization_endpoint" in self.model_fields_set:
87
+ _dict['device_authorization_endpoint'] = None
88
+
89
+ # set to None if device_client_id (nullable) is None
90
+ # and model_fields_set contains the field
91
+ if self.device_client_id is None and "device_client_id" in self.model_fields_set:
92
+ _dict['device_client_id'] = None
93
+
94
+ # set to None if end_session_endpoint (nullable) is None
95
+ # and model_fields_set contains the field
96
+ if self.end_session_endpoint is None and "end_session_endpoint" in self.model_fields_set:
97
+ _dict['end_session_endpoint'] = None
98
+
99
+ # set to None if token_endpoint (nullable) is None
100
+ # and model_fields_set contains the field
101
+ if self.token_endpoint is None and "token_endpoint" in self.model_fields_set:
102
+ _dict['token_endpoint'] = None
103
+
104
+ return _dict
105
+
106
+ @classmethod
107
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
108
+ """Create an instance of IdentityProviderOidc from a dict"""
109
+ if obj is None:
110
+ return None
111
+
112
+ if not isinstance(obj, dict):
113
+ return cls.model_validate(obj)
114
+
115
+ _obj = cls.model_validate({
116
+ "authorization_endpoint": obj.get("authorization_endpoint"),
117
+ "device_authorization_endpoint": obj.get("device_authorization_endpoint"),
118
+ "device_client_id": obj.get("device_client_id"),
119
+ "end_session_endpoint": obj.get("end_session_endpoint"),
120
+ "extra_client_ids": obj.get("extra_client_ids"),
121
+ "has_device_client_secret": obj.get("has_device_client_secret"),
122
+ "has_web_ui_client_secret": obj.get("has_web_ui_client_secret"),
123
+ "issuer": obj.get("issuer"),
124
+ "jwks_uri": obj.get("jwks_uri"),
125
+ "scopes": obj.get("scopes"),
126
+ "token_endpoint": obj.get("token_endpoint"),
127
+ "token_endpoint_auth_methods_supported": obj.get("token_endpoint_auth_methods_supported"),
128
+ "uid": obj.get("uid"),
129
+ "web_ui_client_id": obj.get("web_ui_client_id")
130
+ })
131
+ return _obj
132
+
133
+
@@ -0,0 +1,143 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ GAMS Engine
5
+
6
+ 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.
7
+
8
+ The version of the OpenAPI document: latest
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+ from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from typing import Optional, Set
23
+ from typing_extensions import Self
24
+
25
+ class IdentityProviderOidcWithSecret(BaseModel):
26
+ """
27
+ IdentityProviderOidcWithSecret
28
+ """ # noqa: E501
29
+ authorization_endpoint: Optional[StrictStr] = None
30
+ device_authorization_endpoint: Optional[StrictStr] = None
31
+ device_client_id: Optional[StrictStr] = None
32
+ device_client_secret: Optional[StrictStr] = None
33
+ end_session_endpoint: Optional[StrictStr] = None
34
+ extra_client_ids: Optional[List[StrictStr]] = None
35
+ has_device_client_secret: Optional[StrictBool] = None
36
+ has_web_ui_client_secret: Optional[StrictBool] = None
37
+ hidden: Optional[StrictBool] = None
38
+ issuer: Optional[StrictStr] = None
39
+ jwks_uri: Optional[StrictStr] = None
40
+ label: Optional[StrictStr] = None
41
+ name: Optional[StrictStr] = None
42
+ scopes: Optional[List[StrictStr]] = None
43
+ token_endpoint: Optional[StrictStr] = None
44
+ token_endpoint_auth_methods_supported: Optional[List[StrictStr]] = None
45
+ uid: Optional[StrictStr] = None
46
+ web_ui_client_id: Optional[StrictStr] = None
47
+ web_ui_client_secret: Optional[StrictStr] = None
48
+ __properties: ClassVar[List[str]] = ["authorization_endpoint", "device_authorization_endpoint", "device_client_id", "device_client_secret", "end_session_endpoint", "extra_client_ids", "has_device_client_secret", "has_web_ui_client_secret", "hidden", "issuer", "jwks_uri", "label", "name", "scopes", "token_endpoint", "token_endpoint_auth_methods_supported", "uid", "web_ui_client_id", "web_ui_client_secret"]
49
+
50
+ model_config = ConfigDict(
51
+ populate_by_name=True,
52
+ validate_assignment=True,
53
+ protected_namespaces=(),
54
+ )
55
+
56
+
57
+ def to_str(self) -> str:
58
+ """Returns the string representation of the model using alias"""
59
+ return pprint.pformat(self.model_dump(by_alias=True))
60
+
61
+ def to_json(self) -> str:
62
+ """Returns the JSON representation of the model using alias"""
63
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
64
+ return json.dumps(self.to_dict())
65
+
66
+ @classmethod
67
+ def from_json(cls, json_str: str) -> Optional[Self]:
68
+ """Create an instance of IdentityProviderOidcWithSecret from a JSON string"""
69
+ return cls.from_dict(json.loads(json_str))
70
+
71
+ def to_dict(self) -> Dict[str, Any]:
72
+ """Return the dictionary representation of the model using alias.
73
+
74
+ This has the following differences from calling pydantic's
75
+ `self.model_dump(by_alias=True)`:
76
+
77
+ * `None` is only added to the output dict for nullable fields that
78
+ were set at model initialization. Other fields with value `None`
79
+ are ignored.
80
+ """
81
+ excluded_fields: Set[str] = set([
82
+ ])
83
+
84
+ _dict = self.model_dump(
85
+ by_alias=True,
86
+ exclude=excluded_fields,
87
+ exclude_none=True,
88
+ )
89
+ # set to None if device_authorization_endpoint (nullable) is None
90
+ # and model_fields_set contains the field
91
+ if self.device_authorization_endpoint is None and "device_authorization_endpoint" in self.model_fields_set:
92
+ _dict['device_authorization_endpoint'] = None
93
+
94
+ # set to None if device_client_id (nullable) is None
95
+ # and model_fields_set contains the field
96
+ if self.device_client_id is None and "device_client_id" in self.model_fields_set:
97
+ _dict['device_client_id'] = None
98
+
99
+ # set to None if end_session_endpoint (nullable) is None
100
+ # and model_fields_set contains the field
101
+ if self.end_session_endpoint is None and "end_session_endpoint" in self.model_fields_set:
102
+ _dict['end_session_endpoint'] = None
103
+
104
+ # set to None if token_endpoint (nullable) is None
105
+ # and model_fields_set contains the field
106
+ if self.token_endpoint is None and "token_endpoint" in self.model_fields_set:
107
+ _dict['token_endpoint'] = None
108
+
109
+ return _dict
110
+
111
+ @classmethod
112
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
113
+ """Create an instance of IdentityProviderOidcWithSecret from a dict"""
114
+ if obj is None:
115
+ return None
116
+
117
+ if not isinstance(obj, dict):
118
+ return cls.model_validate(obj)
119
+
120
+ _obj = cls.model_validate({
121
+ "authorization_endpoint": obj.get("authorization_endpoint"),
122
+ "device_authorization_endpoint": obj.get("device_authorization_endpoint"),
123
+ "device_client_id": obj.get("device_client_id"),
124
+ "device_client_secret": obj.get("device_client_secret"),
125
+ "end_session_endpoint": obj.get("end_session_endpoint"),
126
+ "extra_client_ids": obj.get("extra_client_ids"),
127
+ "has_device_client_secret": obj.get("has_device_client_secret"),
128
+ "has_web_ui_client_secret": obj.get("has_web_ui_client_secret"),
129
+ "hidden": obj.get("hidden"),
130
+ "issuer": obj.get("issuer"),
131
+ "jwks_uri": obj.get("jwks_uri"),
132
+ "label": obj.get("label"),
133
+ "name": obj.get("name"),
134
+ "scopes": obj.get("scopes"),
135
+ "token_endpoint": obj.get("token_endpoint"),
136
+ "token_endpoint_auth_methods_supported": obj.get("token_endpoint_auth_methods_supported"),
137
+ "uid": obj.get("uid"),
138
+ "web_ui_client_id": obj.get("web_ui_client_id"),
139
+ "web_ui_client_secret": obj.get("web_ui_client_secret")
140
+ })
141
+ return _obj
142
+
143
+
@@ -0,0 +1,91 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ GAMS Engine
5
+
6
+ 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.
7
+
8
+ The version of the OpenAPI document: latest
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+ from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from typing import Optional, Set
23
+ from typing_extensions import Self
24
+
25
+ class Inex(BaseModel):
26
+ """
27
+ Inex
28
+ """ # noqa: E501
29
+ files: Optional[List[StrictStr]] = None
30
+ globbing_enabled: Optional[StrictBool] = True
31
+ type: Optional[StrictStr] = None
32
+ __properties: ClassVar[List[str]] = ["files", "globbing_enabled", "type"]
33
+
34
+ model_config = ConfigDict(
35
+ populate_by_name=True,
36
+ validate_assignment=True,
37
+ protected_namespaces=(),
38
+ )
39
+
40
+
41
+ def to_str(self) -> str:
42
+ """Returns the string representation of the model using alias"""
43
+ return pprint.pformat(self.model_dump(by_alias=True))
44
+
45
+ def to_json(self) -> str:
46
+ """Returns the JSON representation of the model using alias"""
47
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
48
+ return json.dumps(self.to_dict())
49
+
50
+ @classmethod
51
+ def from_json(cls, json_str: str) -> Optional[Self]:
52
+ """Create an instance of Inex from a JSON string"""
53
+ return cls.from_dict(json.loads(json_str))
54
+
55
+ def to_dict(self) -> Dict[str, Any]:
56
+ """Return the dictionary representation of the model using alias.
57
+
58
+ This has the following differences from calling pydantic's
59
+ `self.model_dump(by_alias=True)`:
60
+
61
+ * `None` is only added to the output dict for nullable fields that
62
+ were set at model initialization. Other fields with value `None`
63
+ are ignored.
64
+ """
65
+ excluded_fields: Set[str] = set([
66
+ ])
67
+
68
+ _dict = self.model_dump(
69
+ by_alias=True,
70
+ exclude=excluded_fields,
71
+ exclude_none=True,
72
+ )
73
+ return _dict
74
+
75
+ @classmethod
76
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
77
+ """Create an instance of Inex from a dict"""
78
+ if obj is None:
79
+ return None
80
+
81
+ if not isinstance(obj, dict):
82
+ return cls.model_validate(obj)
83
+
84
+ _obj = cls.model_validate({
85
+ "files": obj.get("files"),
86
+ "globbing_enabled": obj.get("globbing_enabled") if obj.get("globbing_enabled") is not None else True,
87
+ "type": obj.get("type")
88
+ })
89
+ return _obj
90
+
91
+
@@ -0,0 +1,136 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ GAMS Engine
5
+
6
+ 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.
7
+
8
+ The version of the OpenAPI document: latest
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+ from datetime import datetime
21
+ from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
22
+ from typing import Any, ClassVar, Dict, List, Optional
23
+ from gams.engine.models.invitation_quota import InvitationQuota
24
+ from typing import Optional, Set
25
+ from typing_extensions import Self
26
+
27
+ class Invitation(BaseModel):
28
+ """
29
+ Invitation
30
+ """ # noqa: E501
31
+ created: Optional[datetime] = None
32
+ gams_license: Optional[StrictStr] = None
33
+ identity_provider: Optional[StrictStr] = None
34
+ identity_provider_user_subject: Optional[StrictStr] = None
35
+ invitable_identity_providers: Optional[List[StrictStr]] = None
36
+ inviter_name: Optional[StrictStr] = None
37
+ permissions: Optional[List[StrictStr]] = None
38
+ quota: Optional[InvitationQuota] = None
39
+ roles: Optional[List[StrictStr]] = None
40
+ token: Optional[StrictStr] = None
41
+ used: Optional[StrictBool] = None
42
+ user_groups: Optional[List[StrictStr]] = None
43
+ username: Optional[StrictStr] = None
44
+ __properties: ClassVar[List[str]] = ["created", "gams_license", "identity_provider", "identity_provider_user_subject", "invitable_identity_providers", "inviter_name", "permissions", "quota", "roles", "token", "used", "user_groups", "username"]
45
+
46
+ model_config = ConfigDict(
47
+ populate_by_name=True,
48
+ validate_assignment=True,
49
+ protected_namespaces=(),
50
+ )
51
+
52
+
53
+ def to_str(self) -> str:
54
+ """Returns the string representation of the model using alias"""
55
+ return pprint.pformat(self.model_dump(by_alias=True))
56
+
57
+ def to_json(self) -> str:
58
+ """Returns the JSON representation of the model using alias"""
59
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
60
+ return json.dumps(self.to_dict())
61
+
62
+ @classmethod
63
+ def from_json(cls, json_str: str) -> Optional[Self]:
64
+ """Create an instance of Invitation from a JSON string"""
65
+ return cls.from_dict(json.loads(json_str))
66
+
67
+ def to_dict(self) -> Dict[str, Any]:
68
+ """Return the dictionary representation of the model using alias.
69
+
70
+ This has the following differences from calling pydantic's
71
+ `self.model_dump(by_alias=True)`:
72
+
73
+ * `None` is only added to the output dict for nullable fields that
74
+ were set at model initialization. Other fields with value `None`
75
+ are ignored.
76
+ """
77
+ excluded_fields: Set[str] = set([
78
+ ])
79
+
80
+ _dict = self.model_dump(
81
+ by_alias=True,
82
+ exclude=excluded_fields,
83
+ exclude_none=True,
84
+ )
85
+ # override the default output from pydantic by calling `to_dict()` of quota
86
+ if self.quota:
87
+ _dict['quota'] = self.quota.to_dict()
88
+ # set to None if gams_license (nullable) is None
89
+ # and model_fields_set contains the field
90
+ if self.gams_license is None and "gams_license" in self.model_fields_set:
91
+ _dict['gams_license'] = None
92
+
93
+ # set to None if identity_provider (nullable) is None
94
+ # and model_fields_set contains the field
95
+ if self.identity_provider is None and "identity_provider" in self.model_fields_set:
96
+ _dict['identity_provider'] = None
97
+
98
+ # set to None if identity_provider_user_subject (nullable) is None
99
+ # and model_fields_set contains the field
100
+ if self.identity_provider_user_subject is None and "identity_provider_user_subject" in self.model_fields_set:
101
+ _dict['identity_provider_user_subject'] = None
102
+
103
+ # set to None if username (nullable) is None
104
+ # and model_fields_set contains the field
105
+ if self.username is None and "username" in self.model_fields_set:
106
+ _dict['username'] = None
107
+
108
+ return _dict
109
+
110
+ @classmethod
111
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
112
+ """Create an instance of Invitation from a dict"""
113
+ if obj is None:
114
+ return None
115
+
116
+ if not isinstance(obj, dict):
117
+ return cls.model_validate(obj)
118
+
119
+ _obj = cls.model_validate({
120
+ "created": obj.get("created"),
121
+ "gams_license": obj.get("gams_license"),
122
+ "identity_provider": obj.get("identity_provider"),
123
+ "identity_provider_user_subject": obj.get("identity_provider_user_subject"),
124
+ "invitable_identity_providers": obj.get("invitable_identity_providers"),
125
+ "inviter_name": obj.get("inviter_name"),
126
+ "permissions": obj.get("permissions"),
127
+ "quota": InvitationQuota.from_dict(obj["quota"]) if obj.get("quota") is not None else None,
128
+ "roles": obj.get("roles"),
129
+ "token": obj.get("token"),
130
+ "used": obj.get("used"),
131
+ "user_groups": obj.get("user_groups"),
132
+ "username": obj.get("username")
133
+ })
134
+ return _obj
135
+
136
+