terra-scientific-pipelines-service-api-client 1.2.1__py3-none-any.whl → 1.3.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of terra-scientific-pipelines-service-api-client might be problematic. Click here for more details.

@@ -14,7 +14,7 @@
14
14
  """ # noqa: E501
15
15
 
16
16
 
17
- __version__ = "1.2.1"
17
+ __version__ = "1.3.0"
18
18
 
19
19
  # import apis into sdk package
20
20
  from teaspoons_client.api.admin_api import AdminApi
@@ -49,6 +49,7 @@ from teaspoons_client.models.job_control import JobControl
49
49
  from teaspoons_client.models.job_report import JobReport
50
50
  from teaspoons_client.models.job_result import JobResult
51
51
  from teaspoons_client.models.pipeline import Pipeline
52
+ from teaspoons_client.models.pipeline_output_definition import PipelineOutputDefinition
52
53
  from teaspoons_client.models.pipeline_quota import PipelineQuota
53
54
  from teaspoons_client.models.pipeline_run import PipelineRun
54
55
  from teaspoons_client.models.pipeline_run_report import PipelineRunReport
@@ -90,7 +90,7 @@ class ApiClient:
90
90
  self.default_headers[header_name] = header_value
91
91
  self.cookie = cookie
92
92
  # Set default User-Agent.
93
- self.user_agent = 'terra-scientific-pipelines-service-api-client/1.2.1/python'
93
+ self.user_agent = 'terra-scientific-pipelines-service-api-client/1.3.0/python'
94
94
  self.client_side_validation = configuration.client_side_validation
95
95
 
96
96
  def __enter__(self):
@@ -399,7 +399,7 @@ class Configuration:
399
399
  "OS: {env}\n"\
400
400
  "Python Version: {pyversion}\n"\
401
401
  "Version of the API: 1.0.0\n"\
402
- "SDK Package Version: 1.2.1".\
402
+ "SDK Package Version: 1.3.0".\
403
403
  format(env=sys.platform, pyversion=sys.version)
404
404
 
405
405
  def get_host_settings(self):
@@ -27,6 +27,7 @@ from teaspoons_client.models.job_control import JobControl
27
27
  from teaspoons_client.models.job_report import JobReport
28
28
  from teaspoons_client.models.job_result import JobResult
29
29
  from teaspoons_client.models.pipeline import Pipeline
30
+ from teaspoons_client.models.pipeline_output_definition import PipelineOutputDefinition
30
31
  from teaspoons_client.models.pipeline_quota import PipelineQuota
31
32
  from teaspoons_client.models.pipeline_run import PipelineRun
32
33
  from teaspoons_client.models.pipeline_run_report import PipelineRunReport
@@ -0,0 +1,89 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Terra Scientific Pipelines Service
5
+
6
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+
8
+ The version of the OpenAPI document: 1.0.0
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, Field, 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 PipelineOutputDefinition(BaseModel):
26
+ """
27
+ An output field and its specifications for the Pipeline.
28
+ """ # noqa: E501
29
+ name: Optional[StrictStr] = Field(default=None, description="The name of the output field. ")
30
+ type: Optional[StrictStr] = Field(default=None, description="The type of the output field. ")
31
+ __properties: ClassVar[List[str]] = ["name", "type"]
32
+
33
+ model_config = ConfigDict(
34
+ populate_by_name=True,
35
+ validate_assignment=True,
36
+ protected_namespaces=(),
37
+ )
38
+
39
+
40
+ def to_str(self) -> str:
41
+ """Returns the string representation of the model using alias"""
42
+ return pprint.pformat(self.model_dump(by_alias=True))
43
+
44
+ def to_json(self) -> str:
45
+ """Returns the JSON representation of the model using alias"""
46
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
47
+ return json.dumps(self.to_dict())
48
+
49
+ @classmethod
50
+ def from_json(cls, json_str: str) -> Optional[Self]:
51
+ """Create an instance of PipelineOutputDefinition from a JSON string"""
52
+ return cls.from_dict(json.loads(json_str))
53
+
54
+ def to_dict(self) -> Dict[str, Any]:
55
+ """Return the dictionary representation of the model using alias.
56
+
57
+ This has the following differences from calling pydantic's
58
+ `self.model_dump(by_alias=True)`:
59
+
60
+ * `None` is only added to the output dict for nullable fields that
61
+ were set at model initialization. Other fields with value `None`
62
+ are ignored.
63
+ """
64
+ excluded_fields: Set[str] = set([
65
+ ])
66
+
67
+ _dict = self.model_dump(
68
+ by_alias=True,
69
+ exclude=excluded_fields,
70
+ exclude_none=True,
71
+ )
72
+ return _dict
73
+
74
+ @classmethod
75
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
76
+ """Create an instance of PipelineOutputDefinition from a dict"""
77
+ if obj is None:
78
+ return None
79
+
80
+ if not isinstance(obj, dict):
81
+ return cls.model_validate(obj)
82
+
83
+ _obj = cls.model_validate({
84
+ "name": obj.get("name"),
85
+ "type": obj.get("type")
86
+ })
87
+ return _obj
88
+
89
+
@@ -19,6 +19,7 @@ import json
19
19
 
20
20
  from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
21
21
  from typing import Any, ClassVar, Dict, List
22
+ from teaspoons_client.models.pipeline_output_definition import PipelineOutputDefinition
22
23
  from teaspoons_client.models.pipeline_quota import PipelineQuota
23
24
  from teaspoons_client.models.pipeline_user_provided_input_definition import PipelineUserProvidedInputDefinition
24
25
  from typing import Optional, Set
@@ -34,8 +35,9 @@ class PipelineWithDetails(BaseModel):
34
35
  description: StrictStr = Field(description="The description for the Pipeline. ")
35
36
  type: StrictStr = Field(description="The general type of the Pipeline. ")
36
37
  inputs: List[PipelineUserProvidedInputDefinition] = Field(description="A list of user-provided input fields and specifications for the Pipeline. ")
38
+ outputs: List[PipelineOutputDefinition] = Field(description="A list of output fields and specifications for the Pipeline. ")
37
39
  pipeline_quota: PipelineQuota = Field(alias="pipelineQuota")
38
- __properties: ClassVar[List[str]] = ["pipelineName", "displayName", "pipelineVersion", "description", "type", "inputs", "pipelineQuota"]
40
+ __properties: ClassVar[List[str]] = ["pipelineName", "displayName", "pipelineVersion", "description", "type", "inputs", "outputs", "pipelineQuota"]
39
41
 
40
42
  model_config = ConfigDict(
41
43
  populate_by_name=True,
@@ -83,6 +85,13 @@ class PipelineWithDetails(BaseModel):
83
85
  if _item_inputs:
84
86
  _items.append(_item_inputs.to_dict())
85
87
  _dict['inputs'] = _items
88
+ # override the default output from pydantic by calling `to_dict()` of each item in outputs (list)
89
+ _items = []
90
+ if self.outputs:
91
+ for _item_outputs in self.outputs:
92
+ if _item_outputs:
93
+ _items.append(_item_outputs.to_dict())
94
+ _dict['outputs'] = _items
86
95
  # override the default output from pydantic by calling `to_dict()` of pipeline_quota
87
96
  if self.pipeline_quota:
88
97
  _dict['pipelineQuota'] = self.pipeline_quota.to_dict()
@@ -104,6 +113,7 @@ class PipelineWithDetails(BaseModel):
104
113
  "description": obj.get("description"),
105
114
  "type": obj.get("type"),
106
115
  "inputs": [PipelineUserProvidedInputDefinition.from_dict(_item) for _item in obj["inputs"]] if obj.get("inputs") is not None else None,
116
+ "outputs": [PipelineOutputDefinition.from_dict(_item) for _item in obj["outputs"]] if obj.get("outputs") is not None else None,
107
117
  "pipelineQuota": PipelineQuota.from_dict(obj["pipelineQuota"]) if obj.get("pipelineQuota") is not None else None
108
118
  })
109
119
  return _obj
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: terra-scientific-pipelines-service-api-client
3
- Version: 1.2.1
3
+ Version: 1.3.0
4
4
  Summary: Terra Scientific Pipelines Service
5
5
  Home-page:
6
6
  Author: OpenAPI Generator community
@@ -1,7 +1,7 @@
1
- teaspoons_client/__init__.py,sha256=Ax1X4wULJy4-BsZzKBILrUdWfYIFmYWEhNSJs3jeKFA,3383
2
- teaspoons_client/api_client.py,sha256=RPUxuvUd-zoXWDlrJUbfYE6Jc21hUbEIuINc3JyvBmM,27534
1
+ teaspoons_client/__init__.py,sha256=LUGQw5ZWd6d7pG904PJZPZ075BHgV-7R8I5zTEqVavY,3471
2
+ teaspoons_client/api_client.py,sha256=VFHYdRyADFQKtViT7XYy3tgpjzei5MqXKsMxUkW_6RM,27534
3
3
  teaspoons_client/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
4
- teaspoons_client/configuration.py,sha256=Y553jFLmHjYqIQ65oyFp-pVEFtVlrDKJe9TP0cuXqso,15584
4
+ teaspoons_client/configuration.py,sha256=C9-K66Y3VNxH4eUsDc1JDSL09ZaKSKWg_UsLhxCj9Yg,15584
5
5
  teaspoons_client/exceptions.py,sha256=54himL4zduna12UfdUqGb8LEVunPChzEvjvPw0DjWjk,5999
6
6
  teaspoons_client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  teaspoons_client/rest.py,sha256=wRFTSvE7v-UjFP1_9oozGWnt8ERYW-PReLkFJZHiWYI,9441
@@ -12,7 +12,7 @@ teaspoons_client/api/pipeline_runs_api.py,sha256=zp0Nuh_XHCzR54DoV-egeg7Jah2Ydb2
12
12
  teaspoons_client/api/pipelines_api.py,sha256=9PZ_qSMnZK4bbO-oCxLub73KJ7kLxanjkMtjXMjUOGA,22868
13
13
  teaspoons_client/api/public_api.py,sha256=cYrfhy7epadJPWvXO7xvjhyNRH72bKVXtUmjefezbl0,19743
14
14
  teaspoons_client/api/quotas_api.py,sha256=fU2ZE0B-5ELvkNdXHTWCw0asfLDNK4WetlKVvpWETmI,11862
15
- teaspoons_client/models/__init__.py,sha256=DkvDIv3RjlhAoeREtdhGwo1P7uWw2fD32nE0cJ_2RzI,2484
15
+ teaspoons_client/models/__init__.py,sha256=RKny69fz47PKhUgVGaM5aNq20LIuMw5MXDeHQMe-AZ8,2572
16
16
  teaspoons_client/models/admin_pipeline.py,sha256=mBrSi3XCGifa2ZF02SdSzoCjfsqoXerimwlqkC6yHAc,4551
17
17
  teaspoons_client/models/admin_quota.py,sha256=havkt2BGtU9zr1mSAiFidyCGjtVbJC4Jr2_f9e3vWWw,3252
18
18
  teaspoons_client/models/async_pipeline_run_response.py,sha256=c_Nj3tC41y2G0pqvVwzKn_bVE6mgA2h_Aisp6315zSE,3899
@@ -26,11 +26,12 @@ teaspoons_client/models/job_control.py,sha256=PkTmAKmm6JXxu7EUfa02UNdBaxoZvo0v0T
26
26
  teaspoons_client/models/job_report.py,sha256=q5ijrPgVmGqXjrTZKzEyOswUlWKsMD6v-oTFDUUdMRg,3974
27
27
  teaspoons_client/models/job_result.py,sha256=WWZRoqmTuh5ZP9ugMENGZUx5zrzADHx9O0m2Bhh--yg,3337
28
28
  teaspoons_client/models/pipeline.py,sha256=KiEoZb6w9MMTAr1-Scr70XBNDr7eox69g9ZLa8ORRLE,3224
29
+ teaspoons_client/models/pipeline_output_definition.py,sha256=i4_C-twohgay8xqwN6IgjwF6MqqInnosH-9MPcKwxx0,2810
29
30
  teaspoons_client/models/pipeline_quota.py,sha256=jKXNhWM5gNKMwqOxAkQ0skpKSL2Jb1Ou8xNwtAlPWS0,3183
30
31
  teaspoons_client/models/pipeline_run.py,sha256=C5T1E90oTNeGFJcllQSsqQnhceNsPf-wdZgZ0TWADE0,4071
31
32
  teaspoons_client/models/pipeline_run_report.py,sha256=U_iDIRq-BjhYNqWmRztcWyozuJLtVoWrdBlU_T8mbug,3843
32
33
  teaspoons_client/models/pipeline_user_provided_input_definition.py,sha256=b1W1Ja9PnaEjZHV3MoW1ylisPqnSwFO9bVXrkySOzqQ,3252
33
- teaspoons_client/models/pipeline_with_details.py,sha256=IpAUDmJtHIUffJhC61SPvcPPKuEFP7u4DhvCNY0ci7A,4612
34
+ teaspoons_client/models/pipeline_with_details.py,sha256=yObiGAV_vIp6rvMZ1pPK-ieaxDkWfI_mVsuzWn-4lAc,5309
34
35
  teaspoons_client/models/prepare_pipeline_run_request_body.py,sha256=mW6L2AWwt-h4MRd7sMoo1GmePf19JRIFpO6ltDO_548,3897
35
36
  teaspoons_client/models/prepare_pipeline_run_response.py,sha256=1lSm1DAgTfPlBIEXkhnciAgMBY0eC3sjlEEJOY7MtyA,2890
36
37
  teaspoons_client/models/quota_with_details.py,sha256=04dsaUX3U04nme7loG3EwJHLD0BJmCcMXTpPcOnb5tQ,3232
@@ -40,7 +41,7 @@ teaspoons_client/models/system_status_systems_value.py,sha256=lKuq0aDpRne858ta4g
40
41
  teaspoons_client/models/update_pipeline_request_body.py,sha256=DJeqxOAwDQdQDApDQdGbASbDtsb2hqRSfuV1F7yrL6o,3232
41
42
  teaspoons_client/models/update_quota_limit_request_body.py,sha256=sOCNcTbsdTJisAn9YxHMIWUvm_UrxV1HZ5EziIUOgIk,2731
42
43
  teaspoons_client/models/version_properties.py,sha256=pnx1pduz4vnw-wx_sdASU_-zRqE1wf3JdNm4OLDJ2i8,2888
43
- terra_scientific_pipelines_service_api_client-1.2.1.dist-info/METADATA,sha256=95z2XBa1jGu0HlixejQtc4XgU52qEv6ymb4TEI-gR8o,739
44
- terra_scientific_pipelines_service_api_client-1.2.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
45
- terra_scientific_pipelines_service_api_client-1.2.1.dist-info/top_level.txt,sha256=DZYs7jBZ-_bWvnXrtK1TbtfhltgkuPWTRo1Ei7Uv9Jc,17
46
- terra_scientific_pipelines_service_api_client-1.2.1.dist-info/RECORD,,
44
+ terra_scientific_pipelines_service_api_client-1.3.0.dist-info/METADATA,sha256=a-2oho72sW01NczyMBYDr_0yqINkkVUUdfVk4p-9p8g,739
45
+ terra_scientific_pipelines_service_api_client-1.3.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
46
+ terra_scientific_pipelines_service_api_client-1.3.0.dist-info/top_level.txt,sha256=DZYs7jBZ-_bWvnXrtK1TbtfhltgkuPWTRo1Ei7Uv9Jc,17
47
+ terra_scientific_pipelines_service_api_client-1.3.0.dist-info/RECORD,,