Skip to content

Commit 58c0210

Browse files
Andy-Griggactions-user
authored andcommitted
Generate Client Library code - Automated
1 parent fada5e1 commit 58c0210

4 files changed

+39
-29
lines changed

ansys-grantami-serverapi-openapi/pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "poetry.core.masonry.api"
55
[tool.poetry]
66
name = "ansys-grantami-serverapi-openapi"
77
description = "Autogenerated client library for the Granta MI Server API."
8-
version = "3.0.0.dev228"
8+
version = "3.0.0.dev234"
99
license = "MIT"
1010
authors = ["ANSYS, Inc. <pyansys.core@ansys.com>"]
1111
maintainers = ["ANSYS, Inc. <pyansys.core@ansys.com>"]

ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_float_functional_datum.py

+32
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ class GrantaServerApiDataExportDatumsFloatFunctionalDatum(
5858
"attribute_identity": "int",
5959
"datum_type": "str",
6060
"is_estimated": "bool",
61+
"is_range": "bool",
6162
"meta_datums": "list[GrantaServerApiDataExportDatumsDatum]",
6263
"not_applicable": "str",
6364
"parameters": "list[GrantaServerApiFunctionalDatumParameterInfo]",
@@ -70,6 +71,7 @@ class GrantaServerApiDataExportDatumsFloatFunctionalDatum(
7071
"attribute_identity": "attributeIdentity",
7172
"datum_type": "datumType",
7273
"is_estimated": "isEstimated",
74+
"is_range": "isRange",
7375
"meta_datums": "metaDatums",
7476
"not_applicable": "notApplicable",
7577
"parameters": "parameters",
@@ -96,6 +98,7 @@ def __init__(
9698
attribute_identity: "Union[int, Unset_Type]" = Unset,
9799
datum_type: "str" = "floatFunctional",
98100
is_estimated: "Union[bool, Unset_Type]" = Unset,
101+
is_range: "Union[bool, Unset_Type]" = Unset,
99102
meta_datums: "Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type]" = Unset,
100103
not_applicable: "str" = "applicable",
101104
parameters: "Union[List[GrantaServerApiFunctionalDatumParameterInfo], None, Unset_Type]" = Unset,
@@ -110,6 +113,7 @@ def __init__(
110113
attribute_identity: int, optional
111114
datum_type: str
112115
is_estimated: bool, optional
116+
is_range: bool, optional
113117
meta_datums: List[GrantaServerApiDataExportDatumsDatum], optional
114118
not_applicable: str
115119
parameters: List[GrantaServerApiFunctionalDatumParameterInfo], optional
@@ -131,6 +135,7 @@ def __init__(
131135
List[GrantaServerApiFunctionalDatumParameterInfo], None, Unset_Type
132136
] = Unset
133137
self._is_estimated: Union[bool, Unset_Type] = Unset
138+
self._is_range: Union[bool, Unset_Type] = Unset
134139

135140
self.datum_type = datum_type
136141
if unit_symbol is not Unset:
@@ -141,6 +146,8 @@ def __init__(
141146
self.parameters = parameters
142147
if is_estimated is not Unset:
143148
self.is_estimated = is_estimated
149+
if is_range is not Unset:
150+
self.is_range = is_range
144151

145152
@property
146153
def datum_type(self) -> "str":
@@ -274,6 +281,31 @@ def is_estimated(self, is_estimated: "Union[bool, Unset_Type]") -> None:
274281
raise ValueError("Invalid value for 'is_estimated', must not be 'None'")
275282
self._is_estimated = is_estimated
276283

284+
@property
285+
def is_range(self) -> "Union[bool, Unset_Type]":
286+
"""Gets the is_range of this GrantaServerApiDataExportDatumsFloatFunctionalDatum.
287+
288+
Returns
289+
-------
290+
Union[bool, Unset_Type]
291+
The is_range of this GrantaServerApiDataExportDatumsFloatFunctionalDatum.
292+
"""
293+
return self._is_range
294+
295+
@is_range.setter
296+
def is_range(self, is_range: "Union[bool, Unset_Type]") -> None:
297+
"""Sets the is_range of this GrantaServerApiDataExportDatumsFloatFunctionalDatum.
298+
299+
Parameters
300+
----------
301+
is_range: Union[bool, Unset_Type]
302+
The is_range of this GrantaServerApiDataExportDatumsFloatFunctionalDatum.
303+
"""
304+
# Field is not nullable
305+
if is_range is None:
306+
raise ValueError("Invalid value for 'is_range', must not be 'None'")
307+
self._is_range = is_range
308+
277309
@classmethod
278310
def get_real_child_model(cls, data: Dict[str, str]) -> str:
279311
"""Returns the real base class as determined by the discriminator

ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_functional_grid_datum.py

+5
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ class GrantaServerApiDataExportDatumsFunctionalGridDatum(
5757
"datum_type": "str",
5858
"graph_type": "str",
5959
"is_estimated": "bool",
60+
"is_range": "bool",
6061
"meta_datums": "list[GrantaServerApiDataExportDatumsDatum]",
6162
"not_applicable": "str",
6263
"parameters": "list[GrantaServerApiFunctionalDatumParameterInfo]",
@@ -71,6 +72,7 @@ class GrantaServerApiDataExportDatumsFunctionalGridDatum(
7172
"datum_type": "datumType",
7273
"graph_type": "graphType",
7374
"is_estimated": "isEstimated",
75+
"is_range": "isRange",
7476
"meta_datums": "metaDatums",
7577
"not_applicable": "notApplicable",
7678
"parameters": "parameters",
@@ -93,6 +95,7 @@ def __init__(
9395
datum_type: "str" = "floatFunctional",
9496
graph_type: "str" = "grid",
9597
is_estimated: "Union[bool, Unset_Type]" = Unset,
98+
is_range: "Union[bool, Unset_Type]" = Unset,
9699
meta_datums: "Union[List[GrantaServerApiDataExportDatumsDatum], None, Unset_Type]" = Unset,
97100
not_applicable: "str" = "applicable",
98101
parameters: "Union[List[GrantaServerApiFunctionalDatumParameterInfo], None, Unset_Type]" = Unset,
@@ -109,6 +112,7 @@ def __init__(
109112
datum_type: str
110113
graph_type: str
111114
is_estimated: bool, optional
115+
is_range: bool, optional
112116
meta_datums: List[GrantaServerApiDataExportDatumsDatum], optional
113117
not_applicable: str
114118
parameters: List[GrantaServerApiFunctionalDatumParameterInfo], optional
@@ -121,6 +125,7 @@ def __init__(
121125
attribute_identity=attribute_identity,
122126
datum_type=datum_type,
123127
is_estimated=is_estimated,
128+
is_range=is_range,
124129
meta_datums=meta_datums,
125130
not_applicable=not_applicable,
126131
parameters=parameters,

ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/granta_server_api_data_export_datums_functional_series_datum.py

+1-28
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ def __init__(
133133
attribute_identity=attribute_identity,
134134
datum_type=datum_type,
135135
is_estimated=is_estimated,
136+
is_range=is_range,
136137
meta_datums=meta_datums,
137138
not_applicable=not_applicable,
138139
parameters=parameters,
@@ -144,16 +145,13 @@ def __init__(
144145
List[GrantaServerApiDataExportDatumsSeries], None, Unset_Type
145146
] = Unset
146147
self._is_logarithmic: Union[bool, Unset_Type] = Unset
147-
self._is_range: Union[bool, Unset_Type] = Unset
148148
self._show_as_table: Union[bool, Unset_Type] = Unset
149149

150150
self.graph_type = graph_type
151151
if series is not Unset:
152152
self.series = series
153153
if is_logarithmic is not Unset:
154154
self.is_logarithmic = is_logarithmic
155-
if is_range is not Unset:
156-
self.is_range = is_range
157155
if show_as_table is not Unset:
158156
self.show_as_table = show_as_table
159157

@@ -237,31 +235,6 @@ def is_logarithmic(self, is_logarithmic: "Union[bool, Unset_Type]") -> None:
237235
raise ValueError("Invalid value for 'is_logarithmic', must not be 'None'")
238236
self._is_logarithmic = is_logarithmic
239237

240-
@property
241-
def is_range(self) -> "Union[bool, Unset_Type]":
242-
"""Gets the is_range of this GrantaServerApiDataExportDatumsFunctionalSeriesDatum.
243-
244-
Returns
245-
-------
246-
Union[bool, Unset_Type]
247-
The is_range of this GrantaServerApiDataExportDatumsFunctionalSeriesDatum.
248-
"""
249-
return self._is_range
250-
251-
@is_range.setter
252-
def is_range(self, is_range: "Union[bool, Unset_Type]") -> None:
253-
"""Sets the is_range of this GrantaServerApiDataExportDatumsFunctionalSeriesDatum.
254-
255-
Parameters
256-
----------
257-
is_range: Union[bool, Unset_Type]
258-
The is_range of this GrantaServerApiDataExportDatumsFunctionalSeriesDatum.
259-
"""
260-
# Field is not nullable
261-
if is_range is None:
262-
raise ValueError("Invalid value for 'is_range', must not be 'None'")
263-
self._is_range = is_range
264-
265238
@property
266239
def show_as_table(self) -> "Union[bool, Unset_Type]":
267240
"""Gets the show_as_table of this GrantaServerApiDataExportDatumsFunctionalSeriesDatum.

0 commit comments

Comments
 (0)