terra-scientific-pipelines-service-api-client 1.0.15__tar.gz → 1.0.17__tar.gz

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.

Files changed (83) hide show
  1. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/PKG-INFO +1 -1
  2. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/README.md +2 -1
  3. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/pyproject.toml +1 -1
  4. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/setup.py +1 -1
  5. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/teaspoons_client/__init__.py +2 -1
  6. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/teaspoons_client/api_client.py +1 -1
  7. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/teaspoons_client/configuration.py +1 -1
  8. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/teaspoons_client/models/__init__.py +1 -0
  9. terra_scientific_pipelines_service_api_client-1.0.17/teaspoons_client/models/pipeline_quota.py +93 -0
  10. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/teaspoons_client/models/pipeline_run.py +3 -1
  11. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/teaspoons_client/models/pipeline_with_details.py +8 -2
  12. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/terra_scientific_pipelines_service_api_client.egg-info/PKG-INFO +1 -1
  13. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/terra_scientific_pipelines_service_api_client.egg-info/SOURCES.txt +2 -0
  14. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/test/test_get_pipeline_runs_response.py +1 -0
  15. terra_scientific_pipelines_service_api_client-1.0.17/test/test_pipeline_quota.py +58 -0
  16. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/test/test_pipeline_run.py +1 -0
  17. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/test/test_pipeline_with_details.py +11 -1
  18. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/setup.cfg +0 -0
  19. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/teaspoons_client/api/__init__.py +0 -0
  20. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/teaspoons_client/api/admin_api.py +0 -0
  21. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/teaspoons_client/api/jobs_api.py +0 -0
  22. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/teaspoons_client/api/pipeline_runs_api.py +0 -0
  23. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/teaspoons_client/api/pipelines_api.py +0 -0
  24. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/teaspoons_client/api/public_api.py +0 -0
  25. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/teaspoons_client/api/quotas_api.py +0 -0
  26. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/teaspoons_client/api_response.py +0 -0
  27. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/teaspoons_client/exceptions.py +0 -0
  28. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/teaspoons_client/models/admin_pipeline.py +0 -0
  29. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/teaspoons_client/models/admin_quota.py +0 -0
  30. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/teaspoons_client/models/async_pipeline_run_response.py +0 -0
  31. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/teaspoons_client/models/error_report.py +0 -0
  32. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/teaspoons_client/models/get_jobs_response.py +0 -0
  33. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/teaspoons_client/models/get_pipeline_details_request_body.py +0 -0
  34. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/teaspoons_client/models/get_pipeline_runs_response.py +0 -0
  35. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/teaspoons_client/models/get_pipelines_result.py +0 -0
  36. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/teaspoons_client/models/job_control.py +0 -0
  37. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/teaspoons_client/models/job_report.py +0 -0
  38. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/teaspoons_client/models/job_result.py +0 -0
  39. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/teaspoons_client/models/pipeline.py +0 -0
  40. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/teaspoons_client/models/pipeline_run_report.py +0 -0
  41. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/teaspoons_client/models/pipeline_user_provided_input_definition.py +0 -0
  42. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/teaspoons_client/models/prepare_pipeline_run_request_body.py +0 -0
  43. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/teaspoons_client/models/prepare_pipeline_run_response.py +0 -0
  44. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/teaspoons_client/models/quota_with_details.py +0 -0
  45. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/teaspoons_client/models/start_pipeline_run_request_body.py +0 -0
  46. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/teaspoons_client/models/system_status.py +0 -0
  47. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/teaspoons_client/models/system_status_systems_value.py +0 -0
  48. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/teaspoons_client/models/update_pipeline_request_body.py +0 -0
  49. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/teaspoons_client/models/update_quota_limit_request_body.py +0 -0
  50. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/teaspoons_client/models/version_properties.py +0 -0
  51. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/teaspoons_client/py.typed +0 -0
  52. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/teaspoons_client/rest.py +0 -0
  53. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/terra_scientific_pipelines_service_api_client.egg-info/dependency_links.txt +0 -0
  54. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/terra_scientific_pipelines_service_api_client.egg-info/requires.txt +0 -0
  55. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/terra_scientific_pipelines_service_api_client.egg-info/top_level.txt +0 -0
  56. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/test/test_admin_api.py +0 -0
  57. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/test/test_admin_pipeline.py +0 -0
  58. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/test/test_admin_quota.py +0 -0
  59. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/test/test_async_pipeline_run_response.py +0 -0
  60. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/test/test_error_report.py +0 -0
  61. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/test/test_get_jobs_response.py +0 -0
  62. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/test/test_get_pipeline_details_request_body.py +0 -0
  63. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/test/test_get_pipelines_result.py +0 -0
  64. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/test/test_job_control.py +0 -0
  65. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/test/test_job_report.py +0 -0
  66. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/test/test_job_result.py +0 -0
  67. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/test/test_jobs_api.py +0 -0
  68. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/test/test_pipeline.py +0 -0
  69. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/test/test_pipeline_run_report.py +0 -0
  70. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/test/test_pipeline_runs_api.py +0 -0
  71. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/test/test_pipeline_user_provided_input_definition.py +0 -0
  72. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/test/test_pipelines_api.py +0 -0
  73. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/test/test_prepare_pipeline_run_request_body.py +0 -0
  74. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/test/test_prepare_pipeline_run_response.py +0 -0
  75. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/test/test_public_api.py +0 -0
  76. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/test/test_quota_with_details.py +0 -0
  77. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/test/test_quotas_api.py +0 -0
  78. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/test/test_start_pipeline_run_request_body.py +0 -0
  79. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/test/test_system_status.py +0 -0
  80. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/test/test_system_status_systems_value.py +0 -0
  81. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/test/test_update_pipeline_request_body.py +0 -0
  82. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/test/test_update_quota_limit_request_body.py +0 -0
  83. {terra_scientific_pipelines_service_api_client-1.0.15 → terra_scientific_pipelines_service_api_client-1.0.17}/test/test_version_properties.py +0 -0
@@ -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.17
4
4
  Summary: Terra Scientific Pipelines Service
5
5
  Home-page:
6
6
  Author: OpenAPI Generator community
@@ -4,7 +4,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
4
4
  This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
5
5
 
6
6
  - API version: 1.0.0
7
- - Package version: 1.0.15
7
+ - Package version: 1.0.17
8
8
  - Generator version: 7.9.0
9
9
  - Build package: org.openapitools.codegen.languages.PythonClientCodegen
10
10
 
@@ -128,6 +128,7 @@ Class | Method | HTTP request | Description
128
128
  - [JobReport](docs/JobReport.md)
129
129
  - [JobResult](docs/JobResult.md)
130
130
  - [Pipeline](docs/Pipeline.md)
131
+ - [PipelineQuota](docs/PipelineQuota.md)
131
132
  - [PipelineRun](docs/PipelineRun.md)
132
133
  - [PipelineRunReport](docs/PipelineRunReport.md)
133
134
  - [PipelineUserProvidedInputDefinition](docs/PipelineUserProvidedInputDefinition.md)
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "teaspoons_client"
3
- version = "1.0.15"
3
+ version = "1.0.17"
4
4
  description = "Terra Scientific Pipelines Service"
5
5
  authors = ["OpenAPI Generator Community <team@openapitools.org>"]
6
6
  license = "NoLicense"
@@ -21,7 +21,7 @@ from setuptools import setup, find_packages # noqa: H301
21
21
  # prerequisite: setuptools
22
22
  # http://pypi.python.org/pypi/setuptools
23
23
  NAME = "terra-scientific-pipelines-service-api-client"
24
- VERSION = "1.0.15"
24
+ VERSION = "1.0.17"
25
25
  PYTHON_REQUIRES = ">= 3.8"
26
26
  REQUIRES = [
27
27
  "urllib3 >= 1.25.3, < 3.0.0",
@@ -14,7 +14,7 @@
14
14
  """ # noqa: E501
15
15
 
16
16
 
17
- __version__ = "1.0.15"
17
+ __version__ = "1.0.17"
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.17/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.17".\
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
+
@@ -28,12 +28,13 @@ class PipelineRun(BaseModel):
28
28
  """ # noqa: E501
29
29
  job_id: StrictStr = Field(description="Required unique identifier (UUID) for a job. ", alias="jobId")
30
30
  pipeline_name: StrictStr = Field(description="The identifier string for the Pipeline. ", alias="pipelineName")
31
+ pipeline_version: Optional[StrictInt] = Field(default=None, description="An identifier Integer for the Pipeline Version. ", alias="pipelineVersion")
31
32
  status: StrictStr = Field(description="The current status of the pipeline run. ")
32
33
  description: Optional[StrictStr] = Field(default=None, description="The user-provided description for the pipeline run. ")
33
34
  time_submitted: StrictStr = Field(description="The time the job was submitted. ", alias="timeSubmitted")
34
35
  time_completed: Optional[StrictStr] = Field(default=None, description="The time the job was completed. ", alias="timeCompleted")
35
36
  quota_consumed: Optional[StrictInt] = Field(default=None, description="Quota consumed by the user ", alias="quotaConsumed")
36
- __properties: ClassVar[List[str]] = ["jobId", "pipelineName", "status", "description", "timeSubmitted", "timeCompleted", "quotaConsumed"]
37
+ __properties: ClassVar[List[str]] = ["jobId", "pipelineName", "pipelineVersion", "status", "description", "timeSubmitted", "timeCompleted", "quotaConsumed"]
37
38
 
38
39
  model_config = ConfigDict(
39
40
  populate_by_name=True,
@@ -88,6 +89,7 @@ class PipelineRun(BaseModel):
88
89
  _obj = cls.model_validate({
89
90
  "jobId": obj.get("jobId"),
90
91
  "pipelineName": obj.get("pipelineName"),
92
+ "pipelineVersion": obj.get("pipelineVersion"),
91
93
  "status": obj.get("status"),
92
94
  "description": obj.get("description"),
93
95
  "timeSubmitted": obj.get("timeSubmitted"),
@@ -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.17
4
4
  Summary: Terra Scientific Pipelines Service
5
5
  Home-page:
6
6
  Author: OpenAPI Generator community
@@ -29,6 +29,7 @@ teaspoons_client/models/job_control.py
29
29
  teaspoons_client/models/job_report.py
30
30
  teaspoons_client/models/job_result.py
31
31
  teaspoons_client/models/pipeline.py
32
+ teaspoons_client/models/pipeline_quota.py
32
33
  teaspoons_client/models/pipeline_run.py
33
34
  teaspoons_client/models/pipeline_run_report.py
34
35
  teaspoons_client/models/pipeline_user_provided_input_definition.py
@@ -61,6 +62,7 @@ test/test_job_report.py
61
62
  test/test_job_result.py
62
63
  test/test_jobs_api.py
63
64
  test/test_pipeline.py
65
+ test/test_pipeline_quota.py
64
66
  test/test_pipeline_run.py
65
67
  test/test_pipeline_run_report.py
66
68
  test/test_pipeline_runs_api.py
@@ -41,6 +41,7 @@ class TestGetPipelineRunsResponse(unittest.TestCase):
41
41
  teaspoons_client.models.pipeline_run.PipelineRun(
42
42
  job_id = '',
43
43
  pipeline_name = '',
44
+ pipeline_version = 56,
44
45
  status = '',
45
46
  description = '',
46
47
  time_submitted = '',
@@ -0,0 +1,58 @@
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
+ import unittest
16
+
17
+ from teaspoons_client.models.pipeline_quota import PipelineQuota
18
+
19
+ class TestPipelineQuota(unittest.TestCase):
20
+ """PipelineQuota unit test stubs"""
21
+
22
+ def setUp(self):
23
+ pass
24
+
25
+ def tearDown(self):
26
+ pass
27
+
28
+ def make_instance(self, include_optional) -> PipelineQuota:
29
+ """Test PipelineQuota
30
+ include_optional is a boolean, when False only required
31
+ params are included, when True both required and
32
+ optional params are included """
33
+ # uncomment below to create an instance of `PipelineQuota`
34
+ """
35
+ model = PipelineQuota()
36
+ if include_optional:
37
+ return PipelineQuota(
38
+ pipeline_name = '',
39
+ default_quota = 56,
40
+ min_quota_consumed = 56,
41
+ quota_units = ''
42
+ )
43
+ else:
44
+ return PipelineQuota(
45
+ pipeline_name = '',
46
+ default_quota = 56,
47
+ min_quota_consumed = 56,
48
+ quota_units = '',
49
+ )
50
+ """
51
+
52
+ def testPipelineQuota(self):
53
+ """Test PipelineQuota"""
54
+ # inst_req_only = self.make_instance(include_optional=False)
55
+ # inst_req_and_optional = self.make_instance(include_optional=True)
56
+
57
+ if __name__ == '__main__':
58
+ unittest.main()
@@ -37,6 +37,7 @@ class TestPipelineRun(unittest.TestCase):
37
37
  return PipelineRun(
38
38
  job_id = '',
39
39
  pipeline_name = '',
40
+ pipeline_version = 56,
40
41
  status = '',
41
42
  description = '',
42
43
  time_submitted = '',
@@ -46,7 +46,12 @@ class TestPipelineWithDetails(unittest.TestCase):
46
46
  type = '',
47
47
  is_required = True,
48
48
  file_suffix = '', )
49
- ]
49
+ ],
50
+ pipeline_quota = teaspoons_client.models.pipeline_quota.PipelineQuota(
51
+ pipeline_name = '',
52
+ default_quota = 56,
53
+ min_quota_consumed = 56,
54
+ quota_units = '', )
50
55
  )
51
56
  else:
52
57
  return PipelineWithDetails(
@@ -62,6 +67,11 @@ class TestPipelineWithDetails(unittest.TestCase):
62
67
  is_required = True,
63
68
  file_suffix = '', )
64
69
  ],
70
+ pipeline_quota = teaspoons_client.models.pipeline_quota.PipelineQuota(
71
+ pipeline_name = '',
72
+ default_quota = 56,
73
+ min_quota_consumed = 56,
74
+ quota_units = '', ),
65
75
  )
66
76
  """
67
77