cosmotech-api 2.4.1__py3-none-any.whl → 3.0.9.dev0__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 cosmotech-api might be problematic. Click here for more details.

Files changed (110) hide show
  1. cosmotech_api/__init__.py +1 -1
  2. cosmotech_api/api/connector_api.py +20 -21
  3. cosmotech_api/api/dataset_api.py +2612 -153
  4. cosmotech_api/api/organization_api.py +1 -131
  5. cosmotech_api/api/scenario_api.py +13 -158
  6. cosmotech_api/api/scenariorun_api.py +1 -160
  7. cosmotech_api/api/scenariorunresult_api.py +386 -0
  8. cosmotech_api/api/solution_api.py +639 -36
  9. cosmotech_api/api/twingraph_api.py +63 -206
  10. cosmotech_api/api/user_api.py +1 -1
  11. cosmotech_api/api/validator_api.py +1 -1
  12. cosmotech_api/api/workspace_api.py +1 -141
  13. cosmotech_api/api_client.py +1 -1
  14. cosmotech_api/apis/__init__.py +1 -0
  15. cosmotech_api/configuration.py +2 -2
  16. cosmotech_api/exceptions.py +1 -1
  17. cosmotech_api/model/component_role_permissions.py +1 -1
  18. cosmotech_api/model/connector.py +1 -1
  19. cosmotech_api/model/connector_parameter.py +1 -1
  20. cosmotech_api/model/connector_parameter_group.py +1 -1
  21. cosmotech_api/model/container_resource_size_info.py +1 -1
  22. cosmotech_api/model/container_resource_sizing.py +1 -1
  23. cosmotech_api/model/dataset.py +55 -1
  24. cosmotech_api/model/dataset_access_control.py +268 -0
  25. cosmotech_api/model/dataset_compatibility.py +1 -1
  26. cosmotech_api/model/dataset_connector.py +1 -1
  27. cosmotech_api/model/dataset_copy_parameters.py +1 -1
  28. cosmotech_api/model/dataset_role.py +262 -0
  29. cosmotech_api/model/dataset_search.py +1 -1
  30. cosmotech_api/model/dataset_security.py +274 -0
  31. cosmotech_api/model/dataset_source_type.py +286 -0
  32. cosmotech_api/model/dataset_twin_graph_hash.py +256 -0
  33. cosmotech_api/model/dataset_twin_graph_info.py +264 -0
  34. cosmotech_api/model/dataset_twin_graph_query.py +262 -0
  35. cosmotech_api/model/delete_historical_data.py +1 -1
  36. cosmotech_api/model/graph_properties.py +1 -1
  37. cosmotech_api/model/organization.py +1 -1
  38. cosmotech_api/model/organization_access_control.py +1 -1
  39. cosmotech_api/model/organization_role.py +1 -1
  40. cosmotech_api/model/organization_security.py +1 -1
  41. cosmotech_api/model/organization_service.py +1 -1
  42. cosmotech_api/model/organization_services.py +1 -1
  43. cosmotech_api/model/resource_size_info.py +1 -1
  44. cosmotech_api/model/run_template.py +7 -1
  45. cosmotech_api/model/run_template_handler_id.py +1 -1
  46. cosmotech_api/model/run_template_orchestrator.py +283 -0
  47. cosmotech_api/model/run_template_parameter.py +1 -1
  48. cosmotech_api/model/run_template_parameter_group.py +1 -1
  49. cosmotech_api/model/run_template_parameter_value.py +1 -1
  50. cosmotech_api/model/run_template_resource_sizing.py +1 -1
  51. cosmotech_api/model/run_template_step_source.py +1 -1
  52. cosmotech_api/model/scenario.py +1 -1
  53. cosmotech_api/model/scenario_access_control.py +1 -1
  54. cosmotech_api/model/scenario_changed_parameter_value.py +1 -1
  55. cosmotech_api/model/scenario_comparison_result.py +1 -1
  56. cosmotech_api/model/scenario_data_download_info.py +1 -1
  57. cosmotech_api/model/scenario_data_download_job.py +1 -1
  58. cosmotech_api/model/scenario_job_state.py +1 -1
  59. cosmotech_api/model/scenario_last_run.py +1 -1
  60. cosmotech_api/model/scenario_resource_sizing.py +1 -1
  61. cosmotech_api/model/scenario_role.py +1 -1
  62. cosmotech_api/model/scenario_run.py +6 -1
  63. cosmotech_api/model/scenario_run_container.py +1 -1
  64. cosmotech_api/model/scenario_run_container_artifact.py +1 -1
  65. cosmotech_api/model/scenario_run_container_logs.py +1 -1
  66. cosmotech_api/model/scenario_run_logs.py +1 -1
  67. cosmotech_api/model/scenario_run_resource_requested.py +260 -0
  68. cosmotech_api/model/scenario_run_result.py +260 -0
  69. cosmotech_api/model/scenario_run_search.py +1 -1
  70. cosmotech_api/model/scenario_run_start_containers.py +1 -1
  71. cosmotech_api/model/scenario_run_state.py +1 -1
  72. cosmotech_api/model/scenario_run_status.py +1 -1
  73. cosmotech_api/model/scenario_run_status_node.py +16 -1
  74. cosmotech_api/model/scenario_run_template_parameter_value.py +1 -1
  75. cosmotech_api/model/scenario_security.py +1 -1
  76. cosmotech_api/model/scenario_validation_status.py +1 -1
  77. cosmotech_api/model/solution.py +7 -1
  78. cosmotech_api/model/solution_access_control.py +268 -0
  79. cosmotech_api/model/solution_role.py +262 -0
  80. cosmotech_api/model/solution_security.py +274 -0
  81. cosmotech_api/model/source_info.py +3 -13
  82. cosmotech_api/model/sub_dataset_graph_query.py +268 -0
  83. cosmotech_api/model/translated_labels.py +1 -1
  84. cosmotech_api/model/twin_graph_batch_result.py +1 -1
  85. cosmotech_api/model/twin_graph_hash.py +1 -1
  86. cosmotech_api/model/twin_graph_import.py +1 -1
  87. cosmotech_api/model/twin_graph_import_info.py +1 -1
  88. cosmotech_api/model/twin_graph_query.py +1 -1
  89. cosmotech_api/model/user.py +1 -1
  90. cosmotech_api/model/user_organization.py +1 -1
  91. cosmotech_api/model/user_workspace.py +1 -1
  92. cosmotech_api/model/validator.py +1 -1
  93. cosmotech_api/model/validator_run.py +1 -1
  94. cosmotech_api/model/workspace.py +1 -1
  95. cosmotech_api/model/workspace_access_control.py +1 -1
  96. cosmotech_api/model/workspace_file.py +1 -1
  97. cosmotech_api/model/workspace_role.py +1 -1
  98. cosmotech_api/model/workspace_secret.py +1 -1
  99. cosmotech_api/model/workspace_security.py +1 -1
  100. cosmotech_api/model/workspace_solution.py +1 -1
  101. cosmotech_api/model/workspace_web_app.py +1 -1
  102. cosmotech_api/model_utils.py +1 -1
  103. cosmotech_api/models/__init__.py +14 -2
  104. cosmotech_api/rest.py +1 -1
  105. {cosmotech_api-2.4.1.dist-info → cosmotech_api-3.0.9.dev0.dist-info}/METADATA +2 -2
  106. cosmotech_api-3.0.9.dev0.dist-info/RECORD +114 -0
  107. {cosmotech_api-2.4.1.dist-info → cosmotech_api-3.0.9.dev0.dist-info}/WHEEL +1 -1
  108. cosmotech_api-2.4.1.dist-info/RECORD +0 -99
  109. {cosmotech_api-2.4.1.dist-info → cosmotech_api-3.0.9.dev0.dist-info}/LICENSE +0 -0
  110. {cosmotech_api-2.4.1.dist-info → cosmotech_api-3.0.9.dev0.dist-info}/top_level.txt +0 -0
@@ -3,7 +3,7 @@
3
3
 
4
4
  Cosmo Tech Platform API # noqa: E501
5
5
 
6
- The version of the OpenAPI document: 2.4.2-SNAPSHOT
6
+ The version of the OpenAPI document: 3.0.9-SNAPSHOT
7
7
  Contact: platform@cosmotech.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  """
@@ -879,65 +879,6 @@ class WorkspaceApi(object):
879
879
  },
880
880
  api_client=api_client
881
881
  )
882
- self.import_workspace_endpoint = _Endpoint(
883
- settings={
884
- 'response_type': (Workspace,),
885
- 'auth': [
886
- 'oAuth2AuthCode'
887
- ],
888
- 'endpoint_path': '/organizations/{organization_id}/workspaces/import',
889
- 'operation_id': 'import_workspace',
890
- 'http_method': 'POST',
891
- 'servers': None,
892
- },
893
- params_map={
894
- 'all': [
895
- 'organization_id',
896
- 'workspace',
897
- ],
898
- 'required': [
899
- 'organization_id',
900
- 'workspace',
901
- ],
902
- 'nullable': [
903
- ],
904
- 'enum': [
905
- ],
906
- 'validation': [
907
- ]
908
- },
909
- root_map={
910
- 'validations': {
911
- },
912
- 'allowed_values': {
913
- },
914
- 'openapi_types': {
915
- 'organization_id':
916
- (str,),
917
- 'workspace':
918
- (Workspace,),
919
- },
920
- 'attribute_map': {
921
- 'organization_id': 'organization_id',
922
- },
923
- 'location_map': {
924
- 'organization_id': 'path',
925
- 'workspace': 'body',
926
- },
927
- 'collection_format_map': {
928
- }
929
- },
930
- headers_map={
931
- 'accept': [
932
- 'application/json'
933
- ],
934
- 'content_type': [
935
- 'application/json',
936
- 'application/yaml'
937
- ]
938
- },
939
- api_client=api_client
940
- )
941
882
  self.remove_workspace_access_control_endpoint = _Endpoint(
942
883
  settings={
943
884
  'response_type': None,
@@ -2431,87 +2372,6 @@ class WorkspaceApi(object):
2431
2372
  workspace_id
2432
2373
  return self.get_workspace_security_users_endpoint.call_with_http_info(**kwargs)
2433
2374
 
2434
- def import_workspace(
2435
- self,
2436
- organization_id,
2437
- workspace,
2438
- **kwargs
2439
- ):
2440
- """Import a workspace # noqa: E501
2441
-
2442
- This method makes a synchronous HTTP request by default. To make an
2443
- asynchronous HTTP request, please pass async_req=True
2444
-
2445
- >>> thread = api.import_workspace(organization_id, workspace, async_req=True)
2446
- >>> result = thread.get()
2447
-
2448
- Args:
2449
- organization_id (str): the Organization identifier
2450
- workspace (Workspace): the Workspace to import
2451
-
2452
- Keyword Args:
2453
- _return_http_data_only (bool): response data without head status
2454
- code and headers. Default is True.
2455
- _preload_content (bool): if False, the urllib3.HTTPResponse object
2456
- will be returned without reading/decoding response data.
2457
- Default is True.
2458
- _request_timeout (int/float/tuple): timeout setting for this request. If
2459
- one number provided, it will be total request timeout. It can also
2460
- be a pair (tuple) of (connection, read) timeouts.
2461
- Default is None.
2462
- _check_input_type (bool): specifies if type checking
2463
- should be done one the data sent to the server.
2464
- Default is True.
2465
- _check_return_type (bool): specifies if type checking
2466
- should be done one the data received from the server.
2467
- Default is True.
2468
- _spec_property_naming (bool): True if the variable names in the input data
2469
- are serialized names, as specified in the OpenAPI document.
2470
- False if the variable names in the input data
2471
- are pythonic names, e.g. snake case (default)
2472
- _content_type (str/None): force body content-type.
2473
- Default is None and content-type will be predicted by allowed
2474
- content-types and body.
2475
- _host_index (int/None): specifies the index of the server
2476
- that we want to use.
2477
- Default is read from the configuration.
2478
- async_req (bool): execute request asynchronously
2479
-
2480
- Returns:
2481
- Workspace
2482
- If the method is called asynchronously, returns the request
2483
- thread.
2484
- """
2485
- kwargs['async_req'] = kwargs.get(
2486
- 'async_req', False
2487
- )
2488
- kwargs['_return_http_data_only'] = kwargs.get(
2489
- '_return_http_data_only', True
2490
- )
2491
- kwargs['_preload_content'] = kwargs.get(
2492
- '_preload_content', True
2493
- )
2494
- kwargs['_request_timeout'] = kwargs.get(
2495
- '_request_timeout', None
2496
- )
2497
- kwargs['_check_input_type'] = kwargs.get(
2498
- '_check_input_type', True
2499
- )
2500
- kwargs['_check_return_type'] = kwargs.get(
2501
- '_check_return_type', True
2502
- )
2503
- kwargs['_spec_property_naming'] = kwargs.get(
2504
- '_spec_property_naming', False
2505
- )
2506
- kwargs['_content_type'] = kwargs.get(
2507
- '_content_type')
2508
- kwargs['_host_index'] = kwargs.get('_host_index')
2509
- kwargs['organization_id'] = \
2510
- organization_id
2511
- kwargs['workspace'] = \
2512
- workspace
2513
- return self.import_workspace_endpoint.call_with_http_info(**kwargs)
2514
-
2515
2375
  def remove_workspace_access_control(
2516
2376
  self,
2517
2377
  organization_id,
@@ -3,7 +3,7 @@
3
3
 
4
4
  Cosmo Tech Platform API # noqa: E501
5
5
 
6
- The version of the OpenAPI document: 2.4.2-SNAPSHOT
6
+ The version of the OpenAPI document: 3.0.9-SNAPSHOT
7
7
  Contact: platform@cosmotech.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  """
@@ -19,6 +19,7 @@ from cosmotech_api.api.dataset_api import DatasetApi
19
19
  from cosmotech_api.api.organization_api import OrganizationApi
20
20
  from cosmotech_api.api.scenario_api import ScenarioApi
21
21
  from cosmotech_api.api.scenariorun_api import ScenariorunApi
22
+ from cosmotech_api.api.scenariorunresult_api import ScenariorunresultApi
22
23
  from cosmotech_api.api.solution_api import SolutionApi
23
24
  from cosmotech_api.api.twingraph_api import TwingraphApi
24
25
  from cosmotech_api.api.validator_api import ValidatorApi
@@ -3,7 +3,7 @@
3
3
 
4
4
  Cosmo Tech Platform API # noqa: E501
5
5
 
6
- The version of the OpenAPI document: 2.4.2-SNAPSHOT
6
+ The version of the OpenAPI document: 3.0.9-SNAPSHOT
7
7
  Contact: platform@cosmotech.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  """
@@ -388,7 +388,7 @@ class Configuration(object):
388
388
  return "Python SDK Debug Report:\n"\
389
389
  "OS: {env}\n"\
390
390
  "Python Version: {pyversion}\n"\
391
- "Version of the API: 2.4.2-SNAPSHOT\n"\
391
+ "Version of the API: 3.0.9-SNAPSHOT\n"\
392
392
  "SDK Package Version: 1.0.0".\
393
393
  format(env=sys.platform, pyversion=sys.version)
394
394
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  Cosmo Tech Platform API # noqa: E501
5
5
 
6
- The version of the OpenAPI document: 2.4.2-SNAPSHOT
6
+ The version of the OpenAPI document: 3.0.9-SNAPSHOT
7
7
  Contact: platform@cosmotech.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  """
@@ -3,7 +3,7 @@
3
3
 
4
4
  Cosmo Tech Platform API # noqa: E501
5
5
 
6
- The version of the OpenAPI document: 2.4.2-SNAPSHOT
6
+ The version of the OpenAPI document: 3.0.9-SNAPSHOT
7
7
  Contact: platform@cosmotech.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  """
@@ -3,7 +3,7 @@
3
3
 
4
4
  Cosmo Tech Platform API # noqa: E501
5
5
 
6
- The version of the OpenAPI document: 2.4.2-SNAPSHOT
6
+ The version of the OpenAPI document: 3.0.9-SNAPSHOT
7
7
  Contact: platform@cosmotech.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  """
@@ -3,7 +3,7 @@
3
3
 
4
4
  Cosmo Tech Platform API # noqa: E501
5
5
 
6
- The version of the OpenAPI document: 2.4.2-SNAPSHOT
6
+ The version of the OpenAPI document: 3.0.9-SNAPSHOT
7
7
  Contact: platform@cosmotech.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  """
@@ -3,7 +3,7 @@
3
3
 
4
4
  Cosmo Tech Platform API # noqa: E501
5
5
 
6
- The version of the OpenAPI document: 2.4.2-SNAPSHOT
6
+ The version of the OpenAPI document: 3.0.9-SNAPSHOT
7
7
  Contact: platform@cosmotech.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  """
@@ -3,7 +3,7 @@
3
3
 
4
4
  Cosmo Tech Platform API # noqa: E501
5
5
 
6
- The version of the OpenAPI document: 2.4.2-SNAPSHOT
6
+ The version of the OpenAPI document: 3.0.9-SNAPSHOT
7
7
  Contact: platform@cosmotech.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  """
@@ -3,7 +3,7 @@
3
3
 
4
4
  Cosmo Tech Platform API # noqa: E501
5
5
 
6
- The version of the OpenAPI document: 2.4.2-SNAPSHOT
6
+ The version of the OpenAPI document: 3.0.9-SNAPSHOT
7
7
  Contact: platform@cosmotech.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  """
@@ -3,7 +3,7 @@
3
3
 
4
4
  Cosmo Tech Platform API # noqa: E501
5
5
 
6
- The version of the OpenAPI document: 2.4.2-SNAPSHOT
6
+ The version of the OpenAPI document: 3.0.9-SNAPSHOT
7
7
  Contact: platform@cosmotech.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  """
@@ -33,8 +33,14 @@ from cosmotech_api.exceptions import ApiAttributeError
33
33
  def lazy_import():
34
34
  from cosmotech_api.model.dataset_compatibility import DatasetCompatibility
35
35
  from cosmotech_api.model.dataset_connector import DatasetConnector
36
+ from cosmotech_api.model.dataset_security import DatasetSecurity
37
+ from cosmotech_api.model.dataset_source_type import DatasetSourceType
38
+ from cosmotech_api.model.source_info import SourceInfo
36
39
  globals()['DatasetCompatibility'] = DatasetCompatibility
37
40
  globals()['DatasetConnector'] = DatasetConnector
41
+ globals()['DatasetSecurity'] = DatasetSecurity
42
+ globals()['DatasetSourceType'] = DatasetSourceType
43
+ globals()['SourceInfo'] = SourceInfo
38
44
 
39
45
 
40
46
  class Dataset(ModelNormal):
@@ -62,6 +68,12 @@ class Dataset(ModelNormal):
62
68
  """
63
69
 
64
70
  allowed_values = {
71
+ ('status',): {
72
+ 'DRAFT': "DRAFT",
73
+ 'PENDING': "PENDING",
74
+ 'ERROR': "ERROR",
75
+ 'READY': "READY",
76
+ },
65
77
  }
66
78
 
67
79
  validations = {
@@ -95,11 +107,21 @@ class Dataset(ModelNormal):
95
107
  'description': (str,), # noqa: E501
96
108
  'owner_id': (str,), # noqa: E501
97
109
  'organization_id': (str,), # noqa: E501
110
+ 'parent_id': (str,), # noqa: E501
111
+ 'twingraph_id': (str,), # noqa: E501
112
+ 'main': (bool,), # noqa: E501
113
+ 'creation_date': (int,), # noqa: E501
114
+ 'refresh_date': (int,), # noqa: E501
115
+ 'source_type': (DatasetSourceType,), # noqa: E501
116
+ 'source': (SourceInfo,), # noqa: E501
117
+ 'status': (str,), # noqa: E501
118
+ 'queries': ([str],), # noqa: E501
98
119
  'tags': ([str],), # noqa: E501
99
120
  'connector': (DatasetConnector,), # noqa: E501
100
121
  'fragments_ids': ([str],), # noqa: E501
101
122
  'validator_id': (str,), # noqa: E501
102
123
  'compatibility': ([DatasetCompatibility],), # noqa: E501
124
+ 'security': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
103
125
  }
104
126
 
105
127
  @cached_property
@@ -113,17 +135,29 @@ class Dataset(ModelNormal):
113
135
  'description': 'description', # noqa: E501
114
136
  'owner_id': 'ownerId', # noqa: E501
115
137
  'organization_id': 'organizationId', # noqa: E501
138
+ 'parent_id': 'parentId', # noqa: E501
139
+ 'twingraph_id': 'twingraphId', # noqa: E501
140
+ 'main': 'main', # noqa: E501
141
+ 'creation_date': 'creationDate', # noqa: E501
142
+ 'refresh_date': 'refreshDate', # noqa: E501
143
+ 'source_type': 'sourceType', # noqa: E501
144
+ 'source': 'source', # noqa: E501
145
+ 'status': 'status', # noqa: E501
146
+ 'queries': 'queries', # noqa: E501
116
147
  'tags': 'tags', # noqa: E501
117
148
  'connector': 'connector', # noqa: E501
118
149
  'fragments_ids': 'fragmentsIds', # noqa: E501
119
150
  'validator_id': 'validatorId', # noqa: E501
120
151
  'compatibility': 'compatibility', # noqa: E501
152
+ 'security': 'security', # noqa: E501
121
153
  }
122
154
 
123
155
  read_only_vars = {
124
156
  'id', # noqa: E501
125
157
  'owner_id', # noqa: E501
126
158
  'organization_id', # noqa: E501
159
+ 'creation_date', # noqa: E501
160
+ 'refresh_date', # noqa: E501
127
161
  }
128
162
 
129
163
  _composed_schemas = {}
@@ -169,11 +203,21 @@ class Dataset(ModelNormal):
169
203
  description (str): the Dataset description. [optional] # noqa: E501
170
204
  owner_id (str): the User id which own this Dataset. [optional] # noqa: E501
171
205
  organization_id (str): the Organization Id related to this Dataset. [optional] # noqa: E501
206
+ parent_id (str): the Dataset id which is the parent of this Dataset. [optional] # noqa: E501
207
+ twingraph_id (str): the twin graph id. [optional] # noqa: E501
208
+ main (bool): is this the main dataset. [optional] # noqa: E501
209
+ creation_date (int): the Dataset creation date. [optional] # noqa: E501
210
+ refresh_date (int): the last time a refresh was done. [optional] # noqa: E501
211
+ source_type (DatasetSourceType): [optional] # noqa: E501
212
+ source (SourceInfo): [optional] # noqa: E501
213
+ status (str): the Dataset status. [optional] # noqa: E501
214
+ queries ([str]): the list of queries. [optional] # noqa: E501
172
215
  tags ([str]): the list of tags. [optional] # noqa: E501
173
216
  connector (DatasetConnector): [optional] # noqa: E501
174
217
  fragments_ids ([str]): the list of other Datasets ids to compose as fragments. [optional] # noqa: E501
175
218
  validator_id (str): the validator id. [optional] # noqa: E501
176
219
  compatibility ([DatasetCompatibility]): the list of compatible Solutions versions. [optional] # noqa: E501
220
+ security (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501
177
221
  """
178
222
 
179
223
  _check_type = kwargs.pop('_check_type', True)
@@ -260,11 +304,21 @@ class Dataset(ModelNormal):
260
304
  description (str): the Dataset description. [optional] # noqa: E501
261
305
  owner_id (str): the User id which own this Dataset. [optional] # noqa: E501
262
306
  organization_id (str): the Organization Id related to this Dataset. [optional] # noqa: E501
307
+ parent_id (str): the Dataset id which is the parent of this Dataset. [optional] # noqa: E501
308
+ twingraph_id (str): the twin graph id. [optional] # noqa: E501
309
+ main (bool): is this the main dataset. [optional] # noqa: E501
310
+ creation_date (int): the Dataset creation date. [optional] # noqa: E501
311
+ refresh_date (int): the last time a refresh was done. [optional] # noqa: E501
312
+ source_type (DatasetSourceType): [optional] # noqa: E501
313
+ source (SourceInfo): [optional] # noqa: E501
314
+ status (str): the Dataset status. [optional] # noqa: E501
315
+ queries ([str]): the list of queries. [optional] # noqa: E501
263
316
  tags ([str]): the list of tags. [optional] # noqa: E501
264
317
  connector (DatasetConnector): [optional] # noqa: E501
265
318
  fragments_ids ([str]): the list of other Datasets ids to compose as fragments. [optional] # noqa: E501
266
319
  validator_id (str): the validator id. [optional] # noqa: E501
267
320
  compatibility ([DatasetCompatibility]): the list of compatible Solutions versions. [optional] # noqa: E501
321
+ security (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501
268
322
  """
269
323
 
270
324
  _check_type = kwargs.pop('_check_type', True)
@@ -0,0 +1,268 @@
1
+ """
2
+ Cosmo Tech Platform API
3
+
4
+ Cosmo Tech Platform API # noqa: E501
5
+
6
+ The version of the OpenAPI document: 3.0.9-SNAPSHOT
7
+ Contact: platform@cosmotech.com
8
+ Generated by: https://openapi-generator.tech
9
+ """
10
+
11
+
12
+ import re # noqa: F401
13
+ import sys # noqa: F401
14
+
15
+ from cosmotech_api.model_utils import ( # noqa: F401
16
+ ApiTypeError,
17
+ ModelComposed,
18
+ ModelNormal,
19
+ ModelSimple,
20
+ cached_property,
21
+ change_keys_js_to_python,
22
+ convert_js_args_to_python_args,
23
+ date,
24
+ datetime,
25
+ file_type,
26
+ none_type,
27
+ validate_get_composed_info,
28
+ OpenApiModel
29
+ )
30
+ from cosmotech_api.exceptions import ApiAttributeError
31
+
32
+
33
+
34
+ class DatasetAccessControl(ModelNormal):
35
+ """NOTE: This class is auto generated by OpenAPI Generator.
36
+ Ref: https://openapi-generator.tech
37
+
38
+ Do not edit the class manually.
39
+
40
+ Attributes:
41
+ allowed_values (dict): The key is the tuple path to the attribute
42
+ and the for var_name this is (var_name,). The value is a dict
43
+ with a capitalized key describing the allowed value and an allowed
44
+ value. These dicts store the allowed enum values.
45
+ attribute_map (dict): The key is attribute name
46
+ and the value is json key in definition.
47
+ discriminator_value_class_map (dict): A dict to go from the discriminator
48
+ variable value to the discriminator class name.
49
+ validations (dict): The key is the tuple path to the attribute
50
+ and the for var_name this is (var_name,). The value is a dict
51
+ that stores validations for max_length, min_length, max_items,
52
+ min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
53
+ inclusive_minimum, and regex.
54
+ additional_properties_type (tuple): A tuple of classes accepted
55
+ as additional properties values.
56
+ """
57
+
58
+ allowed_values = {
59
+ }
60
+
61
+ validations = {
62
+ }
63
+
64
+ @cached_property
65
+ def additional_properties_type():
66
+ """
67
+ This must be a method because a model may have properties that are
68
+ of type self, this must run after the class is loaded
69
+ """
70
+ return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
71
+
72
+ _nullable = False
73
+
74
+ @cached_property
75
+ def openapi_types():
76
+ """
77
+ This must be a method because a model may have properties that are
78
+ of type self, this must run after the class is loaded
79
+
80
+ Returns
81
+ openapi_types (dict): The key is attribute name
82
+ and the value is attribute type.
83
+ """
84
+ return {
85
+ 'id': (str,), # noqa: E501
86
+ 'role': (str,), # noqa: E501
87
+ }
88
+
89
+ @cached_property
90
+ def discriminator():
91
+ return None
92
+
93
+
94
+ attribute_map = {
95
+ 'id': 'id', # noqa: E501
96
+ 'role': 'role', # noqa: E501
97
+ }
98
+
99
+ read_only_vars = {
100
+ }
101
+
102
+ _composed_schemas = {}
103
+
104
+ @classmethod
105
+ @convert_js_args_to_python_args
106
+ def _from_openapi_data(cls, id, role, *args, **kwargs): # noqa: E501
107
+ """DatasetAccessControl - a model defined in OpenAPI
108
+
109
+ Args:
110
+ id (str): the identity id
111
+ role (str): a role
112
+
113
+ Keyword Args:
114
+ _check_type (bool): if True, values for parameters in openapi_types
115
+ will be type checked and a TypeError will be
116
+ raised if the wrong type is input.
117
+ Defaults to True
118
+ _path_to_item (tuple/list): This is a list of keys or values to
119
+ drill down to the model in received_data
120
+ when deserializing a response
121
+ _spec_property_naming (bool): True if the variable names in the input data
122
+ are serialized names, as specified in the OpenAPI document.
123
+ False if the variable names in the input data
124
+ are pythonic names, e.g. snake case (default)
125
+ _configuration (Configuration): the instance to use when
126
+ deserializing a file_type parameter.
127
+ If passed, type conversion is attempted
128
+ If omitted no type conversion is done.
129
+ _visited_composed_classes (tuple): This stores a tuple of
130
+ classes that we have traveled through so that
131
+ if we see that class again we will not use its
132
+ discriminator again.
133
+ When traveling through a discriminator, the
134
+ composed schema that is
135
+ is traveled through is added to this set.
136
+ For example if Animal has a discriminator
137
+ petType and we pass in "Dog", and the class Dog
138
+ allOf includes Animal, we move through Animal
139
+ once using the discriminator, and pick Dog.
140
+ Then in Dog, we will make an instance of the
141
+ Animal class but this time we won't travel
142
+ through its discriminator because we passed in
143
+ _visited_composed_classes = (Animal,)
144
+ """
145
+
146
+ _check_type = kwargs.pop('_check_type', True)
147
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
148
+ _path_to_item = kwargs.pop('_path_to_item', ())
149
+ _configuration = kwargs.pop('_configuration', None)
150
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
151
+
152
+ self = super(OpenApiModel, cls).__new__(cls)
153
+
154
+ if args:
155
+ raise ApiTypeError(
156
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
157
+ args,
158
+ self.__class__.__name__,
159
+ ),
160
+ path_to_item=_path_to_item,
161
+ valid_classes=(self.__class__,),
162
+ )
163
+
164
+ self._data_store = {}
165
+ self._check_type = _check_type
166
+ self._spec_property_naming = _spec_property_naming
167
+ self._path_to_item = _path_to_item
168
+ self._configuration = _configuration
169
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
170
+
171
+ self.id = id
172
+ self.role = role
173
+ for var_name, var_value in kwargs.items():
174
+ if var_name not in self.attribute_map and \
175
+ self._configuration is not None and \
176
+ self._configuration.discard_unknown_keys and \
177
+ self.additional_properties_type is None:
178
+ # discard variable.
179
+ continue
180
+ setattr(self, var_name, var_value)
181
+ return self
182
+
183
+ required_properties = set([
184
+ '_data_store',
185
+ '_check_type',
186
+ '_spec_property_naming',
187
+ '_path_to_item',
188
+ '_configuration',
189
+ '_visited_composed_classes',
190
+ ])
191
+
192
+ @convert_js_args_to_python_args
193
+ def __init__(self, id, role, *args, **kwargs): # noqa: E501
194
+ """DatasetAccessControl - a model defined in OpenAPI
195
+
196
+ Args:
197
+ id (str): the identity id
198
+ role (str): a role
199
+
200
+ Keyword Args:
201
+ _check_type (bool): if True, values for parameters in openapi_types
202
+ will be type checked and a TypeError will be
203
+ raised if the wrong type is input.
204
+ Defaults to True
205
+ _path_to_item (tuple/list): This is a list of keys or values to
206
+ drill down to the model in received_data
207
+ when deserializing a response
208
+ _spec_property_naming (bool): True if the variable names in the input data
209
+ are serialized names, as specified in the OpenAPI document.
210
+ False if the variable names in the input data
211
+ are pythonic names, e.g. snake case (default)
212
+ _configuration (Configuration): the instance to use when
213
+ deserializing a file_type parameter.
214
+ If passed, type conversion is attempted
215
+ If omitted no type conversion is done.
216
+ _visited_composed_classes (tuple): This stores a tuple of
217
+ classes that we have traveled through so that
218
+ if we see that class again we will not use its
219
+ discriminator again.
220
+ When traveling through a discriminator, the
221
+ composed schema that is
222
+ is traveled through is added to this set.
223
+ For example if Animal has a discriminator
224
+ petType and we pass in "Dog", and the class Dog
225
+ allOf includes Animal, we move through Animal
226
+ once using the discriminator, and pick Dog.
227
+ Then in Dog, we will make an instance of the
228
+ Animal class but this time we won't travel
229
+ through its discriminator because we passed in
230
+ _visited_composed_classes = (Animal,)
231
+ """
232
+
233
+ _check_type = kwargs.pop('_check_type', True)
234
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
235
+ _path_to_item = kwargs.pop('_path_to_item', ())
236
+ _configuration = kwargs.pop('_configuration', None)
237
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
238
+
239
+ if args:
240
+ raise ApiTypeError(
241
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
242
+ args,
243
+ self.__class__.__name__,
244
+ ),
245
+ path_to_item=_path_to_item,
246
+ valid_classes=(self.__class__,),
247
+ )
248
+
249
+ self._data_store = {}
250
+ self._check_type = _check_type
251
+ self._spec_property_naming = _spec_property_naming
252
+ self._path_to_item = _path_to_item
253
+ self._configuration = _configuration
254
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
255
+
256
+ self.id = id
257
+ self.role = role
258
+ for var_name, var_value in kwargs.items():
259
+ if var_name not in self.attribute_map and \
260
+ self._configuration is not None and \
261
+ self._configuration.discard_unknown_keys and \
262
+ self.additional_properties_type is None:
263
+ # discard variable.
264
+ continue
265
+ setattr(self, var_name, var_value)
266
+ if var_name in self.read_only_vars:
267
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
268
+ f"class with read only attributes.")