Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Swagger.json (13037526133) #306

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ansys-grantami-serverapi-openapi/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "ansys-grantami-serverapi-openapi"
description = "Autogenerated client library for the Granta MI Server API."
version = "5.0.0.dev408"
version = "5.0.0.dev410"
license = "MIT"
authors = ["ANSYS, Inc. <[email protected]>"]
maintainers = ["ANSYS, Inc. <[email protected]>"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1018,6 +1018,7 @@
from .models.gsa_update_tabular_attribute import GsaUpdateTabularAttribute
from .models.gsa_update_tabular_attribute_target import GsaUpdateTabularAttributeTarget
from .models.gsa_update_tabular_column import GsaUpdateTabularColumn
from .models.gsa_update_unavailable_tabular_column import GsaUpdateUnavailableTabularColumn
from .models.gsa_update_unit import GsaUpdateUnit
from .models.gsa_update_unit_system import GsaUpdateUnitSystem
from .models.gsa_update_user_permission import GsaUpdateUserPermission
Expand Down Expand Up @@ -1912,6 +1913,7 @@
"GsaUpdateTabularAttribute",
"GsaUpdateTabularAttributeTarget",
"GsaUpdateTabularColumn",
"GsaUpdateUnavailableTabularColumn",
"GsaUpdateUnit",
"GsaUpdateUnitSystem",
"GsaUpdateUserPermission",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,7 @@ def _integration_aggregation_with_http_info(
response_type_map: dict[int, Optional[str]] = {
200: "GsaAggregationsResponse",
404: None,
422: None,
}

return self.api_client.call_api(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ def _export_data_from_integration_schema_with_http_info(
response_type_map: dict[int, Optional[str]] = {
200: "GsaDataExportResponse",
404: None,
422: None,
}

return self.api_client.call_api(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ def _add_schema_with_http_info(
201: "GsaIntegrationSchemaOfObjectIdentifier",
400: None,
403: None,
422: None,
}

return self.api_client.call_api(
Expand Down Expand Up @@ -340,6 +341,7 @@ def _get_schema_with_http_info(
response_type_map: dict[int, Optional[str]] = {
200: "GsaIntegrationSchemaOfObjectIdentifier",
404: None,
422: None,
}

return self.api_client.call_api(
Expand Down Expand Up @@ -531,6 +533,7 @@ def _schema_table_mappings_with_http_info(
response_type_map: dict[int, Optional[str]] = {
200: "list[GsaSourceOfObjectIdentifier]",
404: None,
422: None,
}

return self.api_client.call_api(
Expand Down Expand Up @@ -623,6 +626,7 @@ def _schema_targets_with_http_info(
response_type_map: dict[int, Optional[str]] = {
200: "list[GsaIntegrationAttribute]",
404: None,
422: None,
}

return self.api_client.call_api(
Expand Down Expand Up @@ -779,6 +783,7 @@ def _update_schema_with_http_info(
400: None,
403: None,
404: None,
422: None,
}

return self.api_client.call_api(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ def _get_permission_categories_with_http_info(self, database_key: "str", **kwarg
200: "GsaPermissionCategoriesInfo",
403: None,
404: None,
422: None,
}

return self.api_client.call_api(
Expand Down Expand Up @@ -203,6 +204,7 @@ def _get_permission_category_with_http_info(
200: "GsaPermissionCategory",
403: None,
404: None,
422: None,
}

return self.api_client.call_api(
Expand Down Expand Up @@ -304,6 +306,7 @@ def _get_permission_in_category_with_http_info(
200: "GsaPermission",
403: None,
404: None,
422: None,
}

return self.api_client.call_api(
Expand Down Expand Up @@ -396,6 +399,7 @@ def _get_permissions_in_category_with_http_info(
200: "GsaPermissionsInfo",
403: None,
404: None,
422: None,
}

return self.api_client.call_api(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,7 @@ def _integration_search_with_http_info(
response_type_map: dict[int, Optional[str]] = {
200: "GsaSearchResponse",
404: None,
422: None,
}

return self.api_client.call_api(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -935,6 +935,7 @@
from .gsa_update_tabular_attribute import GsaUpdateTabularAttribute
from .gsa_update_tabular_attribute_target import GsaUpdateTabularAttributeTarget
from .gsa_update_tabular_column import GsaUpdateTabularColumn
from .gsa_update_unavailable_tabular_column import GsaUpdateUnavailableTabularColumn
from .gsa_update_unit import GsaUpdateUnit
from .gsa_update_unit_system import GsaUpdateUnitSystem
from .gsa_update_user_permission import GsaUpdateUserPermission
Expand Down Expand Up @@ -1787,6 +1788,7 @@
"GsaUpdateTabularAttribute",
"GsaUpdateTabularAttributeTarget",
"GsaUpdateTabularColumn",
"GsaUpdateUnavailableTabularColumn",
"GsaUpdateUnit",
"GsaUpdateUnitSystem",
"GsaUpdateUserPermission",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,13 @@ class GsaDataExportDiscreteGridPoint(ModelBase):
Name of the property used as discriminator for subtypes.
"""
swagger_types: dict[str, str] = {
"is_estimated": "bool",
"parameter_values": "list[GsaDataExportParameterValue]",
"value": "GsaDiscreteValue",
}

attribute_map: dict[str, str] = {
"is_estimated": "isEstimated",
"parameter_values": "parameterValues",
"value": "value",
}
Expand All @@ -80,23 +82,28 @@ class GsaDataExportDiscreteGridPoint(ModelBase):
def __init__(
self,
*,
is_estimated: "Union[bool, Unset_Type]" = Unset,
parameter_values: "Union[list[GsaDataExportParameterValue], None, Unset_Type]" = Unset,
value: "Union[GsaDiscreteValue, Unset_Type]" = Unset,
) -> None:
"""GsaDataExportDiscreteGridPoint - a model defined in Swagger

Parameters
----------
is_estimated: bool, optional
parameter_values: list[GsaDataExportParameterValue], optional
value: GsaDiscreteValue, optional
"""
self._parameter_values: Union[list[GsaDataExportParameterValue], None, Unset_Type] = Unset
self._value: Union[GsaDiscreteValue, Unset_Type] = Unset
self._is_estimated: Union[bool, Unset_Type] = Unset

if parameter_values is not Unset:
self.parameter_values = parameter_values
if value is not Unset:
self.value = value
if is_estimated is not Unset:
self.is_estimated = is_estimated

@property
def parameter_values(self) -> "Union[list[GsaDataExportParameterValue], None, Unset_Type]":
Expand Down Expand Up @@ -147,6 +154,31 @@ def value(self, value: "Union[GsaDiscreteValue, Unset_Type]") -> None:
raise ValueError("Invalid value for 'value', must not be 'None'")
self._value = value

@property
def is_estimated(self) -> "Union[bool, Unset_Type]":
"""Gets the is_estimated of this GsaDataExportDiscreteGridPoint.

Returns
-------
Union[bool, Unset_Type]
The is_estimated of this GsaDataExportDiscreteGridPoint.
"""
return self._is_estimated

@is_estimated.setter
def is_estimated(self, is_estimated: "Union[bool, Unset_Type]") -> None:
"""Sets the is_estimated of this GsaDataExportDiscreteGridPoint.

Parameters
----------
is_estimated: Union[bool, Unset_Type]
The is_estimated of this GsaDataExportDiscreteGridPoint.
"""
# Field is not nullable
if is_estimated is None:
raise ValueError("Invalid value for 'is_estimated', must not be 'None'")
self._is_estimated = is_estimated

@classmethod
def get_real_child_model(cls, data: dict[str, str]) -> str:
"""Raises a NotImplementedError for a type without a discriminator defined.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,14 @@ class GsaDataExportDiscreteSeriesPoint(ModelBase):
Name of the property used as discriminator for subtypes.
"""
swagger_types: dict[str, str] = {
"is_estimated": "bool",
"x": "float",
"x_name": "str",
"y": "GsaDiscreteValue",
}

attribute_map: dict[str, str] = {
"is_estimated": "isEstimated",
"x": "x",
"x_name": "xName",
"y": "y",
Expand All @@ -81,6 +83,7 @@ class GsaDataExportDiscreteSeriesPoint(ModelBase):
def __init__(
self,
*,
is_estimated: "Union[bool, Unset_Type]" = Unset,
x: "Union[float, Unset_Type]" = Unset,
x_name: "Union[str, None, Unset_Type]" = Unset,
y: "Union[GsaDiscreteValue, Unset_Type]" = Unset,
Expand All @@ -89,20 +92,24 @@ def __init__(

Parameters
----------
is_estimated: bool, optional
x: float, optional
x_name: str, optional
y: GsaDiscreteValue, optional
"""
self._x: Union[float, Unset_Type] = Unset
self._x_name: Union[str, None, Unset_Type] = Unset
self._y: Union[GsaDiscreteValue, Unset_Type] = Unset
self._is_estimated: Union[bool, Unset_Type] = Unset

if x is not Unset:
self.x = x
if x_name is not Unset:
self.x_name = x_name
if y is not Unset:
self.y = y
if is_estimated is not Unset:
self.is_estimated = is_estimated

@property
def x(self) -> "Union[float, Unset_Type]":
Expand Down Expand Up @@ -176,6 +183,31 @@ def y(self, y: "Union[GsaDiscreteValue, Unset_Type]") -> None:
raise ValueError("Invalid value for 'y', must not be 'None'")
self._y = y

@property
def is_estimated(self) -> "Union[bool, Unset_Type]":
"""Gets the is_estimated of this GsaDataExportDiscreteSeriesPoint.

Returns
-------
Union[bool, Unset_Type]
The is_estimated of this GsaDataExportDiscreteSeriesPoint.
"""
return self._is_estimated

@is_estimated.setter
def is_estimated(self, is_estimated: "Union[bool, Unset_Type]") -> None:
"""Sets the is_estimated of this GsaDataExportDiscreteSeriesPoint.

Parameters
----------
is_estimated: Union[bool, Unset_Type]
The is_estimated of this GsaDataExportDiscreteSeriesPoint.
"""
# Field is not nullable
if is_estimated is None:
raise ValueError("Invalid value for 'is_estimated', must not be 'None'")
self._is_estimated = is_estimated

@classmethod
def get_real_child_model(cls, data: dict[str, str]) -> str:
"""Raises a NotImplementedError for a type without a discriminator defined.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,14 @@ class GsaDataExportGridPoint(ModelBase):
Name of the property used as discriminator for subtypes.
"""
swagger_types: dict[str, str] = {
"is_estimated": "bool",
"high_value": "float",
"low_value": "float",
"parameter_values": "list[GsaDataExportParameterValue]",
}

attribute_map: dict[str, str] = {
"is_estimated": "isEstimated",
"high_value": "highValue",
"low_value": "lowValue",
"parameter_values": "parameterValues",
Expand All @@ -81,6 +83,7 @@ class GsaDataExportGridPoint(ModelBase):
def __init__(
self,
*,
is_estimated: "bool",
high_value: "Union[float, Unset_Type]" = Unset,
low_value: "Union[float, Unset_Type]" = Unset,
parameter_values: "Union[list[GsaDataExportParameterValue], None, Unset_Type]" = Unset,
Expand All @@ -89,20 +92,23 @@ def __init__(

Parameters
----------
is_estimated: bool
high_value: float, optional
low_value: float, optional
parameter_values: list[GsaDataExportParameterValue], optional
"""
self._parameter_values: Union[list[GsaDataExportParameterValue], None, Unset_Type] = Unset
self._low_value: Union[float, Unset_Type] = Unset
self._high_value: Union[float, Unset_Type] = Unset
self._is_estimated: bool

if parameter_values is not Unset:
self.parameter_values = parameter_values
if low_value is not Unset:
self.low_value = low_value
if high_value is not Unset:
self.high_value = high_value
self.is_estimated = is_estimated

@property
def parameter_values(self) -> "Union[list[GsaDataExportParameterValue], None, Unset_Type]":
Expand Down Expand Up @@ -178,6 +184,34 @@ def high_value(self, high_value: "Union[float, Unset_Type]") -> None:
raise ValueError("Invalid value for 'high_value', must not be 'None'")
self._high_value = high_value

@property
def is_estimated(self) -> "bool":
"""Gets the is_estimated of this GsaDataExportGridPoint.

Returns
-------
bool
The is_estimated of this GsaDataExportGridPoint.
"""
return self._is_estimated

@is_estimated.setter
def is_estimated(self, is_estimated: "bool") -> None:
"""Sets the is_estimated of this GsaDataExportGridPoint.

Parameters
----------
is_estimated: bool
The is_estimated of this GsaDataExportGridPoint.
"""
# Field is not nullable
if is_estimated is None:
raise ValueError("Invalid value for 'is_estimated', must not be 'None'")
# Field is required
if is_estimated is Unset: # type: ignore[comparison-overlap, unused-ignore]
raise ValueError("Invalid value for 'is_estimated', must not be 'Unset'")
self._is_estimated = is_estimated

@classmethod
def get_real_child_model(cls, data: dict[str, str]) -> str:
"""Raises a NotImplementedError for a type without a discriminator defined.
Expand Down
Loading