Skip to content

Commit

Permalink
Generate Client Library code - Automated
Browse files Browse the repository at this point in the history
  • Loading branch information
pyansys-ci-bot authored and actions-user committed Mar 10, 2025
1 parent fb6eee7 commit d19c0d3
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
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.dev454"
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

0 comments on commit d19c0d3

Please sign in to comment.