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 (13731307114) #331

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.dev446"
version = "5.0.0.dev450"
license = "MIT"
authors = ["ANSYS, Inc. <pyansys.core@ansys.com>"]
maintainers = ["ANSYS, Inc. <pyansys.core@ansys.com>"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,19 +62,22 @@ class GsaLinkedRecordExportBehavior(ModelBase):
"""
swagger_types: dict[str, str] = {
"linked_records_criterion": "GsaCriterion",
"roll_up_types": "list[GsaTabularColumnRollUpType]",
"summary_roll_up_type": "GsaTabularColumnRollUpType",
"tabular_row_behavior": "GsaTabularRowExportBehavior",
}

attribute_map: dict[str, str] = {
"linked_records_criterion": "linkedRecordsCriterion",
"roll_up_types": "rollUpTypes",
"summary_roll_up_type": "summaryRollUpType",
"tabular_row_behavior": "tabularRowBehavior",
}

subtype_mapping: dict[str, str] = {
"tabularRowBehavior": "GsaTabularRowExportBehavior",
"summaryRollUpType": "GsaTabularColumnRollUpType",
"rollUpTypes": "GsaTabularColumnRollUpType",
"linkedRecordsCriterion": "GsaCriterion",
}

Expand All @@ -84,6 +87,7 @@ def __init__(
self,
*,
linked_records_criterion: "Union[GsaCriterion, Unset_Type]" = Unset,
roll_up_types: "Union[list[GsaTabularColumnRollUpType], None, Unset_Type]" = Unset,
summary_roll_up_type: "Union[GsaTabularColumnRollUpType, Unset_Type]" = Unset,
tabular_row_behavior: "Union[GsaTabularRowExportBehavior, Unset_Type]" = Unset,
) -> None:
Expand All @@ -92,17 +96,21 @@ def __init__(
Parameters
----------
linked_records_criterion: GsaCriterion, optional
roll_up_types: list[GsaTabularColumnRollUpType], optional
summary_roll_up_type: GsaTabularColumnRollUpType, optional
tabular_row_behavior: GsaTabularRowExportBehavior, optional
"""
self._tabular_row_behavior: Union[GsaTabularRowExportBehavior, Unset_Type] = Unset
self._summary_roll_up_type: Union[GsaTabularColumnRollUpType, Unset_Type] = Unset
self._roll_up_types: Union[list[GsaTabularColumnRollUpType], None, Unset_Type] = Unset
self._linked_records_criterion: Union[GsaCriterion, Unset_Type] = Unset

if tabular_row_behavior is not Unset:
self.tabular_row_behavior = tabular_row_behavior
if summary_roll_up_type is not Unset:
self.summary_roll_up_type = summary_roll_up_type
if roll_up_types is not Unset:
self.roll_up_types = roll_up_types
if linked_records_criterion is not Unset:
self.linked_records_criterion = linked_records_criterion

Expand Down Expand Up @@ -160,6 +168,32 @@ def summary_roll_up_type(
raise ValueError("Invalid value for 'summary_roll_up_type', must not be 'None'")
self._summary_roll_up_type = summary_roll_up_type

@property
def roll_up_types(self) -> "Union[list[GsaTabularColumnRollUpType], None, Unset_Type]":
"""Gets the roll_up_types of this GsaLinkedRecordExportBehavior.
Optional: if this attribute is being used as part of a tabular export, this can be used to specify how linked records should be rolled up

Returns
-------
Union[list[GsaTabularColumnRollUpType], None, Unset_Type]
The roll_up_types of this GsaLinkedRecordExportBehavior.
"""
return self._roll_up_types

@roll_up_types.setter
def roll_up_types(
self, roll_up_types: "Union[list[GsaTabularColumnRollUpType], None, Unset_Type]"
) -> None:
"""Sets the roll_up_types of this GsaLinkedRecordExportBehavior.
Optional: if this attribute is being used as part of a tabular export, this can be used to specify how linked records should be rolled up

Parameters
----------
roll_up_types: Union[list[GsaTabularColumnRollUpType], None, Unset_Type]
The roll_up_types of this GsaLinkedRecordExportBehavior.
"""
self._roll_up_types = roll_up_types

@property
def linked_records_criterion(self) -> "Union[GsaCriterion, Unset_Type]":
"""Gets the linked_records_criterion of this GsaLinkedRecordExportBehavior.
Expand Down
Loading