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 (12819592276) #296

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.dev383"
version = "5.0.0.dev385"
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 @@ -1010,6 +1010,7 @@
from .models.gsa_update_subset import GsaUpdateSubset
from .models.gsa_update_table import GsaUpdateTable
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_unit import GsaUpdateUnit
from .models.gsa_update_unit_system import GsaUpdateUnitSystem
Expand Down Expand Up @@ -1897,6 +1898,7 @@
"GsaUpdateSubset",
"GsaUpdateTable",
"GsaUpdateTabularAttribute",
"GsaUpdateTabularAttributeTarget",
"GsaUpdateTabularColumn",
"GsaUpdateUnit",
"GsaUpdateUnitSystem",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -928,6 +928,7 @@
from .gsa_update_subset import GsaUpdateSubset
from .gsa_update_table import GsaUpdateTable
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_unit import GsaUpdateUnit
from .gsa_update_unit_system import GsaUpdateUnitSystem
Expand Down Expand Up @@ -1774,6 +1775,7 @@
"GsaUpdateSubset",
"GsaUpdateTable",
"GsaUpdateTabularAttribute",
"GsaUpdateTabularAttributeTarget",
"GsaUpdateTabularColumn",
"GsaUpdateUnit",
"GsaUpdateUnitSystem",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ class GsaUpdateTabularAttribute(GsaUpdateAttribute):
"is_hidden_from_search_criteria": "bool",
"name": "str",
"tabular_columns": "list[GsaUpdateTabularColumn]",
"target": "GsaUpdateTabularAttributeTarget",
}

attribute_map: dict[str, str] = {
Expand All @@ -93,10 +94,12 @@ class GsaUpdateTabularAttribute(GsaUpdateAttribute):
"is_hidden_from_search_criteria": "isHiddenFromSearchCriteria",
"name": "name",
"tabular_columns": "tabularColumns",
"target": "target",
}

subtype_mapping: dict[str, str] = {
"tabularColumns": "GsaUpdateTabularColumn",
"target": "GsaUpdateTabularAttributeTarget",
}

discriminator: Optional[str] = None
Expand All @@ -116,6 +119,7 @@ def __init__(
is_hidden_from_search_criteria: "Union[bool, None, Unset_Type]" = Unset,
name: "Union[str, Unset_Type]" = Unset,
tabular_columns: "Union[list[GsaUpdateTabularColumn], None, Unset_Type]" = Unset,
target: "Union[GsaUpdateTabularAttributeTarget, Unset_Type]" = Unset,
) -> None:
"""GsaUpdateTabularAttribute - a model defined in Swagger

Expand All @@ -133,6 +137,7 @@ def __init__(
is_hidden_from_search_criteria: bool, optional
name: str, optional
tabular_columns: list[GsaUpdateTabularColumn], optional
target: GsaUpdateTabularAttributeTarget, optional
"""
super().__init__(
type=type,
Expand All @@ -148,6 +153,7 @@ def __init__(
self._display_summary_row_inline: Union[bool, Unset_Type] = Unset
self._hide_unlinked_rows: Union[bool, Unset_Type] = Unset
self._tabular_columns: Union[list[GsaUpdateTabularColumn], None, Unset_Type] = Unset
self._target: Union[GsaUpdateTabularAttributeTarget, Unset_Type] = Unset

if display_full_table is not Unset:
self.display_full_table = display_full_table
Expand All @@ -157,6 +163,8 @@ def __init__(
self.hide_unlinked_rows = hide_unlinked_rows
if tabular_columns is not Unset:
self.tabular_columns = tabular_columns
if target is not Unset:
self.target = target

@property
def display_full_table(self) -> "Union[bool, Unset_Type]":
Expand Down Expand Up @@ -259,6 +267,31 @@ def tabular_columns(
"""
self._tabular_columns = tabular_columns

@property
def target(self) -> "Union[GsaUpdateTabularAttributeTarget, Unset_Type]":
"""Gets the target of this GsaUpdateTabularAttribute.

Returns
-------
Union[GsaUpdateTabularAttributeTarget, Unset_Type]
The target of this GsaUpdateTabularAttribute.
"""
return self._target

@target.setter
def target(self, target: "Union[GsaUpdateTabularAttributeTarget, Unset_Type]") -> None:
"""Sets the target of this GsaUpdateTabularAttribute.

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

@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
@@ -0,0 +1,243 @@
# Copyright (C) 2023 - 2025 ANSYS, Inc. and/or its affiliates.
# SPDX-License-Identifier: MIT
#
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

"""
MI Server API

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

OpenAPI spec version: v1

Generated by: https://github.com/swagger-api/swagger-codegen.git
"""

import re # noqa: F401
from typing import TYPE_CHECKING, Any, BinaryIO, Optional, Union # noqa: F401

from . import ModelBase, Unset, Unset_Type

if TYPE_CHECKING:
from datetime import datetime
import pathlib

from . import *


class GsaUpdateTabularAttributeTarget(ModelBase):
"""NOTE: This class is auto generated by the swagger code generator program.

Do not edit the class manually.
"""

"""
Attributes
----------
swagger_types: dict[str, str]
The key is attribute name and the value is attribute type.
attribute_map: dict[str, str]
The key is attribute name and the value is json key in definition.
subtype_mapping: dict[str, str]
The key is the unmangled property name and the value is the corresponding type.
discriminator: Optional[str]
Name of the property used as discriminator for subtypes.
"""
swagger_types: dict[str, str] = {
"target_attribute_guid": "str",
"target_database_guid": "str",
"target_database_version_guid": "str",
"target_table_guid": "str",
}

attribute_map: dict[str, str] = {
"target_attribute_guid": "targetAttributeGuid",
"target_database_guid": "targetDatabaseGuid",
"target_database_version_guid": "targetDatabaseVersionGuid",
"target_table_guid": "targetTableGuid",
}

subtype_mapping: dict[str, str] = {}

discriminator: Optional[str] = None

def __init__(
self,
*,
target_attribute_guid: "Union[str, Unset_Type]" = Unset,
target_database_guid: "Union[str, Unset_Type]" = Unset,
target_database_version_guid: "Union[str, Unset_Type]" = Unset,
target_table_guid: "Union[str, Unset_Type]" = Unset,
) -> None:
"""GsaUpdateTabularAttributeTarget - a model defined in Swagger

Parameters
----------
target_attribute_guid: str, optional
target_database_guid: str, optional
target_database_version_guid: str, optional
target_table_guid: str, optional
"""
self._target_database_guid: Union[str, Unset_Type] = Unset
self._target_database_version_guid: Union[str, Unset_Type] = Unset
self._target_table_guid: Union[str, Unset_Type] = Unset
self._target_attribute_guid: Union[str, Unset_Type] = Unset

if target_database_guid is not Unset:
self.target_database_guid = target_database_guid
if target_database_version_guid is not Unset:
self.target_database_version_guid = target_database_version_guid
if target_table_guid is not Unset:
self.target_table_guid = target_table_guid
if target_attribute_guid is not Unset:
self.target_attribute_guid = target_attribute_guid

@property
def target_database_guid(self) -> "Union[str, Unset_Type]":
"""Gets the target_database_guid of this GsaUpdateTabularAttributeTarget.

Returns
-------
Union[str, Unset_Type]
The target_database_guid of this GsaUpdateTabularAttributeTarget.
"""
return self._target_database_guid

@target_database_guid.setter
def target_database_guid(self, target_database_guid: "Union[str, Unset_Type]") -> None:
"""Sets the target_database_guid of this GsaUpdateTabularAttributeTarget.

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

@property
def target_database_version_guid(self) -> "Union[str, Unset_Type]":
"""Gets the target_database_version_guid of this GsaUpdateTabularAttributeTarget.

Returns
-------
Union[str, Unset_Type]
The target_database_version_guid of this GsaUpdateTabularAttributeTarget.
"""
return self._target_database_version_guid

@target_database_version_guid.setter
def target_database_version_guid(
self, target_database_version_guid: "Union[str, Unset_Type]"
) -> None:
"""Sets the target_database_version_guid of this GsaUpdateTabularAttributeTarget.

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

@property
def target_table_guid(self) -> "Union[str, Unset_Type]":
"""Gets the target_table_guid of this GsaUpdateTabularAttributeTarget.

Returns
-------
Union[str, Unset_Type]
The target_table_guid of this GsaUpdateTabularAttributeTarget.
"""
return self._target_table_guid

@target_table_guid.setter
def target_table_guid(self, target_table_guid: "Union[str, Unset_Type]") -> None:
"""Sets the target_table_guid of this GsaUpdateTabularAttributeTarget.

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

@property
def target_attribute_guid(self) -> "Union[str, Unset_Type]":
"""Gets the target_attribute_guid of this GsaUpdateTabularAttributeTarget.

Returns
-------
Union[str, Unset_Type]
The target_attribute_guid of this GsaUpdateTabularAttributeTarget.
"""
return self._target_attribute_guid

@target_attribute_guid.setter
def target_attribute_guid(self, target_attribute_guid: "Union[str, Unset_Type]") -> None:
"""Sets the target_attribute_guid of this GsaUpdateTabularAttributeTarget.

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

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

Parameters
----------
data: ModelBase
Object representing a subclass of this class

Raises
------
NotImplementedError
This class has no discriminator, and hence no subclasses
"""
raise NotImplementedError()

def __repr__(self) -> str:
"""For 'print' and 'pprint'"""
return self.to_str()

def __eq__(self, other: Any) -> bool:
"""Returns true if both objects are equal"""
if not isinstance(other, GsaUpdateTabularAttributeTarget):
return False

return self.__dict__ == other.__dict__

def __ne__(self, other: Any) -> bool:
"""Returns true if both objects are not equal"""
return not self == other
Loading
Loading