terra-scientific-pipelines-service-api-client 1.0.15__py3-none-any.whl → 1.0.16__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.0.15"
17
+ __version__ = "1.0.16"
18
18
 
19
19
  # import apis into sdk package
20
20
  from teaspoons_client.api.admin_api import AdminApi
@@ -48,6 +48,7 @@ from teaspoons_client.models.job_control import JobControl
48
48
  from teaspoons_client.models.job_report import JobReport
49
49
  from teaspoons_client.models.job_result import JobResult
50
50
  from teaspoons_client.models.pipeline import Pipeline
51
+ from teaspoons_client.models.pipeline_quota import PipelineQuota
51
52
  from teaspoons_client.models.pipeline_run import PipelineRun
52
53
  from teaspoons_client.models.pipeline_run_report import PipelineRunReport
53
54
  from teaspoons_client.models.pipeline_user_provided_input_definition import PipelineUserProvidedInputDefinition
@@ -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.0.15/python'
93
+ self.user_agent = 'terra-scientific-pipelines-service-api-client/1.0.16/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.0.15".\
402
+ "SDK Package Version: 1.0.16".\
403
403
  format(env=sys.platform, pyversion=sys.version)
404
404
 
405
405
  def get_host_settings(self):
@@ -26,6 +26,7 @@ from teaspoons_client.models.job_control import JobControl
26
26
  from teaspoons_client.models.job_report import JobReport
27
27
  from teaspoons_client.models.job_result import JobResult
28
28
  from teaspoons_client.models.pipeline import Pipeline
29
+ from teaspoons_client.models.pipeline_quota import PipelineQuota
29
30
  from teaspoons_client.models.pipeline_run import PipelineRun
30
31
  from teaspoons_client.models.pipeline_run_report import PipelineRunReport
31
32
  from teaspoons_client.models.pipeline_user_provided_input_definition import PipelineUserProvidedInputDefinition
@@ -0,0 +1,93 @@
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, StrictInt, StrictStr
21
+ from typing import Any, ClassVar, Dict, List
22
+ from typing import Optional, Set
23
+ from typing_extensions import Self
24
+
25
+ class PipelineQuota(BaseModel):
26
+ """
27
+ The quota for the pipeline.
28
+ """ # noqa: E501
29
+ pipeline_name: StrictStr = Field(description="The identifier string for the Pipeline. ", alias="pipelineName")
30
+ default_quota: StrictInt = Field(description="Default quota for the pipeline. ", alias="defaultQuota")
31
+ min_quota_consumed: StrictInt = Field(description="The minimum quota consumed per run. ", alias="minQuotaConsumed")
32
+ quota_units: StrictStr = Field(description="Units for pipeline quota ", alias="quotaUnits")
33
+ __properties: ClassVar[List[str]] = ["pipelineName", "defaultQuota", "minQuotaConsumed", "quotaUnits"]
34
+
35
+ model_config = ConfigDict(
36
+ populate_by_name=True,
37
+ validate_assignment=True,
38
+ protected_namespaces=(),
39
+ )
40
+
41
+
42
+ def to_str(self) -> str:
43
+ """Returns the string representation of the model using alias"""
44
+ return pprint.pformat(self.model_dump(by_alias=True))
45
+
46
+ def to_json(self) -> str:
47
+ """Returns the JSON representation of the model using alias"""
48
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
49
+ return json.dumps(self.to_dict())
50
+
51
+ @classmethod
52
+ def from_json(cls, json_str: str) -> Optional[Self]:
53
+ """Create an instance of PipelineQuota from a JSON string"""
54
+ return cls.from_dict(json.loads(json_str))
55
+
56
+ def to_dict(self) -> Dict[str, Any]:
57
+ """Return the dictionary representation of the model using alias.
58
+
59
+ This has the following differences from calling pydantic's
60
+ `self.model_dump(by_alias=True)`:
61
+
62
+ * `None` is only added to the output dict for nullable fields that
63
+ were set at model initialization. Other fields with value `None`
64
+ are ignored.
65
+ """
66
+ excluded_fields: Set[str] = set([
67
+ ])
68
+
69
+ _dict = self.model_dump(
70
+ by_alias=True,
71
+ exclude=excluded_fields,
72
+ exclude_none=True,
73
+ )
74
+ return _dict
75
+
76
+ @classmethod
77
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
78
+ """Create an instance of PipelineQuota from a dict"""
79
+ if obj is None:
80
+ return None
81
+
82
+ if not isinstance(obj, dict):
83
+ return cls.model_validate(obj)
84
+
85
+ _obj = cls.model_validate({
86
+ "pipelineName": obj.get("pipelineName"),
87
+ "defaultQuota": obj.get("defaultQuota"),
88
+ "minQuotaConsumed": obj.get("minQuotaConsumed"),
89
+ "quotaUnits": obj.get("quotaUnits")
90
+ })
91
+ return _obj
92
+
93
+
@@ -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_quota import PipelineQuota
22
23
  from teaspoons_client.models.pipeline_user_provided_input_definition import PipelineUserProvidedInputDefinition
23
24
  from typing import Optional, Set
24
25
  from typing_extensions import Self
@@ -33,7 +34,8 @@ class PipelineWithDetails(BaseModel):
33
34
  description: StrictStr = Field(description="The description for the Pipeline. ")
34
35
  type: StrictStr = Field(description="The general type of the Pipeline. ")
35
36
  inputs: List[PipelineUserProvidedInputDefinition] = Field(description="A list of user-provided input fields and specifications for the Pipeline. ")
36
- __properties: ClassVar[List[str]] = ["pipelineName", "displayName", "pipelineVersion", "description", "type", "inputs"]
37
+ pipeline_quota: PipelineQuota = Field(alias="pipelineQuota")
38
+ __properties: ClassVar[List[str]] = ["pipelineName", "displayName", "pipelineVersion", "description", "type", "inputs", "pipelineQuota"]
37
39
 
38
40
  model_config = ConfigDict(
39
41
  populate_by_name=True,
@@ -81,6 +83,9 @@ class PipelineWithDetails(BaseModel):
81
83
  if _item_inputs:
82
84
  _items.append(_item_inputs.to_dict())
83
85
  _dict['inputs'] = _items
86
+ # override the default output from pydantic by calling `to_dict()` of pipeline_quota
87
+ if self.pipeline_quota:
88
+ _dict['pipelineQuota'] = self.pipeline_quota.to_dict()
84
89
  return _dict
85
90
 
86
91
  @classmethod
@@ -98,7 +103,8 @@ class PipelineWithDetails(BaseModel):
98
103
  "pipelineVersion": obj.get("pipelineVersion"),
99
104
  "description": obj.get("description"),
100
105
  "type": obj.get("type"),
101
- "inputs": [PipelineUserProvidedInputDefinition.from_dict(_item) for _item in obj["inputs"]] if obj.get("inputs") is not None else None
106
+ "inputs": [PipelineUserProvidedInputDefinition.from_dict(_item) for _item in obj["inputs"]] if obj.get("inputs") is not None else None,
107
+ "pipelineQuota": PipelineQuota.from_dict(obj["pipelineQuota"]) if obj.get("pipelineQuota") is not None else None
102
108
  })
103
109
  return _obj
104
110
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: terra-scientific-pipelines-service-api-client
3
- Version: 1.0.15
3
+ Version: 1.0.16
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=RKcpCzWXQYTFUK-TT_KGQa4L2IGv9S88RIyfKY1-b0I,3227
2
- teaspoons_client/api_client.py,sha256=UYpVgAbkZbEXe5YHkgZhG1tUcT0ciKDccRWVHg-hxDY,27535
1
+ teaspoons_client/__init__.py,sha256=WPvNR8FKXzba5CKrr4_xtUDuT_tOXU7vr1OOBK6f88g,3292
2
+ teaspoons_client/api_client.py,sha256=sSM1Qtq70EpLI0tKi6fxwUYBOsRPrrHHSz41P818QxU,27535
3
3
  teaspoons_client/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
4
- teaspoons_client/configuration.py,sha256=2gSSKb1xvSiaWPdGrj-UKhpZ6AoMJ3eug2iBlrP7nnE,15585
4
+ teaspoons_client/configuration.py,sha256=gHzc4DkxflKotrz6XV9THIQAENAVrrPwZxseulEDHAU,15585
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=rCtcJWw5Jen1uJva-ZltgVFhvMzY0wz
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=RkuzKPGkKpqd0tn-M5JMnedpVKv2cNnkFt36Dd9mfug,2327
15
+ teaspoons_client/models/__init__.py,sha256=wN0lCWLQmRyD0TXVahsgcOQI2ktY28ZMOpP8tQlp-eo,2392
16
16
  teaspoons_client/models/admin_pipeline.py,sha256=mBrSi3XCGifa2ZF02SdSzoCjfsqoXerimwlqkC6yHAc,4551
17
17
  teaspoons_client/models/admin_quota.py,sha256=X0Pll_9JWs1VmmElic8m7-pN6PCIRnxc1nyYyWjlK0w,3245
18
18
  teaspoons_client/models/async_pipeline_run_response.py,sha256=c_Nj3tC41y2G0pqvVwzKn_bVE6mgA2h_Aisp6315zSE,3899
@@ -25,10 +25,11 @@ teaspoons_client/models/job_control.py,sha256=PkTmAKmm6JXxu7EUfa02UNdBaxoZvo0v0T
25
25
  teaspoons_client/models/job_report.py,sha256=q5ijrPgVmGqXjrTZKzEyOswUlWKsMD6v-oTFDUUdMRg,3974
26
26
  teaspoons_client/models/job_result.py,sha256=WWZRoqmTuh5ZP9ugMENGZUx5zrzADHx9O0m2Bhh--yg,3337
27
27
  teaspoons_client/models/pipeline.py,sha256=KiEoZb6w9MMTAr1-Scr70XBNDr7eox69g9ZLa8ORRLE,3224
28
+ teaspoons_client/models/pipeline_quota.py,sha256=jKXNhWM5gNKMwqOxAkQ0skpKSL2Jb1Ou8xNwtAlPWS0,3183
28
29
  teaspoons_client/models/pipeline_run.py,sha256=QtRPKo6RYgwCE4b6rCBcUkyxu2RR6yeuNaCF-CBhrpE,3833
29
30
  teaspoons_client/models/pipeline_run_report.py,sha256=ul4o41vBFVLAiLyHxaToqnsVdXQRo16wEY8V5rjaMP8,3636
30
31
  teaspoons_client/models/pipeline_user_provided_input_definition.py,sha256=b1W1Ja9PnaEjZHV3MoW1ylisPqnSwFO9bVXrkySOzqQ,3252
31
- teaspoons_client/models/pipeline_with_details.py,sha256=YcihzByz3nk6z7pnPDHYSN7Qm2iuT98Yrit_b37qdao,4147
32
+ teaspoons_client/models/pipeline_with_details.py,sha256=IpAUDmJtHIUffJhC61SPvcPPKuEFP7u4DhvCNY0ci7A,4612
32
33
  teaspoons_client/models/prepare_pipeline_run_request_body.py,sha256=w9vX95YfdBM26oNM06LiiyWWVz_WVl6UCBxnfJTTM10,3558
33
34
  teaspoons_client/models/prepare_pipeline_run_response.py,sha256=1lSm1DAgTfPlBIEXkhnciAgMBY0eC3sjlEEJOY7MtyA,2890
34
35
  teaspoons_client/models/quota_with_details.py,sha256=wO1xczv8PxCIEs_1r9Uz5BuVdm1nld1SfvpIJNB2how,3225
@@ -38,7 +39,7 @@ teaspoons_client/models/system_status_systems_value.py,sha256=lKuq0aDpRne858ta4g
38
39
  teaspoons_client/models/update_pipeline_request_body.py,sha256=DJeqxOAwDQdQDApDQdGbASbDtsb2hqRSfuV1F7yrL6o,3232
39
40
  teaspoons_client/models/update_quota_limit_request_body.py,sha256=sOCNcTbsdTJisAn9YxHMIWUvm_UrxV1HZ5EziIUOgIk,2731
40
41
  teaspoons_client/models/version_properties.py,sha256=pnx1pduz4vnw-wx_sdASU_-zRqE1wf3JdNm4OLDJ2i8,2888
41
- terra_scientific_pipelines_service_api_client-1.0.15.dist-info/METADATA,sha256=Wr2RcQaT2-wCRoTlnj9ZVAH_DotJpR9ftQb5zDIQlz8,740
42
- terra_scientific_pipelines_service_api_client-1.0.15.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
43
- terra_scientific_pipelines_service_api_client-1.0.15.dist-info/top_level.txt,sha256=DZYs7jBZ-_bWvnXrtK1TbtfhltgkuPWTRo1Ei7Uv9Jc,17
44
- terra_scientific_pipelines_service_api_client-1.0.15.dist-info/RECORD,,
42
+ terra_scientific_pipelines_service_api_client-1.0.16.dist-info/METADATA,sha256=d8hr7d1YPL63K8nD6em9m0_ZYla93rbPOouI3VWPUqI,740
43
+ terra_scientific_pipelines_service_api_client-1.0.16.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
44
+ terra_scientific_pipelines_service_api_client-1.0.16.dist-info/top_level.txt,sha256=DZYs7jBZ-_bWvnXrtK1TbtfhltgkuPWTRo1Ei7Uv9Jc,17
45
+ terra_scientific_pipelines_service_api_client-1.0.16.dist-info/RECORD,,