From bca875ffc119167133501e2477f41a4cd9cbf101 Mon Sep 17 00:00:00 2001 From: pyansys-ci-bot Date: Tue, 4 Mar 2025 04:26:12 +0000 Subject: [PATCH] Generate Client Library code - Automated --- ansys-grantami-serverapi-openapi/poetry.lock | 54 +- .../pyproject.toml | 2 +- .../grantami/serverapi_openapi/__init__.py | 146 ++ .../serverapi_openapi/api/__init__.py | 2 + .../serverapi_openapi/api/graph_api.py | 1217 +++++++++++++++++ .../api/schema___attributes_api.py | 12 +- .../serverapi_openapi/models/__init__.py | 140 ++ ...e_cannot_be_meta_attribute_error_detail.py | 128 ++ ...ompatible_maths_functional_error_detail.py | 132 ++ .../gsa_attribute_creation_exception.py | 206 +++ .../models/gsa_attribute_error_detail.py | 205 +++ .../models/gsa_attribute_error_reason.py | 56 + .../gsa_attribute_no_such_entity_type.py | 48 + ...te_usage_data_modification_error_detail.py | 9 +- .../gsa_data_modification_error_detail.py | 20 +- .../gsa_data_modification_error_reason.py | 45 + ...ta_usage_data_modification_error_detail.py | 9 +- ...not_found_maths_functional_error_detail.py | 128 ++ ...not_found_maths_functional_error_detail.py | 128 ++ ...ue_usage_data_modification_error_detail.py | 9 +- .../gsa_discrete_graph_parameter_value.py | 157 +++ .../models/gsa_discrete_graph_value.py | 157 +++ ...ion_guids_maths_functional_error_detail.py | 158 +++ ..._parameter_guids_attribute_error_detail.py | 158 +++ ...up_usage_data_modification_error_detail.py | 9 +- ..._empty_axis_name_attribute_error_detail.py | 128 ++ .../gsa_entity_already_exists_error_detail.py | 165 +++ ...xpression_maths_functional_error_detail.py | 192 +++ ...on_usage_data_modification_error_detail.py | 9 +- ...arameters_maths_functional_error_detail.py | 160 +++ ...a_func_no_params_attribute_error_detail.py | 128 ++ .../models/gsa_graph_parameter_value.py | 161 +++ .../models/gsa_graph_parameter_with_value.py | 183 +++ .../models/gsa_graph_value.py | 161 +++ .../models/gsa_graph_value_type.py | 46 + .../models/gsa_index_record_failure.py | 40 +- ...maths_functional_attribute_error_detail.py | 162 +++ .../gsa_maths_functional_error_detail.py | 204 +++ .../gsa_maths_functional_error_reason.py | 55 + .../models/gsa_mfa_expression_error_detail.py | 181 +++ .../models/gsa_mfa_expression_error_reason.py | 48 + ...rguments_parameter_content_error_detail.py | 165 +++ ...g_parameter_guid_attribute_error_detail.py | 128 ++ .../gsa_name_already_exists_error_detail.py | 162 +++ .../gsa_name_not_provided_error_detail.py | 132 ++ ...gsa_named_entity_attribute_error_detail.py | 160 +++ .../models/gsa_named_entity_error_detail.py | 227 +++ .../models/gsa_named_entity_error_reason.py | 47 + ...pressions_maths_functional_error_detail.py | 128 ++ ...a_no_such_entity_attribute_error_detail.py | 224 +++ ...pressions_maths_functional_error_detail.py | 219 +++ ...er_value_parameter_content_error_detail.py | 222 +++ .../gsa_numeric_graph_parameter_value.py | 157 +++ ...ate_guids_maths_functional_error_detail.py | 158 +++ .../gsa_parameter_content_error_detail.py | 196 +++ .../gsa_parameter_content_error_reason.py | 47 + ...r_content_maths_functional_error_detail.py | 194 +++ .../gsa_parameter_content_missing_argument.py | 47 + ...arameters_maths_functional_error_detail.py | 187 +++ ...ter_type_parameter_content_error_detail.py | 200 +++ ...res_multi_valued_attribute_error_detail.py | 128 ++ .../models/gsa_range_graph_value.py | 325 +++++ ...sk_usage_data_modification_error_detail.py | 9 +- ...te_usage_data_modification_error_detail.py | 9 +- ...te_usage_data_modification_error_detail.py | 9 +- ...ute_not_in_table_attribute_error_detail.py | 193 +++ ...t_attribute_type_attribute_error_detail.py | 161 +++ ...a_threshold_type_attribute_error_detail.py | 232 ++++ ...sa_usage_data_modification_error_detail.py | 9 +- ...ta_usage_data_modification_error_detail.py | 9 +- ...te_usage_data_modification_error_detail.py | 9 +- 71 files changed, 9374 insertions(+), 77 deletions(-) create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/graph_api.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_about_attribute_cannot_be_meta_attribute_error_detail.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_anonymous_expressions_must_allow_all_compatible_maths_functional_error_detail.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_attribute_creation_exception.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_attribute_error_detail.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_attribute_error_reason.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_attribute_no_such_entity_type.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_data_modification_error_reason.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_default_expression_not_found_maths_functional_error_detail.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_default_free_parameter_not_found_maths_functional_error_detail.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_discrete_graph_parameter_value.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_discrete_graph_value.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_duplicate_expression_guids_maths_functional_error_detail.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_duplicate_parameter_guids_attribute_error_detail.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_empty_axis_name_attribute_error_detail.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_entity_already_exists_error_detail.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_expression_maths_functional_error_detail.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_expressions_have_unknown_parameters_maths_functional_error_detail.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_func_no_params_attribute_error_detail.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_graph_parameter_value.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_graph_parameter_with_value.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_graph_value.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_graph_value_type.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_maths_functional_attribute_error_detail.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_maths_functional_error_detail.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_maths_functional_error_reason.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_mfa_expression_error_detail.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_mfa_expression_error_reason.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_missing_arguments_parameter_content_error_detail.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_missing_parameter_guid_attribute_error_detail.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_name_already_exists_error_detail.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_name_not_provided_error_detail.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_named_entity_attribute_error_detail.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_named_entity_error_detail.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_named_entity_error_reason.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_no_expressions_maths_functional_error_detail.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_no_such_entity_attribute_error_detail.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_no_such_expressions_maths_functional_error_detail.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_no_such_parameter_value_parameter_content_error_detail.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_numeric_graph_parameter_value.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_parameter_content_duplicate_guids_maths_functional_error_detail.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_parameter_content_error_detail.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_parameter_content_error_reason.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_parameter_content_maths_functional_error_detail.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_parameter_content_missing_argument.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_parameter_content_unknown_parameters_maths_functional_error_detail.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_parameter_type_parameter_content_error_detail.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_point_parameters_requires_multi_valued_attribute_error_detail.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_range_graph_value.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_target_attribute_not_in_table_attribute_error_detail.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_target_attribute_type_attribute_error_detail.py create mode 100644 ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_threshold_type_attribute_error_detail.py diff --git a/ansys-grantami-serverapi-openapi/poetry.lock b/ansys-grantami-serverapi-openapi/poetry.lock index 6db21016..bca5d8e1 100644 --- a/ansys-grantami-serverapi-openapi/poetry.lock +++ b/ansys-grantami-serverapi-openapi/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 1.8.5 and should not be changed by hand. +# This file is automatically @generated by Poetry 2.1.1 and should not be changed by hand. [[package]] name = "ansys-openapi-common" @@ -6,6 +6,7 @@ version = "2.2.0" description = "Provides a helper to create sessions for use with Ansys OpenAPI clients." optional = false python-versions = "<4.0,>=3.10" +groups = ["main"] files = [ {file = "ansys_openapi_common-2.2.0-py3-none-any.whl", hash = "sha256:3b95bd0ee38acd37800179489a451a854d6fe0312a5f0b1182e1407c8ad57e9e"}, {file = "ansys_openapi_common-2.2.0.tar.gz", hash = "sha256:176928ec15cfc6690dbb3ba7b806f01046a70b44c898530af390682973282195"}, @@ -19,7 +20,7 @@ requests-negotiate-sspi = {version = ">=0.5.2,<0.6.0", markers = "sys_platform = requests-ntlm = ">=1.1.0,<2.0.0" [package.extras] -linux-kerberos = ["requests-kerberos (>=0.13,<0.16)"] +linux-kerberos = ["requests-kerberos (>=0.13,<0.16) ; sys_platform == \"linux\""] oidc = ["keyring (>=22,<26)", "requests_auth (>=8.0.0,<9.0.0)"] [[package]] @@ -28,6 +29,7 @@ version = "2024.8.30" description = "Python package for providing Mozilla's CA Bundle." optional = false python-versions = ">=3.6" +groups = ["main", "dev"] files = [ {file = "certifi-2024.8.30-py3-none-any.whl", hash = "sha256:922820b53db7a7257ffbda3f597266d435245903d80737e34f8a45ff3e3230d8"}, {file = "certifi-2024.8.30.tar.gz", hash = "sha256:bec941d2aa8195e248a60b31ff9f0558284cf01a52591ceda73ea9afffd69fd9"}, @@ -39,6 +41,8 @@ version = "1.17.1" description = "Foreign Function Interface for Python calling C code." optional = false python-versions = ">=3.8" +groups = ["main"] +markers = "platform_python_implementation != \"PyPy\"" files = [ {file = "cffi-1.17.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:df8b1c11f177bc2313ec4b2d46baec87a5f3e71fc8b45dab2ee7cae86d9aba14"}, {file = "cffi-1.17.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:8f2cdc858323644ab277e9bb925ad72ae0e67f69e804f4898c070998d50b1a67"}, @@ -118,6 +122,7 @@ version = "3.4.0" description = "The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet." optional = false python-versions = ">=3.7.0" +groups = ["main", "dev"] files = [ {file = "charset_normalizer-3.4.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:4f9fc98dad6c2eaa32fc3af1417d95b5e3d08aff968df0cd320066def971f9a6"}, {file = "charset_normalizer-3.4.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:0de7b687289d3c1b3e8660d0741874abe7888100efe14bd0f9fd7141bcbda92b"}, @@ -232,6 +237,8 @@ version = "0.4.6" description = "Cross-platform colored terminal text." optional = false python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7" +groups = ["dev"] +markers = "sys_platform == \"win32\"" files = [ {file = "colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6"}, {file = "colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44"}, @@ -243,6 +250,7 @@ version = "44.0.1" description = "cryptography is a package which provides cryptographic recipes and primitives to Python developers." optional = false python-versions = "!=3.9.0,!=3.9.1,>=3.7" +groups = ["main"] files = [ {file = "cryptography-44.0.1-cp37-abi3-macosx_10_9_universal2.whl", hash = "sha256:bf688f615c29bfe9dfc44312ca470989279f0e94bb9f631f85e3459af8efc009"}, {file = "cryptography-44.0.1-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:dd7c7e2d71d908dc0f8d2027e1604102140d84b155e658c20e8ad1304317691f"}, @@ -281,10 +289,10 @@ files = [ cffi = {version = ">=1.12", markers = "platform_python_implementation != \"PyPy\""} [package.extras] -docs = ["sphinx (>=5.3.0)", "sphinx-rtd-theme (>=3.0.0)"] +docs = ["sphinx (>=5.3.0)", "sphinx-rtd-theme (>=3.0.0) ; python_version >= \"3.8\""] docstest = ["pyenchant (>=3)", "readme-renderer (>=30.0)", "sphinxcontrib-spelling (>=7.3.1)"] -nox = ["nox (>=2024.4.15)", "nox[uv] (>=2024.3.2)"] -pep8test = ["check-sdist", "click (>=8.0.1)", "mypy (>=1.4)", "ruff (>=0.3.6)"] +nox = ["nox (>=2024.4.15)", "nox[uv] (>=2024.3.2) ; python_version >= \"3.8\""] +pep8test = ["check-sdist ; python_version >= \"3.8\"", "click (>=8.0.1)", "mypy (>=1.4)", "ruff (>=0.3.6)"] sdist = ["build (>=1.0.0)"] ssh = ["bcrypt (>=3.1.5)"] test = ["certifi (>=2024)", "cryptography-vectors (==44.0.1)", "pretend (>=0.7)", "pytest (>=7.4.0)", "pytest-benchmark (>=4.0)", "pytest-cov (>=2.10.1)", "pytest-xdist (>=3.5.0)"] @@ -296,6 +304,8 @@ version = "1.2.2" description = "Backport of PEP 654 (exception groups)" optional = false python-versions = ">=3.7" +groups = ["dev"] +markers = "python_version < \"3.11\"" files = [ {file = "exceptiongroup-1.2.2-py3-none-any.whl", hash = "sha256:3111b9d131c238bec2f8f516e123e14ba243563fb135d3fe885990585aa7795b"}, {file = "exceptiongroup-1.2.2.tar.gz", hash = "sha256:47c2edf7c6738fafb49fd34290706d1a1a2f4d1c6df275526b62cbb4aa5393cc"}, @@ -310,6 +320,7 @@ version = "3.10" description = "Internationalized Domain Names in Applications (IDNA)" optional = false python-versions = ">=3.6" +groups = ["main", "dev"] files = [ {file = "idna-3.10-py3-none-any.whl", hash = "sha256:946d195a0d259cbba61165e88e65941f16e9b36ea6ddb97f00452bae8b1287d3"}, {file = "idna-3.10.tar.gz", hash = "sha256:12f65c9b470abda6dc35cf8e63cc574b1c52b11df2c86030af0ac09b01b13ea9"}, @@ -324,6 +335,7 @@ version = "2.0.0" description = "brain-dead simple config-ini parsing" optional = false python-versions = ">=3.7" +groups = ["dev"] files = [ {file = "iniconfig-2.0.0-py3-none-any.whl", hash = "sha256:b6a85871a79d2e3b22d2d1b94ac2824226a63c6b741c88f7ae975f18b6778374"}, {file = "iniconfig-2.0.0.tar.gz", hash = "sha256:2d91e135bf72d31a410b17c16da610a82cb55f6b0477d1a902134b24a455b8b3"}, @@ -335,6 +347,7 @@ version = "1.15.0" description = "Optional static typing for Python" optional = false python-versions = ">=3.9" +groups = ["dev"] files = [ {file = "mypy-1.15.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:979e4e1a006511dacf628e36fadfecbcc0160a8af6ca7dad2f5025529e082c13"}, {file = "mypy-1.15.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:c4bb0e1bd29f7d34efcccd71cf733580191e9a264a2202b0239da95984c5b559"}, @@ -388,6 +401,7 @@ version = "1.0.0" description = "Type system extensions for programs checked with the mypy type checker." optional = false python-versions = ">=3.5" +groups = ["dev"] files = [ {file = "mypy_extensions-1.0.0-py3-none-any.whl", hash = "sha256:4392f6c0eb8a5668a69e23d168ffa70f0be9ccfd32b5cc2d26a34ae5b844552d"}, {file = "mypy_extensions-1.0.0.tar.gz", hash = "sha256:75dbf8955dc00442a438fc4d0666508a9a97b6bd41aa2f0ffe9d2f2725af0782"}, @@ -399,6 +413,7 @@ version = "24.1" description = "Core utilities for Python packages" optional = false python-versions = ">=3.8" +groups = ["dev"] files = [ {file = "packaging-24.1-py3-none-any.whl", hash = "sha256:5b8f2217dbdbd2f7f384c41c628544e6d52f2d0f53c6d0c3ea61aa5d1d7ff124"}, {file = "packaging-24.1.tar.gz", hash = "sha256:026ed72c8ed3fcce5bf8950572258698927fd1dbda10a5e981cdf0ac37f4f002"}, @@ -410,6 +425,7 @@ version = "1.5.0" description = "plugin and hook calling mechanisms for python" optional = false python-versions = ">=3.8" +groups = ["dev"] files = [ {file = "pluggy-1.5.0-py3-none-any.whl", hash = "sha256:44e1ad92c8ca002de6377e165f3e0f1be63266ab4d554740532335b9d75ea669"}, {file = "pluggy-1.5.0.tar.gz", hash = "sha256:2cffa88e94fdc978c4c574f15f9e59b7f4201d439195c3715ca9e2486f1d0cf1"}, @@ -425,6 +441,8 @@ version = "2.22" description = "C parser in Python" optional = false python-versions = ">=3.8" +groups = ["main"] +markers = "platform_python_implementation != \"PyPy\"" files = [ {file = "pycparser-2.22-py3-none-any.whl", hash = "sha256:c3702b6d3dd8c7abc1afa565d7e63d53a1d0bd86cdc24edd75470f4de499cfcc"}, {file = "pycparser-2.22.tar.gz", hash = "sha256:491c8be9c040f5390f5bf44a5b07752bd07f56edf992381b05c701439eec10f6"}, @@ -436,6 +454,7 @@ version = "3.2.0" description = "pyparsing module - Classes and methods to define and execute parsing grammars" optional = false python-versions = ">=3.9" +groups = ["main"] files = [ {file = "pyparsing-3.2.0-py3-none-any.whl", hash = "sha256:93d9577b88da0bbea8cc8334ee8b918ed014968fd2ec383e868fb8afb1ccef84"}, {file = "pyparsing-3.2.0.tar.gz", hash = "sha256:cbf74e27246d595d9a74b186b810f6fbb86726dbf3b9532efb343f6d7294fe9c"}, @@ -450,6 +469,8 @@ version = "223" description = "" optional = false python-versions = "*" +groups = ["main"] +markers = "sys_platform == \"win32\"" files = [ {file = "pypiwin32-223-py3-none-any.whl", hash = "sha256:67adf399debc1d5d14dffc1ab5acacb800da569754fafdc576b2a039485aa775"}, {file = "pypiwin32-223.tar.gz", hash = "sha256:71be40c1fbd28594214ecaecb58e7aa8b708eabfa0125c8a109ebd51edbd776a"}, @@ -464,6 +485,7 @@ version = "0.11.1" description = "Windows Negotiate Authentication Client and Server" optional = false python-versions = ">=3.8" +groups = ["main"] files = [ {file = "pyspnego-0.11.1-py3-none-any.whl", hash = "sha256:129a4294f2c4d681d5875240ef87accc6f1d921e8983737fb0b59642b397951e"}, {file = "pyspnego-0.11.1.tar.gz", hash = "sha256:e92ed8b0a62765b9d6abbb86a48cf871228ddb97678598dc01c9c39a626823f6"}, @@ -474,7 +496,7 @@ cryptography = "*" sspilib = {version = ">=0.1.0", markers = "sys_platform == \"win32\""} [package.extras] -kerberos = ["gssapi (>=1.6.0)", "krb5 (>=0.3.0)"] +kerberos = ["gssapi (>=1.6.0) ; sys_platform != \"win32\"", "krb5 (>=0.3.0) ; sys_platform != \"win32\""] yaml = ["ruamel.yaml"] [[package]] @@ -483,6 +505,7 @@ version = "8.3.5" description = "pytest: simple powerful testing with Python" optional = false python-versions = ">=3.8" +groups = ["dev"] files = [ {file = "pytest-8.3.5-py3-none-any.whl", hash = "sha256:c69214aa47deac29fad6c2a4f590b9c4a9fdb16a403176fe154b79c0b4d4d820"}, {file = "pytest-8.3.5.tar.gz", hash = "sha256:f4efe70cc14e511565ac476b57c279e12a855b11f48f212af1080ef2263d3845"}, @@ -505,6 +528,7 @@ version = "2.9.0.post0" description = "Extensions to the standard Python datetime module" optional = false python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,>=2.7" +groups = ["main"] files = [ {file = "python-dateutil-2.9.0.post0.tar.gz", hash = "sha256:37dd54208da7e1cd875388217d5e00ebd4179249f90fb72437e91a35459a0ad3"}, {file = "python_dateutil-2.9.0.post0-py2.py3-none-any.whl", hash = "sha256:a8b2bc7bffae282281c8140a97d3aa9c14da0b136dfe83f850eea9a5f7470427"}, @@ -519,6 +543,8 @@ version = "308" description = "Python for Window Extensions" optional = false python-versions = "*" +groups = ["main"] +markers = "sys_platform == \"win32\"" files = [ {file = "pywin32-308-cp310-cp310-win32.whl", hash = "sha256:796ff4426437896550d2981b9c2ac0ffd75238ad9ea2d3bfa67a1abd546d262e"}, {file = "pywin32-308-cp310-cp310-win_amd64.whl", hash = "sha256:4fc888c59b3c0bef905ce7eb7e2106a07712015ea1c8234b703a088d46110e8e"}, @@ -546,6 +572,7 @@ version = "2.32.3" description = "Python HTTP for Humans." optional = false python-versions = ">=3.8" +groups = ["main", "dev"] files = [ {file = "requests-2.32.3-py3-none-any.whl", hash = "sha256:70761cfe03c773ceb22aa2f671b4757976145175cdfca038c02654d061d6dcc6"}, {file = "requests-2.32.3.tar.gz", hash = "sha256:55365417734eb18255590a9ff9eb97e9e1da868d4ccd6402399eaf68af20a760"}, @@ -567,6 +594,7 @@ version = "1.12.1" description = "Mock out responses from the requests package" optional = false python-versions = ">=3.5" +groups = ["dev"] files = [ {file = "requests-mock-1.12.1.tar.gz", hash = "sha256:e9e12e333b525156e82a3c852f22016b9158220d2f47454de9cae8a77d371401"}, {file = "requests_mock-1.12.1-py2.py3-none-any.whl", hash = "sha256:b1e37054004cdd5e56c84454cc7df12b25f90f382159087f4b6915aaeef39563"}, @@ -584,6 +612,8 @@ version = "0.5.2" description = "This package allows for Single-Sign On HTTP Negotiate authentication using the requests library on Windows." optional = false python-versions = "*" +groups = ["main"] +markers = "sys_platform == \"win32\"" files = [ {file = "requests_negotiate_sspi-0.5.2-py2.py3-none-any.whl", hash = "sha256:84ca9e81cfd3f2bd5eede5f8eddec1d5b58d957efac5e7fc078a3b323d296b77"}, ] @@ -601,6 +631,7 @@ version = "1.3.0" description = "This package allows for HTTP NTLM authentication using the requests library." optional = false python-versions = ">=3.8" +groups = ["main"] files = [ {file = "requests_ntlm-1.3.0-py3-none-any.whl", hash = "sha256:4c7534a7d0e482bb0928531d621be4b2c74ace437e88c5a357ceb7452d25a510"}, {file = "requests_ntlm-1.3.0.tar.gz", hash = "sha256:b29cc2462623dffdf9b88c43e180ccb735b4007228a542220e882c58ae56c668"}, @@ -617,6 +648,7 @@ version = "1.16.0" description = "Python 2 and 3 compatibility utilities" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" +groups = ["main"] files = [ {file = "six-1.16.0-py2.py3-none-any.whl", hash = "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"}, {file = "six-1.16.0.tar.gz", hash = "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"}, @@ -628,6 +660,8 @@ version = "0.2.0" description = "SSPI API bindings for Python" optional = false python-versions = ">=3.8" +groups = ["main"] +markers = "sys_platform == \"win32\"" files = [ {file = "sspilib-0.2.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:34f566ba8b332c91594e21a71200de2d4ce55ca5a205541d4128ed23e3c98777"}, {file = "sspilib-0.2.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:5b11e4f030de5c5de0f29bcf41a6e87c9fd90cb3b0f64e446a6e1d1aef4d08f5"}, @@ -673,6 +707,8 @@ version = "2.0.2" description = "A lil' TOML parser" optional = false python-versions = ">=3.8" +groups = ["dev"] +markers = "python_version < \"3.11\"" files = [ {file = "tomli-2.0.2-py3-none-any.whl", hash = "sha256:2ebe24485c53d303f690b0ec092806a085f07af5a5aa1464f3931eec36caaa38"}, {file = "tomli-2.0.2.tar.gz", hash = "sha256:d46d457a85337051c36524bc5349dd91b1877838e2979ac5ced3e710ed8a60ed"}, @@ -684,6 +720,7 @@ version = "4.12.2" description = "Backported and Experimental Type Hints for Python 3.8+" optional = false python-versions = ">=3.8" +groups = ["dev"] files = [ {file = "typing_extensions-4.12.2-py3-none-any.whl", hash = "sha256:04e5ca0351e0f3f85c6853954072df659d0d13fac324d0072316b67d7794700d"}, {file = "typing_extensions-4.12.2.tar.gz", hash = "sha256:1a7ead55c7e559dd4dee8856e3a88b41225abfe1ce8df57b7c13915fe121ffb8"}, @@ -695,18 +732,19 @@ version = "2.2.3" description = "HTTP library with thread-safe connection pooling, file post, and more." optional = false python-versions = ">=3.8" +groups = ["main", "dev"] files = [ {file = "urllib3-2.2.3-py3-none-any.whl", hash = "sha256:ca899ca043dcb1bafa3e262d73aa25c465bfb49e0bd9dd5d59f1d0acba2f8fac"}, {file = "urllib3-2.2.3.tar.gz", hash = "sha256:e7d814a81dad81e6caf2ec9fdedb284ecc9c73076b62654547cc64ccdcae26e9"}, ] [package.extras] -brotli = ["brotli (>=1.0.9)", "brotlicffi (>=0.8.0)"] +brotli = ["brotli (>=1.0.9) ; platform_python_implementation == \"CPython\"", "brotlicffi (>=0.8.0) ; platform_python_implementation != \"CPython\""] h2 = ["h2 (>=4,<5)"] socks = ["pysocks (>=1.5.6,!=1.5.7,<2.0)"] zstd = ["zstandard (>=0.18.0)"] [metadata] -lock-version = "2.0" +lock-version = "2.1" python-versions = "^3.10.0" content-hash = "da3766c89cf85779ae102cfa8ffeb878936daff9ed4059c68d8f1eef04474fc1" diff --git a/ansys-grantami-serverapi-openapi/pyproject.toml b/ansys-grantami-serverapi-openapi/pyproject.toml index a8aea2fc..34d71948 100644 --- a/ansys-grantami-serverapi-openapi/pyproject.toml +++ b/ansys-grantami-serverapi-openapi/pyproject.toml @@ -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.dev441" +version = "5.0.0.dev446" license = "MIT" authors = ["ANSYS, Inc. "] maintainers = ["ANSYS, Inc. "] diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/__init__.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/__init__.py index e1ab3fdc..7abb5642 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/__init__.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/__init__.py @@ -38,6 +38,7 @@ from .api.data_api import DataApi from .api.data_export_api import DataExportApi from .api.database_api import DatabaseApi +from .api.graph_api import GraphApi from .api.help_location_api import HelpLocationApi from .api.integration_api import IntegrationApi from .api.job_queue_api import JobQueueApi @@ -98,6 +99,9 @@ from .models.granta_mi_record_property_fake_attribute_identities import ( GrantaMIRecordPropertyFakeAttributeIdentities, ) +from .models.gsa_about_attribute_cannot_be_meta_attribute_error_detail import ( + GsaAboutAttributeCannotBeMetaAttributeErrorDetail, +) from .models.gsa_add_database import GsaAddDatabase from .models.gsa_add_record_history_to_subset import GsaAddRecordHistoryToSubset from .models.gsa_aggregation import GsaAggregation @@ -112,6 +116,9 @@ from .models.gsa_aggregations_response import GsaAggregationsResponse from .models.gsa_all_profiles_info import GsaAllProfilesInfo from .models.gsa_all_values_specifier import GsaAllValuesSpecifier +from .models.gsa_anonymous_expressions_must_allow_all_compatible_maths_functional_error_detail import ( + GsaAnonymousExpressionsMustAllowAllCompatibleMathsFunctionalErrorDetail, +) from .models.gsa_app_name_license_checkout_request import GsaAppNameLicenseCheckoutRequest from .models.gsa_app_name_license_checkout_response import GsaAppNameLicenseCheckoutResponse from .models.gsa_app_name_license_checkout_result import GsaAppNameLicenseCheckoutResult @@ -127,9 +134,12 @@ ) from .models.gsa_attribute_aggregation_type import GsaAttributeAggregationType from .models.gsa_attribute_aggregation_value_criterion import GsaAttributeAggregationValueCriterion +from .models.gsa_attribute_creation_exception import GsaAttributeCreationException from .models.gsa_attribute_criterion import GsaAttributeCriterion from .models.gsa_attribute_criterion_type import GsaAttributeCriterionType from .models.gsa_attribute_deletion_exception import GsaAttributeDeletionException +from .models.gsa_attribute_error_detail import GsaAttributeErrorDetail +from .models.gsa_attribute_error_reason import GsaAttributeErrorReason from .models.gsa_attribute_exists_aggregation import GsaAttributeExistsAggregation from .models.gsa_attribute_exists_criterion import GsaAttributeExistsCriterion from .models.gsa_attribute_export_failure import GsaAttributeExportFailure @@ -137,6 +147,7 @@ from .models.gsa_attribute_interpolation_method import GsaAttributeInterpolationMethod from .models.gsa_attribute_link_pair import GsaAttributeLinkPair from .models.gsa_attribute_matches_criterion import GsaAttributeMatchesCriterion +from .models.gsa_attribute_no_such_entity_type import GsaAttributeNoSuchEntityType from .models.gsa_attribute_not_applicable_criterion import GsaAttributeNotApplicableCriterion from .models.gsa_attribute_reference import GsaAttributeReference from .models.gsa_attribute_scale_type import GsaAttributeScaleType @@ -313,6 +324,7 @@ from .models.gsa_data_export_value_rollup_datum import GsaDataExportValueRollupDatum from .models.gsa_data_export_values_rollup_datum import GsaDataExportValuesRollupDatum from .models.gsa_data_modification_error_detail import GsaDataModificationErrorDetail +from .models.gsa_data_modification_error_reason import GsaDataModificationErrorReason from .models.gsa_data_rule import GsaDataRule from .models.gsa_data_rules_info import GsaDataRulesInfo from .models.gsa_data_usage_data_modification_error_detail import ( @@ -354,6 +366,12 @@ from .models.gsa_datum_rollup import GsaDatumRollup from .models.gsa_datum_rollup_type import GsaDatumRollupType from .models.gsa_datum_type import GsaDatumType +from .models.gsa_default_expression_not_found_maths_functional_error_detail import ( + GsaDefaultExpressionNotFoundMathsFunctionalErrorDetail, +) +from .models.gsa_default_free_parameter_not_found_maths_functional_error_detail import ( + GsaDefaultFreeParameterNotFoundMathsFunctionalErrorDetail, +) from .models.gsa_default_parameter_value_usage_data_modification_error_detail import ( GsaDefaultParameterValueUsageDataModificationErrorDetail, ) @@ -384,6 +402,8 @@ from .models.gsa_discrete_functional_values_datum_criterion import ( GsaDiscreteFunctionalValuesDatumCriterion, ) +from .models.gsa_discrete_graph_parameter_value import GsaDiscreteGraphParameterValue +from .models.gsa_discrete_graph_value import GsaDiscreteGraphValue from .models.gsa_discrete_grid_graph import GsaDiscreteGridGraph from .models.gsa_discrete_grid_point import GsaDiscreteGridPoint from .models.gsa_discrete_guid_datum_criterion import GsaDiscreteGuidDatumCriterion @@ -426,20 +446,34 @@ from .models.gsa_discrete_values_update_discrete_value import GsaDiscreteValuesUpdateDiscreteValue from .models.gsa_disk_status import GsaDiskStatus from .models.gsa_double_sorting_value import GsaDoubleSortingValue +from .models.gsa_duplicate_expression_guids_maths_functional_error_detail import ( + GsaDuplicateExpressionGuidsMathsFunctionalErrorDetail, +) +from .models.gsa_duplicate_parameter_guids_attribute_error_detail import ( + GsaDuplicateParameterGuidsAttributeErrorDetail, +) from .models.gsa_dynamic_link_group_usage_data_modification_error_detail import ( GsaDynamicLinkGroupUsageDataModificationErrorDetail, ) from .models.gsa_dynamic_record_link_group import GsaDynamicRecordLinkGroup +from .models.gsa_empty_axis_name_attribute_error_detail import GsaEmptyAxisNameAttributeErrorDetail from .models.gsa_enabled_licenses_info import GsaEnabledLicensesInfo +from .models.gsa_entity_already_exists_error_detail import GsaEntityAlreadyExistsErrorDetail from .models.gsa_error_detail import GsaErrorDetail from .models.gsa_exclude_values_specifier import GsaExcludeValuesSpecifier from .models.gsa_export_failure import GsaExportFailure from .models.gsa_export_failure_type import GsaExportFailureType from .models.gsa_exporter_refetch_info import GsaExporterRefetchInfo from .models.gsa_expression import GsaExpression +from .models.gsa_expression_maths_functional_error_detail import ( + GsaExpressionMathsFunctionalErrorDetail, +) from .models.gsa_expression_usage_data_modification_error_detail import ( GsaExpressionUsageDataModificationErrorDetail, ) +from .models.gsa_expressions_have_unknown_parameters_maths_functional_error_detail import ( + GsaExpressionsHaveUnknownParametersMathsFunctionalErrorDetail, +) from .models.gsa_expressions_info import GsaExpressionsInfo from .models.gsa_file_attribute import GsaFileAttribute from .models.gsa_file_datum import GsaFileDatum @@ -489,6 +523,7 @@ from .models.gsa_free_text_prefix_criterion import GsaFreeTextPrefixCriterion from .models.gsa_full_layout_section import GsaFullLayoutSection from .models.gsa_full_name_property import GsaFullNameProperty +from .models.gsa_func_no_params_attribute_error_detail import GsaFuncNoParamsAttributeErrorDetail from .models.gsa_functional_datum_parameter_info import GsaFunctionalDatumParameterInfo from .models.gsa_functional_parameter_setting import GsaFunctionalParameterSetting from .models.gsa_functional_type import GsaFunctionalType @@ -503,7 +538,11 @@ from .models.gsa_get_unit_conversions_request import GsaGetUnitConversionsRequest from .models.gsa_graph import GsaGraph from .models.gsa_graph_decoration_type import GsaGraphDecorationType +from .models.gsa_graph_parameter_value import GsaGraphParameterValue +from .models.gsa_graph_parameter_with_value import GsaGraphParameterWithValue from .models.gsa_graph_type import GsaGraphType +from .models.gsa_graph_value import GsaGraphValue +from .models.gsa_graph_value_type import GsaGraphValueType from .models.gsa_grid_graph import GsaGridGraph from .models.gsa_guid_only_attribute import GsaGuidOnlyAttribute from .models.gsa_guid_only_discrete_type import GsaGuidOnlyDiscreteType @@ -639,15 +678,33 @@ from .models.gsa_mapping_of_object_identifier import GsaMappingOfObjectIdentifier from .models.gsa_maths_content import GsaMathsContent from .models.gsa_maths_functional_attribute import GsaMathsFunctionalAttribute +from .models.gsa_maths_functional_attribute_error_detail import ( + GsaMathsFunctionalAttributeErrorDetail, +) from .models.gsa_maths_functional_datum_criterion import GsaMathsFunctionalDatumCriterion from .models.gsa_maths_functional_datum_exists_criterion import ( GsaMathsFunctionalDatumExistsCriterion, ) +from .models.gsa_maths_functional_error_detail import GsaMathsFunctionalErrorDetail +from .models.gsa_maths_functional_error_reason import GsaMathsFunctionalErrorReason +from .models.gsa_mfa_expression_error_detail import GsaMfaExpressionErrorDetail +from .models.gsa_mfa_expression_error_reason import GsaMfaExpressionErrorReason from .models.gsa_mi_version import GsaMiVersion +from .models.gsa_missing_arguments_parameter_content_error_detail import ( + GsaMissingArgumentsParameterContentErrorDetail, +) +from .models.gsa_missing_parameter_guid_attribute_error_detail import ( + GsaMissingParameterGuidAttributeErrorDetail, +) from .models.gsa_move_file import GsaMoveFile from .models.gsa_move_folder import GsaMoveFolder from .models.gsa_move_record_history import GsaMoveRecordHistory +from .models.gsa_name_already_exists_error_detail import GsaNameAlreadyExistsErrorDetail +from .models.gsa_name_not_provided_error_detail import GsaNameNotProvidedErrorDetail from .models.gsa_named_criterion import GsaNamedCriterion +from .models.gsa_named_entity_attribute_error_detail import GsaNamedEntityAttributeErrorDetail +from .models.gsa_named_entity_error_detail import GsaNamedEntityErrorDetail +from .models.gsa_named_entity_error_reason import GsaNamedEntityErrorReason from .models.gsa_new_layout_association_chain_item import GsaNewLayoutAssociationChainItem from .models.gsa_new_layout_association_chain_link import GsaNewLayoutAssociationChainLink from .models.gsa_new_layout_attribute_item import GsaNewLayoutAttributeItem @@ -656,10 +713,21 @@ from .models.gsa_new_layout_item_type import GsaNewLayoutItemType from .models.gsa_new_layout_record_link_item import GsaNewLayoutRecordLinkItem from .models.gsa_new_layout_smart_link_item import GsaNewLayoutSmartLinkItem +from .models.gsa_no_expressions_maths_functional_error_detail import ( + GsaNoExpressionsMathsFunctionalErrorDetail, +) +from .models.gsa_no_such_entity_attribute_error_detail import GsaNoSuchEntityAttributeErrorDetail +from .models.gsa_no_such_expressions_maths_functional_error_detail import ( + GsaNoSuchExpressionsMathsFunctionalErrorDetail, +) +from .models.gsa_no_such_parameter_value_parameter_content_error_detail import ( + GsaNoSuchParameterValueParameterContentErrorDetail, +) from .models.gsa_no_values_specifier import GsaNoValuesSpecifier from .models.gsa_not_applicable_datum import GsaNotApplicableDatum from .models.gsa_not_the_latest_version_error_detail import GsaNotTheLatestVersionErrorDetail from .models.gsa_not_versioned_error_detail import GsaNotVersionedErrorDetail +from .models.gsa_numeric_graph_parameter_value import GsaNumericGraphParameterValue from .models.gsa_numeric_parameter import GsaNumericParameter from .models.gsa_numeric_parameter_constraint import GsaNumericParameterConstraint from .models.gsa_numeric_parameter_content import GsaNumericParameterContent @@ -671,6 +739,18 @@ from .models.gsa_parameter_constraint import GsaParameterConstraint from .models.gsa_parameter_constraint_type import GsaParameterConstraintType from .models.gsa_parameter_content import GsaParameterContent +from .models.gsa_parameter_content_duplicate_guids_maths_functional_error_detail import ( + GsaParameterContentDuplicateGuidsMathsFunctionalErrorDetail, +) +from .models.gsa_parameter_content_error_detail import GsaParameterContentErrorDetail +from .models.gsa_parameter_content_error_reason import GsaParameterContentErrorReason +from .models.gsa_parameter_content_maths_functional_error_detail import ( + GsaParameterContentMathsFunctionalErrorDetail, +) +from .models.gsa_parameter_content_missing_argument import GsaParameterContentMissingArgument +from .models.gsa_parameter_content_unknown_parameters_maths_functional_error_detail import ( + GsaParameterContentUnknownParametersMathsFunctionalErrorDetail, +) from .models.gsa_parameter_data_value import GsaParameterDataValue from .models.gsa_parameter_deletion_exception import GsaParameterDeletionException from .models.gsa_parameter_info import GsaParameterInfo @@ -681,6 +761,9 @@ from .models.gsa_parameter_scale_type import GsaParameterScaleType from .models.gsa_parameter_setting_defined_at import GsaParameterSettingDefinedAt from .models.gsa_parameter_type import GsaParameterType +from .models.gsa_parameter_type_parameter_content_error_detail import ( + GsaParameterTypeParameterContentErrorDetail, +) from .models.gsa_parameter_value import GsaParameterValue from .models.gsa_parameter_value_deletion_exception import GsaParameterValueDeletionException from .models.gsa_parameter_value_type import GsaParameterValueType @@ -708,6 +791,9 @@ from .models.gsa_point_histogram_aggregation_datum_criterion import ( GsaPointHistogramAggregationDatumCriterion, ) +from .models.gsa_point_parameters_requires_multi_valued_attribute_error_detail import ( + GsaPointParametersRequiresMultiValuedAttributeErrorDetail, +) from .models.gsa_processing_config import GsaProcessingConfig from .models.gsa_profile import GsaProfile from .models.gsa_profile_table import GsaProfileTable @@ -750,6 +836,7 @@ from .models.gsa_range_fixed_width_histogram_aggregation_datum_criterion import ( GsaRangeFixedWidthHistogramAggregationDatumCriterion, ) +from .models.gsa_range_graph_value import GsaRangeGraphValue from .models.gsa_range_histogram_aggregation import GsaRangeHistogramAggregation from .models.gsa_range_histogram_aggregation_datum_criterion import ( GsaRangeHistogramAggregationDatumCriterion, @@ -927,8 +1014,15 @@ from .models.gsa_tabular_datum_summary_row import GsaTabularDatumSummaryRow from .models.gsa_tabular_linking_value_criterion import GsaTabularLinkingValueCriterion from .models.gsa_tabular_row_export_behavior import GsaTabularRowExportBehavior +from .models.gsa_target_attribute_not_in_table_attribute_error_detail import ( + GsaTargetAttributeNotInTableAttributeErrorDetail, +) +from .models.gsa_target_attribute_type_attribute_error_detail import ( + GsaTargetAttributeTypeAttributeErrorDetail, +) from .models.gsa_term_with_count import GsaTermWithCount from .models.gsa_text_match_behavior import GsaTextMatchBehavior +from .models.gsa_threshold_type_attribute_error_detail import GsaThresholdTypeAttributeErrorDetail from .models.gsa_unavailable_tabular_column import GsaUnavailableTabularColumn from .models.gsa_unit import GsaUnit from .models.gsa_unit_conversion_set import GsaUnitConversionSet @@ -1073,6 +1167,7 @@ "DataApi", "DataExportApi", "DatabaseApi", + "GraphApi", "HelpLocationApi", "IntegrationApi", "JobQueueApi", @@ -1125,6 +1220,7 @@ "FolderguidFilesBody1", "FolderguidFilesBody2", "GrantaMIRecordPropertyFakeAttributeIdentities", + "GsaAboutAttributeCannotBeMetaAttributeErrorDetail", "GsaAddDatabase", "GsaAddRecordHistoryToSubset", "GsaAggregation", @@ -1139,6 +1235,7 @@ "GsaAggregationsResponse", "GsaAllProfilesInfo", "GsaAllValuesSpecifier", + "GsaAnonymousExpressionsMustAllowAllCompatibleMathsFunctionalErrorDetail", "GsaAppNameLicenseCheckoutRequest", "GsaAppNameLicenseCheckoutResponse", "GsaAppNameLicenseCheckoutResult", @@ -1152,9 +1249,12 @@ "GsaAttributeAggregationExistsCriterion", "GsaAttributeAggregationType", "GsaAttributeAggregationValueCriterion", + "GsaAttributeCreationException", "GsaAttributeCriterion", "GsaAttributeCriterionType", "GsaAttributeDeletionException", + "GsaAttributeErrorDetail", + "GsaAttributeErrorReason", "GsaAttributeExistsAggregation", "GsaAttributeExistsCriterion", "GsaAttributeExportFailure", @@ -1162,6 +1262,7 @@ "GsaAttributeInterpolationMethod", "GsaAttributeLinkPair", "GsaAttributeMatchesCriterion", + "GsaAttributeNoSuchEntityType", "GsaAttributeNotApplicableCriterion", "GsaAttributeReference", "GsaAttributeScaleType", @@ -1318,6 +1419,7 @@ "GsaDataExportValueRollupDatum", "GsaDataExportValuesRollupDatum", "GsaDataModificationErrorDetail", + "GsaDataModificationErrorReason", "GsaDataRule", "GsaDataRulesInfo", "GsaDataUsageDataModificationErrorDetail", @@ -1351,6 +1453,8 @@ "GsaDatumRollup", "GsaDatumRollupType", "GsaDatumType", + "GsaDefaultExpressionNotFoundMathsFunctionalErrorDetail", + "GsaDefaultFreeParameterNotFoundMathsFunctionalErrorDetail", "GsaDefaultParameterValueUsageDataModificationErrorDetail", "GsaDeleteRecordListItem", "GsaDeleteRecordListItems", @@ -1367,6 +1471,8 @@ "GsaDiscreteFunctionalRangeDatumCriterion", "GsaDiscreteFunctionalSeriesDatum", "GsaDiscreteFunctionalValuesDatumCriterion", + "GsaDiscreteGraphParameterValue", + "GsaDiscreteGraphValue", "GsaDiscreteGridGraph", "GsaDiscreteGridPoint", "GsaDiscreteGuidDatumCriterion", @@ -1403,16 +1509,22 @@ "GsaDiscreteValuesUpdateDiscreteValue", "GsaDiskStatus", "GsaDoubleSortingValue", + "GsaDuplicateExpressionGuidsMathsFunctionalErrorDetail", + "GsaDuplicateParameterGuidsAttributeErrorDetail", "GsaDynamicLinkGroupUsageDataModificationErrorDetail", "GsaDynamicRecordLinkGroup", + "GsaEmptyAxisNameAttributeErrorDetail", "GsaEnabledLicensesInfo", + "GsaEntityAlreadyExistsErrorDetail", "GsaErrorDetail", "GsaExcludeValuesSpecifier", "GsaExportFailure", "GsaExportFailureType", "GsaExporterRefetchInfo", "GsaExpression", + "GsaExpressionMathsFunctionalErrorDetail", "GsaExpressionUsageDataModificationErrorDetail", + "GsaExpressionsHaveUnknownParametersMathsFunctionalErrorDetail", "GsaExpressionsInfo", "GsaFileAttribute", "GsaFileDatum", @@ -1450,6 +1562,7 @@ "GsaFreeTextPrefixCriterion", "GsaFullLayoutSection", "GsaFullNameProperty", + "GsaFuncNoParamsAttributeErrorDetail", "GsaFunctionalDatumParameterInfo", "GsaFunctionalParameterSetting", "GsaFunctionalType", @@ -1460,7 +1573,11 @@ "GsaGetUnitConversionsRequest", "GsaGraph", "GsaGraphDecorationType", + "GsaGraphParameterValue", + "GsaGraphParameterWithValue", "GsaGraphType", + "GsaGraphValue", + "GsaGraphValueType", "GsaGridGraph", "GsaGuidOnlyAttribute", "GsaGuidOnlyDiscreteType", @@ -1582,13 +1699,25 @@ "GsaMappingOfObjectIdentifier", "GsaMathsContent", "GsaMathsFunctionalAttribute", + "GsaMathsFunctionalAttributeErrorDetail", "GsaMathsFunctionalDatumCriterion", "GsaMathsFunctionalDatumExistsCriterion", + "GsaMathsFunctionalErrorDetail", + "GsaMathsFunctionalErrorReason", + "GsaMfaExpressionErrorDetail", + "GsaMfaExpressionErrorReason", "GsaMiVersion", + "GsaMissingArgumentsParameterContentErrorDetail", + "GsaMissingParameterGuidAttributeErrorDetail", "GsaMoveFile", "GsaMoveFolder", "GsaMoveRecordHistory", + "GsaNameAlreadyExistsErrorDetail", + "GsaNameNotProvidedErrorDetail", "GsaNamedCriterion", + "GsaNamedEntityAttributeErrorDetail", + "GsaNamedEntityErrorDetail", + "GsaNamedEntityErrorReason", "GsaNewLayoutAssociationChainItem", "GsaNewLayoutAssociationChainLink", "GsaNewLayoutAttributeItem", @@ -1597,10 +1726,15 @@ "GsaNewLayoutItemType", "GsaNewLayoutRecordLinkItem", "GsaNewLayoutSmartLinkItem", + "GsaNoExpressionsMathsFunctionalErrorDetail", + "GsaNoSuchEntityAttributeErrorDetail", + "GsaNoSuchExpressionsMathsFunctionalErrorDetail", + "GsaNoSuchParameterValueParameterContentErrorDetail", "GsaNoValuesSpecifier", "GsaNotApplicableDatum", "GsaNotTheLatestVersionErrorDetail", "GsaNotVersionedErrorDetail", + "GsaNumericGraphParameterValue", "GsaNumericParameter", "GsaNumericParameterConstraint", "GsaNumericParameterContent", @@ -1612,6 +1746,12 @@ "GsaParameterConstraint", "GsaParameterConstraintType", "GsaParameterContent", + "GsaParameterContentDuplicateGuidsMathsFunctionalErrorDetail", + "GsaParameterContentErrorDetail", + "GsaParameterContentErrorReason", + "GsaParameterContentMathsFunctionalErrorDetail", + "GsaParameterContentMissingArgument", + "GsaParameterContentUnknownParametersMathsFunctionalErrorDetail", "GsaParameterDataValue", "GsaParameterDeletionException", "GsaParameterInfo", @@ -1622,6 +1762,7 @@ "GsaParameterScaleType", "GsaParameterSettingDefinedAt", "GsaParameterType", + "GsaParameterTypeParameterContentErrorDetail", "GsaParameterValue", "GsaParameterValueDeletionException", "GsaParameterValueType", @@ -1645,6 +1786,7 @@ "GsaPointFixedWidthHistogramAggregationDatumCriterion", "GsaPointHistogramAggregation", "GsaPointHistogramAggregationDatumCriterion", + "GsaPointParametersRequiresMultiValuedAttributeErrorDetail", "GsaProcessingConfig", "GsaProfile", "GsaProfileTable", @@ -1683,6 +1825,7 @@ "GsaRangeDatumCriterion", "GsaRangeDatumExistsCriterion", "GsaRangeFixedWidthHistogramAggregationDatumCriterion", + "GsaRangeGraphValue", "GsaRangeHistogramAggregation", "GsaRangeHistogramAggregationDatumCriterion", "GsaRecordAncestorCriterion", @@ -1848,8 +1991,11 @@ "GsaTabularDatumSummaryRow", "GsaTabularLinkingValueCriterion", "GsaTabularRowExportBehavior", + "GsaTargetAttributeNotInTableAttributeErrorDetail", + "GsaTargetAttributeTypeAttributeErrorDetail", "GsaTermWithCount", "GsaTextMatchBehavior", + "GsaThresholdTypeAttributeErrorDetail", "GsaUnavailableTabularColumn", "GsaUnit", "GsaUnitConversionSet", diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/__init__.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/__init__.py index 9ac0ce01..41fd8de7 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/__init__.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/__init__.py @@ -31,6 +31,7 @@ from .data_api import DataApi from .data_export_api import DataExportApi from .database_api import DatabaseApi +from .graph_api import GraphApi from .help_location_api import HelpLocationApi from .integration_api import IntegrationApi from .job_queue_api import JobQueueApi @@ -79,6 +80,7 @@ "DataApi", "DataExportApi", "DatabaseApi", + "GraphApi", "HelpLocationApi", "IntegrationApi", "JobQueueApi", diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/graph_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/graph_api.py new file mode 100644 index 00000000..614ff31e --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/graph_api.py @@ -0,0 +1,1217 @@ +# 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 ApiBase + +if TYPE_CHECKING: + import pathlib + + from ..models import * + + +class GraphApi(ApiBase): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def evaluate_graph_for_version( + self, + *, + database_key: "str", + record_history_guid: "str", + record_version_guid: "str", + attribute_guid: "str", + body: "Optional[list[GsaGraphParameterWithValue]]" = None, + x_ansys_vc_mode: "Optional[str]" = None, + mode: "Optional[str]" = None, + ) -> "Union[GsaGraphValue, None]": + """Evaluate the graph for a given set of parameter values for a given database, record history, record version and attribute. Must be a float or discrete functional attribute. + + This method makes a synchronous HTTP request. + + Parameters + ---------- + database_key: str + record_history_guid: str + record_version_guid: str + attribute_guid: str + body: list[GsaGraphParameterWithValue] + x_ansys_vc_mode: str + The version control mode. If not provided, defaults to write mode if the user is allowed to see that. Can also be set in the query string. + mode: str + The version control mode. If not provided, defaults to write mode if the user is allowed to see that. Can also be set in the header. + + Returns + ------- + Union[GsaGraphValue, None] + """ + data = self._evaluate_graph_for_version_with_http_info( + database_key, + record_history_guid, + record_version_guid, + attribute_guid, + body, + x_ansys_vc_mode, + mode, + _return_http_data_only=True, + ) + return data # type: ignore[no-any-return] + + def _evaluate_graph_for_version_with_http_info( + self, + database_key: "str", + record_history_guid: "str", + record_version_guid: "str", + attribute_guid: "str", + body: "Optional[list[GsaGraphParameterWithValue]]" = None, + x_ansys_vc_mode: "Optional[str]" = None, + mode: "Optional[str]" = None, + **kwargs: Any, + ) -> Any: + all_params = [ + "database_key", + "record_history_guid", + "record_version_guid", + "attribute_guid", + "body", + "x_ansys_vc_mode", + "mode", + "_return_http_data_only", + "_preload_content", + "_request_timeout", + ] + + params = locals() + for key, val in params["kwargs"].items(): + if key not in all_params: + raise TypeError( + f"Got an unexpected keyword argument '{key}' to method evaluate_graph_for_version" + ) + params[key] = val + del params["kwargs"] + # verify the required parameter "database_key" is set + if "database_key" not in params or params["database_key"] is None: + raise ValueError( + "Missing the required parameter 'database_key' when calling 'evaluate_graph_for_version'" + ) + # verify the required parameter "record_history_guid" is set + if "record_history_guid" not in params or params["record_history_guid"] is None: + raise ValueError( + "Missing the required parameter 'record_history_guid' when calling 'evaluate_graph_for_version'" + ) + # verify the required parameter "record_version_guid" is set + if "record_version_guid" not in params or params["record_version_guid"] is None: + raise ValueError( + "Missing the required parameter 'record_version_guid' when calling 'evaluate_graph_for_version'" + ) + # verify the required parameter "attribute_guid" is set + if "attribute_guid" not in params or params["attribute_guid"] is None: + raise ValueError( + "Missing the required parameter 'attribute_guid' when calling 'evaluate_graph_for_version'" + ) + + collection_formats: dict[str, Any] = {} + + path_params: dict[str, Any] = {} + if "database_key" in params and database_key is not None: + path_params["database-key"] = params["database_key"] + if "record_history_guid" in params and record_history_guid is not None: + path_params["record-history-guid"] = params["record_history_guid"] + if "record_version_guid" in params and record_version_guid is not None: + path_params["record-version-guid"] = params["record_version_guid"] + if "attribute_guid" in params and attribute_guid is not None: + path_params["attribute-guid"] = params["attribute_guid"] + + query_params: list[Any] = [] + if "mode" in params and mode is not None: + query_params.append(("mode", params["mode"])) + + header_params: dict[str, Any] = {} + if "x_ansys_vc_mode" in params and x_ansys_vc_mode is not None: + header_params["X-Ansys-VC-Mode"] = params["x_ansys_vc_mode"] + + form_params: list[Any] = [] + local_var_files: dict[str, Any] = {} + + body_params = None + if "body" in params and body is not None: + body_params = params["body"] + # HTTP header 'Accept' + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) + + # HTTP header 'Content-Type' + header_params["Content-Type"] = self.api_client.select_header_content_type( + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] + ) + + response_type_map: dict[int, Optional[str]] = { + 200: "GsaGraphValue", + 400: None, + 404: None, + } + + return self.api_client.call_api( + "/v1alpha/databases/{database-key}/record-histories/{record-history-guid}/record-versions/{record-version-guid}/attributes/{attribute-guid}/graph:evaluate", + "POST", + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + _return_http_data_only=params.get("_return_http_data_only"), + _preload_content=params.get("_preload_content", True), + _request_timeout=params.get("_request_timeout"), + collection_formats=collection_formats, + response_type_map=response_type_map, + ) + + def evaluate_graph_for_version_from_table( + self, + *, + database_key: "str", + table_guid: "str", + record_history_guid: "str", + record_version_guid: "str", + attribute_guid: "str", + body: "Optional[list[GsaGraphParameterWithValue]]" = None, + x_ansys_vc_mode: "Optional[str]" = None, + mode: "Optional[str]" = None, + ) -> "Union[GsaGraphValue, None]": + """Evaluate the graph for a given set of parameter values for a given database, table, record history, record version and attribute. Must be a float or discrete functional attribute. + + This method makes a synchronous HTTP request. + + Parameters + ---------- + database_key: str + table_guid: str + record_history_guid: str + record_version_guid: str + attribute_guid: str + body: list[GsaGraphParameterWithValue] + x_ansys_vc_mode: str + The version control mode. If not provided, defaults to write mode if the user is allowed to see that. Can also be set in the query string. + mode: str + The version control mode. If not provided, defaults to write mode if the user is allowed to see that. Can also be set in the header. + + Returns + ------- + Union[GsaGraphValue, None] + """ + data = self._evaluate_graph_for_version_from_table_with_http_info( + database_key, + table_guid, + record_history_guid, + record_version_guid, + attribute_guid, + body, + x_ansys_vc_mode, + mode, + _return_http_data_only=True, + ) + return data # type: ignore[no-any-return] + + def _evaluate_graph_for_version_from_table_with_http_info( + self, + database_key: "str", + table_guid: "str", + record_history_guid: "str", + record_version_guid: "str", + attribute_guid: "str", + body: "Optional[list[GsaGraphParameterWithValue]]" = None, + x_ansys_vc_mode: "Optional[str]" = None, + mode: "Optional[str]" = None, + **kwargs: Any, + ) -> Any: + all_params = [ + "database_key", + "table_guid", + "record_history_guid", + "record_version_guid", + "attribute_guid", + "body", + "x_ansys_vc_mode", + "mode", + "_return_http_data_only", + "_preload_content", + "_request_timeout", + ] + + params = locals() + for key, val in params["kwargs"].items(): + if key not in all_params: + raise TypeError( + f"Got an unexpected keyword argument '{key}' to method evaluate_graph_for_version_from_table" + ) + params[key] = val + del params["kwargs"] + # verify the required parameter "database_key" is set + if "database_key" not in params or params["database_key"] is None: + raise ValueError( + "Missing the required parameter 'database_key' when calling 'evaluate_graph_for_version_from_table'" + ) + # verify the required parameter "table_guid" is set + if "table_guid" not in params or params["table_guid"] is None: + raise ValueError( + "Missing the required parameter 'table_guid' when calling 'evaluate_graph_for_version_from_table'" + ) + # verify the required parameter "record_history_guid" is set + if "record_history_guid" not in params or params["record_history_guid"] is None: + raise ValueError( + "Missing the required parameter 'record_history_guid' when calling 'evaluate_graph_for_version_from_table'" + ) + # verify the required parameter "record_version_guid" is set + if "record_version_guid" not in params or params["record_version_guid"] is None: + raise ValueError( + "Missing the required parameter 'record_version_guid' when calling 'evaluate_graph_for_version_from_table'" + ) + # verify the required parameter "attribute_guid" is set + if "attribute_guid" not in params or params["attribute_guid"] is None: + raise ValueError( + "Missing the required parameter 'attribute_guid' when calling 'evaluate_graph_for_version_from_table'" + ) + + collection_formats: dict[str, Any] = {} + + path_params: dict[str, Any] = {} + if "database_key" in params and database_key is not None: + path_params["database-key"] = params["database_key"] + if "table_guid" in params and table_guid is not None: + path_params["table-guid"] = params["table_guid"] + if "record_history_guid" in params and record_history_guid is not None: + path_params["record-history-guid"] = params["record_history_guid"] + if "record_version_guid" in params and record_version_guid is not None: + path_params["record-version-guid"] = params["record_version_guid"] + if "attribute_guid" in params and attribute_guid is not None: + path_params["attribute-guid"] = params["attribute_guid"] + + query_params: list[Any] = [] + if "mode" in params and mode is not None: + query_params.append(("mode", params["mode"])) + + header_params: dict[str, Any] = {} + if "x_ansys_vc_mode" in params and x_ansys_vc_mode is not None: + header_params["X-Ansys-VC-Mode"] = params["x_ansys_vc_mode"] + + form_params: list[Any] = [] + local_var_files: dict[str, Any] = {} + + body_params = None + if "body" in params and body is not None: + body_params = params["body"] + # HTTP header 'Accept' + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) + + # HTTP header 'Content-Type' + header_params["Content-Type"] = self.api_client.select_header_content_type( + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] + ) + + response_type_map: dict[int, Optional[str]] = { + 200: "GsaGraphValue", + 400: None, + 404: None, + } + + return self.api_client.call_api( + "/v1alpha/databases/{database-key}/tables/{table-guid}/record-histories/{record-history-guid}/record-versions/{record-version-guid}/attributes/{attribute-guid}/graph:evaluate", + "POST", + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + _return_http_data_only=params.get("_return_http_data_only"), + _preload_content=params.get("_preload_content", True), + _request_timeout=params.get("_request_timeout"), + collection_formats=collection_formats, + response_type_map=response_type_map, + ) + + def evaluate_graph_value_for_latest( + self, + *, + database_key: "str", + record_history_guid: "str", + attribute_guid: "str", + body: "Optional[list[GsaGraphParameterWithValue]]" = None, + x_ansys_vc_mode: "Optional[str]" = None, + mode: "Optional[str]" = None, + ) -> "Union[GsaGraphValue, None]": + """Evaluate the graph for a given set of parameter values for a given attribute and the latest version of a record history in a given database. Must be a float or discrete functional attribute. + + This method makes a synchronous HTTP request. + + Parameters + ---------- + database_key: str + record_history_guid: str + attribute_guid: str + body: list[GsaGraphParameterWithValue] + x_ansys_vc_mode: str + The version control mode. If not provided, defaults to write mode if the user is allowed to see that. Can also be set in the query string. + mode: str + The version control mode. If not provided, defaults to write mode if the user is allowed to see that. Can also be set in the header. + + Returns + ------- + Union[GsaGraphValue, None] + """ + data = self._evaluate_graph_value_for_latest_with_http_info( + database_key, + record_history_guid, + attribute_guid, + body, + x_ansys_vc_mode, + mode, + _return_http_data_only=True, + ) + return data # type: ignore[no-any-return] + + def _evaluate_graph_value_for_latest_with_http_info( + self, + database_key: "str", + record_history_guid: "str", + attribute_guid: "str", + body: "Optional[list[GsaGraphParameterWithValue]]" = None, + x_ansys_vc_mode: "Optional[str]" = None, + mode: "Optional[str]" = None, + **kwargs: Any, + ) -> Any: + all_params = [ + "database_key", + "record_history_guid", + "attribute_guid", + "body", + "x_ansys_vc_mode", + "mode", + "_return_http_data_only", + "_preload_content", + "_request_timeout", + ] + + params = locals() + for key, val in params["kwargs"].items(): + if key not in all_params: + raise TypeError( + f"Got an unexpected keyword argument '{key}' to method evaluate_graph_value_for_latest" + ) + params[key] = val + del params["kwargs"] + # verify the required parameter "database_key" is set + if "database_key" not in params or params["database_key"] is None: + raise ValueError( + "Missing the required parameter 'database_key' when calling 'evaluate_graph_value_for_latest'" + ) + # verify the required parameter "record_history_guid" is set + if "record_history_guid" not in params or params["record_history_guid"] is None: + raise ValueError( + "Missing the required parameter 'record_history_guid' when calling 'evaluate_graph_value_for_latest'" + ) + # verify the required parameter "attribute_guid" is set + if "attribute_guid" not in params or params["attribute_guid"] is None: + raise ValueError( + "Missing the required parameter 'attribute_guid' when calling 'evaluate_graph_value_for_latest'" + ) + + collection_formats: dict[str, Any] = {} + + path_params: dict[str, Any] = {} + if "database_key" in params and database_key is not None: + path_params["database-key"] = params["database_key"] + if "record_history_guid" in params and record_history_guid is not None: + path_params["record-history-guid"] = params["record_history_guid"] + if "attribute_guid" in params and attribute_guid is not None: + path_params["attribute-guid"] = params["attribute_guid"] + + query_params: list[Any] = [] + if "mode" in params and mode is not None: + query_params.append(("mode", params["mode"])) + + header_params: dict[str, Any] = {} + if "x_ansys_vc_mode" in params and x_ansys_vc_mode is not None: + header_params["X-Ansys-VC-Mode"] = params["x_ansys_vc_mode"] + + form_params: list[Any] = [] + local_var_files: dict[str, Any] = {} + + body_params = None + if "body" in params and body is not None: + body_params = params["body"] + # HTTP header 'Accept' + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) + + # HTTP header 'Content-Type' + header_params["Content-Type"] = self.api_client.select_header_content_type( + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] + ) + + response_type_map: dict[int, Optional[str]] = { + 200: "GsaGraphValue", + 400: None, + 404: None, + } + + return self.api_client.call_api( + "/v1alpha/databases/{database-key}/record-histories/{record-history-guid}/latest/attributes/{attribute-guid}/graph:evaluate", + "POST", + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + _return_http_data_only=params.get("_return_http_data_only"), + _preload_content=params.get("_preload_content", True), + _request_timeout=params.get("_request_timeout"), + collection_formats=collection_formats, + response_type_map=response_type_map, + ) + + def evaluate_graph_value_for_latest_from_table( + self, + *, + database_key: "str", + table_guid: "str", + record_history_guid: "str", + attribute_guid: "str", + body: "Optional[list[GsaGraphParameterWithValue]]" = None, + x_ansys_vc_mode: "Optional[str]" = None, + mode: "Optional[str]" = None, + ) -> "Union[GsaGraphValue, None]": + """Evaluate the graph for a given set of parameter values for a given attribute and the latest version of a record history in a given database and table. Must be a float or discrete functional attribute. + + This method makes a synchronous HTTP request. + + Parameters + ---------- + database_key: str + table_guid: str + record_history_guid: str + attribute_guid: str + body: list[GsaGraphParameterWithValue] + x_ansys_vc_mode: str + The version control mode. If not provided, defaults to write mode if the user is allowed to see that. Can also be set in the query string. + mode: str + The version control mode. If not provided, defaults to write mode if the user is allowed to see that. Can also be set in the header. + + Returns + ------- + Union[GsaGraphValue, None] + """ + data = self._evaluate_graph_value_for_latest_from_table_with_http_info( + database_key, + table_guid, + record_history_guid, + attribute_guid, + body, + x_ansys_vc_mode, + mode, + _return_http_data_only=True, + ) + return data # type: ignore[no-any-return] + + def _evaluate_graph_value_for_latest_from_table_with_http_info( + self, + database_key: "str", + table_guid: "str", + record_history_guid: "str", + attribute_guid: "str", + body: "Optional[list[GsaGraphParameterWithValue]]" = None, + x_ansys_vc_mode: "Optional[str]" = None, + mode: "Optional[str]" = None, + **kwargs: Any, + ) -> Any: + all_params = [ + "database_key", + "table_guid", + "record_history_guid", + "attribute_guid", + "body", + "x_ansys_vc_mode", + "mode", + "_return_http_data_only", + "_preload_content", + "_request_timeout", + ] + + params = locals() + for key, val in params["kwargs"].items(): + if key not in all_params: + raise TypeError( + f"Got an unexpected keyword argument '{key}' to method evaluate_graph_value_for_latest_from_table" + ) + params[key] = val + del params["kwargs"] + # verify the required parameter "database_key" is set + if "database_key" not in params or params["database_key"] is None: + raise ValueError( + "Missing the required parameter 'database_key' when calling 'evaluate_graph_value_for_latest_from_table'" + ) + # verify the required parameter "table_guid" is set + if "table_guid" not in params or params["table_guid"] is None: + raise ValueError( + "Missing the required parameter 'table_guid' when calling 'evaluate_graph_value_for_latest_from_table'" + ) + # verify the required parameter "record_history_guid" is set + if "record_history_guid" not in params or params["record_history_guid"] is None: + raise ValueError( + "Missing the required parameter 'record_history_guid' when calling 'evaluate_graph_value_for_latest_from_table'" + ) + # verify the required parameter "attribute_guid" is set + if "attribute_guid" not in params or params["attribute_guid"] is None: + raise ValueError( + "Missing the required parameter 'attribute_guid' when calling 'evaluate_graph_value_for_latest_from_table'" + ) + + collection_formats: dict[str, Any] = {} + + path_params: dict[str, Any] = {} + if "database_key" in params and database_key is not None: + path_params["database-key"] = params["database_key"] + if "table_guid" in params and table_guid is not None: + path_params["table-guid"] = params["table_guid"] + if "record_history_guid" in params and record_history_guid is not None: + path_params["record-history-guid"] = params["record_history_guid"] + if "attribute_guid" in params and attribute_guid is not None: + path_params["attribute-guid"] = params["attribute_guid"] + + query_params: list[Any] = [] + if "mode" in params and mode is not None: + query_params.append(("mode", params["mode"])) + + header_params: dict[str, Any] = {} + if "x_ansys_vc_mode" in params and x_ansys_vc_mode is not None: + header_params["X-Ansys-VC-Mode"] = params["x_ansys_vc_mode"] + + form_params: list[Any] = [] + local_var_files: dict[str, Any] = {} + + body_params = None + if "body" in params and body is not None: + body_params = params["body"] + # HTTP header 'Accept' + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) + + # HTTP header 'Content-Type' + header_params["Content-Type"] = self.api_client.select_header_content_type( + ["application/json-patch+json", "application/json", "text/json", "application/*+json"] + ) + + response_type_map: dict[int, Optional[str]] = { + 200: "GsaGraphValue", + 400: None, + 404: None, + } + + return self.api_client.call_api( + "/v1alpha/databases/{database-key}/tables/{table-guid}/record-histories/{record-history-guid}/latest/attributes/{attribute-guid}/graph:evaluate", + "POST", + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + _return_http_data_only=params.get("_return_http_data_only"), + _preload_content=params.get("_preload_content", True), + _request_timeout=params.get("_request_timeout"), + collection_formats=collection_formats, + response_type_map=response_type_map, + ) + + def get_graph_for_latest( + self, + *, + database_key: "str", + record_history_guid: "str", + attribute_guid: "str", + mode: "Optional[str]" = None, + x_ansys_vc_mode: "Optional[str]" = None, + ) -> "Union[GsaGraph, None]": + """Get the graph for a given attribute and the latest version of a record history in a given database. Must be a float or discrete functional attribute. + + This method makes a synchronous HTTP request. + + Parameters + ---------- + database_key: str + record_history_guid: str + attribute_guid: str + mode: str + The version control mode. If not provided, defaults to write mode if the user is allowed to see that. Can also be set in the header. + x_ansys_vc_mode: str + The version control mode. If not provided, defaults to write mode if the user is allowed to see that. Can also be set in the query string. + + Returns + ------- + Union[GsaGraph, None] + """ + data = self._get_graph_for_latest_with_http_info( + database_key, + record_history_guid, + attribute_guid, + mode, + x_ansys_vc_mode, + _return_http_data_only=True, + ) + return data # type: ignore[no-any-return] + + def _get_graph_for_latest_with_http_info( + self, + database_key: "str", + record_history_guid: "str", + attribute_guid: "str", + mode: "Optional[str]" = None, + x_ansys_vc_mode: "Optional[str]" = None, + **kwargs: Any, + ) -> Any: + all_params = [ + "database_key", + "record_history_guid", + "attribute_guid", + "mode", + "x_ansys_vc_mode", + "_return_http_data_only", + "_preload_content", + "_request_timeout", + ] + + params = locals() + for key, val in params["kwargs"].items(): + if key not in all_params: + raise TypeError( + f"Got an unexpected keyword argument '{key}' to method get_graph_for_latest" + ) + params[key] = val + del params["kwargs"] + # verify the required parameter "database_key" is set + if "database_key" not in params or params["database_key"] is None: + raise ValueError( + "Missing the required parameter 'database_key' when calling 'get_graph_for_latest'" + ) + # verify the required parameter "record_history_guid" is set + if "record_history_guid" not in params or params["record_history_guid"] is None: + raise ValueError( + "Missing the required parameter 'record_history_guid' when calling 'get_graph_for_latest'" + ) + # verify the required parameter "attribute_guid" is set + if "attribute_guid" not in params or params["attribute_guid"] is None: + raise ValueError( + "Missing the required parameter 'attribute_guid' when calling 'get_graph_for_latest'" + ) + + collection_formats: dict[str, Any] = {} + + path_params: dict[str, Any] = {} + if "database_key" in params and database_key is not None: + path_params["database-key"] = params["database_key"] + if "record_history_guid" in params and record_history_guid is not None: + path_params["record-history-guid"] = params["record_history_guid"] + if "attribute_guid" in params and attribute_guid is not None: + path_params["attribute-guid"] = params["attribute_guid"] + + query_params: list[Any] = [] + if "mode" in params and mode is not None: + query_params.append(("mode", params["mode"])) + + header_params: dict[str, Any] = {} + if "x_ansys_vc_mode" in params and x_ansys_vc_mode is not None: + header_params["X-Ansys-VC-Mode"] = params["x_ansys_vc_mode"] + + form_params: list[Any] = [] + local_var_files: dict[str, Any] = {} + + body_params = None + # HTTP header 'Accept' + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) + + response_type_map: dict[int, Optional[str]] = { + 200: "GsaGraph", + 400: None, + 404: None, + } + + return self.api_client.call_api( + "/v1alpha/databases/{database-key}/record-histories/{record-history-guid}/latest/attributes/{attribute-guid}/graph", + "GET", + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + _return_http_data_only=params.get("_return_http_data_only"), + _preload_content=params.get("_preload_content", True), + _request_timeout=params.get("_request_timeout"), + collection_formats=collection_formats, + response_type_map=response_type_map, + ) + + def get_graph_for_latest_from_table( + self, + *, + database_key: "str", + table_guid: "str", + record_history_guid: "str", + attribute_guid: "str", + mode: "Optional[str]" = None, + x_ansys_vc_mode: "Optional[str]" = None, + ) -> "Union[GsaGraph, None]": + """Get the graph for a given attribute and the latest version of a record history in a given database and table. Must be a float or discrete functional attribute. + + This method makes a synchronous HTTP request. + + Parameters + ---------- + database_key: str + table_guid: str + record_history_guid: str + attribute_guid: str + mode: str + The version control mode. If not provided, defaults to write mode if the user is allowed to see that. Can also be set in the header. + x_ansys_vc_mode: str + The version control mode. If not provided, defaults to write mode if the user is allowed to see that. Can also be set in the query string. + + Returns + ------- + Union[GsaGraph, None] + """ + data = self._get_graph_for_latest_from_table_with_http_info( + database_key, + table_guid, + record_history_guid, + attribute_guid, + mode, + x_ansys_vc_mode, + _return_http_data_only=True, + ) + return data # type: ignore[no-any-return] + + def _get_graph_for_latest_from_table_with_http_info( + self, + database_key: "str", + table_guid: "str", + record_history_guid: "str", + attribute_guid: "str", + mode: "Optional[str]" = None, + x_ansys_vc_mode: "Optional[str]" = None, + **kwargs: Any, + ) -> Any: + all_params = [ + "database_key", + "table_guid", + "record_history_guid", + "attribute_guid", + "mode", + "x_ansys_vc_mode", + "_return_http_data_only", + "_preload_content", + "_request_timeout", + ] + + params = locals() + for key, val in params["kwargs"].items(): + if key not in all_params: + raise TypeError( + f"Got an unexpected keyword argument '{key}' to method get_graph_for_latest_from_table" + ) + params[key] = val + del params["kwargs"] + # verify the required parameter "database_key" is set + if "database_key" not in params or params["database_key"] is None: + raise ValueError( + "Missing the required parameter 'database_key' when calling 'get_graph_for_latest_from_table'" + ) + # verify the required parameter "table_guid" is set + if "table_guid" not in params or params["table_guid"] is None: + raise ValueError( + "Missing the required parameter 'table_guid' when calling 'get_graph_for_latest_from_table'" + ) + # verify the required parameter "record_history_guid" is set + if "record_history_guid" not in params or params["record_history_guid"] is None: + raise ValueError( + "Missing the required parameter 'record_history_guid' when calling 'get_graph_for_latest_from_table'" + ) + # verify the required parameter "attribute_guid" is set + if "attribute_guid" not in params or params["attribute_guid"] is None: + raise ValueError( + "Missing the required parameter 'attribute_guid' when calling 'get_graph_for_latest_from_table'" + ) + + collection_formats: dict[str, Any] = {} + + path_params: dict[str, Any] = {} + if "database_key" in params and database_key is not None: + path_params["database-key"] = params["database_key"] + if "table_guid" in params and table_guid is not None: + path_params["table-guid"] = params["table_guid"] + if "record_history_guid" in params and record_history_guid is not None: + path_params["record-history-guid"] = params["record_history_guid"] + if "attribute_guid" in params and attribute_guid is not None: + path_params["attribute-guid"] = params["attribute_guid"] + + query_params: list[Any] = [] + if "mode" in params and mode is not None: + query_params.append(("mode", params["mode"])) + + header_params: dict[str, Any] = {} + if "x_ansys_vc_mode" in params and x_ansys_vc_mode is not None: + header_params["X-Ansys-VC-Mode"] = params["x_ansys_vc_mode"] + + form_params: list[Any] = [] + local_var_files: dict[str, Any] = {} + + body_params = None + # HTTP header 'Accept' + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) + + response_type_map: dict[int, Optional[str]] = { + 200: "GsaGraph", + 400: None, + 404: None, + } + + return self.api_client.call_api( + "/v1alpha/databases/{database-key}/tables/{table-guid}/record-histories/{record-history-guid}/latest/attributes/{attribute-guid}/graph", + "GET", + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + _return_http_data_only=params.get("_return_http_data_only"), + _preload_content=params.get("_preload_content", True), + _request_timeout=params.get("_request_timeout"), + collection_formats=collection_formats, + response_type_map=response_type_map, + ) + + def get_graph_for_version( + self, + *, + database_key: "str", + record_history_guid: "str", + record_version_guid: "str", + attribute_guid: "str", + mode: "Optional[str]" = None, + x_ansys_vc_mode: "Optional[str]" = None, + ) -> "Union[GsaGraph, None]": + """Get a graph for a given database, record history, record version and attribute. Must be a float or discrete functional attribute. + + This method makes a synchronous HTTP request. + + Parameters + ---------- + database_key: str + record_history_guid: str + record_version_guid: str + attribute_guid: str + mode: str + The version control mode. If not provided, defaults to write mode if the user is allowed to see that. Can also be set in the header. + x_ansys_vc_mode: str + The version control mode. If not provided, defaults to write mode if the user is allowed to see that. Can also be set in the query string. + + Returns + ------- + Union[GsaGraph, None] + """ + data = self._get_graph_for_version_with_http_info( + database_key, + record_history_guid, + record_version_guid, + attribute_guid, + mode, + x_ansys_vc_mode, + _return_http_data_only=True, + ) + return data # type: ignore[no-any-return] + + def _get_graph_for_version_with_http_info( + self, + database_key: "str", + record_history_guid: "str", + record_version_guid: "str", + attribute_guid: "str", + mode: "Optional[str]" = None, + x_ansys_vc_mode: "Optional[str]" = None, + **kwargs: Any, + ) -> Any: + all_params = [ + "database_key", + "record_history_guid", + "record_version_guid", + "attribute_guid", + "mode", + "x_ansys_vc_mode", + "_return_http_data_only", + "_preload_content", + "_request_timeout", + ] + + params = locals() + for key, val in params["kwargs"].items(): + if key not in all_params: + raise TypeError( + f"Got an unexpected keyword argument '{key}' to method get_graph_for_version" + ) + params[key] = val + del params["kwargs"] + # verify the required parameter "database_key" is set + if "database_key" not in params or params["database_key"] is None: + raise ValueError( + "Missing the required parameter 'database_key' when calling 'get_graph_for_version'" + ) + # verify the required parameter "record_history_guid" is set + if "record_history_guid" not in params or params["record_history_guid"] is None: + raise ValueError( + "Missing the required parameter 'record_history_guid' when calling 'get_graph_for_version'" + ) + # verify the required parameter "record_version_guid" is set + if "record_version_guid" not in params or params["record_version_guid"] is None: + raise ValueError( + "Missing the required parameter 'record_version_guid' when calling 'get_graph_for_version'" + ) + # verify the required parameter "attribute_guid" is set + if "attribute_guid" not in params or params["attribute_guid"] is None: + raise ValueError( + "Missing the required parameter 'attribute_guid' when calling 'get_graph_for_version'" + ) + + collection_formats: dict[str, Any] = {} + + path_params: dict[str, Any] = {} + if "database_key" in params and database_key is not None: + path_params["database-key"] = params["database_key"] + if "record_history_guid" in params and record_history_guid is not None: + path_params["record-history-guid"] = params["record_history_guid"] + if "record_version_guid" in params and record_version_guid is not None: + path_params["record-version-guid"] = params["record_version_guid"] + if "attribute_guid" in params and attribute_guid is not None: + path_params["attribute-guid"] = params["attribute_guid"] + + query_params: list[Any] = [] + if "mode" in params and mode is not None: + query_params.append(("mode", params["mode"])) + + header_params: dict[str, Any] = {} + if "x_ansys_vc_mode" in params and x_ansys_vc_mode is not None: + header_params["X-Ansys-VC-Mode"] = params["x_ansys_vc_mode"] + + form_params: list[Any] = [] + local_var_files: dict[str, Any] = {} + + body_params = None + # HTTP header 'Accept' + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) + + response_type_map: dict[int, Optional[str]] = { + 200: "GsaGraph", + 400: None, + 404: None, + } + + return self.api_client.call_api( + "/v1alpha/databases/{database-key}/record-histories/{record-history-guid}/record-versions/{record-version-guid}/attributes/{attribute-guid}/graph", + "GET", + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + _return_http_data_only=params.get("_return_http_data_only"), + _preload_content=params.get("_preload_content", True), + _request_timeout=params.get("_request_timeout"), + collection_formats=collection_formats, + response_type_map=response_type_map, + ) + + def get_graph_for_version_from_table( + self, + *, + database_key: "str", + table_guid: "str", + record_history_guid: "str", + record_version_guid: "str", + attribute_guid: "str", + mode: "Optional[str]" = None, + x_ansys_vc_mode: "Optional[str]" = None, + ) -> "Union[GsaGraph, None]": + """Get the graph for a given database, table, record history, record version and attribute. Must be a float or discrete functional attribute. + + This method makes a synchronous HTTP request. + + Parameters + ---------- + database_key: str + table_guid: str + record_history_guid: str + record_version_guid: str + attribute_guid: str + mode: str + The version control mode. If not provided, defaults to write mode if the user is allowed to see that. Can also be set in the header. + x_ansys_vc_mode: str + The version control mode. If not provided, defaults to write mode if the user is allowed to see that. Can also be set in the query string. + + Returns + ------- + Union[GsaGraph, None] + """ + data = self._get_graph_for_version_from_table_with_http_info( + database_key, + table_guid, + record_history_guid, + record_version_guid, + attribute_guid, + mode, + x_ansys_vc_mode, + _return_http_data_only=True, + ) + return data # type: ignore[no-any-return] + + def _get_graph_for_version_from_table_with_http_info( + self, + database_key: "str", + table_guid: "str", + record_history_guid: "str", + record_version_guid: "str", + attribute_guid: "str", + mode: "Optional[str]" = None, + x_ansys_vc_mode: "Optional[str]" = None, + **kwargs: Any, + ) -> Any: + all_params = [ + "database_key", + "table_guid", + "record_history_guid", + "record_version_guid", + "attribute_guid", + "mode", + "x_ansys_vc_mode", + "_return_http_data_only", + "_preload_content", + "_request_timeout", + ] + + params = locals() + for key, val in params["kwargs"].items(): + if key not in all_params: + raise TypeError( + f"Got an unexpected keyword argument '{key}' to method get_graph_for_version_from_table" + ) + params[key] = val + del params["kwargs"] + # verify the required parameter "database_key" is set + if "database_key" not in params or params["database_key"] is None: + raise ValueError( + "Missing the required parameter 'database_key' when calling 'get_graph_for_version_from_table'" + ) + # verify the required parameter "table_guid" is set + if "table_guid" not in params or params["table_guid"] is None: + raise ValueError( + "Missing the required parameter 'table_guid' when calling 'get_graph_for_version_from_table'" + ) + # verify the required parameter "record_history_guid" is set + if "record_history_guid" not in params or params["record_history_guid"] is None: + raise ValueError( + "Missing the required parameter 'record_history_guid' when calling 'get_graph_for_version_from_table'" + ) + # verify the required parameter "record_version_guid" is set + if "record_version_guid" not in params or params["record_version_guid"] is None: + raise ValueError( + "Missing the required parameter 'record_version_guid' when calling 'get_graph_for_version_from_table'" + ) + # verify the required parameter "attribute_guid" is set + if "attribute_guid" not in params or params["attribute_guid"] is None: + raise ValueError( + "Missing the required parameter 'attribute_guid' when calling 'get_graph_for_version_from_table'" + ) + + collection_formats: dict[str, Any] = {} + + path_params: dict[str, Any] = {} + if "database_key" in params and database_key is not None: + path_params["database-key"] = params["database_key"] + if "table_guid" in params and table_guid is not None: + path_params["table-guid"] = params["table_guid"] + if "record_history_guid" in params and record_history_guid is not None: + path_params["record-history-guid"] = params["record_history_guid"] + if "record_version_guid" in params and record_version_guid is not None: + path_params["record-version-guid"] = params["record_version_guid"] + if "attribute_guid" in params and attribute_guid is not None: + path_params["attribute-guid"] = params["attribute_guid"] + + query_params: list[Any] = [] + if "mode" in params and mode is not None: + query_params.append(("mode", params["mode"])) + + header_params: dict[str, Any] = {} + if "x_ansys_vc_mode" in params and x_ansys_vc_mode is not None: + header_params["X-Ansys-VC-Mode"] = params["x_ansys_vc_mode"] + + form_params: list[Any] = [] + local_var_files: dict[str, Any] = {} + + body_params = None + # HTTP header 'Accept' + header_params["Accept"] = self.api_client.select_header_accept(["application/json"]) + + response_type_map: dict[int, Optional[str]] = { + 200: "GsaGraph", + 400: None, + 404: None, + } + + return self.api_client.call_api( + "/v1alpha/databases/{database-key}/tables/{table-guid}/record-histories/{record-history-guid}/record-versions/{record-version-guid}/attributes/{attribute-guid}/graph", + "GET", + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + _return_http_data_only=params.get("_return_http_data_only"), + _preload_content=params.get("_preload_content", True), + _request_timeout=params.get("_request_timeout"), + collection_formats=collection_formats, + response_type_map=response_type_map, + ) diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___attributes_api.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___attributes_api.py index bb9be4e1..e579c1a0 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___attributes_api.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/api/schema___attributes_api.py @@ -50,7 +50,7 @@ class SchemaAttributesApi(ApiBase): def create_attribute( self, *, database_key: "str", table_guid: "str", body: "Optional[GsaCreateAttribute]" = None - ) -> "Union[GsaAttribute, None]": + ) -> "Union[GsaAttribute, GsaAttributeCreationException, None]": """Create a new attribute. This method makes a synchronous HTTP request. @@ -63,7 +63,7 @@ def create_attribute( Returns ------- - Union[GsaAttribute, None] + Union[GsaAttribute, GsaAttributeCreationException, None] """ data = self._create_attribute_with_http_info( database_key, table_guid, body, _return_http_data_only=True @@ -133,7 +133,7 @@ def _create_attribute_with_http_info( response_type_map: dict[int, Optional[str]] = { 201: "GsaAttribute", - 400: None, + 400: "GsaAttributeCreationException", 403: None, 404: None, } @@ -161,7 +161,7 @@ def create_meta_attribute( table_guid: "str", attribute_guid: "str", body: "Optional[GsaCreateAttribute]" = None, - ) -> "Union[GsaAttribute, None]": + ) -> "Union[GsaAttribute, GsaAttributeCreationException, None]": """Create a new meta-attribute for attribute. This method makes a synchronous HTTP request. @@ -175,7 +175,7 @@ def create_meta_attribute( Returns ------- - Union[GsaAttribute, None] + Union[GsaAttribute, GsaAttributeCreationException, None] """ data = self._create_meta_attribute_with_http_info( database_key, table_guid, attribute_guid, body, _return_http_data_only=True @@ -254,7 +254,7 @@ def _create_meta_attribute_with_http_info( response_type_map: dict[int, Optional[str]] = { 201: "GsaAttribute", - 400: None, + 400: "GsaAttributeCreationException", 403: None, 404: None, } diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/__init__.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/__init__.py index 2124c87c..470440d7 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/__init__.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/__init__.py @@ -51,6 +51,9 @@ from .granta_mi_record_property_fake_attribute_identities import ( GrantaMIRecordPropertyFakeAttributeIdentities, ) +from .gsa_about_attribute_cannot_be_meta_attribute_error_detail import ( + GsaAboutAttributeCannotBeMetaAttributeErrorDetail, +) from .gsa_add_database import GsaAddDatabase from .gsa_add_record_history_to_subset import GsaAddRecordHistoryToSubset from .gsa_aggregation import GsaAggregation @@ -65,6 +68,9 @@ from .gsa_aggregations_response import GsaAggregationsResponse from .gsa_all_profiles_info import GsaAllProfilesInfo from .gsa_all_values_specifier import GsaAllValuesSpecifier +from .gsa_anonymous_expressions_must_allow_all_compatible_maths_functional_error_detail import ( + GsaAnonymousExpressionsMustAllowAllCompatibleMathsFunctionalErrorDetail, +) from .gsa_app_name_license_checkout_request import GsaAppNameLicenseCheckoutRequest from .gsa_app_name_license_checkout_response import GsaAppNameLicenseCheckoutResponse from .gsa_app_name_license_checkout_result import GsaAppNameLicenseCheckoutResult @@ -78,9 +84,12 @@ from .gsa_attribute_aggregation_exists_criterion import GsaAttributeAggregationExistsCriterion from .gsa_attribute_aggregation_type import GsaAttributeAggregationType from .gsa_attribute_aggregation_value_criterion import GsaAttributeAggregationValueCriterion +from .gsa_attribute_creation_exception import GsaAttributeCreationException from .gsa_attribute_criterion import GsaAttributeCriterion from .gsa_attribute_criterion_type import GsaAttributeCriterionType from .gsa_attribute_deletion_exception import GsaAttributeDeletionException +from .gsa_attribute_error_detail import GsaAttributeErrorDetail +from .gsa_attribute_error_reason import GsaAttributeErrorReason from .gsa_attribute_exists_aggregation import GsaAttributeExistsAggregation from .gsa_attribute_exists_criterion import GsaAttributeExistsCriterion from .gsa_attribute_export_failure import GsaAttributeExportFailure @@ -88,6 +97,7 @@ from .gsa_attribute_interpolation_method import GsaAttributeInterpolationMethod from .gsa_attribute_link_pair import GsaAttributeLinkPair from .gsa_attribute_matches_criterion import GsaAttributeMatchesCriterion +from .gsa_attribute_no_such_entity_type import GsaAttributeNoSuchEntityType from .gsa_attribute_not_applicable_criterion import GsaAttributeNotApplicableCriterion from .gsa_attribute_reference import GsaAttributeReference from .gsa_attribute_scale_type import GsaAttributeScaleType @@ -260,6 +270,7 @@ from .gsa_data_export_value_rollup_datum import GsaDataExportValueRollupDatum from .gsa_data_export_values_rollup_datum import GsaDataExportValuesRollupDatum from .gsa_data_modification_error_detail import GsaDataModificationErrorDetail +from .gsa_data_modification_error_reason import GsaDataModificationErrorReason from .gsa_data_rule import GsaDataRule from .gsa_data_rules_info import GsaDataRulesInfo from .gsa_data_usage_data_modification_error_detail import GsaDataUsageDataModificationErrorDetail @@ -299,6 +310,12 @@ from .gsa_datum_rollup import GsaDatumRollup from .gsa_datum_rollup_type import GsaDatumRollupType from .gsa_datum_type import GsaDatumType +from .gsa_default_expression_not_found_maths_functional_error_detail import ( + GsaDefaultExpressionNotFoundMathsFunctionalErrorDetail, +) +from .gsa_default_free_parameter_not_found_maths_functional_error_detail import ( + GsaDefaultFreeParameterNotFoundMathsFunctionalErrorDetail, +) from .gsa_default_parameter_value_usage_data_modification_error_detail import ( GsaDefaultParameterValueUsageDataModificationErrorDetail, ) @@ -325,6 +342,8 @@ from .gsa_discrete_functional_values_datum_criterion import ( GsaDiscreteFunctionalValuesDatumCriterion, ) +from .gsa_discrete_graph_parameter_value import GsaDiscreteGraphParameterValue +from .gsa_discrete_graph_value import GsaDiscreteGraphValue from .gsa_discrete_grid_graph import GsaDiscreteGridGraph from .gsa_discrete_grid_point import GsaDiscreteGridPoint from .gsa_discrete_guid_datum_criterion import GsaDiscreteGuidDatumCriterion @@ -363,20 +382,32 @@ from .gsa_discrete_values_update_discrete_value import GsaDiscreteValuesUpdateDiscreteValue from .gsa_disk_status import GsaDiskStatus from .gsa_double_sorting_value import GsaDoubleSortingValue +from .gsa_duplicate_expression_guids_maths_functional_error_detail import ( + GsaDuplicateExpressionGuidsMathsFunctionalErrorDetail, +) +from .gsa_duplicate_parameter_guids_attribute_error_detail import ( + GsaDuplicateParameterGuidsAttributeErrorDetail, +) from .gsa_dynamic_link_group_usage_data_modification_error_detail import ( GsaDynamicLinkGroupUsageDataModificationErrorDetail, ) from .gsa_dynamic_record_link_group import GsaDynamicRecordLinkGroup +from .gsa_empty_axis_name_attribute_error_detail import GsaEmptyAxisNameAttributeErrorDetail from .gsa_enabled_licenses_info import GsaEnabledLicensesInfo +from .gsa_entity_already_exists_error_detail import GsaEntityAlreadyExistsErrorDetail from .gsa_error_detail import GsaErrorDetail from .gsa_exclude_values_specifier import GsaExcludeValuesSpecifier from .gsa_export_failure import GsaExportFailure from .gsa_export_failure_type import GsaExportFailureType from .gsa_exporter_refetch_info import GsaExporterRefetchInfo from .gsa_expression import GsaExpression +from .gsa_expression_maths_functional_error_detail import GsaExpressionMathsFunctionalErrorDetail from .gsa_expression_usage_data_modification_error_detail import ( GsaExpressionUsageDataModificationErrorDetail, ) +from .gsa_expressions_have_unknown_parameters_maths_functional_error_detail import ( + GsaExpressionsHaveUnknownParametersMathsFunctionalErrorDetail, +) from .gsa_expressions_info import GsaExpressionsInfo from .gsa_file_attribute import GsaFileAttribute from .gsa_file_datum import GsaFileDatum @@ -420,6 +451,7 @@ from .gsa_free_text_prefix_criterion import GsaFreeTextPrefixCriterion from .gsa_full_layout_section import GsaFullLayoutSection from .gsa_full_name_property import GsaFullNameProperty +from .gsa_func_no_params_attribute_error_detail import GsaFuncNoParamsAttributeErrorDetail from .gsa_functional_datum_parameter_info import GsaFunctionalDatumParameterInfo from .gsa_functional_parameter_setting import GsaFunctionalParameterSetting from .gsa_functional_type import GsaFunctionalType @@ -434,7 +466,11 @@ from .gsa_get_unit_conversions_request import GsaGetUnitConversionsRequest from .gsa_graph import GsaGraph from .gsa_graph_decoration_type import GsaGraphDecorationType +from .gsa_graph_parameter_value import GsaGraphParameterValue +from .gsa_graph_parameter_with_value import GsaGraphParameterWithValue from .gsa_graph_type import GsaGraphType +from .gsa_graph_value import GsaGraphValue +from .gsa_graph_value_type import GsaGraphValueType from .gsa_grid_graph import GsaGridGraph from .gsa_guid_only_attribute import GsaGuidOnlyAttribute from .gsa_guid_only_discrete_type import GsaGuidOnlyDiscreteType @@ -564,13 +600,29 @@ from .gsa_mapping_of_object_identifier import GsaMappingOfObjectIdentifier from .gsa_maths_content import GsaMathsContent from .gsa_maths_functional_attribute import GsaMathsFunctionalAttribute +from .gsa_maths_functional_attribute_error_detail import GsaMathsFunctionalAttributeErrorDetail from .gsa_maths_functional_datum_criterion import GsaMathsFunctionalDatumCriterion from .gsa_maths_functional_datum_exists_criterion import GsaMathsFunctionalDatumExistsCriterion +from .gsa_maths_functional_error_detail import GsaMathsFunctionalErrorDetail +from .gsa_maths_functional_error_reason import GsaMathsFunctionalErrorReason +from .gsa_mfa_expression_error_detail import GsaMfaExpressionErrorDetail +from .gsa_mfa_expression_error_reason import GsaMfaExpressionErrorReason from .gsa_mi_version import GsaMiVersion +from .gsa_missing_arguments_parameter_content_error_detail import ( + GsaMissingArgumentsParameterContentErrorDetail, +) +from .gsa_missing_parameter_guid_attribute_error_detail import ( + GsaMissingParameterGuidAttributeErrorDetail, +) from .gsa_move_file import GsaMoveFile from .gsa_move_folder import GsaMoveFolder from .gsa_move_record_history import GsaMoveRecordHistory +from .gsa_name_already_exists_error_detail import GsaNameAlreadyExistsErrorDetail +from .gsa_name_not_provided_error_detail import GsaNameNotProvidedErrorDetail from .gsa_named_criterion import GsaNamedCriterion +from .gsa_named_entity_attribute_error_detail import GsaNamedEntityAttributeErrorDetail +from .gsa_named_entity_error_detail import GsaNamedEntityErrorDetail +from .gsa_named_entity_error_reason import GsaNamedEntityErrorReason from .gsa_new_layout_association_chain_item import GsaNewLayoutAssociationChainItem from .gsa_new_layout_association_chain_link import GsaNewLayoutAssociationChainLink from .gsa_new_layout_attribute_item import GsaNewLayoutAttributeItem @@ -579,10 +631,21 @@ from .gsa_new_layout_item_type import GsaNewLayoutItemType from .gsa_new_layout_record_link_item import GsaNewLayoutRecordLinkItem from .gsa_new_layout_smart_link_item import GsaNewLayoutSmartLinkItem +from .gsa_no_expressions_maths_functional_error_detail import ( + GsaNoExpressionsMathsFunctionalErrorDetail, +) +from .gsa_no_such_entity_attribute_error_detail import GsaNoSuchEntityAttributeErrorDetail +from .gsa_no_such_expressions_maths_functional_error_detail import ( + GsaNoSuchExpressionsMathsFunctionalErrorDetail, +) +from .gsa_no_such_parameter_value_parameter_content_error_detail import ( + GsaNoSuchParameterValueParameterContentErrorDetail, +) from .gsa_no_values_specifier import GsaNoValuesSpecifier from .gsa_not_applicable_datum import GsaNotApplicableDatum from .gsa_not_the_latest_version_error_detail import GsaNotTheLatestVersionErrorDetail from .gsa_not_versioned_error_detail import GsaNotVersionedErrorDetail +from .gsa_numeric_graph_parameter_value import GsaNumericGraphParameterValue from .gsa_numeric_parameter import GsaNumericParameter from .gsa_numeric_parameter_constraint import GsaNumericParameterConstraint from .gsa_numeric_parameter_content import GsaNumericParameterContent @@ -594,6 +657,18 @@ from .gsa_parameter_constraint import GsaParameterConstraint from .gsa_parameter_constraint_type import GsaParameterConstraintType from .gsa_parameter_content import GsaParameterContent +from .gsa_parameter_content_duplicate_guids_maths_functional_error_detail import ( + GsaParameterContentDuplicateGuidsMathsFunctionalErrorDetail, +) +from .gsa_parameter_content_error_detail import GsaParameterContentErrorDetail +from .gsa_parameter_content_error_reason import GsaParameterContentErrorReason +from .gsa_parameter_content_maths_functional_error_detail import ( + GsaParameterContentMathsFunctionalErrorDetail, +) +from .gsa_parameter_content_missing_argument import GsaParameterContentMissingArgument +from .gsa_parameter_content_unknown_parameters_maths_functional_error_detail import ( + GsaParameterContentUnknownParametersMathsFunctionalErrorDetail, +) from .gsa_parameter_data_value import GsaParameterDataValue from .gsa_parameter_deletion_exception import GsaParameterDeletionException from .gsa_parameter_info import GsaParameterInfo @@ -604,6 +679,9 @@ from .gsa_parameter_scale_type import GsaParameterScaleType from .gsa_parameter_setting_defined_at import GsaParameterSettingDefinedAt from .gsa_parameter_type import GsaParameterType +from .gsa_parameter_type_parameter_content_error_detail import ( + GsaParameterTypeParameterContentErrorDetail, +) from .gsa_parameter_value import GsaParameterValue from .gsa_parameter_value_deletion_exception import GsaParameterValueDeletionException from .gsa_parameter_value_type import GsaParameterValueType @@ -631,6 +709,9 @@ from .gsa_point_histogram_aggregation_datum_criterion import ( GsaPointHistogramAggregationDatumCriterion, ) +from .gsa_point_parameters_requires_multi_valued_attribute_error_detail import ( + GsaPointParametersRequiresMultiValuedAttributeErrorDetail, +) from .gsa_processing_config import GsaProcessingConfig from .gsa_profile import GsaProfile from .gsa_profile_table import GsaProfileTable @@ -671,6 +752,7 @@ from .gsa_range_fixed_width_histogram_aggregation_datum_criterion import ( GsaRangeFixedWidthHistogramAggregationDatumCriterion, ) +from .gsa_range_graph_value import GsaRangeGraphValue from .gsa_range_histogram_aggregation import GsaRangeHistogramAggregation from .gsa_range_histogram_aggregation_datum_criterion import ( GsaRangeHistogramAggregationDatumCriterion, @@ -844,8 +926,15 @@ from .gsa_tabular_datum_summary_row import GsaTabularDatumSummaryRow from .gsa_tabular_linking_value_criterion import GsaTabularLinkingValueCriterion from .gsa_tabular_row_export_behavior import GsaTabularRowExportBehavior +from .gsa_target_attribute_not_in_table_attribute_error_detail import ( + GsaTargetAttributeNotInTableAttributeErrorDetail, +) +from .gsa_target_attribute_type_attribute_error_detail import ( + GsaTargetAttributeTypeAttributeErrorDetail, +) from .gsa_term_with_count import GsaTermWithCount from .gsa_text_match_behavior import GsaTextMatchBehavior +from .gsa_threshold_type_attribute_error_detail import GsaThresholdTypeAttributeErrorDetail from .gsa_unavailable_tabular_column import GsaUnavailableTabularColumn from .gsa_unit import GsaUnit from .gsa_unit_conversion_set import GsaUnitConversionSet @@ -996,6 +1085,7 @@ "FolderguidFilesBody1", "FolderguidFilesBody2", "GrantaMIRecordPropertyFakeAttributeIdentities", + "GsaAboutAttributeCannotBeMetaAttributeErrorDetail", "GsaAddDatabase", "GsaAddRecordHistoryToSubset", "GsaAggregation", @@ -1010,6 +1100,7 @@ "GsaAggregationsResponse", "GsaAllProfilesInfo", "GsaAllValuesSpecifier", + "GsaAnonymousExpressionsMustAllowAllCompatibleMathsFunctionalErrorDetail", "GsaAppNameLicenseCheckoutRequest", "GsaAppNameLicenseCheckoutResponse", "GsaAppNameLicenseCheckoutResult", @@ -1023,9 +1114,12 @@ "GsaAttributeAggregationExistsCriterion", "GsaAttributeAggregationType", "GsaAttributeAggregationValueCriterion", + "GsaAttributeCreationException", "GsaAttributeCriterion", "GsaAttributeCriterionType", "GsaAttributeDeletionException", + "GsaAttributeErrorDetail", + "GsaAttributeErrorReason", "GsaAttributeExistsAggregation", "GsaAttributeExistsCriterion", "GsaAttributeExportFailure", @@ -1033,6 +1127,7 @@ "GsaAttributeInterpolationMethod", "GsaAttributeLinkPair", "GsaAttributeMatchesCriterion", + "GsaAttributeNoSuchEntityType", "GsaAttributeNotApplicableCriterion", "GsaAttributeReference", "GsaAttributeScaleType", @@ -1189,6 +1284,7 @@ "GsaDataExportValueRollupDatum", "GsaDataExportValuesRollupDatum", "GsaDataModificationErrorDetail", + "GsaDataModificationErrorReason", "GsaDataRule", "GsaDataRulesInfo", "GsaDataUsageDataModificationErrorDetail", @@ -1222,6 +1318,8 @@ "GsaDatumRollup", "GsaDatumRollupType", "GsaDatumType", + "GsaDefaultExpressionNotFoundMathsFunctionalErrorDetail", + "GsaDefaultFreeParameterNotFoundMathsFunctionalErrorDetail", "GsaDefaultParameterValueUsageDataModificationErrorDetail", "GsaDeleteRecordListItem", "GsaDeleteRecordListItems", @@ -1238,6 +1336,8 @@ "GsaDiscreteFunctionalRangeDatumCriterion", "GsaDiscreteFunctionalSeriesDatum", "GsaDiscreteFunctionalValuesDatumCriterion", + "GsaDiscreteGraphParameterValue", + "GsaDiscreteGraphValue", "GsaDiscreteGridGraph", "GsaDiscreteGridPoint", "GsaDiscreteGuidDatumCriterion", @@ -1274,16 +1374,22 @@ "GsaDiscreteValuesUpdateDiscreteValue", "GsaDiskStatus", "GsaDoubleSortingValue", + "GsaDuplicateExpressionGuidsMathsFunctionalErrorDetail", + "GsaDuplicateParameterGuidsAttributeErrorDetail", "GsaDynamicLinkGroupUsageDataModificationErrorDetail", "GsaDynamicRecordLinkGroup", + "GsaEmptyAxisNameAttributeErrorDetail", "GsaEnabledLicensesInfo", + "GsaEntityAlreadyExistsErrorDetail", "GsaErrorDetail", "GsaExcludeValuesSpecifier", "GsaExportFailure", "GsaExportFailureType", "GsaExporterRefetchInfo", "GsaExpression", + "GsaExpressionMathsFunctionalErrorDetail", "GsaExpressionUsageDataModificationErrorDetail", + "GsaExpressionsHaveUnknownParametersMathsFunctionalErrorDetail", "GsaExpressionsInfo", "GsaFileAttribute", "GsaFileDatum", @@ -1321,6 +1427,7 @@ "GsaFreeTextPrefixCriterion", "GsaFullLayoutSection", "GsaFullNameProperty", + "GsaFuncNoParamsAttributeErrorDetail", "GsaFunctionalDatumParameterInfo", "GsaFunctionalParameterSetting", "GsaFunctionalType", @@ -1331,7 +1438,11 @@ "GsaGetUnitConversionsRequest", "GsaGraph", "GsaGraphDecorationType", + "GsaGraphParameterValue", + "GsaGraphParameterWithValue", "GsaGraphType", + "GsaGraphValue", + "GsaGraphValueType", "GsaGridGraph", "GsaGuidOnlyAttribute", "GsaGuidOnlyDiscreteType", @@ -1453,13 +1564,25 @@ "GsaMappingOfObjectIdentifier", "GsaMathsContent", "GsaMathsFunctionalAttribute", + "GsaMathsFunctionalAttributeErrorDetail", "GsaMathsFunctionalDatumCriterion", "GsaMathsFunctionalDatumExistsCriterion", + "GsaMathsFunctionalErrorDetail", + "GsaMathsFunctionalErrorReason", + "GsaMfaExpressionErrorDetail", + "GsaMfaExpressionErrorReason", "GsaMiVersion", + "GsaMissingArgumentsParameterContentErrorDetail", + "GsaMissingParameterGuidAttributeErrorDetail", "GsaMoveFile", "GsaMoveFolder", "GsaMoveRecordHistory", + "GsaNameAlreadyExistsErrorDetail", + "GsaNameNotProvidedErrorDetail", "GsaNamedCriterion", + "GsaNamedEntityAttributeErrorDetail", + "GsaNamedEntityErrorDetail", + "GsaNamedEntityErrorReason", "GsaNewLayoutAssociationChainItem", "GsaNewLayoutAssociationChainLink", "GsaNewLayoutAttributeItem", @@ -1468,10 +1591,15 @@ "GsaNewLayoutItemType", "GsaNewLayoutRecordLinkItem", "GsaNewLayoutSmartLinkItem", + "GsaNoExpressionsMathsFunctionalErrorDetail", + "GsaNoSuchEntityAttributeErrorDetail", + "GsaNoSuchExpressionsMathsFunctionalErrorDetail", + "GsaNoSuchParameterValueParameterContentErrorDetail", "GsaNoValuesSpecifier", "GsaNotApplicableDatum", "GsaNotTheLatestVersionErrorDetail", "GsaNotVersionedErrorDetail", + "GsaNumericGraphParameterValue", "GsaNumericParameter", "GsaNumericParameterConstraint", "GsaNumericParameterContent", @@ -1483,6 +1611,12 @@ "GsaParameterConstraint", "GsaParameterConstraintType", "GsaParameterContent", + "GsaParameterContentDuplicateGuidsMathsFunctionalErrorDetail", + "GsaParameterContentErrorDetail", + "GsaParameterContentErrorReason", + "GsaParameterContentMathsFunctionalErrorDetail", + "GsaParameterContentMissingArgument", + "GsaParameterContentUnknownParametersMathsFunctionalErrorDetail", "GsaParameterDataValue", "GsaParameterDeletionException", "GsaParameterInfo", @@ -1493,6 +1627,7 @@ "GsaParameterScaleType", "GsaParameterSettingDefinedAt", "GsaParameterType", + "GsaParameterTypeParameterContentErrorDetail", "GsaParameterValue", "GsaParameterValueDeletionException", "GsaParameterValueType", @@ -1516,6 +1651,7 @@ "GsaPointFixedWidthHistogramAggregationDatumCriterion", "GsaPointHistogramAggregation", "GsaPointHistogramAggregationDatumCriterion", + "GsaPointParametersRequiresMultiValuedAttributeErrorDetail", "GsaProcessingConfig", "GsaProfile", "GsaProfileTable", @@ -1554,6 +1690,7 @@ "GsaRangeDatumCriterion", "GsaRangeDatumExistsCriterion", "GsaRangeFixedWidthHistogramAggregationDatumCriterion", + "GsaRangeGraphValue", "GsaRangeHistogramAggregation", "GsaRangeHistogramAggregationDatumCriterion", "GsaRecordAncestorCriterion", @@ -1719,8 +1856,11 @@ "GsaTabularDatumSummaryRow", "GsaTabularLinkingValueCriterion", "GsaTabularRowExportBehavior", + "GsaTargetAttributeNotInTableAttributeErrorDetail", + "GsaTargetAttributeTypeAttributeErrorDetail", "GsaTermWithCount", "GsaTextMatchBehavior", + "GsaThresholdTypeAttributeErrorDetail", "GsaUnavailableTabularColumn", "GsaUnit", "GsaUnitConversionSet", diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_about_attribute_cannot_be_meta_attribute_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_about_attribute_cannot_be_meta_attribute_error_detail.py new file mode 100644 index 00000000..160e3034 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_about_attribute_cannot_be_meta_attribute_error_detail.py @@ -0,0 +1,128 @@ +# 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 ansys.grantami.serverapi_openapi.models.gsa_attribute_error_detail import ( # noqa: F401 + GsaAttributeErrorDetail, +) +from ansys.grantami.serverapi_openapi.models.gsa_attribute_error_reason import ( + GsaAttributeErrorReason, +) + +from . import ModelBase, Unset, Unset_Type + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + + from . import * + + +class GsaAboutAttributeCannotBeMetaAttributeErrorDetail(GsaAttributeErrorDetail): + """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] = { + "message": "str", + "reason": "GsaAttributeErrorReason", + } + + attribute_map: dict[str, str] = { + "message": "message", + "reason": "reason", + } + + subtype_mapping: dict[str, str] = {} + + discriminator: Optional[str] = None + + def __init__( + self, + *, + message: "str", + reason: "GsaAttributeErrorReason" = GsaAttributeErrorReason.ABOUTATTRIBUTECANNOTBEMETA, + ) -> None: + """GsaAboutAttributeCannotBeMetaAttributeErrorDetail - a model defined in Swagger + + Parameters + ---------- + message: str + reason: GsaAttributeErrorReason + """ + super().__init__(message=message, reason=reason) + + @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, GsaAboutAttributeCannotBeMetaAttributeErrorDetail): + 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 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_anonymous_expressions_must_allow_all_compatible_maths_functional_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_anonymous_expressions_must_allow_all_compatible_maths_functional_error_detail.py new file mode 100644 index 00000000..eeb76884 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_anonymous_expressions_must_allow_all_compatible_maths_functional_error_detail.py @@ -0,0 +1,132 @@ +# 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 ansys.grantami.serverapi_openapi.models.gsa_maths_functional_error_detail import ( # noqa: F401 + GsaMathsFunctionalErrorDetail, +) +from ansys.grantami.serverapi_openapi.models.gsa_maths_functional_error_reason import ( + GsaMathsFunctionalErrorReason, +) + +from . import ModelBase, Unset, Unset_Type + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + + from . import * + + +class GsaAnonymousExpressionsMustAllowAllCompatibleMathsFunctionalErrorDetail( + GsaMathsFunctionalErrorDetail +): + """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] = { + "message": "str", + "reason": "GsaMathsFunctionalErrorReason", + } + + attribute_map: dict[str, str] = { + "message": "message", + "reason": "reason", + } + + subtype_mapping: dict[str, str] = {} + + discriminator: Optional[str] = None + + def __init__( + self, + *, + message: "str", + reason: "GsaMathsFunctionalErrorReason" = GsaMathsFunctionalErrorReason.ANONYMOUSEXPRESSIONSMUSTALLOWALLCOMPATIBLE, + ) -> None: + """GsaAnonymousExpressionsMustAllowAllCompatibleMathsFunctionalErrorDetail - a model defined in Swagger + + Parameters + ---------- + message: str + reason: GsaMathsFunctionalErrorReason + """ + super().__init__(message=message, reason=reason) + + @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, GsaAnonymousExpressionsMustAllowAllCompatibleMathsFunctionalErrorDetail + ): + 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 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_attribute_creation_exception.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_attribute_creation_exception.py new file mode 100644 index 00000000..b046e4b8 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_attribute_creation_exception.py @@ -0,0 +1,206 @@ +# 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 GsaAttributeCreationException(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] = { + "code": "SystemNetHttpStatusCode", + "errors": "list[GsaAttributeErrorDetail]", + "message": "str", + } + + attribute_map: dict[str, str] = { + "code": "code", + "errors": "errors", + "message": "message", + } + + subtype_mapping: dict[str, str] = { + "code": "SystemNetHttpStatusCode", + "errors": "GsaAttributeErrorDetail", + } + + discriminator: Optional[str] = None + + def __init__( + self, + *, + code: "Union[SystemNetHttpStatusCode, Unset_Type]" = Unset, + errors: "Union[list[GsaAttributeErrorDetail], None, Unset_Type]" = Unset, + message: "Union[str, None, Unset_Type]" = Unset, + ) -> None: + """GsaAttributeCreationException - a model defined in Swagger + + Parameters + ---------- + code: SystemNetHttpStatusCode, optional + errors: list[GsaAttributeErrorDetail], optional + message: str, optional + """ + self._message: Union[str, None, Unset_Type] = Unset + self._code: Union[SystemNetHttpStatusCode, Unset_Type] = Unset + self._errors: Union[list[GsaAttributeErrorDetail], None, Unset_Type] = Unset + + if message is not Unset: + self.message = message + if code is not Unset: + self.code = code + if errors is not Unset: + self.errors = errors + + @property + def message(self) -> "Union[str, None, Unset_Type]": + """Gets the message of this GsaAttributeCreationException. + + Returns + ------- + Union[str, None, Unset_Type] + The message of this GsaAttributeCreationException. + """ + return self._message + + @message.setter + def message(self, message: "Union[str, None, Unset_Type]") -> None: + """Sets the message of this GsaAttributeCreationException. + + Parameters + ---------- + message: Union[str, None, Unset_Type] + The message of this GsaAttributeCreationException. + """ + self._message = message + + @property + def code(self) -> "Union[SystemNetHttpStatusCode, Unset_Type]": + """Gets the code of this GsaAttributeCreationException. + + Returns + ------- + Union[SystemNetHttpStatusCode, Unset_Type] + The code of this GsaAttributeCreationException. + """ + return self._code + + @code.setter + def code(self, code: "Union[SystemNetHttpStatusCode, Unset_Type]") -> None: + """Sets the code of this GsaAttributeCreationException. + + Parameters + ---------- + code: Union[SystemNetHttpStatusCode, Unset_Type] + The code of this GsaAttributeCreationException. + """ + # Field is not nullable + if code is None: + raise ValueError("Invalid value for 'code', must not be 'None'") + self._code = code + + @property + def errors(self) -> "Union[list[GsaAttributeErrorDetail], None, Unset_Type]": + """Gets the errors of this GsaAttributeCreationException. + + Returns + ------- + Union[list[GsaAttributeErrorDetail], None, Unset_Type] + The errors of this GsaAttributeCreationException. + """ + return self._errors + + @errors.setter + def errors(self, errors: "Union[list[GsaAttributeErrorDetail], None, Unset_Type]") -> None: + """Sets the errors of this GsaAttributeCreationException. + + Parameters + ---------- + errors: Union[list[GsaAttributeErrorDetail], None, Unset_Type] + The errors of this GsaAttributeCreationException. + """ + self._errors = errors + + @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, GsaAttributeCreationException): + 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 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_attribute_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_attribute_error_detail.py new file mode 100644 index 00000000..1aa86e38 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_attribute_error_detail.py @@ -0,0 +1,205 @@ +# 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 GsaAttributeErrorDetail(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_class_map: dict[str, str] + They key is discriminator value and the value is associated subtype. + discriminator: Optional[str] + Name of the property used as discriminator for subtypes. + """ + swagger_types: dict[str, str] = { + "message": "str", + "reason": "GsaAttributeErrorReason", + } + + attribute_map: dict[str, str] = { + "message": "message", + "reason": "reason", + } + + subtype_mapping: dict[str, str] = { + "reason": "GsaAttributeErrorReason", + } + + discriminator_value_class_map = { + "aboutAttributeCannotBeMeta".lower(): "#/components/schemas/GsaAboutAttributeCannotBeMetaAttributeErrorDetail", + "duplicateParameterGuids".lower(): "#/components/schemas/GsaDuplicateParameterGuidsAttributeErrorDetail", + "emptyAxisName".lower(): "#/components/schemas/GsaEmptyAxisNameAttributeErrorDetail", + "funcNoParams".lower(): "#/components/schemas/GsaFuncNoParamsAttributeErrorDetail", + "mathsFunctional".lower(): "#/components/schemas/GsaMathsFunctionalAttributeErrorDetail", + "missingParameterGuid".lower(): "#/components/schemas/GsaMissingParameterGuidAttributeErrorDetail", + "namedEntity".lower(): "#/components/schemas/GsaNamedEntityAttributeErrorDetail", + "noSuchEntity".lower(): "#/components/schemas/GsaNoSuchEntityAttributeErrorDetail", + "pointParametersRequiresMultiValued".lower(): "#/components/schemas/GsaPointParametersRequiresMultiValuedAttributeErrorDetail", + "targetAttributeNotInTable".lower(): "#/components/schemas/GsaTargetAttributeNotInTableAttributeErrorDetail", + "targetAttributeType".lower(): "#/components/schemas/GsaTargetAttributeTypeAttributeErrorDetail", + "thresholdType".lower(): "#/components/schemas/GsaThresholdTypeAttributeErrorDetail", + } + + discriminator: Optional[str] = "reason" + + def __init__( + self, + *, + message: "str", + reason: "GsaAttributeErrorReason", + ) -> None: + """GsaAttributeErrorDetail - a model defined in Swagger + + Parameters + ---------- + message: str + reason: GsaAttributeErrorReason + """ + self._message: str + self._reason: GsaAttributeErrorReason + + self.message = message + self.reason = reason + + @property + def message(self) -> "str": + """Gets the message of this GsaAttributeErrorDetail. + + Returns + ------- + str + The message of this GsaAttributeErrorDetail. + """ + return self._message + + @message.setter + def message(self, message: "str") -> None: + """Sets the message of this GsaAttributeErrorDetail. + + Parameters + ---------- + message: str + The message of this GsaAttributeErrorDetail. + """ + # Field is not nullable + if message is None: + raise ValueError("Invalid value for 'message', must not be 'None'") + # Field is required + if message is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'message', must not be 'Unset'") + self._message = message + + @property + def reason(self) -> "GsaAttributeErrorReason": + """Gets the reason of this GsaAttributeErrorDetail. + + Returns + ------- + GsaAttributeErrorReason + The reason of this GsaAttributeErrorDetail. + """ + return self._reason + + @reason.setter + def reason(self, reason: "GsaAttributeErrorReason") -> None: + """Sets the reason of this GsaAttributeErrorDetail. + + Parameters + ---------- + reason: GsaAttributeErrorReason + The reason of this GsaAttributeErrorDetail. + """ + # Field is not nullable + if reason is None: + raise ValueError("Invalid value for 'reason', must not be 'None'") + # Field is required + if reason is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'reason', must not be 'Unset'") + self._reason = reason + + @classmethod + def get_real_child_model(cls, data: dict[str, str]) -> str: + """Returns the real base class as determined by the discriminator + + Parameters + ---------- + data: ModelBase + Object representing a subclass of this class + """ + discriminator_value = str(data[cls._get_discriminator_field_name()]).lower() + # The actual class name is not available in swagger-codegen, + # so we have to extract it from the JSON reference + return cls.discriminator_value_class_map[discriminator_value].rsplit("/", 1)[-1] + + @classmethod + def _get_discriminator_field_name(cls) -> str: + assert cls.discriminator + name_tokens = cls.discriminator.split("_") + later_tokens = [element.capitalize() for element in name_tokens[1:]] + return "".join([name_tokens[0], *later_tokens]) + + 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, GsaAttributeErrorDetail): + 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 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_attribute_error_reason.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_attribute_error_reason.py new file mode 100644 index 00000000..616b7300 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_attribute_error_reason.py @@ -0,0 +1,56 @@ +# 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 +""" + +from enum import Enum + + +class GsaAttributeErrorReason(Enum): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Allowed Enum values + """ + ABOUTATTRIBUTECANNOTBEMETA = "aboutAttributeCannotBeMeta" + DUPLICATEPARAMETERGUIDS = "duplicateParameterGuids" + EMPTYAXISNAME = "emptyAxisName" + FUNCNOPARAMS = "funcNoParams" + MATHSFUNCTIONAL = "mathsFunctional" + MISSINGPARAMETERGUID = "missingParameterGuid" + NAMEDENTITY = "namedEntity" + NOSUCHENTITY = "noSuchEntity" + POINTPARAMETERSREQUIRESMULTIVALUED = "pointParametersRequiresMultiValued" + TARGETATTRIBUTENOTINTABLE = "targetAttributeNotInTable" + TARGETATTRIBUTETYPE = "targetAttributeType" + THRESHOLDTYPE = "thresholdType" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_attribute_no_such_entity_type.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_attribute_no_such_entity_type.py new file mode 100644 index 00000000..6de3447a --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_attribute_no_such_entity_type.py @@ -0,0 +1,48 @@ +# 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 +""" + +from enum import Enum + + +class GsaAttributeNoSuchEntityType(Enum): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Allowed Enum values + """ + DATARULE = "dataRule" + DISCRETETYPE = "discreteType" + PARAMETER = "parameter" + UNIT = "unit" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_attribute_usage_data_modification_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_attribute_usage_data_modification_error_detail.py index 32214c75..c3008304 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_attribute_usage_data_modification_error_detail.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_attribute_usage_data_modification_error_detail.py @@ -33,6 +33,9 @@ import re # noqa: F401 from typing import TYPE_CHECKING, Any, BinaryIO, Optional, Union # noqa: F401 +from ansys.grantami.serverapi_openapi.models.gsa_data_modification_error_reason import ( + GsaDataModificationErrorReason, +) from ansys.grantami.serverapi_openapi.models.gsa_referenced_by_type import GsaReferencedByType from ansys.grantami.serverapi_openapi.models.gsa_usage_data_modification_error_detail import ( # noqa: F401 GsaUsageDataModificationErrorDetail, @@ -67,7 +70,7 @@ class GsaAttributeUsageDataModificationErrorDetail(GsaUsageDataModificationError """ swagger_types: dict[str, str] = { "message": "str", - "reason": "str", + "reason": "GsaDataModificationErrorReason", "referenced_by_type": "GsaReferencedByType", "referenced_by": "list[GsaSlimAttribute]", } @@ -89,7 +92,7 @@ def __init__( self, *, message: "str", - reason: "str" = "usage", + reason: "GsaDataModificationErrorReason" = GsaDataModificationErrorReason.USAGE, referenced_by_type: "GsaReferencedByType" = GsaReferencedByType.ATTRIBUTE, referenced_by: "Union[list[GsaSlimAttribute], None, Unset_Type]" = Unset, ) -> None: @@ -98,7 +101,7 @@ def __init__( Parameters ---------- message: str - reason: str + reason: GsaDataModificationErrorReason referenced_by_type: GsaReferencedByType referenced_by: list[GsaSlimAttribute], optional """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_data_modification_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_data_modification_error_detail.py index f9d1df38..3131eaeb 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_data_modification_error_detail.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_data_modification_error_detail.py @@ -64,7 +64,7 @@ class GsaDataModificationErrorDetail(ModelBase): """ swagger_types: dict[str, str] = { "message": "str", - "reason": "str", + "reason": "GsaDataModificationErrorReason", } attribute_map: dict[str, str] = { @@ -72,7 +72,9 @@ class GsaDataModificationErrorDetail(ModelBase): "reason": "reason", } - subtype_mapping: dict[str, str] = {} + subtype_mapping: dict[str, str] = { + "reason": "GsaDataModificationErrorReason", + } discriminator_value_class_map = { "usage".lower(): "#/components/schemas/GsaUsageDataModificationErrorDetail", @@ -84,17 +86,17 @@ def __init__( self, *, message: "str", - reason: "str", + reason: "GsaDataModificationErrorReason", ) -> None: """GsaDataModificationErrorDetail - a model defined in Swagger Parameters ---------- message: str - reason: str + reason: GsaDataModificationErrorReason """ self._message: str - self._reason: str + self._reason: GsaDataModificationErrorReason self.message = message self.reason = reason @@ -128,23 +130,23 @@ def message(self, message: "str") -> None: self._message = message @property - def reason(self) -> "str": + def reason(self) -> "GsaDataModificationErrorReason": """Gets the reason of this GsaDataModificationErrorDetail. Returns ------- - str + GsaDataModificationErrorReason The reason of this GsaDataModificationErrorDetail. """ return self._reason @reason.setter - def reason(self, reason: "str") -> None: + def reason(self, reason: "GsaDataModificationErrorReason") -> None: """Sets the reason of this GsaDataModificationErrorDetail. Parameters ---------- - reason: str + reason: GsaDataModificationErrorReason The reason of this GsaDataModificationErrorDetail. """ # Field is not nullable diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_data_modification_error_reason.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_data_modification_error_reason.py new file mode 100644 index 00000000..5915e3d6 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_data_modification_error_reason.py @@ -0,0 +1,45 @@ +# 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 +""" + +from enum import Enum + + +class GsaDataModificationErrorReason(Enum): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Allowed Enum values + """ + USAGE = "usage" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_data_usage_data_modification_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_data_usage_data_modification_error_detail.py index febd2466..e14122c5 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_data_usage_data_modification_error_detail.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_data_usage_data_modification_error_detail.py @@ -33,6 +33,9 @@ import re # noqa: F401 from typing import TYPE_CHECKING, Any, BinaryIO, Optional, Union # noqa: F401 +from ansys.grantami.serverapi_openapi.models.gsa_data_modification_error_reason import ( + GsaDataModificationErrorReason, +) from ansys.grantami.serverapi_openapi.models.gsa_referenced_by_type import GsaReferencedByType from ansys.grantami.serverapi_openapi.models.gsa_usage_data_modification_error_detail import ( # noqa: F401 GsaUsageDataModificationErrorDetail, @@ -68,7 +71,7 @@ class GsaDataUsageDataModificationErrorDetail(GsaUsageDataModificationErrorDetai swagger_types: dict[str, str] = { "entity_in_use": "GsaSlimNamedEntity", "message": "str", - "reason": "str", + "reason": "GsaDataModificationErrorReason", "referenced_by_type": "GsaReferencedByType", } @@ -90,7 +93,7 @@ def __init__( *, entity_in_use: "GsaSlimNamedEntity", message: "str", - reason: "str" = "usage", + reason: "GsaDataModificationErrorReason" = GsaDataModificationErrorReason.USAGE, referenced_by_type: "GsaReferencedByType" = GsaReferencedByType.DATA, ) -> None: """GsaDataUsageDataModificationErrorDetail - a model defined in Swagger @@ -99,7 +102,7 @@ def __init__( ---------- entity_in_use: GsaSlimNamedEntity message: str - reason: str + reason: GsaDataModificationErrorReason referenced_by_type: GsaReferencedByType """ super().__init__(message=message, reason=reason, referenced_by_type=referenced_by_type) diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_default_expression_not_found_maths_functional_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_default_expression_not_found_maths_functional_error_detail.py new file mode 100644 index 00000000..eb5ffb7a --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_default_expression_not_found_maths_functional_error_detail.py @@ -0,0 +1,128 @@ +# 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 ansys.grantami.serverapi_openapi.models.gsa_maths_functional_error_detail import ( # noqa: F401 + GsaMathsFunctionalErrorDetail, +) +from ansys.grantami.serverapi_openapi.models.gsa_maths_functional_error_reason import ( + GsaMathsFunctionalErrorReason, +) + +from . import ModelBase, Unset, Unset_Type + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + + from . import * + + +class GsaDefaultExpressionNotFoundMathsFunctionalErrorDetail(GsaMathsFunctionalErrorDetail): + """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] = { + "message": "str", + "reason": "GsaMathsFunctionalErrorReason", + } + + attribute_map: dict[str, str] = { + "message": "message", + "reason": "reason", + } + + subtype_mapping: dict[str, str] = {} + + discriminator: Optional[str] = None + + def __init__( + self, + *, + message: "str", + reason: "GsaMathsFunctionalErrorReason" = GsaMathsFunctionalErrorReason.DEFAULTEXPRESSIONNOTFOUND, + ) -> None: + """GsaDefaultExpressionNotFoundMathsFunctionalErrorDetail - a model defined in Swagger + + Parameters + ---------- + message: str + reason: GsaMathsFunctionalErrorReason + """ + super().__init__(message=message, reason=reason) + + @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, GsaDefaultExpressionNotFoundMathsFunctionalErrorDetail): + 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 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_default_free_parameter_not_found_maths_functional_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_default_free_parameter_not_found_maths_functional_error_detail.py new file mode 100644 index 00000000..daa7d868 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_default_free_parameter_not_found_maths_functional_error_detail.py @@ -0,0 +1,128 @@ +# 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 ansys.grantami.serverapi_openapi.models.gsa_maths_functional_error_detail import ( # noqa: F401 + GsaMathsFunctionalErrorDetail, +) +from ansys.grantami.serverapi_openapi.models.gsa_maths_functional_error_reason import ( + GsaMathsFunctionalErrorReason, +) + +from . import ModelBase, Unset, Unset_Type + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + + from . import * + + +class GsaDefaultFreeParameterNotFoundMathsFunctionalErrorDetail(GsaMathsFunctionalErrorDetail): + """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] = { + "message": "str", + "reason": "GsaMathsFunctionalErrorReason", + } + + attribute_map: dict[str, str] = { + "message": "message", + "reason": "reason", + } + + subtype_mapping: dict[str, str] = {} + + discriminator: Optional[str] = None + + def __init__( + self, + *, + message: "str", + reason: "GsaMathsFunctionalErrorReason" = GsaMathsFunctionalErrorReason.DEFAULTFREEPARAMETERNOTFOUND, + ) -> None: + """GsaDefaultFreeParameterNotFoundMathsFunctionalErrorDetail - a model defined in Swagger + + Parameters + ---------- + message: str + reason: GsaMathsFunctionalErrorReason + """ + super().__init__(message=message, reason=reason) + + @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, GsaDefaultFreeParameterNotFoundMathsFunctionalErrorDetail): + 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 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_default_parameter_value_usage_data_modification_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_default_parameter_value_usage_data_modification_error_detail.py index 8fd78b51..e86a67fc 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_default_parameter_value_usage_data_modification_error_detail.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_default_parameter_value_usage_data_modification_error_detail.py @@ -33,6 +33,9 @@ import re # noqa: F401 from typing import TYPE_CHECKING, Any, BinaryIO, Optional, Union # noqa: F401 +from ansys.grantami.serverapi_openapi.models.gsa_data_modification_error_reason import ( + GsaDataModificationErrorReason, +) from ansys.grantami.serverapi_openapi.models.gsa_referenced_by_type import GsaReferencedByType from ansys.grantami.serverapi_openapi.models.gsa_usage_data_modification_error_detail import ( # noqa: F401 GsaUsageDataModificationErrorDetail, @@ -67,7 +70,7 @@ class GsaDefaultParameterValueUsageDataModificationErrorDetail(GsaUsageDataModif """ swagger_types: dict[str, str] = { "message": "str", - "reason": "str", + "reason": "GsaDataModificationErrorReason", "referenced_by_type": "GsaReferencedByType", "referenced_by": "list[GsaSlimNamedEntity]", } @@ -89,7 +92,7 @@ def __init__( self, *, message: "str", - reason: "str" = "usage", + reason: "GsaDataModificationErrorReason" = GsaDataModificationErrorReason.USAGE, referenced_by_type: "GsaReferencedByType" = GsaReferencedByType.DEFAULTPARAMETERVALUE, referenced_by: "Union[list[GsaSlimNamedEntity], None, Unset_Type]" = Unset, ) -> None: @@ -98,7 +101,7 @@ def __init__( Parameters ---------- message: str - reason: str + reason: GsaDataModificationErrorReason referenced_by_type: GsaReferencedByType referenced_by: list[GsaSlimNamedEntity], optional """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_discrete_graph_parameter_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_discrete_graph_parameter_value.py new file mode 100644 index 00000000..92bdecfd --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_discrete_graph_parameter_value.py @@ -0,0 +1,157 @@ +# 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 ansys.grantami.serverapi_openapi.models.gsa_graph_parameter_value import ( # noqa: F401 + GsaGraphParameterValue, +) +from ansys.grantami.serverapi_openapi.models.gsa_parameter_type import GsaParameterType + +from . import ModelBase, Unset, Unset_Type + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + + from . import * + + +class GsaDiscreteGraphParameterValue(GsaGraphParameterValue): + """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] = { + "parameter_type": "GsaParameterType", + "parameter_value_guid": "str", + } + + attribute_map: dict[str, str] = { + "parameter_type": "parameterType", + "parameter_value_guid": "parameterValueGuid", + } + + subtype_mapping: dict[str, str] = {} + + discriminator: Optional[str] = None + + def __init__( + self, + *, + parameter_type: "GsaParameterType" = GsaParameterType.DISCRETE, + parameter_value_guid: "str", + ) -> None: + """GsaDiscreteGraphParameterValue - a model defined in Swagger + + Parameters + ---------- + parameter_type: GsaParameterType + parameter_value_guid: str + """ + super().__init__(parameter_type=parameter_type) + self._parameter_value_guid: str + + self.parameter_value_guid = parameter_value_guid + + @property + def parameter_value_guid(self) -> "str": + """Gets the parameter_value_guid of this GsaDiscreteGraphParameterValue. + + Returns + ------- + str + The parameter_value_guid of this GsaDiscreteGraphParameterValue. + """ + return self._parameter_value_guid + + @parameter_value_guid.setter + def parameter_value_guid(self, parameter_value_guid: "str") -> None: + """Sets the parameter_value_guid of this GsaDiscreteGraphParameterValue. + + Parameters + ---------- + parameter_value_guid: str + The parameter_value_guid of this GsaDiscreteGraphParameterValue. + """ + # Field is not nullable + if parameter_value_guid is None: + raise ValueError("Invalid value for 'parameter_value_guid', must not be 'None'") + # Field is required + if parameter_value_guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'parameter_value_guid', must not be 'Unset'") + self._parameter_value_guid = parameter_value_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, GsaDiscreteGraphParameterValue): + 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 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_discrete_graph_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_discrete_graph_value.py new file mode 100644 index 00000000..0ef5a8a6 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_discrete_graph_value.py @@ -0,0 +1,157 @@ +# 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 ansys.grantami.serverapi_openapi.models.gsa_graph_value import GsaGraphValue # noqa: F401 +from ansys.grantami.serverapi_openapi.models.gsa_graph_value_type import GsaGraphValueType + +from . import ModelBase, Unset, Unset_Type + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + + from . import * + + +class GsaDiscreteGraphValue(GsaGraphValue): + """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] = { + "graph_value_type": "GsaGraphValueType", + "value": "GsaDiscreteValue", + } + + attribute_map: dict[str, str] = { + "graph_value_type": "graphValueType", + "value": "value", + } + + subtype_mapping: dict[str, str] = { + "value": "GsaDiscreteValue", + } + + discriminator: Optional[str] = None + + def __init__( + self, + *, + graph_value_type: "GsaGraphValueType" = GsaGraphValueType.DISCRETE, + value: "GsaDiscreteValue", + ) -> None: + """GsaDiscreteGraphValue - a model defined in Swagger + + Parameters + ---------- + graph_value_type: GsaGraphValueType + value: GsaDiscreteValue + """ + super().__init__(graph_value_type=graph_value_type) + self._value: GsaDiscreteValue + + self.value = value + + @property + def value(self) -> "GsaDiscreteValue": + """Gets the value of this GsaDiscreteGraphValue. + + Returns + ------- + GsaDiscreteValue + The value of this GsaDiscreteGraphValue. + """ + return self._value + + @value.setter + def value(self, value: "GsaDiscreteValue") -> None: + """Sets the value of this GsaDiscreteGraphValue. + + Parameters + ---------- + value: GsaDiscreteValue + The value of this GsaDiscreteGraphValue. + """ + # Field is not nullable + if value is None: + raise ValueError("Invalid value for 'value', must not be 'None'") + # Field is required + if value is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'value', must not be 'Unset'") + self._value = value + + @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, GsaDiscreteGraphValue): + 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 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_duplicate_expression_guids_maths_functional_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_duplicate_expression_guids_maths_functional_error_detail.py new file mode 100644 index 00000000..84a32e4a --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_duplicate_expression_guids_maths_functional_error_detail.py @@ -0,0 +1,158 @@ +# 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 ansys.grantami.serverapi_openapi.models.gsa_maths_functional_error_detail import ( # noqa: F401 + GsaMathsFunctionalErrorDetail, +) +from ansys.grantami.serverapi_openapi.models.gsa_maths_functional_error_reason import ( + GsaMathsFunctionalErrorReason, +) + +from . import ModelBase, Unset, Unset_Type + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + + from . import * + + +class GsaDuplicateExpressionGuidsMathsFunctionalErrorDetail(GsaMathsFunctionalErrorDetail): + """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] = { + "message": "str", + "reason": "GsaMathsFunctionalErrorReason", + "duplicated_guids": "list[str]", + } + + attribute_map: dict[str, str] = { + "message": "message", + "reason": "reason", + "duplicated_guids": "duplicatedGuids", + } + + subtype_mapping: dict[str, str] = {} + + discriminator: Optional[str] = None + + def __init__( + self, + *, + message: "str", + reason: "GsaMathsFunctionalErrorReason" = GsaMathsFunctionalErrorReason.DUPLICATEEXPRESSIONGUIDS, + duplicated_guids: "Union[list[str], None, Unset_Type]" = Unset, + ) -> None: + """GsaDuplicateExpressionGuidsMathsFunctionalErrorDetail - a model defined in Swagger + + Parameters + ---------- + message: str + reason: GsaMathsFunctionalErrorReason + duplicated_guids: list[str], optional + """ + super().__init__(message=message, reason=reason) + self._duplicated_guids: Union[list[str], None, Unset_Type] = Unset + + if duplicated_guids is not Unset: + self.duplicated_guids = duplicated_guids + + @property + def duplicated_guids(self) -> "Union[list[str], None, Unset_Type]": + """Gets the duplicated_guids of this GsaDuplicateExpressionGuidsMathsFunctionalErrorDetail. + + Returns + ------- + Union[list[str], None, Unset_Type] + The duplicated_guids of this GsaDuplicateExpressionGuidsMathsFunctionalErrorDetail. + """ + return self._duplicated_guids + + @duplicated_guids.setter + def duplicated_guids(self, duplicated_guids: "Union[list[str], None, Unset_Type]") -> None: + """Sets the duplicated_guids of this GsaDuplicateExpressionGuidsMathsFunctionalErrorDetail. + + Parameters + ---------- + duplicated_guids: Union[list[str], None, Unset_Type] + The duplicated_guids of this GsaDuplicateExpressionGuidsMathsFunctionalErrorDetail. + """ + self._duplicated_guids = duplicated_guids + + @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, GsaDuplicateExpressionGuidsMathsFunctionalErrorDetail): + 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 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_duplicate_parameter_guids_attribute_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_duplicate_parameter_guids_attribute_error_detail.py new file mode 100644 index 00000000..782fccce --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_duplicate_parameter_guids_attribute_error_detail.py @@ -0,0 +1,158 @@ +# 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 ansys.grantami.serverapi_openapi.models.gsa_attribute_error_detail import ( # noqa: F401 + GsaAttributeErrorDetail, +) +from ansys.grantami.serverapi_openapi.models.gsa_attribute_error_reason import ( + GsaAttributeErrorReason, +) + +from . import ModelBase, Unset, Unset_Type + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + + from . import * + + +class GsaDuplicateParameterGuidsAttributeErrorDetail(GsaAttributeErrorDetail): + """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] = { + "message": "str", + "reason": "GsaAttributeErrorReason", + "duplicated_guids": "list[str]", + } + + attribute_map: dict[str, str] = { + "message": "message", + "reason": "reason", + "duplicated_guids": "duplicatedGuids", + } + + subtype_mapping: dict[str, str] = {} + + discriminator: Optional[str] = None + + def __init__( + self, + *, + message: "str", + reason: "GsaAttributeErrorReason" = GsaAttributeErrorReason.DUPLICATEPARAMETERGUIDS, + duplicated_guids: "Union[list[str], None, Unset_Type]" = Unset, + ) -> None: + """GsaDuplicateParameterGuidsAttributeErrorDetail - a model defined in Swagger + + Parameters + ---------- + message: str + reason: GsaAttributeErrorReason + duplicated_guids: list[str], optional + """ + super().__init__(message=message, reason=reason) + self._duplicated_guids: Union[list[str], None, Unset_Type] = Unset + + if duplicated_guids is not Unset: + self.duplicated_guids = duplicated_guids + + @property + def duplicated_guids(self) -> "Union[list[str], None, Unset_Type]": + """Gets the duplicated_guids of this GsaDuplicateParameterGuidsAttributeErrorDetail. + + Returns + ------- + Union[list[str], None, Unset_Type] + The duplicated_guids of this GsaDuplicateParameterGuidsAttributeErrorDetail. + """ + return self._duplicated_guids + + @duplicated_guids.setter + def duplicated_guids(self, duplicated_guids: "Union[list[str], None, Unset_Type]") -> None: + """Sets the duplicated_guids of this GsaDuplicateParameterGuidsAttributeErrorDetail. + + Parameters + ---------- + duplicated_guids: Union[list[str], None, Unset_Type] + The duplicated_guids of this GsaDuplicateParameterGuidsAttributeErrorDetail. + """ + self._duplicated_guids = duplicated_guids + + @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, GsaDuplicateParameterGuidsAttributeErrorDetail): + 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 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_dynamic_link_group_usage_data_modification_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_dynamic_link_group_usage_data_modification_error_detail.py index 618f9376..03d4c712 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_dynamic_link_group_usage_data_modification_error_detail.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_dynamic_link_group_usage_data_modification_error_detail.py @@ -33,6 +33,9 @@ import re # noqa: F401 from typing import TYPE_CHECKING, Any, BinaryIO, Optional, Union # noqa: F401 +from ansys.grantami.serverapi_openapi.models.gsa_data_modification_error_reason import ( + GsaDataModificationErrorReason, +) from ansys.grantami.serverapi_openapi.models.gsa_referenced_by_type import GsaReferencedByType from ansys.grantami.serverapi_openapi.models.gsa_usage_data_modification_error_detail import ( # noqa: F401 GsaUsageDataModificationErrorDetail, @@ -67,7 +70,7 @@ class GsaDynamicLinkGroupUsageDataModificationErrorDetail(GsaUsageDataModificati """ swagger_types: dict[str, str] = { "message": "str", - "reason": "str", + "reason": "GsaDataModificationErrorReason", "referenced_by_type": "GsaReferencedByType", "referenced_by": "list[GsaSlimNamedEntity]", } @@ -89,7 +92,7 @@ def __init__( self, *, message: "str", - reason: "str" = "usage", + reason: "GsaDataModificationErrorReason" = GsaDataModificationErrorReason.USAGE, referenced_by_type: "GsaReferencedByType" = GsaReferencedByType.DYNAMICLINKGROUP, referenced_by: "Union[list[GsaSlimNamedEntity], None, Unset_Type]" = Unset, ) -> None: @@ -98,7 +101,7 @@ def __init__( Parameters ---------- message: str - reason: str + reason: GsaDataModificationErrorReason referenced_by_type: GsaReferencedByType referenced_by: list[GsaSlimNamedEntity], optional """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_empty_axis_name_attribute_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_empty_axis_name_attribute_error_detail.py new file mode 100644 index 00000000..82e92d19 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_empty_axis_name_attribute_error_detail.py @@ -0,0 +1,128 @@ +# 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 ansys.grantami.serverapi_openapi.models.gsa_attribute_error_detail import ( # noqa: F401 + GsaAttributeErrorDetail, +) +from ansys.grantami.serverapi_openapi.models.gsa_attribute_error_reason import ( + GsaAttributeErrorReason, +) + +from . import ModelBase, Unset, Unset_Type + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + + from . import * + + +class GsaEmptyAxisNameAttributeErrorDetail(GsaAttributeErrorDetail): + """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] = { + "message": "str", + "reason": "GsaAttributeErrorReason", + } + + attribute_map: dict[str, str] = { + "message": "message", + "reason": "reason", + } + + subtype_mapping: dict[str, str] = {} + + discriminator: Optional[str] = None + + def __init__( + self, + *, + message: "str", + reason: "GsaAttributeErrorReason" = GsaAttributeErrorReason.EMPTYAXISNAME, + ) -> None: + """GsaEmptyAxisNameAttributeErrorDetail - a model defined in Swagger + + Parameters + ---------- + message: str + reason: GsaAttributeErrorReason + """ + super().__init__(message=message, reason=reason) + + @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, GsaEmptyAxisNameAttributeErrorDetail): + 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 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_entity_already_exists_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_entity_already_exists_error_detail.py new file mode 100644 index 00000000..d5a66125 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_entity_already_exists_error_detail.py @@ -0,0 +1,165 @@ +# 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 ansys.grantami.serverapi_openapi.models.gsa_named_entity_error_detail import ( # noqa: F401 + GsaNamedEntityErrorDetail, +) +from ansys.grantami.serverapi_openapi.models.gsa_named_entity_error_reason import ( + GsaNamedEntityErrorReason, +) + +from . import ModelBase, Unset, Unset_Type + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + + from . import * + + +class GsaEntityAlreadyExistsErrorDetail(GsaNamedEntityErrorDetail): + """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] = { + "message": "str", + "reason": "GsaNamedEntityErrorReason", + "entity_type_name": "str", + "guid": "str", + } + + attribute_map: dict[str, str] = { + "message": "message", + "reason": "reason", + "entity_type_name": "entityTypeName", + "guid": "guid", + } + + subtype_mapping: dict[str, str] = {} + + discriminator: Optional[str] = None + + def __init__( + self, + *, + message: "str", + reason: "GsaNamedEntityErrorReason" = GsaNamedEntityErrorReason.ENTITYALREADYEXISTS, + entity_type_name: "Union[str, None, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + ) -> None: + """GsaEntityAlreadyExistsErrorDetail - a model defined in Swagger + + Parameters + ---------- + message: str + reason: GsaNamedEntityErrorReason + entity_type_name: str, optional + guid: str, optional + """ + super().__init__(message=message, reason=reason, entity_type_name=entity_type_name) + self._guid: Union[str, Unset_Type] = Unset + + if guid is not Unset: + self.guid = guid + + @property + def guid(self) -> "Union[str, Unset_Type]": + """Gets the guid of this GsaEntityAlreadyExistsErrorDetail. + + Returns + ------- + Union[str, Unset_Type] + The guid of this GsaEntityAlreadyExistsErrorDetail. + """ + return self._guid + + @guid.setter + def guid(self, guid: "Union[str, Unset_Type]") -> None: + """Sets the guid of this GsaEntityAlreadyExistsErrorDetail. + + Parameters + ---------- + guid: Union[str, Unset_Type] + The guid of this GsaEntityAlreadyExistsErrorDetail. + """ + # Field is not nullable + if guid is None: + raise ValueError("Invalid value for 'guid', must not be 'None'") + self._guid = 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, GsaEntityAlreadyExistsErrorDetail): + 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 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_expression_maths_functional_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_expression_maths_functional_error_detail.py new file mode 100644 index 00000000..c67f8456 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_expression_maths_functional_error_detail.py @@ -0,0 +1,192 @@ +# 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 ansys.grantami.serverapi_openapi.models.gsa_maths_functional_error_detail import ( # noqa: F401 + GsaMathsFunctionalErrorDetail, +) +from ansys.grantami.serverapi_openapi.models.gsa_maths_functional_error_reason import ( + GsaMathsFunctionalErrorReason, +) + +from . import ModelBase, Unset, Unset_Type + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + + from . import * + + +class GsaExpressionMathsFunctionalErrorDetail(GsaMathsFunctionalErrorDetail): + """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] = { + "message": "str", + "reason": "GsaMathsFunctionalErrorReason", + "errors": "list[GsaMfaExpressionErrorDetail]", + "expression_guid": "str", + } + + attribute_map: dict[str, str] = { + "message": "message", + "reason": "reason", + "errors": "errors", + "expression_guid": "expressionGuid", + } + + subtype_mapping: dict[str, str] = { + "errors": "GsaMfaExpressionErrorDetail", + } + + discriminator: Optional[str] = None + + def __init__( + self, + *, + message: "str", + reason: "GsaMathsFunctionalErrorReason" = GsaMathsFunctionalErrorReason.EXPRESSION, + errors: "Union[list[GsaMfaExpressionErrorDetail], None, Unset_Type]" = Unset, + expression_guid: "Union[str, Unset_Type]" = Unset, + ) -> None: + """GsaExpressionMathsFunctionalErrorDetail - a model defined in Swagger + + Parameters + ---------- + message: str + reason: GsaMathsFunctionalErrorReason + errors: list[GsaMfaExpressionErrorDetail], optional + expression_guid: str, optional + """ + super().__init__(message=message, reason=reason) + self._expression_guid: Union[str, Unset_Type] = Unset + self._errors: Union[list[GsaMfaExpressionErrorDetail], None, Unset_Type] = Unset + + if expression_guid is not Unset: + self.expression_guid = expression_guid + if errors is not Unset: + self.errors = errors + + @property + def expression_guid(self) -> "Union[str, Unset_Type]": + """Gets the expression_guid of this GsaExpressionMathsFunctionalErrorDetail. + + Returns + ------- + Union[str, Unset_Type] + The expression_guid of this GsaExpressionMathsFunctionalErrorDetail. + """ + return self._expression_guid + + @expression_guid.setter + def expression_guid(self, expression_guid: "Union[str, Unset_Type]") -> None: + """Sets the expression_guid of this GsaExpressionMathsFunctionalErrorDetail. + + Parameters + ---------- + expression_guid: Union[str, Unset_Type] + The expression_guid of this GsaExpressionMathsFunctionalErrorDetail. + """ + # Field is not nullable + if expression_guid is None: + raise ValueError("Invalid value for 'expression_guid', must not be 'None'") + self._expression_guid = expression_guid + + @property + def errors(self) -> "Union[list[GsaMfaExpressionErrorDetail], None, Unset_Type]": + """Gets the errors of this GsaExpressionMathsFunctionalErrorDetail. + + Returns + ------- + Union[list[GsaMfaExpressionErrorDetail], None, Unset_Type] + The errors of this GsaExpressionMathsFunctionalErrorDetail. + """ + return self._errors + + @errors.setter + def errors(self, errors: "Union[list[GsaMfaExpressionErrorDetail], None, Unset_Type]") -> None: + """Sets the errors of this GsaExpressionMathsFunctionalErrorDetail. + + Parameters + ---------- + errors: Union[list[GsaMfaExpressionErrorDetail], None, Unset_Type] + The errors of this GsaExpressionMathsFunctionalErrorDetail. + """ + self._errors = errors + + @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, GsaExpressionMathsFunctionalErrorDetail): + 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 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_expression_usage_data_modification_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_expression_usage_data_modification_error_detail.py index 1af53ff3..ea1e4553 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_expression_usage_data_modification_error_detail.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_expression_usage_data_modification_error_detail.py @@ -33,6 +33,9 @@ import re # noqa: F401 from typing import TYPE_CHECKING, Any, BinaryIO, Optional, Union # noqa: F401 +from ansys.grantami.serverapi_openapi.models.gsa_data_modification_error_reason import ( + GsaDataModificationErrorReason, +) from ansys.grantami.serverapi_openapi.models.gsa_referenced_by_type import GsaReferencedByType from ansys.grantami.serverapi_openapi.models.gsa_usage_data_modification_error_detail import ( # noqa: F401 GsaUsageDataModificationErrorDetail, @@ -67,7 +70,7 @@ class GsaExpressionUsageDataModificationErrorDetail(GsaUsageDataModificationErro """ swagger_types: dict[str, str] = { "message": "str", - "reason": "str", + "reason": "GsaDataModificationErrorReason", "referenced_by_type": "GsaReferencedByType", "referenced_by": "list[GsaSlimNamedEntity]", } @@ -89,7 +92,7 @@ def __init__( self, *, message: "str", - reason: "str" = "usage", + reason: "GsaDataModificationErrorReason" = GsaDataModificationErrorReason.USAGE, referenced_by_type: "GsaReferencedByType" = GsaReferencedByType.EXPRESSION, referenced_by: "Union[list[GsaSlimNamedEntity], None, Unset_Type]" = Unset, ) -> None: @@ -98,7 +101,7 @@ def __init__( Parameters ---------- message: str - reason: str + reason: GsaDataModificationErrorReason referenced_by_type: GsaReferencedByType referenced_by: list[GsaSlimNamedEntity], optional """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_expressions_have_unknown_parameters_maths_functional_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_expressions_have_unknown_parameters_maths_functional_error_detail.py new file mode 100644 index 00000000..3d615297 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_expressions_have_unknown_parameters_maths_functional_error_detail.py @@ -0,0 +1,160 @@ +# 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 ansys.grantami.serverapi_openapi.models.gsa_maths_functional_error_detail import ( # noqa: F401 + GsaMathsFunctionalErrorDetail, +) +from ansys.grantami.serverapi_openapi.models.gsa_maths_functional_error_reason import ( + GsaMathsFunctionalErrorReason, +) + +from . import ModelBase, Unset, Unset_Type + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + + from . import * + + +class GsaExpressionsHaveUnknownParametersMathsFunctionalErrorDetail(GsaMathsFunctionalErrorDetail): + """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] = { + "message": "str", + "reason": "GsaMathsFunctionalErrorReason", + "missing_parameter_guids": "list[str]", + } + + attribute_map: dict[str, str] = { + "message": "message", + "reason": "reason", + "missing_parameter_guids": "missingParameterGuids", + } + + subtype_mapping: dict[str, str] = {} + + discriminator: Optional[str] = None + + def __init__( + self, + *, + message: "str", + reason: "GsaMathsFunctionalErrorReason" = GsaMathsFunctionalErrorReason.EXPRESSIONSHAVEUNKNOWNPARAMETERS, + missing_parameter_guids: "Union[list[str], None, Unset_Type]" = Unset, + ) -> None: + """GsaExpressionsHaveUnknownParametersMathsFunctionalErrorDetail - a model defined in Swagger + + Parameters + ---------- + message: str + reason: GsaMathsFunctionalErrorReason + missing_parameter_guids: list[str], optional + """ + super().__init__(message=message, reason=reason) + self._missing_parameter_guids: Union[list[str], None, Unset_Type] = Unset + + if missing_parameter_guids is not Unset: + self.missing_parameter_guids = missing_parameter_guids + + @property + def missing_parameter_guids(self) -> "Union[list[str], None, Unset_Type]": + """Gets the missing_parameter_guids of this GsaExpressionsHaveUnknownParametersMathsFunctionalErrorDetail. + + Returns + ------- + Union[list[str], None, Unset_Type] + The missing_parameter_guids of this GsaExpressionsHaveUnknownParametersMathsFunctionalErrorDetail. + """ + return self._missing_parameter_guids + + @missing_parameter_guids.setter + def missing_parameter_guids( + self, missing_parameter_guids: "Union[list[str], None, Unset_Type]" + ) -> None: + """Sets the missing_parameter_guids of this GsaExpressionsHaveUnknownParametersMathsFunctionalErrorDetail. + + Parameters + ---------- + missing_parameter_guids: Union[list[str], None, Unset_Type] + The missing_parameter_guids of this GsaExpressionsHaveUnknownParametersMathsFunctionalErrorDetail. + """ + self._missing_parameter_guids = missing_parameter_guids + + @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, GsaExpressionsHaveUnknownParametersMathsFunctionalErrorDetail): + 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 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_func_no_params_attribute_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_func_no_params_attribute_error_detail.py new file mode 100644 index 00000000..15517a5c --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_func_no_params_attribute_error_detail.py @@ -0,0 +1,128 @@ +# 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 ansys.grantami.serverapi_openapi.models.gsa_attribute_error_detail import ( # noqa: F401 + GsaAttributeErrorDetail, +) +from ansys.grantami.serverapi_openapi.models.gsa_attribute_error_reason import ( + GsaAttributeErrorReason, +) + +from . import ModelBase, Unset, Unset_Type + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + + from . import * + + +class GsaFuncNoParamsAttributeErrorDetail(GsaAttributeErrorDetail): + """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] = { + "message": "str", + "reason": "GsaAttributeErrorReason", + } + + attribute_map: dict[str, str] = { + "message": "message", + "reason": "reason", + } + + subtype_mapping: dict[str, str] = {} + + discriminator: Optional[str] = None + + def __init__( + self, + *, + message: "str", + reason: "GsaAttributeErrorReason" = GsaAttributeErrorReason.FUNCNOPARAMS, + ) -> None: + """GsaFuncNoParamsAttributeErrorDetail - a model defined in Swagger + + Parameters + ---------- + message: str + reason: GsaAttributeErrorReason + """ + super().__init__(message=message, reason=reason) + + @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, GsaFuncNoParamsAttributeErrorDetail): + 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 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_graph_parameter_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_graph_parameter_value.py new file mode 100644 index 00000000..d9bf374a --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_graph_parameter_value.py @@ -0,0 +1,161 @@ +# 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 GsaGraphParameterValue(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_class_map: dict[str, str] + They key is discriminator value and the value is associated subtype. + discriminator: Optional[str] + Name of the property used as discriminator for subtypes. + """ + swagger_types: dict[str, str] = { + "parameter_type": "GsaParameterType", + } + + attribute_map: dict[str, str] = { + "parameter_type": "parameterType", + } + + subtype_mapping: dict[str, str] = { + "parameterType": "GsaParameterType", + } + + discriminator_value_class_map = { + "discrete".lower(): "#/components/schemas/GsaDiscreteGraphParameterValue", + "numeric".lower(): "#/components/schemas/GsaNumericGraphParameterValue", + } + + discriminator: Optional[str] = "parameterType" + + def __init__( + self, + *, + parameter_type: "GsaParameterType", + ) -> None: + """GsaGraphParameterValue - a model defined in Swagger + + Parameters + ---------- + parameter_type: GsaParameterType + """ + self._parameter_type: GsaParameterType + + self.parameter_type = parameter_type + + @property + def parameter_type(self) -> "GsaParameterType": + """Gets the parameter_type of this GsaGraphParameterValue. + + Returns + ------- + GsaParameterType + The parameter_type of this GsaGraphParameterValue. + """ + return self._parameter_type + + @parameter_type.setter + def parameter_type(self, parameter_type: "GsaParameterType") -> None: + """Sets the parameter_type of this GsaGraphParameterValue. + + Parameters + ---------- + parameter_type: GsaParameterType + The parameter_type of this GsaGraphParameterValue. + """ + # Field is not nullable + if parameter_type is None: + raise ValueError("Invalid value for 'parameter_type', must not be 'None'") + # Field is required + if parameter_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'parameter_type', must not be 'Unset'") + self._parameter_type = parameter_type + + @classmethod + def get_real_child_model(cls, data: dict[str, str]) -> str: + """Returns the real base class as determined by the discriminator + + Parameters + ---------- + data: ModelBase + Object representing a subclass of this class + """ + discriminator_value = str(data[cls._get_discriminator_field_name()]).lower() + # The actual class name is not available in swagger-codegen, + # so we have to extract it from the JSON reference + return cls.discriminator_value_class_map[discriminator_value].rsplit("/", 1)[-1] + + @classmethod + def _get_discriminator_field_name(cls) -> str: + assert cls.discriminator + name_tokens = cls.discriminator.split("_") + later_tokens = [element.capitalize() for element in name_tokens[1:]] + return "".join([name_tokens[0], *later_tokens]) + + 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, GsaGraphParameterValue): + 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 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_graph_parameter_with_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_graph_parameter_with_value.py new file mode 100644 index 00000000..b68e064b --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_graph_parameter_with_value.py @@ -0,0 +1,183 @@ +# 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 GsaGraphParameterWithValue(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] = { + "parameter_guid": "str", + "parameter_value": "GsaGraphParameterValue", + } + + attribute_map: dict[str, str] = { + "parameter_guid": "parameterGuid", + "parameter_value": "parameterValue", + } + + subtype_mapping: dict[str, str] = { + "parameterValue": "GsaGraphParameterValue", + } + + discriminator: Optional[str] = None + + def __init__( + self, + *, + parameter_guid: "str", + parameter_value: "GsaGraphParameterValue", + ) -> None: + """GsaGraphParameterWithValue - a model defined in Swagger + + Parameters + ---------- + parameter_guid: str + parameter_value: GsaGraphParameterValue + """ + self._parameter_guid: str + self._parameter_value: GsaGraphParameterValue + + self.parameter_guid = parameter_guid + self.parameter_value = parameter_value + + @property + def parameter_guid(self) -> "str": + """Gets the parameter_guid of this GsaGraphParameterWithValue. + + Returns + ------- + str + The parameter_guid of this GsaGraphParameterWithValue. + """ + return self._parameter_guid + + @parameter_guid.setter + def parameter_guid(self, parameter_guid: "str") -> None: + """Sets the parameter_guid of this GsaGraphParameterWithValue. + + Parameters + ---------- + parameter_guid: str + The parameter_guid of this GsaGraphParameterWithValue. + """ + # Field is not nullable + if parameter_guid is None: + raise ValueError("Invalid value for 'parameter_guid', must not be 'None'") + # Field is required + if parameter_guid is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'parameter_guid', must not be 'Unset'") + self._parameter_guid = parameter_guid + + @property + def parameter_value(self) -> "GsaGraphParameterValue": + """Gets the parameter_value of this GsaGraphParameterWithValue. + + Returns + ------- + GsaGraphParameterValue + The parameter_value of this GsaGraphParameterWithValue. + """ + return self._parameter_value + + @parameter_value.setter + def parameter_value(self, parameter_value: "GsaGraphParameterValue") -> None: + """Sets the parameter_value of this GsaGraphParameterWithValue. + + Parameters + ---------- + parameter_value: GsaGraphParameterValue + The parameter_value of this GsaGraphParameterWithValue. + """ + # Field is not nullable + if parameter_value is None: + raise ValueError("Invalid value for 'parameter_value', must not be 'None'") + # Field is required + if parameter_value is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'parameter_value', must not be 'Unset'") + self._parameter_value = parameter_value + + @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, GsaGraphParameterWithValue): + 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 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_graph_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_graph_value.py new file mode 100644 index 00000000..1fb59480 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_graph_value.py @@ -0,0 +1,161 @@ +# 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 GsaGraphValue(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_class_map: dict[str, str] + They key is discriminator value and the value is associated subtype. + discriminator: Optional[str] + Name of the property used as discriminator for subtypes. + """ + swagger_types: dict[str, str] = { + "graph_value_type": "GsaGraphValueType", + } + + attribute_map: dict[str, str] = { + "graph_value_type": "graphValueType", + } + + subtype_mapping: dict[str, str] = { + "graphValueType": "GsaGraphValueType", + } + + discriminator_value_class_map = { + "discrete".lower(): "#/components/schemas/GsaDiscreteGraphValue", + "range".lower(): "#/components/schemas/GsaRangeGraphValue", + } + + discriminator: Optional[str] = "graphValueType" + + def __init__( + self, + *, + graph_value_type: "GsaGraphValueType", + ) -> None: + """GsaGraphValue - a model defined in Swagger + + Parameters + ---------- + graph_value_type: GsaGraphValueType + """ + self._graph_value_type: GsaGraphValueType + + self.graph_value_type = graph_value_type + + @property + def graph_value_type(self) -> "GsaGraphValueType": + """Gets the graph_value_type of this GsaGraphValue. + + Returns + ------- + GsaGraphValueType + The graph_value_type of this GsaGraphValue. + """ + return self._graph_value_type + + @graph_value_type.setter + def graph_value_type(self, graph_value_type: "GsaGraphValueType") -> None: + """Sets the graph_value_type of this GsaGraphValue. + + Parameters + ---------- + graph_value_type: GsaGraphValueType + The graph_value_type of this GsaGraphValue. + """ + # Field is not nullable + if graph_value_type is None: + raise ValueError("Invalid value for 'graph_value_type', must not be 'None'") + # Field is required + if graph_value_type is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'graph_value_type', must not be 'Unset'") + self._graph_value_type = graph_value_type + + @classmethod + def get_real_child_model(cls, data: dict[str, str]) -> str: + """Returns the real base class as determined by the discriminator + + Parameters + ---------- + data: ModelBase + Object representing a subclass of this class + """ + discriminator_value = str(data[cls._get_discriminator_field_name()]).lower() + # The actual class name is not available in swagger-codegen, + # so we have to extract it from the JSON reference + return cls.discriminator_value_class_map[discriminator_value].rsplit("/", 1)[-1] + + @classmethod + def _get_discriminator_field_name(cls) -> str: + assert cls.discriminator + name_tokens = cls.discriminator.split("_") + later_tokens = [element.capitalize() for element in name_tokens[1:]] + return "".join([name_tokens[0], *later_tokens]) + + 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, GsaGraphValue): + 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 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_graph_value_type.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_graph_value_type.py new file mode 100644 index 00000000..95771f12 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_graph_value_type.py @@ -0,0 +1,46 @@ +# 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 +""" + +from enum import Enum + + +class GsaGraphValueType(Enum): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Allowed Enum values + """ + DISCRETE = "discrete" + RANGE = "range" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_index_record_failure.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_index_record_failure.py index 1adfe6e1..986709fb 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_index_record_failure.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_index_record_failure.py @@ -62,14 +62,14 @@ class GsaIndexRecordFailure(ModelBase): """ swagger_types: dict[str, str] = { "error": "str", - "record_history_identity": "int", + "record_history_guid": "str", "record_name": "str", "record_was_oversized": "bool", } attribute_map: dict[str, str] = { "error": "error", - "record_history_identity": "recordHistoryIdentity", + "record_history_guid": "recordHistoryGuid", "record_name": "recordName", "record_was_oversized": "recordWasOversized", } @@ -82,7 +82,7 @@ def __init__( self, *, error: "Union[str, None, Unset_Type]" = Unset, - record_history_identity: "Union[int, Unset_Type]" = Unset, + record_history_guid: "Union[str, Unset_Type]" = Unset, record_name: "Union[str, None, Unset_Type]" = Unset, record_was_oversized: "Union[bool, Unset_Type]" = Unset, ) -> None: @@ -91,17 +91,17 @@ def __init__( Parameters ---------- error: str, optional - record_history_identity: int, optional + record_history_guid: str, optional record_name: str, optional record_was_oversized: bool, optional """ - self._record_history_identity: Union[int, Unset_Type] = Unset + self._record_history_guid: Union[str, Unset_Type] = Unset self._record_name: Union[str, None, Unset_Type] = Unset self._error: Union[str, None, Unset_Type] = Unset self._record_was_oversized: Union[bool, Unset_Type] = Unset - if record_history_identity is not Unset: - self.record_history_identity = record_history_identity + if record_history_guid is not Unset: + self.record_history_guid = record_history_guid if record_name is not Unset: self.record_name = record_name if error is not Unset: @@ -110,29 +110,29 @@ def __init__( self.record_was_oversized = record_was_oversized @property - def record_history_identity(self) -> "Union[int, Unset_Type]": - """Gets the record_history_identity of this GsaIndexRecordFailure. + def record_history_guid(self) -> "Union[str, Unset_Type]": + """Gets the record_history_guid of this GsaIndexRecordFailure. Returns ------- - Union[int, Unset_Type] - The record_history_identity of this GsaIndexRecordFailure. + Union[str, Unset_Type] + The record_history_guid of this GsaIndexRecordFailure. """ - return self._record_history_identity + return self._record_history_guid - @record_history_identity.setter - def record_history_identity(self, record_history_identity: "Union[int, Unset_Type]") -> None: - """Sets the record_history_identity of this GsaIndexRecordFailure. + @record_history_guid.setter + def record_history_guid(self, record_history_guid: "Union[str, Unset_Type]") -> None: + """Sets the record_history_guid of this GsaIndexRecordFailure. Parameters ---------- - record_history_identity: Union[int, Unset_Type] - The record_history_identity of this GsaIndexRecordFailure. + record_history_guid: Union[str, Unset_Type] + The record_history_guid of this GsaIndexRecordFailure. """ # Field is not nullable - if record_history_identity is None: - raise ValueError("Invalid value for 'record_history_identity', must not be 'None'") - self._record_history_identity = record_history_identity + if record_history_guid is None: + raise ValueError("Invalid value for 'record_history_guid', must not be 'None'") + self._record_history_guid = record_history_guid @property def record_name(self) -> "Union[str, None, Unset_Type]": diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_maths_functional_attribute_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_maths_functional_attribute_error_detail.py new file mode 100644 index 00000000..441d095b --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_maths_functional_attribute_error_detail.py @@ -0,0 +1,162 @@ +# 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 ansys.grantami.serverapi_openapi.models.gsa_attribute_error_detail import ( # noqa: F401 + GsaAttributeErrorDetail, +) +from ansys.grantami.serverapi_openapi.models.gsa_attribute_error_reason import ( + GsaAttributeErrorReason, +) + +from . import ModelBase, Unset, Unset_Type + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + + from . import * + + +class GsaMathsFunctionalAttributeErrorDetail(GsaAttributeErrorDetail): + """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] = { + "message": "str", + "reason": "GsaAttributeErrorReason", + "errors": "list[GsaMathsFunctionalErrorDetail]", + } + + attribute_map: dict[str, str] = { + "message": "message", + "reason": "reason", + "errors": "errors", + } + + subtype_mapping: dict[str, str] = { + "errors": "GsaMathsFunctionalErrorDetail", + } + + discriminator: Optional[str] = None + + def __init__( + self, + *, + message: "str", + reason: "GsaAttributeErrorReason" = GsaAttributeErrorReason.MATHSFUNCTIONAL, + errors: "Union[list[GsaMathsFunctionalErrorDetail], None, Unset_Type]" = Unset, + ) -> None: + """GsaMathsFunctionalAttributeErrorDetail - a model defined in Swagger + + Parameters + ---------- + message: str + reason: GsaAttributeErrorReason + errors: list[GsaMathsFunctionalErrorDetail], optional + """ + super().__init__(message=message, reason=reason) + self._errors: Union[list[GsaMathsFunctionalErrorDetail], None, Unset_Type] = Unset + + if errors is not Unset: + self.errors = errors + + @property + def errors(self) -> "Union[list[GsaMathsFunctionalErrorDetail], None, Unset_Type]": + """Gets the errors of this GsaMathsFunctionalAttributeErrorDetail. + + Returns + ------- + Union[list[GsaMathsFunctionalErrorDetail], None, Unset_Type] + The errors of this GsaMathsFunctionalAttributeErrorDetail. + """ + return self._errors + + @errors.setter + def errors( + self, errors: "Union[list[GsaMathsFunctionalErrorDetail], None, Unset_Type]" + ) -> None: + """Sets the errors of this GsaMathsFunctionalAttributeErrorDetail. + + Parameters + ---------- + errors: Union[list[GsaMathsFunctionalErrorDetail], None, Unset_Type] + The errors of this GsaMathsFunctionalAttributeErrorDetail. + """ + self._errors = errors + + @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, GsaMathsFunctionalAttributeErrorDetail): + 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 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_maths_functional_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_maths_functional_error_detail.py new file mode 100644 index 00000000..e465092d --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_maths_functional_error_detail.py @@ -0,0 +1,204 @@ +# 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 GsaMathsFunctionalErrorDetail(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_class_map: dict[str, str] + They key is discriminator value and the value is associated subtype. + discriminator: Optional[str] + Name of the property used as discriminator for subtypes. + """ + swagger_types: dict[str, str] = { + "message": "str", + "reason": "GsaMathsFunctionalErrorReason", + } + + attribute_map: dict[str, str] = { + "message": "message", + "reason": "reason", + } + + subtype_mapping: dict[str, str] = { + "reason": "GsaMathsFunctionalErrorReason", + } + + discriminator_value_class_map = { + "anonymousExpressionsMustAllowAllCompatible".lower(): "#/components/schemas/GsaAnonymousExpressionsMustAllowAllCompatibleMathsFunctionalErrorDetail", + "defaultExpressionNotFound".lower(): "#/components/schemas/GsaDefaultExpressionNotFoundMathsFunctionalErrorDetail", + "defaultFreeParameterNotFound".lower(): "#/components/schemas/GsaDefaultFreeParameterNotFoundMathsFunctionalErrorDetail", + "duplicateExpressionGuids".lower(): "#/components/schemas/GsaDuplicateExpressionGuidsMathsFunctionalErrorDetail", + "expression".lower(): "#/components/schemas/GsaExpressionMathsFunctionalErrorDetail", + "expressionsHaveUnknownParameters".lower(): "#/components/schemas/GsaExpressionsHaveUnknownParametersMathsFunctionalErrorDetail", + "noExpressions".lower(): "#/components/schemas/GsaNoExpressionsMathsFunctionalErrorDetail", + "noSuchExpressions".lower(): "#/components/schemas/GsaNoSuchExpressionsMathsFunctionalErrorDetail", + "parameterContent".lower(): "#/components/schemas/GsaParameterContentMathsFunctionalErrorDetail", + "parameterContentDuplicateGuids".lower(): "#/components/schemas/GsaParameterContentDuplicateGuidsMathsFunctionalErrorDetail", + "parameterContentUnknownParameters".lower(): "#/components/schemas/GsaParameterContentUnknownParametersMathsFunctionalErrorDetail", + } + + discriminator: Optional[str] = "reason" + + def __init__( + self, + *, + message: "str", + reason: "GsaMathsFunctionalErrorReason", + ) -> None: + """GsaMathsFunctionalErrorDetail - a model defined in Swagger + + Parameters + ---------- + message: str + reason: GsaMathsFunctionalErrorReason + """ + self._message: str + self._reason: GsaMathsFunctionalErrorReason + + self.message = message + self.reason = reason + + @property + def message(self) -> "str": + """Gets the message of this GsaMathsFunctionalErrorDetail. + + Returns + ------- + str + The message of this GsaMathsFunctionalErrorDetail. + """ + return self._message + + @message.setter + def message(self, message: "str") -> None: + """Sets the message of this GsaMathsFunctionalErrorDetail. + + Parameters + ---------- + message: str + The message of this GsaMathsFunctionalErrorDetail. + """ + # Field is not nullable + if message is None: + raise ValueError("Invalid value for 'message', must not be 'None'") + # Field is required + if message is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'message', must not be 'Unset'") + self._message = message + + @property + def reason(self) -> "GsaMathsFunctionalErrorReason": + """Gets the reason of this GsaMathsFunctionalErrorDetail. + + Returns + ------- + GsaMathsFunctionalErrorReason + The reason of this GsaMathsFunctionalErrorDetail. + """ + return self._reason + + @reason.setter + def reason(self, reason: "GsaMathsFunctionalErrorReason") -> None: + """Sets the reason of this GsaMathsFunctionalErrorDetail. + + Parameters + ---------- + reason: GsaMathsFunctionalErrorReason + The reason of this GsaMathsFunctionalErrorDetail. + """ + # Field is not nullable + if reason is None: + raise ValueError("Invalid value for 'reason', must not be 'None'") + # Field is required + if reason is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'reason', must not be 'Unset'") + self._reason = reason + + @classmethod + def get_real_child_model(cls, data: dict[str, str]) -> str: + """Returns the real base class as determined by the discriminator + + Parameters + ---------- + data: ModelBase + Object representing a subclass of this class + """ + discriminator_value = str(data[cls._get_discriminator_field_name()]).lower() + # The actual class name is not available in swagger-codegen, + # so we have to extract it from the JSON reference + return cls.discriminator_value_class_map[discriminator_value].rsplit("/", 1)[-1] + + @classmethod + def _get_discriminator_field_name(cls) -> str: + assert cls.discriminator + name_tokens = cls.discriminator.split("_") + later_tokens = [element.capitalize() for element in name_tokens[1:]] + return "".join([name_tokens[0], *later_tokens]) + + 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, GsaMathsFunctionalErrorDetail): + 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 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_maths_functional_error_reason.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_maths_functional_error_reason.py new file mode 100644 index 00000000..26c3e0e0 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_maths_functional_error_reason.py @@ -0,0 +1,55 @@ +# 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 +""" + +from enum import Enum + + +class GsaMathsFunctionalErrorReason(Enum): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Allowed Enum values + """ + ANONYMOUSEXPRESSIONSMUSTALLOWALLCOMPATIBLE = "anonymousExpressionsMustAllowAllCompatible" + DEFAULTEXPRESSIONNOTFOUND = "defaultExpressionNotFound" + DEFAULTFREEPARAMETERNOTFOUND = "defaultFreeParameterNotFound" + DUPLICATEEXPRESSIONGUIDS = "duplicateExpressionGuids" + EXPRESSION = "expression" + EXPRESSIONSHAVEUNKNOWNPARAMETERS = "expressionsHaveUnknownParameters" + NOEXPRESSIONS = "noExpressions" + NOSUCHEXPRESSIONS = "noSuchExpressions" + PARAMETERCONTENT = "parameterContent" + PARAMETERCONTENTDUPLICATEGUIDS = "parameterContentDuplicateGuids" + PARAMETERCONTENTUNKNOWNPARAMETERS = "parameterContentUnknownParameters" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_mfa_expression_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_mfa_expression_error_detail.py new file mode 100644 index 00000000..41fdc79c --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_mfa_expression_error_detail.py @@ -0,0 +1,181 @@ +# 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 GsaMfaExpressionErrorDetail(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] = { + "message": "str", + "reason": "GsaMfaExpressionErrorReason", + } + + attribute_map: dict[str, str] = { + "message": "message", + "reason": "reason", + } + + subtype_mapping: dict[str, str] = { + "reason": "GsaMfaExpressionErrorReason", + } + + discriminator: Optional[str] = None + + def __init__( + self, + *, + message: "str", + reason: "Union[GsaMfaExpressionErrorReason, Unset_Type]" = Unset, + ) -> None: + """GsaMfaExpressionErrorDetail - a model defined in Swagger + + Parameters + ---------- + message: str + reason: GsaMfaExpressionErrorReason, optional + """ + self._message: str + self._reason: Union[GsaMfaExpressionErrorReason, Unset_Type] = Unset + + self.message = message + if reason is not Unset: + self.reason = reason + + @property + def message(self) -> "str": + """Gets the message of this GsaMfaExpressionErrorDetail. + + Returns + ------- + str + The message of this GsaMfaExpressionErrorDetail. + """ + return self._message + + @message.setter + def message(self, message: "str") -> None: + """Sets the message of this GsaMfaExpressionErrorDetail. + + Parameters + ---------- + message: str + The message of this GsaMfaExpressionErrorDetail. + """ + # Field is not nullable + if message is None: + raise ValueError("Invalid value for 'message', must not be 'None'") + # Field is required + if message is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'message', must not be 'Unset'") + self._message = message + + @property + def reason(self) -> "Union[GsaMfaExpressionErrorReason, Unset_Type]": + """Gets the reason of this GsaMfaExpressionErrorDetail. + + Returns + ------- + Union[GsaMfaExpressionErrorReason, Unset_Type] + The reason of this GsaMfaExpressionErrorDetail. + """ + return self._reason + + @reason.setter + def reason(self, reason: "Union[GsaMfaExpressionErrorReason, Unset_Type]") -> None: + """Sets the reason of this GsaMfaExpressionErrorDetail. + + Parameters + ---------- + reason: Union[GsaMfaExpressionErrorReason, Unset_Type] + The reason of this GsaMfaExpressionErrorDetail. + """ + # Field is not nullable + if reason is None: + raise ValueError("Invalid value for 'reason', must not be 'None'") + self._reason = reason + + @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, GsaMfaExpressionErrorDetail): + 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 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_mfa_expression_error_reason.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_mfa_expression_error_reason.py new file mode 100644 index 00000000..b9405263 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_mfa_expression_error_reason.py @@ -0,0 +1,48 @@ +# 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 +""" + +from enum import Enum + + +class GsaMfaExpressionErrorReason(Enum): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Allowed Enum values + """ + NOTANATTRIBUTEEXPRESSION = "notAnAttributeExpression" + INCOMPATIBLEUNIT = "incompatibleUnit" + EXPRESSIONALREADYUSESTHISATTRIBUTE = "expressionAlreadyUsesThisAttribute" + ANONYMOUSEXPRESSION = "anonymousExpression" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_missing_arguments_parameter_content_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_missing_arguments_parameter_content_error_detail.py new file mode 100644 index 00000000..5d586170 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_missing_arguments_parameter_content_error_detail.py @@ -0,0 +1,165 @@ +# 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 ansys.grantami.serverapi_openapi.models.gsa_parameter_content_error_detail import ( # noqa: F401 + GsaParameterContentErrorDetail, +) +from ansys.grantami.serverapi_openapi.models.gsa_parameter_content_error_reason import ( + GsaParameterContentErrorReason, +) + +from . import ModelBase, Unset, Unset_Type + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + + from . import * + + +class GsaMissingArgumentsParameterContentErrorDetail(GsaParameterContentErrorDetail): + """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] = { + "message": "str", + "reason": "GsaParameterContentErrorReason", + "missing_argument": "GsaParameterContentMissingArgument", + } + + attribute_map: dict[str, str] = { + "message": "message", + "reason": "reason", + "missing_argument": "missingArgument", + } + + subtype_mapping: dict[str, str] = { + "missingArgument": "GsaParameterContentMissingArgument", + } + + discriminator: Optional[str] = None + + def __init__( + self, + *, + message: "str", + reason: "GsaParameterContentErrorReason" = GsaParameterContentErrorReason.MISSINGARGUMENTS, + missing_argument: "Union[GsaParameterContentMissingArgument, Unset_Type]" = Unset, + ) -> None: + """GsaMissingArgumentsParameterContentErrorDetail - a model defined in Swagger + + Parameters + ---------- + message: str + reason: GsaParameterContentErrorReason + missing_argument: GsaParameterContentMissingArgument, optional + """ + super().__init__(message=message, reason=reason) + self._missing_argument: Union[GsaParameterContentMissingArgument, Unset_Type] = Unset + + if missing_argument is not Unset: + self.missing_argument = missing_argument + + @property + def missing_argument(self) -> "Union[GsaParameterContentMissingArgument, Unset_Type]": + """Gets the missing_argument of this GsaMissingArgumentsParameterContentErrorDetail. + + Returns + ------- + Union[GsaParameterContentMissingArgument, Unset_Type] + The missing_argument of this GsaMissingArgumentsParameterContentErrorDetail. + """ + return self._missing_argument + + @missing_argument.setter + def missing_argument( + self, missing_argument: "Union[GsaParameterContentMissingArgument, Unset_Type]" + ) -> None: + """Sets the missing_argument of this GsaMissingArgumentsParameterContentErrorDetail. + + Parameters + ---------- + missing_argument: Union[GsaParameterContentMissingArgument, Unset_Type] + The missing_argument of this GsaMissingArgumentsParameterContentErrorDetail. + """ + # Field is not nullable + if missing_argument is None: + raise ValueError("Invalid value for 'missing_argument', must not be 'None'") + self._missing_argument = missing_argument + + @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, GsaMissingArgumentsParameterContentErrorDetail): + 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 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_missing_parameter_guid_attribute_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_missing_parameter_guid_attribute_error_detail.py new file mode 100644 index 00000000..cb8bb52a --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_missing_parameter_guid_attribute_error_detail.py @@ -0,0 +1,128 @@ +# 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 ansys.grantami.serverapi_openapi.models.gsa_attribute_error_detail import ( # noqa: F401 + GsaAttributeErrorDetail, +) +from ansys.grantami.serverapi_openapi.models.gsa_attribute_error_reason import ( + GsaAttributeErrorReason, +) + +from . import ModelBase, Unset, Unset_Type + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + + from . import * + + +class GsaMissingParameterGuidAttributeErrorDetail(GsaAttributeErrorDetail): + """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] = { + "message": "str", + "reason": "GsaAttributeErrorReason", + } + + attribute_map: dict[str, str] = { + "message": "message", + "reason": "reason", + } + + subtype_mapping: dict[str, str] = {} + + discriminator: Optional[str] = None + + def __init__( + self, + *, + message: "str", + reason: "GsaAttributeErrorReason" = GsaAttributeErrorReason.MISSINGPARAMETERGUID, + ) -> None: + """GsaMissingParameterGuidAttributeErrorDetail - a model defined in Swagger + + Parameters + ---------- + message: str + reason: GsaAttributeErrorReason + """ + super().__init__(message=message, reason=reason) + + @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, GsaMissingParameterGuidAttributeErrorDetail): + 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 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_name_already_exists_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_name_already_exists_error_detail.py new file mode 100644 index 00000000..606f4e6f --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_name_already_exists_error_detail.py @@ -0,0 +1,162 @@ +# 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 ansys.grantami.serverapi_openapi.models.gsa_named_entity_error_detail import ( # noqa: F401 + GsaNamedEntityErrorDetail, +) +from ansys.grantami.serverapi_openapi.models.gsa_named_entity_error_reason import ( + GsaNamedEntityErrorReason, +) + +from . import ModelBase, Unset, Unset_Type + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + + from . import * + + +class GsaNameAlreadyExistsErrorDetail(GsaNamedEntityErrorDetail): + """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] = { + "message": "str", + "reason": "GsaNamedEntityErrorReason", + "entity_type_name": "str", + "name": "str", + } + + attribute_map: dict[str, str] = { + "message": "message", + "reason": "reason", + "entity_type_name": "entityTypeName", + "name": "name", + } + + subtype_mapping: dict[str, str] = {} + + discriminator: Optional[str] = None + + def __init__( + self, + *, + message: "str", + reason: "GsaNamedEntityErrorReason" = GsaNamedEntityErrorReason.NAMEALREADYEXISTS, + entity_type_name: "Union[str, None, Unset_Type]" = Unset, + name: "Union[str, None, Unset_Type]" = Unset, + ) -> None: + """GsaNameAlreadyExistsErrorDetail - a model defined in Swagger + + Parameters + ---------- + message: str + reason: GsaNamedEntityErrorReason + entity_type_name: str, optional + name: str, optional + """ + super().__init__(message=message, reason=reason, entity_type_name=entity_type_name) + self._name: Union[str, None, Unset_Type] = Unset + + if name is not Unset: + self.name = name + + @property + def name(self) -> "Union[str, None, Unset_Type]": + """Gets the name of this GsaNameAlreadyExistsErrorDetail. + + Returns + ------- + Union[str, None, Unset_Type] + The name of this GsaNameAlreadyExistsErrorDetail. + """ + return self._name + + @name.setter + def name(self, name: "Union[str, None, Unset_Type]") -> None: + """Sets the name of this GsaNameAlreadyExistsErrorDetail. + + Parameters + ---------- + name: Union[str, None, Unset_Type] + The name of this GsaNameAlreadyExistsErrorDetail. + """ + self._name = name + + @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, GsaNameAlreadyExistsErrorDetail): + 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 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_name_not_provided_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_name_not_provided_error_detail.py new file mode 100644 index 00000000..afded33f --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_name_not_provided_error_detail.py @@ -0,0 +1,132 @@ +# 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 ansys.grantami.serverapi_openapi.models.gsa_named_entity_error_detail import ( # noqa: F401 + GsaNamedEntityErrorDetail, +) +from ansys.grantami.serverapi_openapi.models.gsa_named_entity_error_reason import ( + GsaNamedEntityErrorReason, +) + +from . import ModelBase, Unset, Unset_Type + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + + from . import * + + +class GsaNameNotProvidedErrorDetail(GsaNamedEntityErrorDetail): + """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] = { + "message": "str", + "reason": "GsaNamedEntityErrorReason", + "entity_type_name": "str", + } + + attribute_map: dict[str, str] = { + "message": "message", + "reason": "reason", + "entity_type_name": "entityTypeName", + } + + subtype_mapping: dict[str, str] = {} + + discriminator: Optional[str] = None + + def __init__( + self, + *, + message: "str", + reason: "GsaNamedEntityErrorReason" = GsaNamedEntityErrorReason.NAMENOTPROVIDED, + entity_type_name: "Union[str, None, Unset_Type]" = Unset, + ) -> None: + """GsaNameNotProvidedErrorDetail - a model defined in Swagger + + Parameters + ---------- + message: str + reason: GsaNamedEntityErrorReason + entity_type_name: str, optional + """ + super().__init__(message=message, reason=reason, entity_type_name=entity_type_name) + + @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, GsaNameNotProvidedErrorDetail): + 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 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_named_entity_attribute_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_named_entity_attribute_error_detail.py new file mode 100644 index 00000000..0cc7be30 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_named_entity_attribute_error_detail.py @@ -0,0 +1,160 @@ +# 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 ansys.grantami.serverapi_openapi.models.gsa_attribute_error_detail import ( # noqa: F401 + GsaAttributeErrorDetail, +) +from ansys.grantami.serverapi_openapi.models.gsa_attribute_error_reason import ( + GsaAttributeErrorReason, +) + +from . import ModelBase, Unset, Unset_Type + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + + from . import * + + +class GsaNamedEntityAttributeErrorDetail(GsaAttributeErrorDetail): + """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] = { + "message": "str", + "reason": "GsaAttributeErrorReason", + "errors": "list[GsaNamedEntityErrorDetail]", + } + + attribute_map: dict[str, str] = { + "message": "message", + "reason": "reason", + "errors": "errors", + } + + subtype_mapping: dict[str, str] = { + "errors": "GsaNamedEntityErrorDetail", + } + + discriminator: Optional[str] = None + + def __init__( + self, + *, + message: "str", + reason: "GsaAttributeErrorReason" = GsaAttributeErrorReason.NAMEDENTITY, + errors: "Union[list[GsaNamedEntityErrorDetail], None, Unset_Type]" = Unset, + ) -> None: + """GsaNamedEntityAttributeErrorDetail - a model defined in Swagger + + Parameters + ---------- + message: str + reason: GsaAttributeErrorReason + errors: list[GsaNamedEntityErrorDetail], optional + """ + super().__init__(message=message, reason=reason) + self._errors: Union[list[GsaNamedEntityErrorDetail], None, Unset_Type] = Unset + + if errors is not Unset: + self.errors = errors + + @property + def errors(self) -> "Union[list[GsaNamedEntityErrorDetail], None, Unset_Type]": + """Gets the errors of this GsaNamedEntityAttributeErrorDetail. + + Returns + ------- + Union[list[GsaNamedEntityErrorDetail], None, Unset_Type] + The errors of this GsaNamedEntityAttributeErrorDetail. + """ + return self._errors + + @errors.setter + def errors(self, errors: "Union[list[GsaNamedEntityErrorDetail], None, Unset_Type]") -> None: + """Sets the errors of this GsaNamedEntityAttributeErrorDetail. + + Parameters + ---------- + errors: Union[list[GsaNamedEntityErrorDetail], None, Unset_Type] + The errors of this GsaNamedEntityAttributeErrorDetail. + """ + self._errors = errors + + @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, GsaNamedEntityAttributeErrorDetail): + 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 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_named_entity_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_named_entity_error_detail.py new file mode 100644 index 00000000..b4d3a7fa --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_named_entity_error_detail.py @@ -0,0 +1,227 @@ +# 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 GsaNamedEntityErrorDetail(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_class_map: dict[str, str] + They key is discriminator value and the value is associated subtype. + discriminator: Optional[str] + Name of the property used as discriminator for subtypes. + """ + swagger_types: dict[str, str] = { + "message": "str", + "reason": "GsaNamedEntityErrorReason", + "entity_type_name": "str", + } + + attribute_map: dict[str, str] = { + "message": "message", + "reason": "reason", + "entity_type_name": "entityTypeName", + } + + subtype_mapping: dict[str, str] = { + "reason": "GsaNamedEntityErrorReason", + } + + discriminator_value_class_map = { + "entityAlreadyExists".lower(): "#/components/schemas/GsaEntityAlreadyExistsErrorDetail", + "nameNotProvided".lower(): "#/components/schemas/GsaNameNotProvidedErrorDetail", + "nameAlreadyExists".lower(): "#/components/schemas/GsaNameAlreadyExistsErrorDetail", + } + + discriminator: Optional[str] = "reason" + + def __init__( + self, + *, + message: "str", + reason: "GsaNamedEntityErrorReason", + entity_type_name: "Union[str, None, Unset_Type]" = Unset, + ) -> None: + """GsaNamedEntityErrorDetail - a model defined in Swagger + + Parameters + ---------- + message: str + reason: GsaNamedEntityErrorReason + entity_type_name: str, optional + """ + self._message: str + self._reason: GsaNamedEntityErrorReason + self._entity_type_name: Union[str, None, Unset_Type] = Unset + + self.message = message + self.reason = reason + if entity_type_name is not Unset: + self.entity_type_name = entity_type_name + + @property + def message(self) -> "str": + """Gets the message of this GsaNamedEntityErrorDetail. + + Returns + ------- + str + The message of this GsaNamedEntityErrorDetail. + """ + return self._message + + @message.setter + def message(self, message: "str") -> None: + """Sets the message of this GsaNamedEntityErrorDetail. + + Parameters + ---------- + message: str + The message of this GsaNamedEntityErrorDetail. + """ + # Field is not nullable + if message is None: + raise ValueError("Invalid value for 'message', must not be 'None'") + # Field is required + if message is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'message', must not be 'Unset'") + self._message = message + + @property + def reason(self) -> "GsaNamedEntityErrorReason": + """Gets the reason of this GsaNamedEntityErrorDetail. + + Returns + ------- + GsaNamedEntityErrorReason + The reason of this GsaNamedEntityErrorDetail. + """ + return self._reason + + @reason.setter + def reason(self, reason: "GsaNamedEntityErrorReason") -> None: + """Sets the reason of this GsaNamedEntityErrorDetail. + + Parameters + ---------- + reason: GsaNamedEntityErrorReason + The reason of this GsaNamedEntityErrorDetail. + """ + # Field is not nullable + if reason is None: + raise ValueError("Invalid value for 'reason', must not be 'None'") + # Field is required + if reason is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'reason', must not be 'Unset'") + self._reason = reason + + @property + def entity_type_name(self) -> "Union[str, None, Unset_Type]": + """Gets the entity_type_name of this GsaNamedEntityErrorDetail. + e.g. 'Attribute', 'Meta-attribute' + + Returns + ------- + Union[str, None, Unset_Type] + The entity_type_name of this GsaNamedEntityErrorDetail. + """ + return self._entity_type_name + + @entity_type_name.setter + def entity_type_name(self, entity_type_name: "Union[str, None, Unset_Type]") -> None: + """Sets the entity_type_name of this GsaNamedEntityErrorDetail. + e.g. 'Attribute', 'Meta-attribute' + + Parameters + ---------- + entity_type_name: Union[str, None, Unset_Type] + The entity_type_name of this GsaNamedEntityErrorDetail. + """ + self._entity_type_name = entity_type_name + + @classmethod + def get_real_child_model(cls, data: dict[str, str]) -> str: + """Returns the real base class as determined by the discriminator + + Parameters + ---------- + data: ModelBase + Object representing a subclass of this class + """ + discriminator_value = str(data[cls._get_discriminator_field_name()]).lower() + # The actual class name is not available in swagger-codegen, + # so we have to extract it from the JSON reference + return cls.discriminator_value_class_map[discriminator_value].rsplit("/", 1)[-1] + + @classmethod + def _get_discriminator_field_name(cls) -> str: + assert cls.discriminator + name_tokens = cls.discriminator.split("_") + later_tokens = [element.capitalize() for element in name_tokens[1:]] + return "".join([name_tokens[0], *later_tokens]) + + 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, GsaNamedEntityErrorDetail): + 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 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_named_entity_error_reason.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_named_entity_error_reason.py new file mode 100644 index 00000000..f5e67652 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_named_entity_error_reason.py @@ -0,0 +1,47 @@ +# 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 +""" + +from enum import Enum + + +class GsaNamedEntityErrorReason(Enum): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Allowed Enum values + """ + ENTITYALREADYEXISTS = "entityAlreadyExists" + NAMENOTPROVIDED = "nameNotProvided" + NAMEALREADYEXISTS = "nameAlreadyExists" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_no_expressions_maths_functional_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_no_expressions_maths_functional_error_detail.py new file mode 100644 index 00000000..792a3fe4 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_no_expressions_maths_functional_error_detail.py @@ -0,0 +1,128 @@ +# 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 ansys.grantami.serverapi_openapi.models.gsa_maths_functional_error_detail import ( # noqa: F401 + GsaMathsFunctionalErrorDetail, +) +from ansys.grantami.serverapi_openapi.models.gsa_maths_functional_error_reason import ( + GsaMathsFunctionalErrorReason, +) + +from . import ModelBase, Unset, Unset_Type + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + + from . import * + + +class GsaNoExpressionsMathsFunctionalErrorDetail(GsaMathsFunctionalErrorDetail): + """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] = { + "message": "str", + "reason": "GsaMathsFunctionalErrorReason", + } + + attribute_map: dict[str, str] = { + "message": "message", + "reason": "reason", + } + + subtype_mapping: dict[str, str] = {} + + discriminator: Optional[str] = None + + def __init__( + self, + *, + message: "str", + reason: "GsaMathsFunctionalErrorReason" = GsaMathsFunctionalErrorReason.NOEXPRESSIONS, + ) -> None: + """GsaNoExpressionsMathsFunctionalErrorDetail - a model defined in Swagger + + Parameters + ---------- + message: str + reason: GsaMathsFunctionalErrorReason + """ + super().__init__(message=message, reason=reason) + + @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, GsaNoExpressionsMathsFunctionalErrorDetail): + 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 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_no_such_entity_attribute_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_no_such_entity_attribute_error_detail.py new file mode 100644 index 00000000..f091c186 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_no_such_entity_attribute_error_detail.py @@ -0,0 +1,224 @@ +# 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 ansys.grantami.serverapi_openapi.models.gsa_attribute_error_detail import ( # noqa: F401 + GsaAttributeErrorDetail, +) +from ansys.grantami.serverapi_openapi.models.gsa_attribute_error_reason import ( + GsaAttributeErrorReason, +) + +from . import ModelBase, Unset, Unset_Type + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + + from . import * + + +class GsaNoSuchEntityAttributeErrorDetail(GsaAttributeErrorDetail): + """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] = { + "message": "str", + "reason": "GsaAttributeErrorReason", + "database_key": "str", + "entity_type": "GsaAttributeNoSuchEntityType", + "guid": "str", + } + + attribute_map: dict[str, str] = { + "message": "message", + "reason": "reason", + "database_key": "databaseKey", + "entity_type": "entityType", + "guid": "guid", + } + + subtype_mapping: dict[str, str] = { + "entityType": "GsaAttributeNoSuchEntityType", + } + + discriminator: Optional[str] = None + + def __init__( + self, + *, + message: "str", + reason: "GsaAttributeErrorReason" = GsaAttributeErrorReason.NOSUCHENTITY, + database_key: "Union[str, None, Unset_Type]" = Unset, + entity_type: "Union[GsaAttributeNoSuchEntityType, Unset_Type]" = Unset, + guid: "Union[str, Unset_Type]" = Unset, + ) -> None: + """GsaNoSuchEntityAttributeErrorDetail - a model defined in Swagger + + Parameters + ---------- + message: str + reason: GsaAttributeErrorReason + database_key: str, optional + entity_type: GsaAttributeNoSuchEntityType, optional + guid: str, optional + """ + super().__init__(message=message, reason=reason) + self._guid: Union[str, Unset_Type] = Unset + self._database_key: Union[str, None, Unset_Type] = Unset + self._entity_type: Union[GsaAttributeNoSuchEntityType, Unset_Type] = Unset + + if guid is not Unset: + self.guid = guid + if database_key is not Unset: + self.database_key = database_key + if entity_type is not Unset: + self.entity_type = entity_type + + @property + def guid(self) -> "Union[str, Unset_Type]": + """Gets the guid of this GsaNoSuchEntityAttributeErrorDetail. + + Returns + ------- + Union[str, Unset_Type] + The guid of this GsaNoSuchEntityAttributeErrorDetail. + """ + return self._guid + + @guid.setter + def guid(self, guid: "Union[str, Unset_Type]") -> None: + """Sets the guid of this GsaNoSuchEntityAttributeErrorDetail. + + Parameters + ---------- + guid: Union[str, Unset_Type] + The guid of this GsaNoSuchEntityAttributeErrorDetail. + """ + # Field is not nullable + if guid is None: + raise ValueError("Invalid value for 'guid', must not be 'None'") + self._guid = guid + + @property + def database_key(self) -> "Union[str, None, Unset_Type]": + """Gets the database_key of this GsaNoSuchEntityAttributeErrorDetail. + + Returns + ------- + Union[str, None, Unset_Type] + The database_key of this GsaNoSuchEntityAttributeErrorDetail. + """ + return self._database_key + + @database_key.setter + def database_key(self, database_key: "Union[str, None, Unset_Type]") -> None: + """Sets the database_key of this GsaNoSuchEntityAttributeErrorDetail. + + Parameters + ---------- + database_key: Union[str, None, Unset_Type] + The database_key of this GsaNoSuchEntityAttributeErrorDetail. + """ + self._database_key = database_key + + @property + def entity_type(self) -> "Union[GsaAttributeNoSuchEntityType, Unset_Type]": + """Gets the entity_type of this GsaNoSuchEntityAttributeErrorDetail. + + Returns + ------- + Union[GsaAttributeNoSuchEntityType, Unset_Type] + The entity_type of this GsaNoSuchEntityAttributeErrorDetail. + """ + return self._entity_type + + @entity_type.setter + def entity_type(self, entity_type: "Union[GsaAttributeNoSuchEntityType, Unset_Type]") -> None: + """Sets the entity_type of this GsaNoSuchEntityAttributeErrorDetail. + + Parameters + ---------- + entity_type: Union[GsaAttributeNoSuchEntityType, Unset_Type] + The entity_type of this GsaNoSuchEntityAttributeErrorDetail. + """ + # Field is not nullable + if entity_type is None: + raise ValueError("Invalid value for 'entity_type', must not be 'None'") + self._entity_type = entity_type + + @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, GsaNoSuchEntityAttributeErrorDetail): + 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 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_no_such_expressions_maths_functional_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_no_such_expressions_maths_functional_error_detail.py new file mode 100644 index 00000000..64e4723e --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_no_such_expressions_maths_functional_error_detail.py @@ -0,0 +1,219 @@ +# 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 ansys.grantami.serverapi_openapi.models.gsa_maths_functional_error_detail import ( # noqa: F401 + GsaMathsFunctionalErrorDetail, +) +from ansys.grantami.serverapi_openapi.models.gsa_maths_functional_error_reason import ( + GsaMathsFunctionalErrorReason, +) + +from . import ModelBase, Unset, Unset_Type + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + + from . import * + + +class GsaNoSuchExpressionsMathsFunctionalErrorDetail(GsaMathsFunctionalErrorDetail): + """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] = { + "message": "str", + "reason": "GsaMathsFunctionalErrorReason", + "database_key": "str", + "not_found_guids": "list[str]", + "table_guid": "str", + } + + attribute_map: dict[str, str] = { + "message": "message", + "reason": "reason", + "database_key": "databaseKey", + "not_found_guids": "notFoundGuids", + "table_guid": "tableGuid", + } + + subtype_mapping: dict[str, str] = {} + + discriminator: Optional[str] = None + + def __init__( + self, + *, + message: "str", + reason: "GsaMathsFunctionalErrorReason" = GsaMathsFunctionalErrorReason.NOSUCHEXPRESSIONS, + database_key: "Union[str, None, Unset_Type]" = Unset, + not_found_guids: "Union[list[str], None, Unset_Type]" = Unset, + table_guid: "Union[str, Unset_Type]" = Unset, + ) -> None: + """GsaNoSuchExpressionsMathsFunctionalErrorDetail - a model defined in Swagger + + Parameters + ---------- + message: str + reason: GsaMathsFunctionalErrorReason + database_key: str, optional + not_found_guids: list[str], optional + table_guid: str, optional + """ + super().__init__(message=message, reason=reason) + self._not_found_guids: Union[list[str], None, Unset_Type] = Unset + self._table_guid: Union[str, Unset_Type] = Unset + self._database_key: Union[str, None, Unset_Type] = Unset + + if not_found_guids is not Unset: + self.not_found_guids = not_found_guids + if table_guid is not Unset: + self.table_guid = table_guid + if database_key is not Unset: + self.database_key = database_key + + @property + def not_found_guids(self) -> "Union[list[str], None, Unset_Type]": + """Gets the not_found_guids of this GsaNoSuchExpressionsMathsFunctionalErrorDetail. + + Returns + ------- + Union[list[str], None, Unset_Type] + The not_found_guids of this GsaNoSuchExpressionsMathsFunctionalErrorDetail. + """ + return self._not_found_guids + + @not_found_guids.setter + def not_found_guids(self, not_found_guids: "Union[list[str], None, Unset_Type]") -> None: + """Sets the not_found_guids of this GsaNoSuchExpressionsMathsFunctionalErrorDetail. + + Parameters + ---------- + not_found_guids: Union[list[str], None, Unset_Type] + The not_found_guids of this GsaNoSuchExpressionsMathsFunctionalErrorDetail. + """ + self._not_found_guids = not_found_guids + + @property + def table_guid(self) -> "Union[str, Unset_Type]": + """Gets the table_guid of this GsaNoSuchExpressionsMathsFunctionalErrorDetail. + + Returns + ------- + Union[str, Unset_Type] + The table_guid of this GsaNoSuchExpressionsMathsFunctionalErrorDetail. + """ + return self._table_guid + + @table_guid.setter + def table_guid(self, table_guid: "Union[str, Unset_Type]") -> None: + """Sets the table_guid of this GsaNoSuchExpressionsMathsFunctionalErrorDetail. + + Parameters + ---------- + table_guid: Union[str, Unset_Type] + The table_guid of this GsaNoSuchExpressionsMathsFunctionalErrorDetail. + """ + # Field is not nullable + if table_guid is None: + raise ValueError("Invalid value for 'table_guid', must not be 'None'") + self._table_guid = table_guid + + @property + def database_key(self) -> "Union[str, None, Unset_Type]": + """Gets the database_key of this GsaNoSuchExpressionsMathsFunctionalErrorDetail. + + Returns + ------- + Union[str, None, Unset_Type] + The database_key of this GsaNoSuchExpressionsMathsFunctionalErrorDetail. + """ + return self._database_key + + @database_key.setter + def database_key(self, database_key: "Union[str, None, Unset_Type]") -> None: + """Sets the database_key of this GsaNoSuchExpressionsMathsFunctionalErrorDetail. + + Parameters + ---------- + database_key: Union[str, None, Unset_Type] + The database_key of this GsaNoSuchExpressionsMathsFunctionalErrorDetail. + """ + self._database_key = database_key + + @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, GsaNoSuchExpressionsMathsFunctionalErrorDetail): + 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 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_no_such_parameter_value_parameter_content_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_no_such_parameter_value_parameter_content_error_detail.py new file mode 100644 index 00000000..a3e917c7 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_no_such_parameter_value_parameter_content_error_detail.py @@ -0,0 +1,222 @@ +# 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 ansys.grantami.serverapi_openapi.models.gsa_parameter_content_error_detail import ( # noqa: F401 + GsaParameterContentErrorDetail, +) +from ansys.grantami.serverapi_openapi.models.gsa_parameter_content_error_reason import ( + GsaParameterContentErrorReason, +) + +from . import ModelBase, Unset, Unset_Type + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + + from . import * + + +class GsaNoSuchParameterValueParameterContentErrorDetail(GsaParameterContentErrorDetail): + """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] = { + "message": "str", + "reason": "GsaParameterContentErrorReason", + "database_key": "str", + "parameter_guid": "str", + "parameter_value_guid": "str", + } + + attribute_map: dict[str, str] = { + "message": "message", + "reason": "reason", + "database_key": "databaseKey", + "parameter_guid": "parameterGuid", + "parameter_value_guid": "parameterValueGuid", + } + + subtype_mapping: dict[str, str] = {} + + discriminator: Optional[str] = None + + def __init__( + self, + *, + message: "str", + reason: "GsaParameterContentErrorReason" = GsaParameterContentErrorReason.NOSUCHPARAMETERVALUE, + database_key: "Union[str, None, Unset_Type]" = Unset, + parameter_guid: "Union[str, Unset_Type]" = Unset, + parameter_value_guid: "Union[str, Unset_Type]" = Unset, + ) -> None: + """GsaNoSuchParameterValueParameterContentErrorDetail - a model defined in Swagger + + Parameters + ---------- + message: str + reason: GsaParameterContentErrorReason + database_key: str, optional + parameter_guid: str, optional + parameter_value_guid: str, optional + """ + super().__init__(message=message, reason=reason) + self._parameter_value_guid: Union[str, Unset_Type] = Unset + self._parameter_guid: Union[str, Unset_Type] = Unset + self._database_key: Union[str, None, Unset_Type] = Unset + + if parameter_value_guid is not Unset: + self.parameter_value_guid = parameter_value_guid + if parameter_guid is not Unset: + self.parameter_guid = parameter_guid + if database_key is not Unset: + self.database_key = database_key + + @property + def parameter_value_guid(self) -> "Union[str, Unset_Type]": + """Gets the parameter_value_guid of this GsaNoSuchParameterValueParameterContentErrorDetail. + + Returns + ------- + Union[str, Unset_Type] + The parameter_value_guid of this GsaNoSuchParameterValueParameterContentErrorDetail. + """ + return self._parameter_value_guid + + @parameter_value_guid.setter + def parameter_value_guid(self, parameter_value_guid: "Union[str, Unset_Type]") -> None: + """Sets the parameter_value_guid of this GsaNoSuchParameterValueParameterContentErrorDetail. + + Parameters + ---------- + parameter_value_guid: Union[str, Unset_Type] + The parameter_value_guid of this GsaNoSuchParameterValueParameterContentErrorDetail. + """ + # Field is not nullable + if parameter_value_guid is None: + raise ValueError("Invalid value for 'parameter_value_guid', must not be 'None'") + self._parameter_value_guid = parameter_value_guid + + @property + def parameter_guid(self) -> "Union[str, Unset_Type]": + """Gets the parameter_guid of this GsaNoSuchParameterValueParameterContentErrorDetail. + + Returns + ------- + Union[str, Unset_Type] + The parameter_guid of this GsaNoSuchParameterValueParameterContentErrorDetail. + """ + return self._parameter_guid + + @parameter_guid.setter + def parameter_guid(self, parameter_guid: "Union[str, Unset_Type]") -> None: + """Sets the parameter_guid of this GsaNoSuchParameterValueParameterContentErrorDetail. + + Parameters + ---------- + parameter_guid: Union[str, Unset_Type] + The parameter_guid of this GsaNoSuchParameterValueParameterContentErrorDetail. + """ + # Field is not nullable + if parameter_guid is None: + raise ValueError("Invalid value for 'parameter_guid', must not be 'None'") + self._parameter_guid = parameter_guid + + @property + def database_key(self) -> "Union[str, None, Unset_Type]": + """Gets the database_key of this GsaNoSuchParameterValueParameterContentErrorDetail. + + Returns + ------- + Union[str, None, Unset_Type] + The database_key of this GsaNoSuchParameterValueParameterContentErrorDetail. + """ + return self._database_key + + @database_key.setter + def database_key(self, database_key: "Union[str, None, Unset_Type]") -> None: + """Sets the database_key of this GsaNoSuchParameterValueParameterContentErrorDetail. + + Parameters + ---------- + database_key: Union[str, None, Unset_Type] + The database_key of this GsaNoSuchParameterValueParameterContentErrorDetail. + """ + self._database_key = database_key + + @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, GsaNoSuchParameterValueParameterContentErrorDetail): + 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 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_numeric_graph_parameter_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_numeric_graph_parameter_value.py new file mode 100644 index 00000000..75641f8f --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_numeric_graph_parameter_value.py @@ -0,0 +1,157 @@ +# 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 ansys.grantami.serverapi_openapi.models.gsa_graph_parameter_value import ( # noqa: F401 + GsaGraphParameterValue, +) +from ansys.grantami.serverapi_openapi.models.gsa_parameter_type import GsaParameterType + +from . import ModelBase, Unset, Unset_Type + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + + from . import * + + +class GsaNumericGraphParameterValue(GsaGraphParameterValue): + """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] = { + "parameter_type": "GsaParameterType", + "parameter_value": "float", + } + + attribute_map: dict[str, str] = { + "parameter_type": "parameterType", + "parameter_value": "parameterValue", + } + + subtype_mapping: dict[str, str] = {} + + discriminator: Optional[str] = None + + def __init__( + self, + *, + parameter_type: "GsaParameterType" = GsaParameterType.NUMERIC, + parameter_value: "float", + ) -> None: + """GsaNumericGraphParameterValue - a model defined in Swagger + + Parameters + ---------- + parameter_type: GsaParameterType + parameter_value: float + """ + super().__init__(parameter_type=parameter_type) + self._parameter_value: float + + self.parameter_value = parameter_value + + @property + def parameter_value(self) -> "float": + """Gets the parameter_value of this GsaNumericGraphParameterValue. + + Returns + ------- + float + The parameter_value of this GsaNumericGraphParameterValue. + """ + return self._parameter_value + + @parameter_value.setter + def parameter_value(self, parameter_value: "float") -> None: + """Sets the parameter_value of this GsaNumericGraphParameterValue. + + Parameters + ---------- + parameter_value: float + The parameter_value of this GsaNumericGraphParameterValue. + """ + # Field is not nullable + if parameter_value is None: + raise ValueError("Invalid value for 'parameter_value', must not be 'None'") + # Field is required + if parameter_value is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'parameter_value', must not be 'Unset'") + self._parameter_value = parameter_value + + @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, GsaNumericGraphParameterValue): + 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 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_parameter_content_duplicate_guids_maths_functional_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_parameter_content_duplicate_guids_maths_functional_error_detail.py new file mode 100644 index 00000000..ad7cb8ef --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_parameter_content_duplicate_guids_maths_functional_error_detail.py @@ -0,0 +1,158 @@ +# 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 ansys.grantami.serverapi_openapi.models.gsa_maths_functional_error_detail import ( # noqa: F401 + GsaMathsFunctionalErrorDetail, +) +from ansys.grantami.serverapi_openapi.models.gsa_maths_functional_error_reason import ( + GsaMathsFunctionalErrorReason, +) + +from . import ModelBase, Unset, Unset_Type + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + + from . import * + + +class GsaParameterContentDuplicateGuidsMathsFunctionalErrorDetail(GsaMathsFunctionalErrorDetail): + """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] = { + "message": "str", + "reason": "GsaMathsFunctionalErrorReason", + "duplicated_guids": "list[str]", + } + + attribute_map: dict[str, str] = { + "message": "message", + "reason": "reason", + "duplicated_guids": "duplicatedGuids", + } + + subtype_mapping: dict[str, str] = {} + + discriminator: Optional[str] = None + + def __init__( + self, + *, + message: "str", + reason: "GsaMathsFunctionalErrorReason" = GsaMathsFunctionalErrorReason.PARAMETERCONTENTDUPLICATEGUIDS, + duplicated_guids: "Union[list[str], None, Unset_Type]" = Unset, + ) -> None: + """GsaParameterContentDuplicateGuidsMathsFunctionalErrorDetail - a model defined in Swagger + + Parameters + ---------- + message: str + reason: GsaMathsFunctionalErrorReason + duplicated_guids: list[str], optional + """ + super().__init__(message=message, reason=reason) + self._duplicated_guids: Union[list[str], None, Unset_Type] = Unset + + if duplicated_guids is not Unset: + self.duplicated_guids = duplicated_guids + + @property + def duplicated_guids(self) -> "Union[list[str], None, Unset_Type]": + """Gets the duplicated_guids of this GsaParameterContentDuplicateGuidsMathsFunctionalErrorDetail. + + Returns + ------- + Union[list[str], None, Unset_Type] + The duplicated_guids of this GsaParameterContentDuplicateGuidsMathsFunctionalErrorDetail. + """ + return self._duplicated_guids + + @duplicated_guids.setter + def duplicated_guids(self, duplicated_guids: "Union[list[str], None, Unset_Type]") -> None: + """Sets the duplicated_guids of this GsaParameterContentDuplicateGuidsMathsFunctionalErrorDetail. + + Parameters + ---------- + duplicated_guids: Union[list[str], None, Unset_Type] + The duplicated_guids of this GsaParameterContentDuplicateGuidsMathsFunctionalErrorDetail. + """ + self._duplicated_guids = duplicated_guids + + @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, GsaParameterContentDuplicateGuidsMathsFunctionalErrorDetail): + 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 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_parameter_content_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_parameter_content_error_detail.py new file mode 100644 index 00000000..befb1c21 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_parameter_content_error_detail.py @@ -0,0 +1,196 @@ +# 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 GsaParameterContentErrorDetail(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_class_map: dict[str, str] + They key is discriminator value and the value is associated subtype. + discriminator: Optional[str] + Name of the property used as discriminator for subtypes. + """ + swagger_types: dict[str, str] = { + "message": "str", + "reason": "GsaParameterContentErrorReason", + } + + attribute_map: dict[str, str] = { + "message": "message", + "reason": "reason", + } + + subtype_mapping: dict[str, str] = { + "reason": "GsaParameterContentErrorReason", + } + + discriminator_value_class_map = { + "parameterType".lower(): "#/components/schemas/GsaParameterTypeParameterContentErrorDetail", + "missingArguments".lower(): "#/components/schemas/GsaMissingArgumentsParameterContentErrorDetail", + "noSuchParameterValue".lower(): "#/components/schemas/GsaNoSuchParameterValueParameterContentErrorDetail", + } + + discriminator: Optional[str] = "reason" + + def __init__( + self, + *, + message: "str", + reason: "GsaParameterContentErrorReason", + ) -> None: + """GsaParameterContentErrorDetail - a model defined in Swagger + + Parameters + ---------- + message: str + reason: GsaParameterContentErrorReason + """ + self._message: str + self._reason: GsaParameterContentErrorReason + + self.message = message + self.reason = reason + + @property + def message(self) -> "str": + """Gets the message of this GsaParameterContentErrorDetail. + + Returns + ------- + str + The message of this GsaParameterContentErrorDetail. + """ + return self._message + + @message.setter + def message(self, message: "str") -> None: + """Sets the message of this GsaParameterContentErrorDetail. + + Parameters + ---------- + message: str + The message of this GsaParameterContentErrorDetail. + """ + # Field is not nullable + if message is None: + raise ValueError("Invalid value for 'message', must not be 'None'") + # Field is required + if message is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'message', must not be 'Unset'") + self._message = message + + @property + def reason(self) -> "GsaParameterContentErrorReason": + """Gets the reason of this GsaParameterContentErrorDetail. + + Returns + ------- + GsaParameterContentErrorReason + The reason of this GsaParameterContentErrorDetail. + """ + return self._reason + + @reason.setter + def reason(self, reason: "GsaParameterContentErrorReason") -> None: + """Sets the reason of this GsaParameterContentErrorDetail. + + Parameters + ---------- + reason: GsaParameterContentErrorReason + The reason of this GsaParameterContentErrorDetail. + """ + # Field is not nullable + if reason is None: + raise ValueError("Invalid value for 'reason', must not be 'None'") + # Field is required + if reason is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'reason', must not be 'Unset'") + self._reason = reason + + @classmethod + def get_real_child_model(cls, data: dict[str, str]) -> str: + """Returns the real base class as determined by the discriminator + + Parameters + ---------- + data: ModelBase + Object representing a subclass of this class + """ + discriminator_value = str(data[cls._get_discriminator_field_name()]).lower() + # The actual class name is not available in swagger-codegen, + # so we have to extract it from the JSON reference + return cls.discriminator_value_class_map[discriminator_value].rsplit("/", 1)[-1] + + @classmethod + def _get_discriminator_field_name(cls) -> str: + assert cls.discriminator + name_tokens = cls.discriminator.split("_") + later_tokens = [element.capitalize() for element in name_tokens[1:]] + return "".join([name_tokens[0], *later_tokens]) + + 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, GsaParameterContentErrorDetail): + 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 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_parameter_content_error_reason.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_parameter_content_error_reason.py new file mode 100644 index 00000000..b77f4a9c --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_parameter_content_error_reason.py @@ -0,0 +1,47 @@ +# 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 +""" + +from enum import Enum + + +class GsaParameterContentErrorReason(Enum): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Allowed Enum values + """ + PARAMETERTYPE = "parameterType" + MISSINGARGUMENTS = "missingArguments" + NOSUCHPARAMETERVALUE = "noSuchParameterValue" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_parameter_content_maths_functional_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_parameter_content_maths_functional_error_detail.py new file mode 100644 index 00000000..78b1d54e --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_parameter_content_maths_functional_error_detail.py @@ -0,0 +1,194 @@ +# 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 ansys.grantami.serverapi_openapi.models.gsa_maths_functional_error_detail import ( # noqa: F401 + GsaMathsFunctionalErrorDetail, +) +from ansys.grantami.serverapi_openapi.models.gsa_maths_functional_error_reason import ( + GsaMathsFunctionalErrorReason, +) + +from . import ModelBase, Unset, Unset_Type + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + + from . import * + + +class GsaParameterContentMathsFunctionalErrorDetail(GsaMathsFunctionalErrorDetail): + """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] = { + "message": "str", + "reason": "GsaMathsFunctionalErrorReason", + "errors": "list[GsaParameterContentErrorDetail]", + "parameter_guid": "str", + } + + attribute_map: dict[str, str] = { + "message": "message", + "reason": "reason", + "errors": "errors", + "parameter_guid": "parameterGuid", + } + + subtype_mapping: dict[str, str] = { + "errors": "GsaParameterContentErrorDetail", + } + + discriminator: Optional[str] = None + + def __init__( + self, + *, + message: "str", + reason: "GsaMathsFunctionalErrorReason" = GsaMathsFunctionalErrorReason.PARAMETERCONTENT, + errors: "Union[list[GsaParameterContentErrorDetail], None, Unset_Type]" = Unset, + parameter_guid: "Union[str, Unset_Type]" = Unset, + ) -> None: + """GsaParameterContentMathsFunctionalErrorDetail - a model defined in Swagger + + Parameters + ---------- + message: str + reason: GsaMathsFunctionalErrorReason + errors: list[GsaParameterContentErrorDetail], optional + parameter_guid: str, optional + """ + super().__init__(message=message, reason=reason) + self._parameter_guid: Union[str, Unset_Type] = Unset + self._errors: Union[list[GsaParameterContentErrorDetail], None, Unset_Type] = Unset + + if parameter_guid is not Unset: + self.parameter_guid = parameter_guid + if errors is not Unset: + self.errors = errors + + @property + def parameter_guid(self) -> "Union[str, Unset_Type]": + """Gets the parameter_guid of this GsaParameterContentMathsFunctionalErrorDetail. + + Returns + ------- + Union[str, Unset_Type] + The parameter_guid of this GsaParameterContentMathsFunctionalErrorDetail. + """ + return self._parameter_guid + + @parameter_guid.setter + def parameter_guid(self, parameter_guid: "Union[str, Unset_Type]") -> None: + """Sets the parameter_guid of this GsaParameterContentMathsFunctionalErrorDetail. + + Parameters + ---------- + parameter_guid: Union[str, Unset_Type] + The parameter_guid of this GsaParameterContentMathsFunctionalErrorDetail. + """ + # Field is not nullable + if parameter_guid is None: + raise ValueError("Invalid value for 'parameter_guid', must not be 'None'") + self._parameter_guid = parameter_guid + + @property + def errors(self) -> "Union[list[GsaParameterContentErrorDetail], None, Unset_Type]": + """Gets the errors of this GsaParameterContentMathsFunctionalErrorDetail. + + Returns + ------- + Union[list[GsaParameterContentErrorDetail], None, Unset_Type] + The errors of this GsaParameterContentMathsFunctionalErrorDetail. + """ + return self._errors + + @errors.setter + def errors( + self, errors: "Union[list[GsaParameterContentErrorDetail], None, Unset_Type]" + ) -> None: + """Sets the errors of this GsaParameterContentMathsFunctionalErrorDetail. + + Parameters + ---------- + errors: Union[list[GsaParameterContentErrorDetail], None, Unset_Type] + The errors of this GsaParameterContentMathsFunctionalErrorDetail. + """ + self._errors = errors + + @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, GsaParameterContentMathsFunctionalErrorDetail): + 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 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_parameter_content_missing_argument.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_parameter_content_missing_argument.py new file mode 100644 index 00000000..97e630e5 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_parameter_content_missing_argument.py @@ -0,0 +1,47 @@ +# 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 +""" + +from enum import Enum + + +class GsaParameterContentMissingArgument(Enum): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Allowed Enum values + """ + _0 = "0" + _1 = "1" + _2 = "2" diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_parameter_content_unknown_parameters_maths_functional_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_parameter_content_unknown_parameters_maths_functional_error_detail.py new file mode 100644 index 00000000..d474688b --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_parameter_content_unknown_parameters_maths_functional_error_detail.py @@ -0,0 +1,187 @@ +# 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 ansys.grantami.serverapi_openapi.models.gsa_maths_functional_error_detail import ( # noqa: F401 + GsaMathsFunctionalErrorDetail, +) +from ansys.grantami.serverapi_openapi.models.gsa_maths_functional_error_reason import ( + GsaMathsFunctionalErrorReason, +) + +from . import ModelBase, Unset, Unset_Type + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + + from . import * + + +class GsaParameterContentUnknownParametersMathsFunctionalErrorDetail(GsaMathsFunctionalErrorDetail): + """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] = { + "message": "str", + "reason": "GsaMathsFunctionalErrorReason", + "attribute_guid": "str", + "parameter_guids": "list[str]", + } + + attribute_map: dict[str, str] = { + "message": "message", + "reason": "reason", + "attribute_guid": "attributeGuid", + "parameter_guids": "parameterGuids", + } + + subtype_mapping: dict[str, str] = {} + + discriminator: Optional[str] = None + + def __init__( + self, + *, + message: "str", + reason: "GsaMathsFunctionalErrorReason" = GsaMathsFunctionalErrorReason.PARAMETERCONTENTUNKNOWNPARAMETERS, + attribute_guid: "Union[str, None, Unset_Type]" = Unset, + parameter_guids: "Union[list[str], None, Unset_Type]" = Unset, + ) -> None: + """GsaParameterContentUnknownParametersMathsFunctionalErrorDetail - a model defined in Swagger + + Parameters + ---------- + message: str + reason: GsaMathsFunctionalErrorReason + attribute_guid: str, optional + parameter_guids: list[str], optional + """ + super().__init__(message=message, reason=reason) + self._parameter_guids: Union[list[str], None, Unset_Type] = Unset + self._attribute_guid: Union[str, None, Unset_Type] = Unset + + if parameter_guids is not Unset: + self.parameter_guids = parameter_guids + if attribute_guid is not Unset: + self.attribute_guid = attribute_guid + + @property + def parameter_guids(self) -> "Union[list[str], None, Unset_Type]": + """Gets the parameter_guids of this GsaParameterContentUnknownParametersMathsFunctionalErrorDetail. + + Returns + ------- + Union[list[str], None, Unset_Type] + The parameter_guids of this GsaParameterContentUnknownParametersMathsFunctionalErrorDetail. + """ + return self._parameter_guids + + @parameter_guids.setter + def parameter_guids(self, parameter_guids: "Union[list[str], None, Unset_Type]") -> None: + """Sets the parameter_guids of this GsaParameterContentUnknownParametersMathsFunctionalErrorDetail. + + Parameters + ---------- + parameter_guids: Union[list[str], None, Unset_Type] + The parameter_guids of this GsaParameterContentUnknownParametersMathsFunctionalErrorDetail. + """ + self._parameter_guids = parameter_guids + + @property + def attribute_guid(self) -> "Union[str, None, Unset_Type]": + """Gets the attribute_guid of this GsaParameterContentUnknownParametersMathsFunctionalErrorDetail. + + Returns + ------- + Union[str, None, Unset_Type] + The attribute_guid of this GsaParameterContentUnknownParametersMathsFunctionalErrorDetail. + """ + return self._attribute_guid + + @attribute_guid.setter + def attribute_guid(self, attribute_guid: "Union[str, None, Unset_Type]") -> None: + """Sets the attribute_guid of this GsaParameterContentUnknownParametersMathsFunctionalErrorDetail. + + Parameters + ---------- + attribute_guid: Union[str, None, Unset_Type] + The attribute_guid of this GsaParameterContentUnknownParametersMathsFunctionalErrorDetail. + """ + self._attribute_guid = 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, GsaParameterContentUnknownParametersMathsFunctionalErrorDetail): + 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 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_parameter_type_parameter_content_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_parameter_type_parameter_content_error_detail.py new file mode 100644 index 00000000..f3fefd98 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_parameter_type_parameter_content_error_detail.py @@ -0,0 +1,200 @@ +# 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 ansys.grantami.serverapi_openapi.models.gsa_parameter_content_error_detail import ( # noqa: F401 + GsaParameterContentErrorDetail, +) +from ansys.grantami.serverapi_openapi.models.gsa_parameter_content_error_reason import ( + GsaParameterContentErrorReason, +) + +from . import ModelBase, Unset, Unset_Type + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + + from . import * + + +class GsaParameterTypeParameterContentErrorDetail(GsaParameterContentErrorDetail): + """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] = { + "message": "str", + "reason": "GsaParameterContentErrorReason", + "actual_parameter_type": "GsaParameterType", + "requested_parameter_type": "GsaParameterType", + } + + attribute_map: dict[str, str] = { + "message": "message", + "reason": "reason", + "actual_parameter_type": "actualParameterType", + "requested_parameter_type": "requestedParameterType", + } + + subtype_mapping: dict[str, str] = { + "requestedParameterType": "GsaParameterType", + "actualParameterType": "GsaParameterType", + } + + discriminator: Optional[str] = None + + def __init__( + self, + *, + message: "str", + reason: "GsaParameterContentErrorReason" = GsaParameterContentErrorReason.PARAMETERTYPE, + actual_parameter_type: "Union[GsaParameterType, Unset_Type]" = Unset, + requested_parameter_type: "Union[GsaParameterType, Unset_Type]" = Unset, + ) -> None: + """GsaParameterTypeParameterContentErrorDetail - a model defined in Swagger + + Parameters + ---------- + message: str + reason: GsaParameterContentErrorReason + actual_parameter_type: GsaParameterType, optional + requested_parameter_type: GsaParameterType, optional + """ + super().__init__(message=message, reason=reason) + self._requested_parameter_type: Union[GsaParameterType, Unset_Type] = Unset + self._actual_parameter_type: Union[GsaParameterType, Unset_Type] = Unset + + if requested_parameter_type is not Unset: + self.requested_parameter_type = requested_parameter_type + if actual_parameter_type is not Unset: + self.actual_parameter_type = actual_parameter_type + + @property + def requested_parameter_type(self) -> "Union[GsaParameterType, Unset_Type]": + """Gets the requested_parameter_type of this GsaParameterTypeParameterContentErrorDetail. + + Returns + ------- + Union[GsaParameterType, Unset_Type] + The requested_parameter_type of this GsaParameterTypeParameterContentErrorDetail. + """ + return self._requested_parameter_type + + @requested_parameter_type.setter + def requested_parameter_type( + self, requested_parameter_type: "Union[GsaParameterType, Unset_Type]" + ) -> None: + """Sets the requested_parameter_type of this GsaParameterTypeParameterContentErrorDetail. + + Parameters + ---------- + requested_parameter_type: Union[GsaParameterType, Unset_Type] + The requested_parameter_type of this GsaParameterTypeParameterContentErrorDetail. + """ + # Field is not nullable + if requested_parameter_type is None: + raise ValueError("Invalid value for 'requested_parameter_type', must not be 'None'") + self._requested_parameter_type = requested_parameter_type + + @property + def actual_parameter_type(self) -> "Union[GsaParameterType, Unset_Type]": + """Gets the actual_parameter_type of this GsaParameterTypeParameterContentErrorDetail. + + Returns + ------- + Union[GsaParameterType, Unset_Type] + The actual_parameter_type of this GsaParameterTypeParameterContentErrorDetail. + """ + return self._actual_parameter_type + + @actual_parameter_type.setter + def actual_parameter_type( + self, actual_parameter_type: "Union[GsaParameterType, Unset_Type]" + ) -> None: + """Sets the actual_parameter_type of this GsaParameterTypeParameterContentErrorDetail. + + Parameters + ---------- + actual_parameter_type: Union[GsaParameterType, Unset_Type] + The actual_parameter_type of this GsaParameterTypeParameterContentErrorDetail. + """ + # Field is not nullable + if actual_parameter_type is None: + raise ValueError("Invalid value for 'actual_parameter_type', must not be 'None'") + self._actual_parameter_type = actual_parameter_type + + @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, GsaParameterTypeParameterContentErrorDetail): + 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 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_point_parameters_requires_multi_valued_attribute_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_point_parameters_requires_multi_valued_attribute_error_detail.py new file mode 100644 index 00000000..d7d4ccc3 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_point_parameters_requires_multi_valued_attribute_error_detail.py @@ -0,0 +1,128 @@ +# 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 ansys.grantami.serverapi_openapi.models.gsa_attribute_error_detail import ( # noqa: F401 + GsaAttributeErrorDetail, +) +from ansys.grantami.serverapi_openapi.models.gsa_attribute_error_reason import ( + GsaAttributeErrorReason, +) + +from . import ModelBase, Unset, Unset_Type + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + + from . import * + + +class GsaPointParametersRequiresMultiValuedAttributeErrorDetail(GsaAttributeErrorDetail): + """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] = { + "message": "str", + "reason": "GsaAttributeErrorReason", + } + + attribute_map: dict[str, str] = { + "message": "message", + "reason": "reason", + } + + subtype_mapping: dict[str, str] = {} + + discriminator: Optional[str] = None + + def __init__( + self, + *, + message: "str", + reason: "GsaAttributeErrorReason" = GsaAttributeErrorReason.POINTPARAMETERSREQUIRESMULTIVALUED, + ) -> None: + """GsaPointParametersRequiresMultiValuedAttributeErrorDetail - a model defined in Swagger + + Parameters + ---------- + message: str + reason: GsaAttributeErrorReason + """ + super().__init__(message=message, reason=reason) + + @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, GsaPointParametersRequiresMultiValuedAttributeErrorDetail): + 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 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_range_graph_value.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_range_graph_value.py new file mode 100644 index 00000000..d40ef451 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_range_graph_value.py @@ -0,0 +1,325 @@ +# 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 ansys.grantami.serverapi_openapi.models.gsa_graph_value import GsaGraphValue # noqa: F401 +from ansys.grantami.serverapi_openapi.models.gsa_graph_value_type import GsaGraphValueType + +from . import ModelBase, Unset, Unset_Type + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + + from . import * + + +class GsaRangeGraphValue(GsaGraphValue): + """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] = { + "estimated": "bool", + "graph_value_type": "GsaGraphValueType", + "high_value": "float", + "high_value_is_inclusive": "bool", + "interpolated": "bool", + "low_value": "float", + "low_value_is_inclusive": "bool", + } + + attribute_map: dict[str, str] = { + "estimated": "estimated", + "graph_value_type": "graphValueType", + "high_value": "highValue", + "high_value_is_inclusive": "highValueIsInclusive", + "interpolated": "interpolated", + "low_value": "lowValue", + "low_value_is_inclusive": "lowValueIsInclusive", + } + + subtype_mapping: dict[str, str] = {} + + discriminator: Optional[str] = None + + def __init__( + self, + *, + estimated: "bool", + graph_value_type: "GsaGraphValueType" = GsaGraphValueType.RANGE, + high_value: "float", + high_value_is_inclusive: "bool", + interpolated: "bool", + low_value: "float", + low_value_is_inclusive: "bool", + ) -> None: + """GsaRangeGraphValue - a model defined in Swagger + + Parameters + ---------- + estimated: bool + graph_value_type: GsaGraphValueType + high_value: float + high_value_is_inclusive: bool + interpolated: bool + low_value: float + low_value_is_inclusive: bool + """ + super().__init__(graph_value_type=graph_value_type) + self._low_value: float + self._high_value: float + self._low_value_is_inclusive: bool + self._high_value_is_inclusive: bool + self._estimated: bool + self._interpolated: bool + + self.low_value = low_value + self.high_value = high_value + self.low_value_is_inclusive = low_value_is_inclusive + self.high_value_is_inclusive = high_value_is_inclusive + self.estimated = estimated + self.interpolated = interpolated + + @property + def low_value(self) -> "float": + """Gets the low_value of this GsaRangeGraphValue. + + Returns + ------- + float + The low_value of this GsaRangeGraphValue. + """ + return self._low_value + + @low_value.setter + def low_value(self, low_value: "float") -> None: + """Sets the low_value of this GsaRangeGraphValue. + + Parameters + ---------- + low_value: float + The low_value of this GsaRangeGraphValue. + """ + # Field is not nullable + if low_value is None: + raise ValueError("Invalid value for 'low_value', must not be 'None'") + # Field is required + if low_value is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'low_value', must not be 'Unset'") + self._low_value = low_value + + @property + def high_value(self) -> "float": + """Gets the high_value of this GsaRangeGraphValue. + + Returns + ------- + float + The high_value of this GsaRangeGraphValue. + """ + return self._high_value + + @high_value.setter + def high_value(self, high_value: "float") -> None: + """Sets the high_value of this GsaRangeGraphValue. + + Parameters + ---------- + high_value: float + The high_value of this GsaRangeGraphValue. + """ + # Field is not nullable + if high_value is None: + raise ValueError("Invalid value for 'high_value', must not be 'None'") + # Field is required + if high_value is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'high_value', must not be 'Unset'") + self._high_value = high_value + + @property + def low_value_is_inclusive(self) -> "bool": + """Gets the low_value_is_inclusive of this GsaRangeGraphValue. + + Returns + ------- + bool + The low_value_is_inclusive of this GsaRangeGraphValue. + """ + return self._low_value_is_inclusive + + @low_value_is_inclusive.setter + def low_value_is_inclusive(self, low_value_is_inclusive: "bool") -> None: + """Sets the low_value_is_inclusive of this GsaRangeGraphValue. + + Parameters + ---------- + low_value_is_inclusive: bool + The low_value_is_inclusive of this GsaRangeGraphValue. + """ + # Field is not nullable + if low_value_is_inclusive is None: + raise ValueError("Invalid value for 'low_value_is_inclusive', must not be 'None'") + # Field is required + if low_value_is_inclusive is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'low_value_is_inclusive', must not be 'Unset'") + self._low_value_is_inclusive = low_value_is_inclusive + + @property + def high_value_is_inclusive(self) -> "bool": + """Gets the high_value_is_inclusive of this GsaRangeGraphValue. + + Returns + ------- + bool + The high_value_is_inclusive of this GsaRangeGraphValue. + """ + return self._high_value_is_inclusive + + @high_value_is_inclusive.setter + def high_value_is_inclusive(self, high_value_is_inclusive: "bool") -> None: + """Sets the high_value_is_inclusive of this GsaRangeGraphValue. + + Parameters + ---------- + high_value_is_inclusive: bool + The high_value_is_inclusive of this GsaRangeGraphValue. + """ + # Field is not nullable + if high_value_is_inclusive is None: + raise ValueError("Invalid value for 'high_value_is_inclusive', must not be 'None'") + # Field is required + if high_value_is_inclusive is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'high_value_is_inclusive', must not be 'Unset'") + self._high_value_is_inclusive = high_value_is_inclusive + + @property + def estimated(self) -> "bool": + """Gets the estimated of this GsaRangeGraphValue. + + Returns + ------- + bool + The estimated of this GsaRangeGraphValue. + """ + return self._estimated + + @estimated.setter + def estimated(self, estimated: "bool") -> None: + """Sets the estimated of this GsaRangeGraphValue. + + Parameters + ---------- + estimated: bool + The estimated of this GsaRangeGraphValue. + """ + # Field is not nullable + if estimated is None: + raise ValueError("Invalid value for 'estimated', must not be 'None'") + # Field is required + if estimated is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'estimated', must not be 'Unset'") + self._estimated = estimated + + @property + def interpolated(self) -> "bool": + """Gets the interpolated of this GsaRangeGraphValue. + + Returns + ------- + bool + The interpolated of this GsaRangeGraphValue. + """ + return self._interpolated + + @interpolated.setter + def interpolated(self, interpolated: "bool") -> None: + """Sets the interpolated of this GsaRangeGraphValue. + + Parameters + ---------- + interpolated: bool + The interpolated of this GsaRangeGraphValue. + """ + # Field is not nullable + if interpolated is None: + raise ValueError("Invalid value for 'interpolated', must not be 'None'") + # Field is required + if interpolated is Unset: # type: ignore[comparison-overlap, unused-ignore] + raise ValueError("Invalid value for 'interpolated', must not be 'Unset'") + self._interpolated = interpolated + + @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, GsaRangeGraphValue): + 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 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_search_mask_usage_data_modification_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_search_mask_usage_data_modification_error_detail.py index ce7bb4a8..1414f4bf 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_search_mask_usage_data_modification_error_detail.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_search_mask_usage_data_modification_error_detail.py @@ -33,6 +33,9 @@ import re # noqa: F401 from typing import TYPE_CHECKING, Any, BinaryIO, Optional, Union # noqa: F401 +from ansys.grantami.serverapi_openapi.models.gsa_data_modification_error_reason import ( + GsaDataModificationErrorReason, +) from ansys.grantami.serverapi_openapi.models.gsa_referenced_by_type import GsaReferencedByType from ansys.grantami.serverapi_openapi.models.gsa_usage_data_modification_error_detail import ( # noqa: F401 GsaUsageDataModificationErrorDetail, @@ -67,7 +70,7 @@ class GsaSearchMaskUsageDataModificationErrorDetail(GsaUsageDataModificationErro """ swagger_types: dict[str, str] = { "message": "str", - "reason": "str", + "reason": "GsaDataModificationErrorReason", "referenced_by_type": "GsaReferencedByType", "referenced_by": "list[GsaSlimNamedEntity]", } @@ -89,7 +92,7 @@ def __init__( self, *, message: "str", - reason: "str" = "usage", + reason: "GsaDataModificationErrorReason" = GsaDataModificationErrorReason.USAGE, referenced_by_type: "GsaReferencedByType" = GsaReferencedByType.SEARCHMASK, referenced_by: "Union[list[GsaSlimNamedEntity], None, Unset_Type]" = Unset, ) -> None: @@ -98,7 +101,7 @@ def __init__( Parameters ---------- message: str - reason: str + reason: GsaDataModificationErrorReason referenced_by_type: GsaReferencedByType referenced_by: list[GsaSlimNamedEntity], optional """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_security_attribute_usage_data_modification_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_security_attribute_usage_data_modification_error_detail.py index 4b8f8eb9..2f769fae 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_security_attribute_usage_data_modification_error_detail.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_security_attribute_usage_data_modification_error_detail.py @@ -33,6 +33,9 @@ import re # noqa: F401 from typing import TYPE_CHECKING, Any, BinaryIO, Optional, Union # noqa: F401 +from ansys.grantami.serverapi_openapi.models.gsa_data_modification_error_reason import ( + GsaDataModificationErrorReason, +) from ansys.grantami.serverapi_openapi.models.gsa_referenced_by_type import GsaReferencedByType from ansys.grantami.serverapi_openapi.models.gsa_usage_data_modification_error_detail import ( # noqa: F401 GsaUsageDataModificationErrorDetail, @@ -67,7 +70,7 @@ class GsaSecurityAttributeUsageDataModificationErrorDetail(GsaUsageDataModificat """ swagger_types: dict[str, str] = { "message": "str", - "reason": "str", + "reason": "GsaDataModificationErrorReason", "referenced_by_type": "GsaReferencedByType", "referenced_by": "list[GsaSlimNamedEntity]", } @@ -89,7 +92,7 @@ def __init__( self, *, message: "str", - reason: "str" = "usage", + reason: "GsaDataModificationErrorReason" = GsaDataModificationErrorReason.USAGE, referenced_by_type: "GsaReferencedByType" = GsaReferencedByType.SECURITYATTRIBUTE, referenced_by: "Union[list[GsaSlimNamedEntity], None, Unset_Type]" = Unset, ) -> None: @@ -98,7 +101,7 @@ def __init__( Parameters ---------- message: str - reason: str + reason: GsaDataModificationErrorReason referenced_by_type: GsaReferencedByType referenced_by: list[GsaSlimNamedEntity], optional """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_tabular_attribute_usage_data_modification_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_tabular_attribute_usage_data_modification_error_detail.py index a71dfa11..b0f902a6 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_tabular_attribute_usage_data_modification_error_detail.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_tabular_attribute_usage_data_modification_error_detail.py @@ -33,6 +33,9 @@ import re # noqa: F401 from typing import TYPE_CHECKING, Any, BinaryIO, Optional, Union # noqa: F401 +from ansys.grantami.serverapi_openapi.models.gsa_data_modification_error_reason import ( + GsaDataModificationErrorReason, +) from ansys.grantami.serverapi_openapi.models.gsa_referenced_by_type import GsaReferencedByType from ansys.grantami.serverapi_openapi.models.gsa_usage_data_modification_error_detail import ( # noqa: F401 GsaUsageDataModificationErrorDetail, @@ -67,7 +70,7 @@ class GsaTabularAttributeUsageDataModificationErrorDetail(GsaUsageDataModificati """ swagger_types: dict[str, str] = { "message": "str", - "reason": "str", + "reason": "GsaDataModificationErrorReason", "referenced_by_type": "GsaReferencedByType", "referenced_by": "list[GsaSlimAttribute]", } @@ -89,7 +92,7 @@ def __init__( self, *, message: "str", - reason: "str" = "usage", + reason: "GsaDataModificationErrorReason" = GsaDataModificationErrorReason.USAGE, referenced_by_type: "GsaReferencedByType" = GsaReferencedByType.TABULARATTRIBUTE, referenced_by: "Union[list[GsaSlimAttribute], None, Unset_Type]" = Unset, ) -> None: @@ -98,7 +101,7 @@ def __init__( Parameters ---------- message: str - reason: str + reason: GsaDataModificationErrorReason referenced_by_type: GsaReferencedByType referenced_by: list[GsaSlimAttribute], optional """ diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_target_attribute_not_in_table_attribute_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_target_attribute_not_in_table_attribute_error_detail.py new file mode 100644 index 00000000..90e65cab --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_target_attribute_not_in_table_attribute_error_detail.py @@ -0,0 +1,193 @@ +# 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 ansys.grantami.serverapi_openapi.models.gsa_attribute_error_detail import ( # noqa: F401 + GsaAttributeErrorDetail, +) +from ansys.grantami.serverapi_openapi.models.gsa_attribute_error_reason import ( + GsaAttributeErrorReason, +) + +from . import ModelBase, Unset, Unset_Type + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + + from . import * + + +class GsaTargetAttributeNotInTableAttributeErrorDetail(GsaAttributeErrorDetail): + """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] = { + "message": "str", + "reason": "GsaAttributeErrorReason", + "target_attribute_guid": "str", + "target_table_guid": "str", + } + + attribute_map: dict[str, str] = { + "message": "message", + "reason": "reason", + "target_attribute_guid": "targetAttributeGuid", + "target_table_guid": "targetTableGuid", + } + + subtype_mapping: dict[str, str] = {} + + discriminator: Optional[str] = None + + def __init__( + self, + *, + message: "str", + reason: "GsaAttributeErrorReason" = GsaAttributeErrorReason.TARGETATTRIBUTENOTINTABLE, + target_attribute_guid: "Union[str, Unset_Type]" = Unset, + target_table_guid: "Union[str, Unset_Type]" = Unset, + ) -> None: + """GsaTargetAttributeNotInTableAttributeErrorDetail - a model defined in Swagger + + Parameters + ---------- + message: str + reason: GsaAttributeErrorReason + target_attribute_guid: str, optional + target_table_guid: str, optional + """ + super().__init__(message=message, reason=reason) + self._target_attribute_guid: Union[str, Unset_Type] = Unset + self._target_table_guid: Union[str, Unset_Type] = Unset + + if target_attribute_guid is not Unset: + self.target_attribute_guid = target_attribute_guid + if target_table_guid is not Unset: + self.target_table_guid = target_table_guid + + @property + def target_attribute_guid(self) -> "Union[str, Unset_Type]": + """Gets the target_attribute_guid of this GsaTargetAttributeNotInTableAttributeErrorDetail. + + Returns + ------- + Union[str, Unset_Type] + The target_attribute_guid of this GsaTargetAttributeNotInTableAttributeErrorDetail. + """ + 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 GsaTargetAttributeNotInTableAttributeErrorDetail. + + Parameters + ---------- + target_attribute_guid: Union[str, Unset_Type] + The target_attribute_guid of this GsaTargetAttributeNotInTableAttributeErrorDetail. + """ + # 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 + + @property + def target_table_guid(self) -> "Union[str, Unset_Type]": + """Gets the target_table_guid of this GsaTargetAttributeNotInTableAttributeErrorDetail. + + Returns + ------- + Union[str, Unset_Type] + The target_table_guid of this GsaTargetAttributeNotInTableAttributeErrorDetail. + """ + 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 GsaTargetAttributeNotInTableAttributeErrorDetail. + + Parameters + ---------- + target_table_guid: Union[str, Unset_Type] + The target_table_guid of this GsaTargetAttributeNotInTableAttributeErrorDetail. + """ + # 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 + + @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, GsaTargetAttributeNotInTableAttributeErrorDetail): + 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 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_target_attribute_type_attribute_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_target_attribute_type_attribute_error_detail.py new file mode 100644 index 00000000..b1faaa62 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_target_attribute_type_attribute_error_detail.py @@ -0,0 +1,161 @@ +# 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 ansys.grantami.serverapi_openapi.models.gsa_attribute_error_detail import ( # noqa: F401 + GsaAttributeErrorDetail, +) +from ansys.grantami.serverapi_openapi.models.gsa_attribute_error_reason import ( + GsaAttributeErrorReason, +) + +from . import ModelBase, Unset, Unset_Type + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + + from . import * + + +class GsaTargetAttributeTypeAttributeErrorDetail(GsaAttributeErrorDetail): + """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] = { + "message": "str", + "reason": "GsaAttributeErrorReason", + "target_attribute_guid": "str", + } + + attribute_map: dict[str, str] = { + "message": "message", + "reason": "reason", + "target_attribute_guid": "targetAttributeGuid", + } + + subtype_mapping: dict[str, str] = {} + + discriminator: Optional[str] = None + + def __init__( + self, + *, + message: "str", + reason: "GsaAttributeErrorReason" = GsaAttributeErrorReason.TARGETATTRIBUTETYPE, + target_attribute_guid: "Union[str, Unset_Type]" = Unset, + ) -> None: + """GsaTargetAttributeTypeAttributeErrorDetail - a model defined in Swagger + + Parameters + ---------- + message: str + reason: GsaAttributeErrorReason + target_attribute_guid: str, optional + """ + super().__init__(message=message, reason=reason) + self._target_attribute_guid: Union[str, Unset_Type] = Unset + + if target_attribute_guid is not Unset: + self.target_attribute_guid = target_attribute_guid + + @property + def target_attribute_guid(self) -> "Union[str, Unset_Type]": + """Gets the target_attribute_guid of this GsaTargetAttributeTypeAttributeErrorDetail. + + Returns + ------- + Union[str, Unset_Type] + The target_attribute_guid of this GsaTargetAttributeTypeAttributeErrorDetail. + """ + 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 GsaTargetAttributeTypeAttributeErrorDetail. + + Parameters + ---------- + target_attribute_guid: Union[str, Unset_Type] + The target_attribute_guid of this GsaTargetAttributeTypeAttributeErrorDetail. + """ + # 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, GsaTargetAttributeTypeAttributeErrorDetail): + 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 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_threshold_type_attribute_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_threshold_type_attribute_error_detail.py new file mode 100644 index 00000000..7b457028 --- /dev/null +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_threshold_type_attribute_error_detail.py @@ -0,0 +1,232 @@ +# 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 ansys.grantami.serverapi_openapi.models.gsa_attribute_error_detail import ( # noqa: F401 + GsaAttributeErrorDetail, +) +from ansys.grantami.serverapi_openapi.models.gsa_attribute_error_reason import ( + GsaAttributeErrorReason, +) + +from . import ModelBase, Unset, Unset_Type + +if TYPE_CHECKING: + from datetime import datetime + import pathlib + + from . import * + + +class GsaThresholdTypeAttributeErrorDetail(GsaAttributeErrorDetail): + """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] = { + "message": "str", + "reason": "GsaAttributeErrorReason", + "allowed_threshold_types": "list[GsaAttributeThresholdType]", + "attribute_type": "GsaAttributeType", + "threshold_type": "GsaAttributeThresholdType", + } + + attribute_map: dict[str, str] = { + "message": "message", + "reason": "reason", + "allowed_threshold_types": "allowedThresholdTypes", + "attribute_type": "attributeType", + "threshold_type": "thresholdType", + } + + subtype_mapping: dict[str, str] = { + "thresholdType": "GsaAttributeThresholdType", + "attributeType": "GsaAttributeType", + "allowedThresholdTypes": "GsaAttributeThresholdType", + } + + discriminator: Optional[str] = None + + def __init__( + self, + *, + message: "str", + reason: "GsaAttributeErrorReason" = GsaAttributeErrorReason.THRESHOLDTYPE, + allowed_threshold_types: "Union[list[GsaAttributeThresholdType], None, Unset_Type]" = Unset, + attribute_type: "Union[GsaAttributeType, Unset_Type]" = Unset, + threshold_type: "Union[GsaAttributeThresholdType, Unset_Type]" = Unset, + ) -> None: + """GsaThresholdTypeAttributeErrorDetail - a model defined in Swagger + + Parameters + ---------- + message: str + reason: GsaAttributeErrorReason + allowed_threshold_types: list[GsaAttributeThresholdType], optional + attribute_type: GsaAttributeType, optional + threshold_type: GsaAttributeThresholdType, optional + """ + super().__init__(message=message, reason=reason) + self._threshold_type: Union[GsaAttributeThresholdType, Unset_Type] = Unset + self._attribute_type: Union[GsaAttributeType, Unset_Type] = Unset + self._allowed_threshold_types: Union[list[GsaAttributeThresholdType], None, Unset_Type] = ( + Unset + ) + + if threshold_type is not Unset: + self.threshold_type = threshold_type + if attribute_type is not Unset: + self.attribute_type = attribute_type + if allowed_threshold_types is not Unset: + self.allowed_threshold_types = allowed_threshold_types + + @property + def threshold_type(self) -> "Union[GsaAttributeThresholdType, Unset_Type]": + """Gets the threshold_type of this GsaThresholdTypeAttributeErrorDetail. + + Returns + ------- + Union[GsaAttributeThresholdType, Unset_Type] + The threshold_type of this GsaThresholdTypeAttributeErrorDetail. + """ + return self._threshold_type + + @threshold_type.setter + def threshold_type( + self, threshold_type: "Union[GsaAttributeThresholdType, Unset_Type]" + ) -> None: + """Sets the threshold_type of this GsaThresholdTypeAttributeErrorDetail. + + Parameters + ---------- + threshold_type: Union[GsaAttributeThresholdType, Unset_Type] + The threshold_type of this GsaThresholdTypeAttributeErrorDetail. + """ + # Field is not nullable + if threshold_type is None: + raise ValueError("Invalid value for 'threshold_type', must not be 'None'") + self._threshold_type = threshold_type + + @property + def attribute_type(self) -> "Union[GsaAttributeType, Unset_Type]": + """Gets the attribute_type of this GsaThresholdTypeAttributeErrorDetail. + + Returns + ------- + Union[GsaAttributeType, Unset_Type] + The attribute_type of this GsaThresholdTypeAttributeErrorDetail. + """ + return self._attribute_type + + @attribute_type.setter + def attribute_type(self, attribute_type: "Union[GsaAttributeType, Unset_Type]") -> None: + """Sets the attribute_type of this GsaThresholdTypeAttributeErrorDetail. + + Parameters + ---------- + attribute_type: Union[GsaAttributeType, Unset_Type] + The attribute_type of this GsaThresholdTypeAttributeErrorDetail. + """ + # Field is not nullable + if attribute_type is None: + raise ValueError("Invalid value for 'attribute_type', must not be 'None'") + self._attribute_type = attribute_type + + @property + def allowed_threshold_types(self) -> "Union[list[GsaAttributeThresholdType], None, Unset_Type]": + """Gets the allowed_threshold_types of this GsaThresholdTypeAttributeErrorDetail. + + Returns + ------- + Union[list[GsaAttributeThresholdType], None, Unset_Type] + The allowed_threshold_types of this GsaThresholdTypeAttributeErrorDetail. + """ + return self._allowed_threshold_types + + @allowed_threshold_types.setter + def allowed_threshold_types( + self, allowed_threshold_types: "Union[list[GsaAttributeThresholdType], None, Unset_Type]" + ) -> None: + """Sets the allowed_threshold_types of this GsaThresholdTypeAttributeErrorDetail. + + Parameters + ---------- + allowed_threshold_types: Union[list[GsaAttributeThresholdType], None, Unset_Type] + The allowed_threshold_types of this GsaThresholdTypeAttributeErrorDetail. + """ + self._allowed_threshold_types = allowed_threshold_types + + @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, GsaThresholdTypeAttributeErrorDetail): + 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 diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_usage_data_modification_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_usage_data_modification_error_detail.py index 7216a9e6..250ce461 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_usage_data_modification_error_detail.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_usage_data_modification_error_detail.py @@ -36,6 +36,9 @@ from ansys.grantami.serverapi_openapi.models.gsa_data_modification_error_detail import ( # noqa: F401 GsaDataModificationErrorDetail, ) +from ansys.grantami.serverapi_openapi.models.gsa_data_modification_error_reason import ( + GsaDataModificationErrorReason, +) from . import ModelBase, Unset, Unset_Type @@ -68,7 +71,7 @@ class GsaUsageDataModificationErrorDetail(GsaDataModificationErrorDetail): """ swagger_types: dict[str, str] = { "message": "str", - "reason": "str", + "reason": "GsaDataModificationErrorReason", "referenced_by_type": "GsaReferencedByType", } @@ -101,7 +104,7 @@ def __init__( self, *, message: "str", - reason: "str" = "usage", + reason: "GsaDataModificationErrorReason" = GsaDataModificationErrorReason.USAGE, referenced_by_type: "GsaReferencedByType", ) -> None: """GsaUsageDataModificationErrorDetail - a model defined in Swagger @@ -109,7 +112,7 @@ def __init__( Parameters ---------- message: str - reason: str + reason: GsaDataModificationErrorReason referenced_by_type: GsaReferencedByType """ super().__init__(message=message, reason=reason) diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_version_controlled_data_usage_data_modification_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_version_controlled_data_usage_data_modification_error_detail.py index 0e618cad..af7959f1 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_version_controlled_data_usage_data_modification_error_detail.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_version_controlled_data_usage_data_modification_error_detail.py @@ -33,6 +33,9 @@ import re # noqa: F401 from typing import TYPE_CHECKING, Any, BinaryIO, Optional, Union # noqa: F401 +from ansys.grantami.serverapi_openapi.models.gsa_data_modification_error_reason import ( + GsaDataModificationErrorReason, +) from ansys.grantami.serverapi_openapi.models.gsa_referenced_by_type import GsaReferencedByType from ansys.grantami.serverapi_openapi.models.gsa_usage_data_modification_error_detail import ( # noqa: F401 GsaUsageDataModificationErrorDetail, @@ -67,7 +70,7 @@ class GsaVersionControlledDataUsageDataModificationErrorDetail(GsaUsageDataModif """ swagger_types: dict[str, str] = { "message": "str", - "reason": "str", + "reason": "GsaDataModificationErrorReason", "referenced_by_type": "GsaReferencedByType", } @@ -85,7 +88,7 @@ def __init__( self, *, message: "str", - reason: "str" = "usage", + reason: "GsaDataModificationErrorReason" = GsaDataModificationErrorReason.USAGE, referenced_by_type: "GsaReferencedByType" = GsaReferencedByType.VERSIONCONTROLLEDDATA, ) -> None: """GsaVersionControlledDataUsageDataModificationErrorDetail - a model defined in Swagger @@ -93,7 +96,7 @@ def __init__( Parameters ---------- message: str - reason: str + reason: GsaDataModificationErrorReason referenced_by_type: GsaReferencedByType """ super().__init__(message=message, reason=reason, referenced_by_type=referenced_by_type) diff --git a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_xy_chart_template_usage_data_modification_error_detail.py b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_xy_chart_template_usage_data_modification_error_detail.py index db24dec9..7c0abca2 100644 --- a/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_xy_chart_template_usage_data_modification_error_detail.py +++ b/ansys-grantami-serverapi-openapi/src/ansys/grantami/serverapi_openapi/models/gsa_xy_chart_template_usage_data_modification_error_detail.py @@ -33,6 +33,9 @@ import re # noqa: F401 from typing import TYPE_CHECKING, Any, BinaryIO, Optional, Union # noqa: F401 +from ansys.grantami.serverapi_openapi.models.gsa_data_modification_error_reason import ( + GsaDataModificationErrorReason, +) from ansys.grantami.serverapi_openapi.models.gsa_referenced_by_type import GsaReferencedByType from ansys.grantami.serverapi_openapi.models.gsa_usage_data_modification_error_detail import ( # noqa: F401 GsaUsageDataModificationErrorDetail, @@ -67,7 +70,7 @@ class GsaXYChartTemplateUsageDataModificationErrorDetail(GsaUsageDataModificatio """ swagger_types: dict[str, str] = { "message": "str", - "reason": "str", + "reason": "GsaDataModificationErrorReason", "referenced_by_type": "GsaReferencedByType", "referenced_by": "list[GsaSlimNamedEntity]", } @@ -89,7 +92,7 @@ def __init__( self, *, message: "str", - reason: "str" = "usage", + reason: "GsaDataModificationErrorReason" = GsaDataModificationErrorReason.USAGE, referenced_by_type: "GsaReferencedByType" = GsaReferencedByType.XYCHARTTEMPLATE, referenced_by: "Union[list[GsaSlimNamedEntity], None, Unset_Type]" = Unset, ) -> None: @@ -98,7 +101,7 @@ def __init__( Parameters ---------- message: str - reason: str + reason: GsaDataModificationErrorReason referenced_by_type: GsaReferencedByType referenced_by: list[GsaSlimNamedEntity], optional """